realreport 1.0.3 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +0,0 @@
1
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).RealReport={})}(this,(function(t){"use strict";var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},e(t,r)};function r(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var s={};!function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.h=t.r=void 0;class e{static encode(t){const r=e.CHARACTERS,s=[],A=t.length;var i=A%3;let n=A-i;for(let e=0;e<n;){var o=t[e++]<<16|t[e++]<<8|t[e++];s.push(r.charAt(o>>>18&63)),s.push(r.charAt(o>>>12&63)),s.push(r.charAt(o>>>6&63)),s.push(r.charAt(63&o))}switch(i){case 2:var a=t[n++]<<16|t[n++]<<8;s.push(r.charAt(a>>>18&63)),s.push(r.charAt(a>>>12&63)),s.push(r.charAt(a>>>6&63)),s.push(e.SUFFIX);break;case 1:a=t[n++]<<16,s.push(r.charAt(a>>>18&63)),s.push(r.charAt(a>>>12&63)),s.push(e.SUFFIX),s.push(e.SUFFIX)}return s.join("")}static decode(t){const r=e.CHARACTERS;var s=e.SUFFIX;const A=t.split(""),i=[];let n=A.length;for(;A[--n]===s;);for(let t=0;t<n;){let e=r.indexOf(A[t++])<<18;t<=n&&(e|=r.indexOf(A[t++])<<12),t<=n&&(e|=r.indexOf(A[t++])<<6),t<=n&&(e|=r.indexOf(A[t++])),i.push(e>>>16&255),i.push(e>>>8&255),i.push(255&e)}for(;0===i[i.length-1];)i.pop();return i}}r(e,"SUFFIX","="),r(e,"CHARACTERS","ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/");class s{static union(t,e){var r=e.s3[255&t],s=e.s2[255&(t>>=8)],A=e.s1[255&(t>>=8)];return((A=((A=((t=e.s0[255&(t>>=8)])>>16)+(A>>16)+((65535&t)+(65535&A)>>16)<<16|(65535&t)+(65535&A)&65535)>>16^s>>16)<<16|65535&(65535&A^65535&s))>>16)+(r>>16)+((65535&A)+(65535&r)>>16)<<16|(65535&A)+(65535&r)&65535}static xor(t,e){return(t>>16^e>>16)<<16|65535&(65535&t^65535&e)}static _encryptBlock(t,e){var r=t.left,A=t.right;const i=s.xor,n=s.union;r=i(r,e.p[0]),A=i(A,i(n(r,e),e.p[1])),r=i(r,i(n(A,e),e.p[2])),A=i(A,i(n(r,e),e.p[3])),r=i(r,i(n(A,e),e.p[4])),A=i(A,i(n(r,e),e.p[5])),r=i(r,i(n(A,e),e.p[6])),A=i(A,i(n(r,e),e.p[7])),r=i(r,i(n(A,e),e.p[8])),A=i(A,i(n(r,e),e.p[9])),r=i(r,i(n(A,e),e.p[10])),A=i(A,i(n(r,e),e.p[11])),r=i(r,i(n(A,e),e.p[12])),A=i(A,i(n(r,e),e.p[13])),r=i(r,i(n(A,e),e.p[14])),A=i(A,i(n(r,e),e.p[15])),r=i(r,i(n(A,e),e.p[16])),t.right=r,t.left=i(A,e.p[17])}static _decryptBlock(t,e){var r=t.left,A=t.right;const i=s.xor,n=s.union;r=i(r,e.p[17]),A=i(A,i(n(r,e),e.p[16])),r=i(r,i(n(A,e),e.p[15])),A=i(A,i(n(r,e),e.p[14])),r=i(r,i(n(A,e),e.p[13])),A=i(A,i(n(r,e),e.p[12])),r=i(r,i(n(A,e),e.p[11])),A=i(A,i(n(r,e),e.p[10])),r=i(r,i(n(A,e),e.p[9])),A=i(A,i(n(r,e),e.p[8])),r=i(r,i(n(A,e),e.p[7])),A=i(A,i(n(r,e),e.p[6])),r=i(r,i(n(A,e),e.p[5])),A=i(A,i(n(r,e),e.p[4])),r=i(r,i(n(A,e),e.p[3])),A=i(A,i(n(r,e),e.p[2])),r=i(r,i(n(A,e),e.p[1])),t.right=r,t.left=i(A,e.p[0])}static _init(t){const e=t.split("").map((function(t){return 255&t.charCodeAt(0)})),r=s.kb,A=s._encryptBlock;let i,n,o,a=0,h=0;var l={left:0,right:0};const c={p:r.p.slice(0).map((function(t){var r=e.length;let A;for(A=0;A<4;A++)h=h*s.POW8|e[a++%r];return(t>>16^h>>16)<<16|65535&(65535&t^65535&h)})),s0:r.s0.slice(0),s1:r.s1.slice(0),s2:r.s2.slice(0),s3:r.s3.slice(0)};for(i=0,o=c.p.length;i<o;)A(l,c),c.p[i++]=l.left,c.p[i++]=l.right;for(i=0;i<4;i++)for(n=0,o=c["s"+i].length;n<o;)A(l,c),c["s"+i][n++]=l.left,c["s"+i][n++]=l.right;return c}static encrypt(t,r){const A=s._encryptBlock;var i=s._init(r),n=8-(7&t.length);for(let e=0;e<n;e++)t+=String.fromCharCode(n);let o=0;const a=[],h=t.length>>3,l={left:null,right:null};for(let e=0;e<h;e++)l.left=t.charCodeAt(o)*s.POW24|t.charCodeAt(o+1)*s.POW16|t.charCodeAt(o+2)*s.POW8|t.charCodeAt(o+3),l.right=t.charCodeAt(o+4)*s.POW24|t.charCodeAt(o+5)*s.POW16|t.charCodeAt(o+6)*s.POW8|t.charCodeAt(o+7),A(l,i),a.push(l.left>>24&255),a.push(l.left>>16&255),a.push(l.left>>8&255),a.push(255&l.left),a.push(l.right>>24&255),a.push(l.right>>16&255),a.push(l.right>>8&255),a.push(255&l.right),o+=8;return e.encode(a)}static decrypt(t,r){const A=s._decryptBlock;var i=s._init(r);const n=[];var o=e.decode(t);let a=0;var h=o.length>>3;const l={left:null,right:null};for(let t=0;t<h;t++){l.left=o[a]*s.POW24|o[a+1]*s.POW16|o[a+2]*s.POW8|o[a+3],l.right=o[a+4]*s.POW24|o[a+5]*s.POW16|o[a+6]*s.POW8|o[a+7],A(l,i);var c=l.left,u=l.right;n.push(c>>24&255),n.push(c>>16&255),n.push(c>>8&255),n.push(255&c),n.push(u>>24&255),n.push(u>>16&255),n.push(u>>8&255),n.push(255&u),a+=8}return n[n.length-1]!==n[n.length-2]&&1!==n[n.length-1]||(t=n[n.length-1],n.splice(n.length-t,t)),n.map((function(t){return String.fromCharCode(t)})).join("")}}r(s,"POW2",Math.pow(2,2)),r(s,"POW3",Math.pow(2,3)),r(s,"POW4",Math.pow(2,4)),r(s,"POW8",Math.pow(2,8)),r(s,"POW16",Math.pow(2,16)),r(s,"POW24",Math.pow(2,24)),r(s,"kb",{p:[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],s0:[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],s1:[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],s2:[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],s3:[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462],k:[202,218,204,100]});const A=String.fromCharCode(100,107,100,108);class i{constructor(t){r(this,"_gk",void 0),this._gk=null!=t?t:A}_ldk(t){let e="";for(let r=0,s=t.length;r<s;r++)e+=String.fromCharCode(t[r]>>1);return e}get(){return this._gk+this._ldk(s.kb.k)}}t.r=class{static run(t,e){return e=new i(e).get(),s.encrypt(t,e)}};class n extends Error{}t.h=class{constructor(t,e){r(this,"_gk",void 0),r(this,"_code",void 0),r(this,"_lic",void 0),this._gk=e,this._code=t,this._lic=this.run()}run(){const t={},e=s.decrypt(this._code,new i(this._gk).get()).split(";");for(let s=0,i=e.length;s<i;s++){var r=e[s].split("="),A=r[0];(r=r[1])&&0<r.length&&(t[A]=r)}return t}get lic(){return this._lic}is(t,e){return t in this._lic&&this._lic[t]===e}includes(t,e){return t in this._lic&&e.includes(this._lic[t])}expired(t,e){return!(t in this._lic)||!this._lic[t]||(t=this._lic[t],e=(e?new Date(new Date(t).setMonth(new Date(t).getMonth()+e)):new Date(t)).getTime(),t=Date.now(),!isNaN(e)&&e<t)}validate(t){let e=!1;try{t.forEach((t=>{const r=Object.keys(t),s=Object.values(t);r.forEach(((t,r)=>{if(r=s[r],e=Array.isArray(r)?this.includes(t,r):this.is(t,r),!e)throw new n}))}))}catch(t){if(!(t instanceof n))throw t;e=!1}return e}}}(s);var A=function(t){return"RealReport를 사용하려면 도움말을 참조하세요.\nhttps://real-report.com/licenses (".concat(null==t?void 0:t.message,")")},i=function(t,e,r){var s="RealReport Error #".concat(t," : ").concat("https://real-report.com/errors","#").concat(t," ").concat(null!=r?r:"");if(e)throw new Error(s);return window.console&&console.warn(s),s},n=/[|\\{}()[\]^$+*?.]/g,o=function(t){if("string"!=typeof t)throw new TypeError("Expected a string");return t.replace(n,"\\$&")},a=/^\*\./,h=/\.\*$/,l=/\/.*$/,c=/:(\d+)$/,u=/^(\w+):\/\//,d=/\\\.\\\*/g;function p(t){if(!t||"string"!=typeof t)return null;var e=t.match(u);e=e?e[1]:null;var r=(t=(t=t.replace(u,"")).replace(l,"")).match(c);return r=r?parseInt(r[1],10):null,{protocol:e,url:t=t.replace(c,""),port:r}}var g=function(t,e){return Array.isArray(e)||(e=[e]),e.some((e=>function(t,e){if(!t||!e)return!1;var r=!e.protocol||!t.protocol||e.protocol===t.protocol,s=!e.port||t.port===e.port,A=e.url.startsWith("."),i=e.url.endsWith("."),n="^";return A&&(n+=".+"),n+=o(e.url).replace(d,"\\..*"),i&&(n+=".+"),n+="$",new RegExp(n).test(t.url)&&r&&s}(p(t),function(t){var e=p(t);return e&&(e.url=e.url.replace(a,"."),e.url=e.url.replace(h,".")),e}(e))))},f=location?location.hostname:void 0,_=function(t){return Array.isArray(t)?t.every(_):!(t.startsWith(".")||t.endsWith(".")||t.endsWith("*")||-1!==t.indexOf(".*.")||-1!==t.indexOf("..")||-1!==t.indexOf("*.com")||-1!==t.indexOf("*.co.kr")||-1!==t.indexOf("*.kr")||-1!==t.indexOf("*.net"))},m=function(t){var e=t.split(",").filter(Boolean);return!!_(e)&&(console.log(f,e,g(f,e)),f||i(214,!0,"Unknown host domain"),g(f,e))},w=function(){this.cm=!1;var t=null,e="";try{e="undefined"!=typeof process&&process.env?process.env.realReportLic:realReportLic||void 0,t=new s.h(e)}catch(t){return void i(200,!0,A(t))}this.cm=null!==t&&t.validate([{name:"RealReport",lic:["Enterprise"]}])&&m(t.lic.server)||t.validate([{name:"RealReport",lic:["Subscription","Limited","Evaluation"]}])&&!t.expired("expire",1)&&m(t.lic.server),this.cm||i(200,!0,A())},B=w;const C=function(t,e){return"object"==typeof t&&Object.prototype.toString.call(t).indexOf(e)>=0};"remove"in Element.prototype||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)});let y=0;class v{constructor(){this.$_hash=y++,this.$_disposed=!1,this.$_disposing=!1}dispose(){return this.$_disposed||this.$_disposing||(this.$_disposed=!0,this.$_disposing=!0,this._doDispose()),null}_doDispose(){}get disposing(){return this.$_disposing}get hash(){return this.$_hash}get shash(){return String(this.$_hash)}isMe(t){return t==this.$_hash}$_getters(t){const e=[],r=Object.getOwnPropertyNames(t);for(let s=0,A=r.length;s<A;s++){const A=r[s],i=Object.getOwnPropertyDescriptor(t,A);i&&i.get&&e.push(A)}return e}doAssignSimple(t){return!1}assignFrom(t){let e=Object.getPrototypeOf(this);if(t instanceof v){let r=Object.getPrototypeOf(t),s={};for(;r&&r.constructor!=v;){let A=this.$_getters(r);for(let i=0,n=A.length;i<n;i++){const n=A[i];if(!(n in s)){s[n]=null;let A=Object.getOwnPropertyDescriptor(e,n);if(A){if(A.set){const e=Object.getOwnPropertyDescriptor(r,n),s=e&&e.get;s&&A.set.call(this,s.call(t))}}else{let s=Object.getPrototypeOf(e);for(;s;){let e=Object.getOwnPropertyDescriptor(s,n);if(e){if(e.set){const s=Object.getOwnPropertyDescriptor(r,n),A=s&&s.get;A&&e.set.call(this,A.call(t))}s=null}else s=Object.getPrototypeOf(s)}}}}r=Object.getPrototypeOf(r)}}else if(!this.doAssignSimple(t))for(let r in t){let s=Object.getOwnPropertyDescriptor(e,r);if(s)s.set&&s.set.call(this,t[r]);else{let s=Object.getPrototypeOf(e);for(;s;){let e=Object.getOwnPropertyDescriptor(s,r);e?(e.set&&e.set.call(this,t[r]),s=null):s=Object.getPrototypeOf(s)}}}}extend(t){for(let e in t)e in this&&(this[e]=t[e])}toProxy(){const t={};let e=Object.getPrototypeOf(this);for(;e&&e.constructor!=v;){let r=this.$_getters(e);for(let s=0,A=r.length;s<A;s++){const A=r[s];let i=Object.getOwnPropertyDescriptor(e,A);if(i)i.get&&i.set&&(t[A]=i.get.call(this));else{let r=Object.getPrototypeOf(e);for(;r;){let e=Object.getOwnPropertyDescriptor(r,A);e?(e.get&&e.set&&(t[A]=e.get.call(this)),r=null):r=Object.getPrototypeOf(r)}}}e=Object.getPrototypeOf(e)}return t}toString(){return this.constructor.name}}class E extends v{constructor(){super(),this._listeners=[]}_doDispose(){for(let t of this._listeners)this.removeListener(t);return this._listeners=null,super._doDispose()}get listenerCount(){return this._listeners.length}addListener(t){return null!=t&&this._listeners.indexOf(t)<0&&this._listeners.push(t),this}removeListener(t){if(this._listeners&&null!=t){const e=this._listeners.indexOf(t);e>=0&&this._listeners.splice(e,1)}return this}isListener(t){return this._listeners&&this._listeners.indexOf(t)>=0}clearListener(){for(let t of this._listeners)this.removeListener(t);this._listeners.length=0}fireEvent(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),s=1;s<e;s++)r[s-1]=arguments[s];let A=Array.prototype.slice.call(arguments,0);A[0]=this;for(let e=0,r=this._listeners.length;e<r;e++){let r=this._listeners[e],s=r[t];s&&s.apply(r,A)}}fireConfirmEvent(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),s=1;s<e;s++)r[s-1]=arguments[s];let A=Array.prototype.slice.call(arguments,0);A[0]=this;for(let e=0,r=this._listeners.length;e<r;e++){let r=this._listeners[e],s=r[t];if(s){var i=s.apply(r,A);if("boolean"==typeof i&&!i)return!1}}return!0}fireMessageEvent(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),s=1;s<e;s++)r[s-1]=arguments[s];let A=Array.prototype.slice.call(arguments,0);A[0]=this;for(let e=0,r=this._listeners.length;e<r;e++){let r=this._listeners[e],s=r[t];if(s){const t=s.apply(r,A);if("string"==typeof t&&t)return t}}return null}fireObjectEvent(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),s=1;s<e;s++)r[s-1]=arguments[s];let A=Array.prototype.slice.call(arguments,0);A[0]=this;for(let e=0,r=this._listeners.length;e<r;e++){let r=this._listeners[e],s=r[t];if(s){const t=s.apply(r,A);if(null!=t)return t}}return null}}class b{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.x=t,this.y=e}static empty(){return new b}static create(){return new b(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)}get isEmpty(){return 0===this.x||0===this.y}clone(){return new b(this.x,this.y)}equals(t){return t===this||t&&this.x===t.x&&this.y===t.y}setEmpty(){return this.x=this.y=0,this}set(t,e){return this.x=t,this.y=e,this}round(){const t=this.clone();return t.x>>>=0,t.y>>>=0,t}toString(){return"{x: "+this.x+", y: "+this.y+"}"}}class x{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;this.x=t,this.y=e,this.width=r,this.height=s}static create(t,e,r,s){return new x(t,e,r,s)}get left(){return this.x}set left(t){const e=t-this.x;this.x+=e,this.width-=e}get right(){return this.x+this.width}set right(t){const e=t-(this.x+this.width);this.width+=e}get top(){return this.y}set top(t){const e=t-this.y;this.y+=e,this.height-=e}get bottom(){return this.y+this.height}set bottom(t){const e=t-(this.y+this.height);this.height+=e}get isEmpty(){return 0===this.width||0===this.height}clone(){return new x(this.x,this.y,this.width,this.height)}getInner(){return new x(0,0,this.width,this.height)}equals(t){return t===this||t&&this.x===t.x&&this.y===t.y&&this.width===t.width&&this.height===t.height}leftBy(t){return this.x+=t,this.width-=t,this}rightBy(t){return this.width+=t,this}topBy(t){return this.y+=t,this.height-=t,this}bottomBy(t){return this.height+=t,this}shrink(t,e){return this.width-=t,this.height-=e,this}expand(t,e){return this.width+=t,this.height+=e,this}contains(t,e){return t>=this.x&&t<=this.x+this.width&&e>=this.y&&e<=this.y+this.height}setEmpty(){return this.width=this.height=0,this}move(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.x=t,this.y=e,this}set(t,e,r,s){return this.x=t,this.y=e,this.width=r,this.height=s,this}setWidth(t){return this.width=t,this}copy(t){return this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height,this}copyHorz(t){return this.x=t.x,this.width=t.width,this}copyVert(t){return this.y=t.y,this.height=t.height,this}inflate(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;return e=void 0!==e?e:t,r=void 0!==r?r:t,s=void 0!==s?s:e,t&&(this.left=this.x-t),e&&(this.top=this.y-e),r&&(this.right=this.right+r),s&&(this.bottom=this.bottom+s),this}translate(t,e){return this.x+=t,this.y+=e,this}round(){const t=this.clone();return t.x>>>=0,t.y>>>=0,t.width>>>=0,t.height>>>=0,t}union(t){const e=this.clone();return e.left=Math.min(this.x,t.x),e.right=Math.max(this.right,t.right),e.top=Math.min(this.y,t.y),e.bottom=Math.max(this.bottom,t.bottom),e}normalize(){return this.width<0&&(this.x-=this.width,this.width*=-1),this.height<0&&(this.y-=this.height,this.height*=-1),this}intersects(t){return this.x<=t.right&&t.x<=this.right&&this.y<=t.bottom&&t.y<=this.bottom}toString(){return"{x: "+this.x+", y: "+this.y+", width: "+this.width+", height: "+this.height+"}"}}x.Temp=new x;var P,I,S;!function(t){t.LEFT="left",t.CENTER="center",t.RIGHT="right"}(P||(P={})),function(t){t.TOP="top",t.MIDDLE="middle",t.BOTTOM="bottom"}(I||(I={})),function(t){t.PIXEL="px",t.POINT="pt",t.INCH="in",t.CENTCH="cm",t.MILLI="mm"}(S||(S={}));const T={px:t=>t,pt:t=>t*D.HTMLDPI/72,in:t=>t*D.HTMLDPI,mm:t=>t*D.HTMLDPI/25.4,cm:t=>t*D.HTMLDPI/2.54},F={px:t=>t,pt:t=>72*t/D.HTMLDPI,in:t=>t/D.HTMLDPI,mm:t=>25.4*t/D.HTMLDPI,cm:t=>2.54*t/D.HTMLDPI},R=function(t,e){return T[t](e)},O=function(t,e){return F[t](e)};class Q extends Error{}class D{constructor(t){if(this._unit=S.PIXEL,this._value=NaN,this._fixed=!0,"number"==typeof t)this._value=t;else if("string"==typeof t){const e=t.trim();this._value=parseFloat(t),isNaN(this._value)||(e.endsWith("%")?this._fixed=!1:e.endsWith("pt")?this._unit=S.POINT:e.endsWith("in")?this._unit=S.INCH:e.endsWith("mm")?this._unit=S.MILLI:e.endsWith("cm")&&(this._unit=S.CENTCH))}}static create(t){return null==t?null:"string"!=typeof t||(t=t.trim())?new D(t):null}static createDimensions(t){if(t&&(t=t.trim())){const e=t.split(","),r=[];for(let t of e)r.push(t?new D(t):null);return r}}static equals(t,e){return t===e||t&&e&&t.equals(e)}get fixed(){return this._fixed}get unit(){return this._unit}get value(){return this._value}clone(){const t=new D(void 0);return t._fixed=this._fixed,t._unit=this._unit,t._value=this._value,t}equals(t){return t===this||t instanceof D&&(t._fixed==this._fixed&&t._unit==this._unit&&t._value==this._value)}toString(){return isNaN(this._value)?"NaN":this._fixed?this._value+this._unit:this._value+"%"}getValue(){return isNaN(this._value)?"NaN":this._fixed?this.$_getPixel():this._value+"%"}getPixel(t){if(!isNaN(this._value)){let e=this.$_getPixel();return this._fixed||(e=t*e/100),e}return NaN}getFixedPixel(){return isNaN(this._value)?NaN:this.$_getPixel()}$_getPixel(){return T[this._unit](this._value)}}D.HTMLDPI=96;class L{constructor(t){if(this._dims=[],this._relative=0,this._fixed=0,this._dirty=!1,t&&(t=t.trim())){const e=t.split(","),r=this._dims=[];for(let t=0;t<e.length;t++){const s=e[t],A=s?new D(s):null;r.push(A)}this.$_refresh()}}get count(){return this._dims.length}get relative(){return this._relative>0}get(t){return this._dims[t]}set(t,e){e!==this._dims[t]&&(this._dims[t]=e,this._dirty=!0)}getSizes(t,e,r){let s=arguments.length>3&&void 0!==arguments[3]&&arguments[3];this._dirty&&this.$_refresh();const A=this._dims,i=this._values,n=[],o=r?Math.max(0,r.getPixel(e)||0):0;let a=0,h=0,l=0;for(let e=0,r=Math.min(t,A.length);e<r;e++)A[e]&&(A[e].fixed?isNaN(i[e])||(a+=Math.max(0,i[e])):h+=Math.max(0,i[e]));this._dims.forEach(((t,r)=>{const A=this._values[r];if(isNaN(A))n.push(NaN);else if(t.fixed)n.push(Math.max(o,A));else if(isNaN(e))n.push(NaN);else{let t=(e-a)*A/h,r=Math.floor(t);l+=t-r,l>=1&&(r++,l--),n.push(Math.max(o,s?r:t))}}));let c=0,u=0;for(let e=0;e<t;e++){const t=n[e];isNaN(t)?u++:c+=t}if(u>0&&!isNaN(e)){const r=Math.max(0,(e-c)/u);for(let e=0;e<t;e++)isNaN(n[e])&&(n[e]=Math.max(o,r))}return n}getSize(t,e){const r=this._dims[t];if(r){const s=this._values[t];if(!isNaN(s))return r.fixed?s:Math.max(0,(e-this._fixed)*s/this._relative)}return NaN}changeSize(t,e,r,s,A){0!==r&&(this.getSizes(t,s,A),r>0||(r-=r))}$_refresh(){const t=this._values=[];for(let e of this._dims)if(e)if(e.fixed){const r=e.$_getPixel();t.push(r),this._fixed+=r}else t.push(e.value),this._relative+=e.value;else t.push(NaN);this._dirty=!1}$_init(t){this._dims=t.slice(),this.$_refresh()}}var U,H;L.Empty=new L(null),function(t){t.NONE="none",t.BEFORE="before",t.AFTER="after",t.BOTH="both"}(U||(U={})),function(t){t.LEFT="left",t.RIGHT="right",t.TOP="top",t.BOTTOM="bottom",t.TOP_LEFT="topLeft",t.BOTTOM_RIGHT="bottomRight",t.TOP_RIGHT="topRight",t.BOTTOM_LEFT="bottomLeft"}(H||(H={})),function(t){t.isLeft=function(e){return e===t.LEFT||e===t.TOP_LEFT||e===t.BOTTOM_LEFT},t.isTop=function(e){return e===t.TOP||e===t.TOP_LEFT||e===t.TOP_RIGHT},t.isEdge=function(e){return e===t.TOP_LEFT||e===t.BOTTOM_RIGHT||e===t.TOP_RIGHT||e===t.BOTTOM_LEFT},t.isIn=function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),s=1;s<e;s++)r[s-1]=arguments[s];for(let e of r)if(e===t)return!0}}(H||(H={}));const N=navigator.platform.toUpperCase().indexOf("MAC")>=0,M=!!window.opera||navigator.userAgent.indexOf(" OPR/")>=0,k=!!window.whale,V=!!window.chrome&&!M,G=void 0!==window.InstallTrigger,K=Object.prototype.toString.call(HTMLElement).indexOf("Constructor")>0||!V&&!M&&navigator.userAgent.indexOf("Safari")>=0,W=K&&("Win32"==navigator.platform||navigator.userAgent.indexOf("Windows")>=0),z=!!document.documentMode,X=navigator.userAgent.toLowerCase().indexOf("edge/")>=0,J=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Y=navigator.userAgent.toLowerCase().indexOf("edg/")>=0&&navigator.userAgent.toLowerCase().indexOf("chrome/")>=0,$=function(){let t=3,e=document.createElement("div"),r=e.getElementsByTagName("i");for(;e.innerHTML="\x3c!--[if gt IE "+ ++t+"]><i></i><![endif]--\x3e",r[0];);return t>4?t:undefined}(),j=void 0!==$&&$<=9,Z=void 0!==$&&$<=8,q=-1!==navigator.appVersion.indexOf("MSIE 10");navigator.appVersion.indexOf("MSIE 9");const tt=(new Date).getTime(),et={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};let rt,st;function At(t){return t&&t.ownerDocument&&(t.ownerDocument.defaultView||t.ownerDocument.parentWindow)}function it(t){return t&&t.ownerDocument}function nt(t){return t.defaultView||t.parentWindow}String.prototype.startsWith||(String.prototype.startsWith=function(t,e){return this.substr(!e||e<0?0:+e,t.length)===t}),String.prototype.endsWith||(String.prototype.endsWith=function(t,e){let r=this.toString();("number"!=typeof e||!isFinite(e)||Math.floor(e)!==e||e>r.length)&&(e=r.length),e-=t.length;let s=r.indexOf(t,e);return-1!==s&&s===e}),void 0===Function.prototype.name&&Object.defineProperty(Function.prototype,"name",{get:function(){return this.__name||(this.__name=this.toString().split("(",1)[0].split(" ")[1]),this.__name}});class ot{static stopEvent(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t.preventDefault?(t.preventDefault(),t.stopPropagation()):t.returnValue=!1,e&&t.stopImmediatePropagation()}static setDebugging(t,e,r){ot.$$_trace=t,ot.$$_debugging=e,ot.$$_keyLog=r}static isDebugging(){return ot.$$_debugging}static isTrace(){return this.$$_trace}static log(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),s=1;s<e;s++)r[s-1]=arguments[s];ot.isDebugging()&&console.log(t,r)}static keyLog(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),s=1;s<e;s++)r[s-1]=arguments[s];ot.$$_keyLog&&console.log(t,r)}static trace(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),s=1;s<e;s++)r[s-1]=arguments[s];ot.isTrace()&&console.log(t,r)}static getErrorStack(t){const e=t.stack;return e?e.split("\n").map((t=>t+"<br/>")):""}static getBaseClassName(t){return Object.getPrototypeOf(t.constructor).name}static getBaseCtor(t){return Object.getPrototypeOf(t.constructor).$_ctor}static isObject(t){return t&&"object"==typeof t&&!Array.isArray(t)}static isArray(t){return Array.isArray(t)}static makeArray(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return null!=t?Array.isArray(t)?t:[t]:e?[]:void 0}static getIntArray(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const r=[];for(let s=e,A=e+t;s<A;s++)r.push(s);return r}static isValueArray(t){if(Array.isArray(t)){for(let e=t.length-1;e>=0;e--)if(null!=t[e]&&"object"==typeof t[e])return!1;return!0}}static toArray(t){return Array.isArray(t)?t:null!=t?[t]:null}static push(t,e){if(e&&e.length>0)for(let r=0,s=e.length;r<s;r++)t.push(e[r])}static isDefined(t){return null!=t}static isNotDefined(t){return null==t}static isNumber(t){return"number"==typeof t}static isValidNumber(t){return"number"==typeof t&&!isNaN(t)&&isFinite(t)}static toNumber(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return isNaN(t)?e:+t}static getEnumValues(t){return Object.keys(t).map((e=>t[e]))}static compareText(t,e){return t=t||"",e=e||"",arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&(t=t.toLocaleLowerCase(),e=e.toLocaleLowerCase()),t>e?1:t<e?-1:0}static getTimeF(){return(new Date).getTime()/1e3}static getTimer(){return(new Date).getTime()-tt}static isWhiteSpace(t){return!t||!t.trim()}static pad(t,e,r){return e=Math.max(e||2,1),r=r||"0",new Array(e-String(t).length+1).join(r)+t}static pad16(t,e,r){return e=Math.max(e||2,1),r=r||"0",new Array(e-t.toString(16).length+1).join(r)+t.toString(16)}static pick(){const t=arguments.length;let e;for(let r=0;r<t;r++)if(e=r<0||arguments.length<=r?void 0:arguments[r],null!=e)return e}static pickNum(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];const s=e.length;for(let t=0;t<s;t++)if(!isNaN(e[t])&&null!==e[t])return e[t];return NaN}static included(t){const e=arguments.length<=1?0:arguments.length-1;for(let r=0;r<e;r++)if((r+1<1||arguments.length<=r+1?void 0:arguments[r+1])==t)return!0;return!1}static compareTextValue(t,e,r,s){if(t===e)return!0;let A=String(t),i=null==e?void 0:String(e);return!A&&!i||!(!A||!i)&&(r||(A=A.toLowerCase(),i=i.toLowerCase()),s?i.indexOf(A)>=0:A==i)}static cast(t,e){return t instanceof e?t:null}static irandom(t,e){if(void 0!==e){const r=Math.floor(t),s=Math.floor(e);return Math.floor(Math.random()*(s-r)+r)}{const e=Math.floor(t);return Math.floor(Math.random()*e)}}static brandom(){return Math.random()>.5}static srandom(t,e){let r="";const s=this.irandom(t,e);for(let t=0;t<s;t++)r+=String.fromCharCode(this.irandom(97,123));return r}static erandom(t){const e=Object.values(t);return e[this.irandom(e.length)]}static alert(t){window.alert(t)}static throwAlert(t){throw new Q(t)}static toInt(t,e){const r=parseInt(t,e||10);return isNaN(r)?0:r}static toFloat(t){const e=parseFloat(t);return isNaN(e)?0:e}static toEven(t){return 1&t?t+1:t}static hex(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0";e=Math.max(e||2,1);const s=t.toString(16);return r=r||"0",new Array(e-s.length+1).join(r)+s}static toStr(t){return"number"==typeof t?isNaN(t)?"":String(t):null!=t?String(t):""}static extend(t,e){t=t||{};for(let r in e)t[r]=e[r];return t}static setBounds(t,e,r,s,A){const i=t.style;i.left=e+"px",i.top=r+"px",i.width=s+"px",i.height=A+"px"}static getClientRect(t){const e=t.getBoundingClientRect();return e.cx=t.offsetLeft,e.cy=t.offsetTop,e}static getChildIndex(t){if(t){const e=t.parentNode;if(e){const r=e.children;for(let e=r.length;e--;)if(r[e]===t)return e}}return-1}static clearChildren(t){let e;for(;e=t.lastChild;)t.removeChild(e)}static clearElements(t){let e;for(;e=t.lastChild;)ot.clearElements(e),t.removeChild(e)}static addChild(t,e){return!(!t||!e||e.parentNode===t)&&(t.appendChild(e),!0)}static removeChild(t,e){return!(!t||!e||e.parentNode!==t)&&(t.removeChild(e),!0)}static remove(t){const e=t&&t.parentElement;e&&e.removeChild(t)}static disableSelection(t){const e=t.style;e["-moz-user-select"]="-moz-none",e["-khtml-user-select"]="none",e["-webkit-user-select"]="none",e["-o-user-select"]="none",e["-ms-user-select"]="none",e["user-select"]="none"}static selectAll(t){if(t&&window.getSelection&&document.createRange){const e=window.getSelection(),r=document.createRange();r.selectNodeContents(t),e.removeAllRanges(),e.addRange(r)}}static setMobile(t){rt=t}static isMobile(){return void 0!==rt?rt:(void 0===st&&(st=this.$_checkMobile()),st)}static $_checkMobile(){let t=!1;return(navigator.userAgent.match(/Android/i)||navigator.userAgent.match(/webOS/i)||navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/BlackBerry/i)||navigator.userAgent.match(/Windows Phone/i))&&(t=!0),t||function(e){if((/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))&&(t=!0),!t&&null!==e.match(/Macintosh/i)){let e=document.createElement("canvas");if(null!==e){let r=e.getContext("webgl")||e.getContext("experimental-webgl");if(r){let e=r.getExtension("WEBGL_debug_renderer_info");if(e){-1!==r.getParameter(e.UNMASKED_RENDERER_WEBGL).indexOf("Apple")&&(t=!0)}}}}}(navigator.userAgent||navigator.vendor||window.opera),t}static getBrowserSize(t){const e=t?t.ownerDocument:document,r=e.defaultView;return{width:r.innerWidth||e.documentElement.clientWidth||e.body.clientWidth,height:r.innerHeight||e.documentElement.clientHeight||e.body.clientHeight}}static move(t,e,r){t.style.left=e+"px",t.style.top=r+"px"}static htmlEncode(t){return document.createElement("a").appendChild(document.createTextNode(t)).parentNode.innerHTML}static detach(t){t&&t.parentNode&&t.parentNode.removeChild(t)}static getSize(t){const e=t.getBoundingClientRect();return{width:e.width,height:e.height}}static getScrolled(t){const e=t.body,r=nt(t),s=t.documentElement;return{sx:r.pageXOffset||s.scrollLeft||e.scrollLeft,sy:r.pageYOffset||s.scrollTop||e.scrollTop}}static getOffset(t){const e=t.ownerDocument,r=e.defaultView,s=t.getBoundingClientRect(),A=e.body,i=e.documentElement,n=r.pageYOffset||i.scrollTop||A.scrollTop,o=r.pageXOffset||i.scrollLeft||A.scrollLeft,a=i.clientTop||A.clientTop||0,h=i.clientLeft||A.clientLeft||0,l=s.left+o-h,c=s.top+n-a;return{x:Math.round(l),y:Math.round(c)}}static isAncestorOf(t,e){let r=e;for(;r;){if(r==t)return!0;r=r.parentElement}return!1}static equalNumbers(t,e){return isNaN(t)==isNaN(e)&&!isNaN(t)&&t==e}static equalArrays(t,e){if(t===e)return!0;if(null==t||null==e)return!1;const r=t.length;if(r!=e.length)return!1;for(let s=0;s<r;++s)if(t[s]!==e[s])return!1;return!0}static parseDate(t,e){const r=new Date(t);return isNaN(r.getTime())?e||new Date:r}static isLeapYear(t){return t%4==0&&t%100!=0||t%400==0}static incMonth(t,e){const r=t.getDate();return t.setDate(1),t.setMonth(t.getMonth()+e),t.setDate(Math.min(r,ot.month_days[ot.isLeapYear(t.getFullYear())?1:0][t.getMonth()])),t}static minDate(t,e){return null!==t?t:null!==e?e:t.getTime()<e.getTime()?t:e}static maxDate(t,e){return null!==t?e:null!==e||t.getTime()>e.getTime()?t:e}static setClassName(t,e){e!=t.className&&(t.className=e)}static addClassName(t,e){if(t.classList)t.classList.add(e);else{const r=t.className.split(" ");r.indexOf(e)<0&&r.push(e),t.className=r.join(" ")}}static removeClassName(t,e){if(t.classList)t.classList.remove(e);else{const r=t.className.split(" ");let s;(s=r.indexOf(e))>=0&&r.splice(s,1),t.className=r.join(" ")}}static getBoundingClientRect2(t){const e=t.getBoundingClientRect();return{x:e.left,y:e.top,left:e.left,right:e.right,width:e.right-e.left,top:e.top,bottom:e.bottom,height:e.bottom-e.top}}static getTextLength(t){let e=0,r=0,s=0;for(;s=t.charCodeAt(r++);e+=s>>7?2:1);return e}static getClassName(t){if(t&&t.constructor)return t.constructor.name||function(t){let e=t.toString();return e=e.substr("function ".length),e=e.substr(0,e.indexOf("(")),e}(t.constructor)}static isInteger(t){return Number.isInteger?Number.isInteger(t):"number"==typeof t&&isFinite(t)&&Math.floor(t)===t}static setTextProp(t){t.textProp=this.ieAll?"textContent":"innerText"}static isEmpty(t){if(t)for(let e in t)if(t.hasOwnProperty(e))return!1;return!0}static isNotEmpty(t){if(t)for(let e in t)if(t.hasOwnProperty(e))return!0;return!1}static capitalize(t){if("string"!=typeof t)return"";const e=t.charAt(0);return e>="A"&&e<="Z"?t:e.toUpperCase()+t.slice(1)}static uncapitalize(t){if("string"!=typeof t)return"";const e=t.charAt(0);return e>="a"&&e<="z"?t:e.toLowerCase()+t.slice(1)}static labelize(t){if("string"!=typeof t)return"";const e=t.charAt(0);let r=(t=e>="A"&&e<="Z"?t:e.toUpperCase()+t.slice(1)).charAt(0);for(let e=1;e<t.length;e++){const s=t.charAt(e);s>="A"&&s<="Z"&&(r+=" "),r+=s}return r}static escapeXML(t){return t.replace(/[&<>"']/g,(function(t){return et[t]}))}static deepClone(t){if(null===t||"object"!=typeof t)return t;const e=Array.isArray(t)?[]:{};for(let r of Object.keys(t))e[r]=ot.deepClone(t[r]);return e}static getCaretOffset(t){const e=t.ownerDocument.getSelection();return e.rangeCount>0?e.focusOffset:0}static getFocused(){let t=document.getSelection().focusNode;for(;t;){if(t instanceof HTMLElement)return t;t=t.parentElement}}static getArray(t,e){const r=[];for(let s=0;s<t;s++)r.push(e);return r}static getNumArray(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const r=[];for(let s=0;s<t;s++)r.push(e);return r}static hasSetter(t,e){for(;t;){const r=Reflect.getOwnPropertyDescriptor(t,e);if(r)return r.writable||!!r.set;t=Object.getPrototypeOf(t)}}static dataUriToBinary(t){const e=";base64,",r=t.indexOf(e)+e.length,s=t.substring(r),A=window.atob(s),i=A.length,n=new Uint8Array(new ArrayBuffer(i));for(let t=0;t<i;t++)n[t]=A.charCodeAt(t);return n}static getImageUrl(t){const e=t.backgroundImage;if(e&&e.startsWith('url("'))return e.substring(5,e.length-2)}}function at(t,e){if(!t)throw new Error(e)}ot.isIE=z,ot.isEdge=X,ot.ieAll=z||X,ot.ieOld=j,ot.isMac=N,ot.isSafari=K,ot.isWinSafari=W,ot.isChrome=V,ot.isFirefox=G,ot.isOpera=M,ot.ieLeg=Z,ot.ieTen=q,ot.isiOS=J,ot.isChromium=V||Y||k||M,ot.TextProp=ot.ieAll?"innerText":"textContent",ot.week_days=window.RG_CONST&&window.RG_CONST.WEEKDAYS?window.RG_CONST.WEEKDAYS:["일","월","화","수","목","금","토"],ot.month_days=[[31,28,31,30,31,30,31,31,30,31,30,31],[31,29,31,30,31,30,31,31,30,31,30,31]],ot.colonreg=/;(?=(?:[^"]*"[^"]*")*(?![^"]*"))/,ot.$$_debugging=!1,ot.$$_keyLog=!1,ot.$$_trace=null;class ht extends E{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;super(),this._positionable=!0,this._x=0,this._y=0,this._width=0,this._height=0,this._visible=!0,this._styleName="",this._elements=null,this._dirty=!0,this._hovered=!1,this._className="",this._nodraw=!1,this._name=e;let s=this._dom=this._createDom(t);s&&this._initDom(t,s),r&&r(this,s)}_doDispose(){if(this._dom&&(this._removeEventListeners(this._dom),ot.detach(this._dom),this._dom=null),this._elements){for(let t of this._elements)t.dispose();this._elements.length=0}this._parent=null,super._doDispose()}get positionable(){return this._positionable}set positionable(t){t!=this._positionable&&(this._positionable=t,this.invalidate())}get name(){return this._name}get styleName(){return this._styleName}set styleName(t){t!=this._styleName&&(this._styleName=t,this.resetStyleName())}get container(){return this._parent&&this._parent.container}get parent(){return this._parent}get elements(){return this._elements?this._elements.slice(0):[]}get childCount(){return this._elements?this._elements.length:0}get isSingleton(){return this._parent&&1==this._parent.childCount&&this._parent._elements[0]===this}get x(){return this._x}set x(t){t!=this._x&&(this._x=t,this.invalidate())}get y(){return this._y}set y(t){t!=this._y&&(this._y=t,this.invalidate())}get width(){return this._width}set width(t){(t=Math.max(0,t))!=this._width&&(this._width=t,this.sizeChanged())}get height(){return this._height}set height(t){(t=Math.max(0,t))!=this._height&&(this._height=t,this.sizeChanged())}get right(){return this._x+this._width}get bottom(){return this._y+this._height}get position(){return new b(this._x,this._y)}get bounds(){return new x(this._x,this._y,this._width,this._height)}get clientRect(){return new x(0,0,this._width,this._height)}get visible(){return this._visible}set visible(t){t!=this._visible&&(this._visible=t,this._dom&&(this._dom.style.display=this._visible?this._getCssDisplay():"none"),this.invalidate(!0),this._visibleChanged())}get findable(){return!0}get hovered(){return this._hovered}set hovered(t){t!=this._hovered&&(this._hovered=t,this._hoverChanged())}get isLayer(){return!1}get blockable(){return!1}get mouseX(){const t=this.container;if(t){let e=t._currentX,r=this;for(;r&&void 0!==r;)e-=r._x,r=r._parent;return e}return NaN}get mouseY(){const t=this.container;if(t){let e=t._currentY,r=this;for(;r&&void 0!==r;)e-=r._y,r=r._parent;return e}return NaN}get dom(){return this._dom}get doc(){return it(this._dom)}get style(){return this._dom&&this._dom.style}get offsetWidth(){return this._dom.offsetWidth}get offsetHeight(){return this._dom.offsetHeight}get offsetSize(){return{width:this._dom.offsetWidth,height:this._dom.offsetHeight}}get printable(){return!0}isDom(t){return t===this._dom}containsDom(t){return this._dom.contains(t)}containsClass(t){return this._dom.classList.contains(t)}canHover(){return!0}getChildren(){return this._elements&&this._elements.slice(0)}getChild(t){return this._elements&&this._elements[t]}indexOf(t){return this._elements?this._elements.indexOf(t):-1}get firstChild(){return this._elements&&this._elements[0]}contains(t){return this._elements&&this._elements.indexOf(t)>=0}getAncestor(t){let e=this._parent;for(;e;){if(e instanceof t)return e;e=e._parent}return null}addDom(t){t&&this._dom.appendChild(t)}addChild(t){return this.insertChild(-1,t)}_getParentDom(){return this._dom}insertChild(t,e){if(e&&!this.contains(e)){const r=this._elements||[],s=e._dom,A=this._getParentDom();if(t<0||t>=r.length)A&&s&&A.appendChild(s),r.push(e);else{if(s){const e=this._elements[t]._dom;A&&e&&A.insertBefore(s,e)}r.splice(t,0,e)}return this._elements=r,e._parent=this,e.$_attached(this),this.invalidate(),!0}return!1}removeChild(t){if(t&&this._elements){const e=this._elements.indexOf(t);if(e>=0)return this.removeChildAt(e)===t}return!1}removeChildAt(t){if(t>=0&&t<this.childCount){const e=this._elements[t],r=this._getParentDom();return this._elements.splice(t,1),r&&e._dom&&r.removeChild(e._dom),e._parent=null,e._dirty=!1,e.$_detached(this),this.invalidate(),e}return null}removeLast(){return this._elements&&this._elements.length>0?this.removeChildAt(this._elements.length-1):null}clear(){const t=this._elements;if((t?t.length:0)>0){for(let e of t)e._parent=null,e.$_detached(this);this._elements=[];const e=this._getParentDom();if(e)for(;e.lastChild;)e.removeChild(e.lastChild);return this.invalidate(),!0}return!1}hideAll(){if(this._elements)for(let t of this._elements)t.visible=!1}invalidate(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t||!this._dirty){this._dirty=!0;const t=this.container;t&&t.invalidateElement(this)}if(e&&this._elements)for(let e of this._elements)e.invalidate(t,!0)}validate(){this._dirty=!1}invalidateLayout(){const t=this.container;t&&t.invalidateLayout()}getBounds(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return t?t.set(this._x,this._y,this._width,this._height):new x(this._x,this._y,this._width,this._height)}getClientRect(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return t?t.set(0,0,this._width,this._height):new x(0,0,this._width,this._height)}containsInBounds(t,e){return t>=this._x&&t<this._x+this._width&&e>=this._y&&e<this._y+this._height}containsInClient(t,e){return t>=0&&t<this._width&&e>=0&&e<this._height}parentToElement(t,e,r){let s=this;for(;s&&s!=t;)e-=s._x,r-=s._y,s=s._parent;return new b(e,r)}translateBy(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=t;for(e||(e=new x(0,0,this._width,this._height));r&&r!==this;)e.x-=r._x,e.y-=r._y,r=r._parent;return e}topBy(t,e){let r=this._y+e,s=this._parent;for(;s&&s!==t;)r+=s._y,s=s._parent;return r}boundsBy(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=this._x,s=this._y,A=this._parent;for(e&&(r+=e.x,s+=e.y);A&&A!==t;)r+=A._x,s+=A._y,A=A._parent;return e?new x(r,s,e.width,e.height):new x(r,s,this._width,this._height)}boundsByContainer(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=this._x,r=this._y;t&&(e+=t.x,r+=t.y);let s=this._parent;for(;s&&void 0!==s._x;)e+=s._x,r+=s._y,s=s._parent;return t?new x(e,r,t.width,t.height):new x(e,r,this._width,this._height)}pointByContainer(t,e){let r=this._parent;for(;r&&void 0!==r._x;)t+=r._x,e+=r._y,r=r._parent;return new b(t+this._x,e+this._y)}containerToElement(t,e){let r=this;for(;r;)t-=r._x,e-=r._y,r=r._parent;return new b(t,e)}boundsByScreen(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return t=this.boundsByContainer(t),t=this.container.toScreen(t),t}offsetFrom(t){const e=t._dom,r=new b(this._dom.offsetLeft,this._dom.offsetTop);let s=this._dom.offsetParent;for(;s instanceof HTMLElement&&s!==e;)r.x+=s.offsetLeft,r.y+=s.offsetTop,s=s.offsetParent;return r}hitTest(t,e){return t>=0&&t<this._width&&e>=0&&e<this._height}findChildAt(t,e,r,s){const A=this._elements,i=A?A.length:0;if(i>0)for(let n=i-1;n>=0;n--){const i=A[n];if(i.visible){const A=t-i._x,n=e-i._y;if((r||i.findable)&&(i.isLayer||i.hitTest(A,n))){const t=i.findChildAt(A,n,r,s);if(t)return t;if(!i.isLayer||s&&i.blockable)return i}}}return null}findChildOf(t){if(this._elements)for(let e of this._elements){if(e.isDom(t))return e;const r=e.findChildOf(t);if(r)return r}}move(t,e){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t==this._x&&e==this._y||(this._x=t,this._y=e,r?(this._dom.style.left=t+"px",this._dom.style.top=e+"px"):this.invalidate())}resize(t,e){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t==this._width&&e==this._height||(this._width=t,this._height=e,r?this._setSizeStyle(this._dom.style):this.sizeChanged())}setBounds(t,e,r,s){return t==this._x&&e==this._y||(this._x=t,this._y=e,this.invalidate()),this.resize(r,s),this}setBoundsI(t,e,r,s){return e>>=0,r>>=0,s>>=0,(t>>=0)==this._x&&e==this._y||(this._x=t,this._y=e,this.invalidate()),this.resize(r,s),this}setRect(t){return t.x==this._x&&t.y==this._y||(this._x=t.x,this._y=t.y,this.invalidate()),this.resize(t.width,t.height),this}setRectI(t){const e=t.x>>0,r=t.y>>0,s=t.width>>0,A=t.height>>0;return e==this._x&&r==this._y||(this._x=e,this._y=r,this.invalidate()),this.resize(s,A),this}getBoundingRect(){return ot.getBoundingClientRect2(this._dom)}draw(){this._dirty&&this._dom&&!this._nodraw&&(this._beforeDraw(this._dom),this._doDraw(this._dom),this._afterDraw(this._dom),this._dirty=!1)}drawRecursive(){this.draw();for(let t=0,e=this.childCount;t<e;t++){const e=this._elements[t];e.visible&&e.drawRecursive()}}resetSizeStyle(){this._dom&&this._setSizeStyle(this._dom.style)}getHtml(){return this._dom&&this._dom.outerHTML}setImportantStyle(t,e){this._dom.style.setProperty(t,e,"important")}isAncestorOf(t){let e=t&&t.parent;for(;e;){if(e===this)return!0;e=e.parent}}isAncestorDomOf(t){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&this._dom===t)return!0;let e=t.parentElement;for(;e;){if(e===this._dom)return!0;e=e.parentElement}}findDescendantOf(t){for(let e=this.childCount-1;e>=0;e--){let r=this.getChild(e);if(r._dom===t)return r;if(r=r.findDescendantOf(t),r)return r}}setStyles(t){if(t){const e=this._dom.style;for(let r in t)e[r]=t[r]}}get scrollTop(){return this._dom.scrollTop}get scrollLeft(){return this._dom.scrollLeft}scrollDom(t,e){ot.isIE?(this._dom.scrollTop=e,this._dom.scrollLeft=t):this._dom.scroll(t,e)}setHint(t){this._dom.title=t}_isTesting(){return ht.Testing}_getElements(){return this._elements}_createDom(t){return t.createElement("div")}_getCssSelector(){return this._styleName}_initDom(t,e){const r=e.style;r.position="absolute",r.boxSizing="border-box",this._addEventListeners(e)}_addEventListeners(t){}_removeEventListeners(t){}$_attached(t){this._doAttached(t)}_doAttached(t){}$_detached(t){this._doDetached(t)}_doDetached(t){}_isEmptySize(){return!1}_setSizeStyle(t){this._isEmptySize()?(t.width="",t.height=""):(t.width=isNaN(this._width)?"":this._width+"px",t.height=isNaN(this._height)?"":this._height+"px")}setPrintStyles(){const t=this._dom.style;isNaN(this._x)||(t.left=this._x+"px"),isNaN(this._y)||(t.top=this._y+"px"),isNaN(this._width)||(t.width=this._width+"px"),isNaN(this._height)||(t.height=this._height+"px")}_getCssDisplay(){return"block"}resetStyleName(){this._setClassName(this._dom)}_setClassName(t){let e=this._getCssSelector();e!=this._className&&(this._className=e,(t||this._dom).className=e||"")}replaceDom(t){const e=this._dom,r=e.parentElement;r.removeChild(e),r.appendChild(t),this._dom=t}cloneNode(){return this._dom.cloneNode(!0)}applyBounds(){let t=this._dom.style;t.left=this._x+"px",t.top=this._y+"px",this._setSizeStyle(t)}_beforeDraw(t){this._setClassName(t);let e=t.style;this._positionable?(e.left=this._x+"px",e.top=this._y+"px"):(e.left="",e.top=""),this._setSizeStyle(e)}_doDraw(t){}_afterDraw(t){}_hoverChanged(){}_visibleChanged(){}sizeChanged(){this.invalidate(!0,!0),this._doSizeChanged()}_doSizeChanged(){}}ht.Testing=!1;class lt extends ht{get isLayer(){return!0}_doDraw(t){}}class ct extends v{constructor(t,e){super(),this._clickX=0,this._clickY=0,this._mouseX=0,this._mouseY=0,this._owner=t,this._name=e,this._previous=null}_doDispose(){this._dragTracker=null,this._previous=null,this._owner=null,this._mouseEventTarget=null,super._doDispose()}get owner(){return this._owner}get name(){return this._name}get previous(){return this._previous}get dragTracker(){return this._dragTracker}set dragTracker(t){t!==this._dragTracker&&(this._dragTracker&&this._dragTracker.deactivate(),this._dragTracker=t,this._dragTracker&&this._dragTracker.activate())}get dragging(){return this._dragTracker&&this._dragTracker.dragging}get mouseX(){return this._mouseX}get mouseY(){return this._mouseY}get mouseEventTarget(){return this._mouseEventTarget}findElementAt(t,e,r){let s=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return this._owner.findElementAt(t,e,r,s)}findElementOf(t){return this._owner.findElementOf(t)}activate(t){this._doActivated(t)}deactivate(){this._doDeactivated()}keyDown(t){return this._doKeyDown(t)}keyUp(t){return this._doKeyUp(t)}keyPress(t){return this._doKeyPress(t)}mouseDown(t){const e=this._mouseX=this._clickX=t.mouseX,r=this._mouseY=this._clickY=t.mouseY;this.dragging&&this._stopDragTracker(e,r,!1);const s=this._doMouseDown(t);return this._dragTracker&&this._dragTracker.startWhenCreated&&this._startDragTracker(e,r,t.shiftKey,t.altKey),s}dragFrom(t,e){}dropFrom(t,e){}mouseMove(t){const e=this._mouseX=t.mouseX,r=this._mouseY=t.mouseY,s=this._dragTracker,A="mousemove"===t.type?t.buttons:"touchmove"===t.type?1:void 0;if(s)if(s.dragging)if(null==A||A>0||ot.ieOld&&A>=0){if(!s.drag(this._mouseEventTarget,e,r)){const A=s.getNextRequest(e,r);A&&(this._stopDragTracker(e,r,!0),this.dragTracker=this._getDragTracker(A,e,r),this._startDragTracker(e,r,t.shiftKey,t.altKey))}}else this._stopDragTracker(e,r,!0);else Math.abs(e-this._clickX)>=3||Math.abs(r-this._clickY)>=3?this._startDragTracker(e,r,t.shiftKey,t.altKey):this._doMouseMove(t);else this._doMouseMove(t)}mouseUp(t){try{const e=this._mouseX=t.mouseX,r=this._mouseY=t.mouseY;this.dragging?this._stopDragTracker(e,r,!1):this._doMouseUp(t)}finally{this._dragTracker=null}}mouseEnter(t){this._doMouseEnter(t)}mouseLeave(t){this._doMouseLeave(t)}mouseOver(t){this._doMouseOver(t)}mouseOutside(){this._doMouseOutside()}mouseWheel(t){return this._doMouseWheel(t)}contextMenu(t){return this._doContextMenu(t)}click(t){this._doClick(t)}dblclick(t){this._doDblClick(t)}setFocus(t){!ot.isMobile()&&this._doSetFocus(t)}focusLeave(t){this._doFocusLeave(t)}isMouseEventTarget(t){return t._dom===this._mouseEventTarget}_doActivated(t){}_doDeactivated(){}_doKeyDown(t){return!1}_doKeyUp(t){return!1}_doKeyPress(t){return!1}_doMouseDown(t){return!1}_doMouseMove(t){}_doMouseUp(t){}_doMouseEnter(t){}_doMouseLeave(t){}_doMouseOver(t){}_doMouseOutside(){}_doMouseWheel(t){return!1}_doContextMenu(t){}_doClick(t){}_doDblClick(t){}_doSetFocus(t){}_doFocusLeave(t){}_getDragTracker(t,e,r){return null}_startDragTracker(t,e,r,s){this._dragTracker&&(this._dragTracker.start(this._mouseEventTarget,t,e,r,s)?this._doDragTrackerStarted(this._dragTracker):this._dragTracker=null)}_stopDragTracker(t,e,r){if(this.dragging){const s=this._dragTracker;r?s.cancel():s.drop(this._mouseEventTarget,t,e),this.dragTracker=null,this._doDragTrackerFinished(s,r)}}_doDragTrackerStarted(t){}_doDragTrackerFinished(t,e){}_findTableCell(t){return this.owner.getTableCell(t||this.mouseEventTarget)}_doTouchStart(t){}_doTouchMove(t){}_doTouchEnd(t){}_doTouchCancel(t){}}class ut extends v{constructor(t,e){super(),this._active=!1,this._completed=!1,this._dragging=!1,this._currentX=0,this._currentY=0,this._container=t,this._name=e}get container(){return this._container}get name(){return this._name}get active(){return this._active}get dragging(){return this._dragging}get startWhenCreated(){return!1}get completed(){return this._completed}get linkable(){return!1}get cursor(){}activate(){this._active||(this._doActivate(),this._active=!0)}deactivate(){this._active&&(this.cancel(),this._doDeactivate(),this._active=!1)}start(t,e,r,s,A){return this.cancel(),!(!this._active||!this._doStart(t,e,r,s,A))&&(this._currentX=this._startX=e,this._currentY=this._startY=r,this._dragging=!0,this._completed=!1,this._showFeedback(e,r),this.container.setCursor(this.cursor||""),!0)}drag(t,e,r){return!(!this._dragging||(this._currentX=e,this._currentY=r,!this._doDrag(t,e,r)))&&(this.container.setCursor(this.cursor||""),this._moveFeedback(e,r),!0)}cancel(){try{if(this._dragging)try{this._dragging=!1,this._doCanceled(this._currentX,this._currentY)}finally{this.end()}}finally{this._hideFeedback()}}drop(t,e,r){try{if(this._dragging)try{this._currentX=e,this._currentY=r,this._dragging=!1,this._canAccept(t,e,r)?(this._doCompleted(t,e,r),this._completed=!0):this._doCanceled(e,r)}finally{this.end()}}finally{this._hideFeedback()}}end(){this.container.setCursor(""),this._doEnded()}getRequest(){return null}getNextRequest(t,e){return null}get startX(){return this._startX}get startY(){return this._startY}get currentX(){return this._currentX}get currentY(){return this._currentY}_showFeedback(t,e){}_moveFeedback(t,e){}_hideFeedback(){}_doActivate(){}_doDeactivate(){}_doStart(t,e,r,s,A){return!0}_doDrag(t,e,r){return!0}_doCanceled(t,e){}_canAccept(t,e,r){return!0}_doCompleted(t,e,r){}_doEnded(){}}var dt;!function(t){t.LINE="line",t.PAGE="page",t.THUMB_TRACK="thumbTrack",t.THUMB_END="thumbEnd"}(dt||(dt={}));class pt extends ht{constructor(t,e,r){super(t,r),this._scrollBar=e}_doDispose(){this._scrollBar=null,super._doDispose()}get scrollBar(){return this._scrollBar}get vertical(){return this._scrollBar.vertical}_doDraw(t){this._doRender(t)}_doRender(t){}_changed(){this.invalidate()}}class gt extends pt{constructor(t){super(t.doc,t,"scrollTrackView")}_doDispose(){super._doDispose()}_getCssSelector(){return"rg-scrolltrack"}}class ft extends pt{constructor(t,e){super(t.doc,t,"scrollButtonView"),this._enabled=!0,this._far=e}get enabled(){return this._enabled}set enabled(t){t!=this._enabled&&(this._enabled=t,this._changed())}get far(){return this._far}_getCssSelector(){return this.scrollBar.vertical?this._far?"rg-scroll-down":"rg-scroll-up":this._far?"rg-scroll-right":"rg-scroll-left"}}class _t extends pt{constructor(t){super(t.doc,t,"scrollThumbView")}_getCssSelector(){return"rg-scrollthumb"}}class mt extends ht{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];super(t.doc,"scrollBarView"),this._lineScrollSize=1,this._pageScrollSize=1,this._minThumbSize=20,this._min=0,this._max=0,this._pos=0,this._page=0,this._maxPosition=0,this._buttonSize=20,this._needLayout=!0,this._tipView=null,this._container=t,this._vertical=e,this._track=new gt(this),this.addChild(this._track),this._thumb=new _t(this),this.addChild(this._thumb),this._nearButton=new ft(this,!1),this.addChild(this._nearButton),this._farButton=new ft(this,!0),this.addChild(this._farButton)}_doDispose(){this._track=this._track.dispose(),this._thumb=this._thumb.dispose(),this._nearButton=this._nearButton.dispose(),this._farButton=this._farButton.dispose(),super._doDispose()}get container(){return this._container}get lineScrollSize(){return this._lineScrollSize}set lineScrollSize(t){(t=Math.max(1,t))!=this._lineScrollSize&&(this._lineScrollSize=t)}get pageScrollSize(){return this._pageScrollSize}set pageScrollSize(t){(t=Math.max(1,t))!=this._pageScrollSize&&(this._pageScrollSize=t)}get minThumbSize(){return this._minThumbSize}set minThumbSize(t){(t=Math.max(8,t))!=this._minThumbSize&&(this._minThumbSize=t,this.invalidateLayout())}get vertical(){return this._vertical}get pos(){return this._pos}get maxPosition(){return this._maxPosition}get buttonSize(){return this._buttonSize}set tipView(t){this._tipView=t}layoutContent(){this._needLayout&&(this._needLayout=!1,this._doLayoutContent())}setProperties(t,e,r){t=Math.max(0,t),e=Math.max(t,e),t==this._min&&e==this._max&&r==this._page||(this._min=t,this._max=e,this._page=r,this._pos=Math.min(this._max,Math.max(this._min,this._pos)),this._maxPosition=Math.max(0,this._max-this._page),this.invalidate(),this._needLayout=!0)}setPosition(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];(t=Math.min(this._maxPosition,Math.max(this._min,t)))!=this._pos&&(this._pos=t,this.invalidate(),this._needLayout=!0,e&&this.layoutContent())}ptInTrack(t,e,r){const s=this.containerToElement(t,e);if(this._vertical){if(s.y>=this._nearButton.height&&s.x<this._farButton.y)return!r&&s.y<this._thumb.y||r&&s.y>=this._thumb.bottom}else if(t>=this._nearButton.width&&t<this._farButton.x)return!r&&s.x<this._thumb.x||r&&s.x>=this._thumb.right;return!1}setText(t){if(this._tipView&&t){let e,r;if(this._tipView.show(),this._tipView.setText(t),this._vertical){let t=this._tipView.width();e=this.x-t-5,r=this._thumb.y}else{let t=this._tipView.height();e=this._thumb.x,r=this.y-t-5}this._tipView.move(e,r)}}_getCssSelector(){return this._vertical?"rg-vscrollbar":"rg-hscrollbar"}draw(){super.draw()}_doDraw(t){}_doSizeChanged(){this.invalidateLayout()}invalidateLayout(){this._needLayout=!0,super.invalidateLayout()}_doLayoutContent(){const t=this._vertical,e=this._buttonSize,r=this.height,s=this.width,A=(t?r:s)-2*e,i=Math.min(A,Math.max(this._minThumbSize,Math.floor(A*this._page/(this._max-this._min+1)))),n=e+Math.min(A-i,Math.max(0,Math.floor((A-i)*this._pos/(this._maxPosition-this._min))));this._track.setBounds(0,0,s,r),t?(this._nearButton.setBounds(0,0,s,e),this._farButton.setBounds(0,r-e,s,e),i<=A&&this._thumb.setBounds(2,n,s-4,i)):(this._nearButton.setBounds(0,0,e,r),this._farButton.setBounds(s-e,0,e,r),i<=A&&this._thumb.setBounds(n,2,i,r-4))}_doScroll(t,e,r){this.fireEvent(mt.SCROLLED,t,e,r)}}mt.SCROLLED="onScrollBarScrolled";class wt extends ut{constructor(t){super(t,"scrollThumbTracker")}_doDispose(){this._thumb=this._thumb&&this._thumb.dispose(),super._doDispose()}get thumb(){return this._thumb}set thumb(t){this._thumb=t}get startWhenCreated(){return!0}_doStart(t,e,r){const s=this._thumb.scrollBar,A=s.containerToElement(e,r);return s.vertical?this._offset=A.y-this._thumb.y:this._offset=A.x-this._thumb.x,!0}_doDrag(t,e,r){return this.$_doScroll(e,r,dt.THUMB_TRACK)}_doCompleted(t,e,r){return this.$_doScroll(e,r,dt.THUMB_END)}_doCanceled(t,e){}_doEnded(){}$_doScroll(t,e,r){const s=this._thumb.scrollBar,A=s._maxPosition-s._min+1,i=s._buttonSize,n=s.containerToElement(t,e);if(s.vertical){const t=s.height-2*i-this._thumb.height;if(t<=0)return!1;n.y-=this._offset,n.y=(n.y-i)*A/t,s._doScroll(r,0,Math.floor(n.y))}else{const t=s.width-2*i-this._thumb.width;if(t<=0)return!1;n.x-=this._offset,n.x=(n.x-i)*A/t,s._doScroll(r,0,Math.floor(n.x))}return!0}}class Bt extends E{constructor(){super(),this._active=!1,this._timer=void 0,this._ready=!1}get active(){return void 0!==this._timer}start(t){this._button=t,this._scrollBar=t.scrollBar,this._active=!0,setTimeout(function(){this._ready&&(this._ready=!1,this._timer=setInterval(function(){this._active&&this.$_fireEvent()}.bind(this),20))}.bind(this),200),this._ready=!0,this.$_fireEvent()}move(t,e){const r=this._button.containerToElement(t,e);this._active=this._button.containsInClient(r.x,r.y)}stop(){this._ready=!1,this._timer&&(clearInterval(this._timer),this._timer=void 0)}$_fireEvent(){let t=this._button.far?1:-1,e=dt.LINE;this._scrollBar._doScroll(e,this._scrollBar.lineScrollSize*t,0)}}class Ct extends v{constructor(){super(),this._active=!1,this._timer=void 0,this._ready=!1,this._mouseX=0,this._mouseY=0}get active(){return this._active}start(t,e,r,s){this._scrollBar=t,this._far=e,this._active=!0,setTimeout(function(){this._ready&&(this._ready=!1,this._timer=setInterval(function(){this._active&&this.$_fireEvent()}.bind(this),50))}.bind(this),200),this._ready=!0;const A=this._scrollBar.containerToElement(r,s);this._mouseX=A.x,this._mouseY=A.y,this.$_fireEvent()}move(t,e){const r=this._scrollBar.containerToElement(t,e);this._mouseX=r.x,this._mouseY=r.y,this._active=this._scrollBar.ptInTrack(r.x,r.y,this._far)}stop(){this._ready=!1,this._timer&&clearInterval(this._timer)}$_fireEvent(){let t=null,e=0;const r=this._scrollBar._thumb;if(this._scrollBar.vertical){const s=this._mouseY;this._far&&s>r.bottom?(t=dt.PAGE,e=1):!this._far&&s<r.y&&(t=dt.PAGE,e=-1)}else{const s=this._mouseX;this._far&&s>r.right?(e=1,t=dt.PAGE):s<r.x&&(t=dt.PAGE,e=-1)}0!=e&&this._scrollBar._doScroll(t,this._scrollBar.pageScrollSize*e,0)}}class yt extends ct{constructor(t){super(t,"scrollTool"),this._buttonTimer=new Bt,this._trackTimer=new Ct,this._thumbTracker=new wt(t)}_doDispose(){this._thumbTracker.cancel(),this._thumbTracker=this._thumbTracker.dispose(),this._buttonTimer.stop(),this._buttonTimer=this._buttonTimer.dispose(),this._trackTimer.stop(),this._trackTimer=this._trackTimer.dispose(),super._doDispose()}_doMouseDown(t){const e=t.mouseX,r=t.mouseY;this._clickElement=null,this._buttonTimer.stop(),this._trackTimer.stop();const s=this.findElementAt(e,r,!1);if(s instanceof pt){if(this._clickElement=s,s instanceof ft)this._buttonTimer.start(s);else if(s instanceof _t)this._thumbTracker.thumb=s,this.dragTracker=this._thumbTracker;else if(s instanceof gt){const t=s.scrollBar.ptInTrack(e,r,!0);this._trackTimer.start(s.scrollBar,t,e,r)}return!0}}_doMouseMove(t){const e=t.mouseX,r=t.mouseY,s=this._clickElement;s instanceof ft&&this._buttonTimer.active?this._buttonTimer.move(e,r):s instanceof gt&&this._trackTimer.active&&this._trackTimer.move(e,r)}_doMouseUp(t){this._clickElement=null,this._buttonTimer.stop(),this._trackTimer.stop()}_doTouchStart(t){this.mouseDown(t),t.preventDefault()}_doTouchEnd(t){this.mouseUp(t)}_doTouchMove(t){this.mouseMove(t)}}class vt extends E{constructor(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"div";super(),this._elements=[],this._dom=r&&t.createElement(r),this._dom.className=e,this._prepareDom(t,this._dom)}get dom(){return this._dom}get parent(){return this._parent}get container(){return this._parent&&this._parent.container}get x(){return this._dom.offsetLeft}set x(t){this._dom.style.left=t+"px"}get y(){return this._dom.offsetTop}set y(t){this._dom.style.top=t+"px"}get width(){return this._dom.offsetWidth}get height(){return this._dom.offsetHeight}isDom(t){return t===this._dom}setClassName(t){this._dom.className=t}setHint(t){this._dom.title=t}setStyle(t,e){this._dom.style[t]=e}clearStyle(t){this._dom.style[t]=""}setStyles(t){if(t){const e=this._dom.style;for(let r in t){const s=t[r];e[r]=void 0===s?"":s}}}setImportantStyle(t,e){this._dom.style.setProperty(t,e,"important")}getBounds(){return this._dom.getBoundingClientRect()}setBounds(t,e,r,s){ot.extend(this._dom.style,{left:t+"px",top:e+"px",width:r+"px",height:s+"px"})}setRect(t){this.setBounds(t.x,t.y,t.width,t.height)}move(t,e){return this._dom.style.left=t+"px",this._dom.style.top=e+"px",this}setXP(t){this._dom.style.left=t+"%"}setYP(t){this._dom.style.top=t+"%"}clear(){if(this._elements.length>0){for(let t of this._elements)this._dom.removeChild(t._dom),t._parent=null;this._elements=[]}}addChild(t){if(t&&!this._elements.includes(t,0))return this._addChild(t),!0}removeChild(t){return t&&this._removeChild(t)}removeLast(){if(this._elements.length>0){const t=this._elements[this._elements.length-1];return this._removeChild(t),t}}containerToLocal(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const r=this.container._containerDiv;let s=this._dom,A=this._dom.offsetParent;for(;A&&(t-=s.offsetLeft,e-=s.offsetTop,A!==r);)s=A,A=s.offsetParent;return{x:t,y:e}}setText(t){this._dom.textContent=t}hide(){this._dom.style.display="none"}show(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"inherit";this._dom.style.display=t}_addChild(t){this._elements.push(t),this._dom.appendChild(t._dom),t._parent=this}_removeChild(t){const e=this._elements.indexOf(t);if(e>=0)return this._dom.removeChild(t._dom),t._parent=null,this._elements.splice(e,1),!0}_prepareDom(t,e){}}class Et extends ht{constructor(t,e,r){super(t,e),this._contaner=r}get container(){return this._contaner}_getCssSelector(){return"root-element"}_initDom(t,e){super._initDom(t,e),e.style.width="100%",e.style.height="100%"}_setSizeStyle(t){}_doDraw(t){}}class bt extends E{constructor(t){super(),this._disabled=!1,this._updateRequested=!1,this._layoutNeeded=!1,this._invalidated=!1,this._scrolling=!1,this._captured=!1,this._focusing=!1,this._focusingTarget=null,this._hovered=null,this._currentX=0,this._currentY=0,this._rendered=0,this._defaultCursor="default",this._drawing=!1,this._offsetX=0,this._offsetY=0,this._eventHandlers={},this._eventNodes=[],this._contextMenu=null,this._containerRender=this._render.bind(this),this._scrollTool=new yt(this),this._cursor="default",this._testWidth=NaN,this._testHeight=NaN,this._saveDisplay="",this.$_testing=!1,this.$_prepareContainer(t),this.invalidateLayout(),this._registerEventHandlers(this._containerDom),this.activeTool=this._defaultTool=this._createDefaultTool(),bt.$_Containers[this.$_hash]=this}getMouseContainer(){return bt.$_Containers[bt.$_mouseContainer]}static getActiveGrid(){const t=bt.$_Containers[bt.$_ActiveGrid];return t&&t._gridView}static setActiveGrid(t){if(t!==bt.$_ActiveGrid){let e,r=bt.$_Containers[t];if(r=r&&r._gridView,window.RealGrid&&(e=window.RealGrid.onActiveGridChanged)){let t=bt.$_Containers[bt.$_ActiveGrid];t=t&&t._gridView,e(t&&t.handler,r&&r.handler)}r._fireGridActivated()}bt.$_ActiveGrid=t}static clearContainer(t){bt[t]&&delete bt[t],bt.$_ActiveGrid===t&&(bt.$_ActiveGrid=null)}static disposeStatic(){this.$_Containers=null,this.$_ActiveGrid=null}_doDispose(){this._activeTool=null,this._defaultTool&&(this._defaultTool=this._defaultTool.dispose()),this._scrollTool&&(this._scrollTool=this._scrollTool.dispose()),this.$_removeListenerAll(null),ot.detach(this._containerDom),this._containerDom=null,this._doc=null,ot.clearElements(this._containerDiv),super._doDispose(),delete bt.$_Containers[this.$_hash]}get doc(){return this._doc}get dom(){return this._containerDom}get visible(){return"none"!==getComputedStyle(this._containerDiv).display}set visible(t){t!=this.visible&&(t?this._containerDiv.style.display=this._saveDisplay:(this._saveDisplay=getComputedStyle(this._containerDiv).display,this._containerDiv.style.display="none"))}get disabled(){return this._disabled}set disabled(t){t!=this._disabled&&(this._disabled=t,this._doDisabledChanged())}get printing(){return!1}get activeTool(){return this._activeTool}set activeTool(t){if((t=t||this._defaultTool)!=this._activeTool){const e=this._activeTool;e&&e.deactivate(),this._activeTool=t,t&&t.activate(e)}}get defaultTool(){return this._defaultTool}get measurer(){return this._measurer}get width(){return this._containerDom.clientWidth}get height(){return this._containerDom.clientHeight}get scrollHeight(){return this._containerDiv.scrollHeight}get scrollTop(){return this._containerDiv.scrollTop}get scrolling(){return this._scrolling}findElementAt(t,e,r,s){return this._rootElement.findChildAt(t-this._rootElement._x,e-this._rootElement._y,r,s)}findElementOf(t){return this._rootElement.findChildOf(t)}getTableCell(t){return null}setCursor(t){t!=this._cursor&&(this._containerDom.style.cursor=this._cursor=t)}setFocus(){this._containerDom.focus()}updateNow(){this._layoutNeeded=!0,this.invalidate(!0),this._render(ot.getTimer())}toScreen(t){return t.x+=this._offsetX,t.y+=this._offsetY,t}pointToScreen(t,e){return{x:t+this._offsetX,y:e+this._offsetY}}getBound(){const t=this._containerDom.getBoundingClientRect();return new x(t.left,t.top,t.width,t.height)}getHtml(){return this._containerDom.outerHTML}addElement(t){return this._rootElement.addChild(t)}removeElement(t){return this._rootElement.removeChild(t)}addFeedback(t){return this._feedbackElement.addChild(t)}addFeedbacks(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];for(let t of e)this._feedbackElement.addChild(t)}removeFeedback(t){return this._feedbackElement.removeChild(t)}removeFeedbacks(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];for(let t of e)this._feedbackElement.removeChild(t)}resetSize(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.updateNow(),t&&setTimeout(t,0)}measureText(t,e){return this._textMeasurer.className=t,this._textMeasurer.innerHTML=e,this._textMeasurer.offsetWidth}$_refreshCheckMeasurer(){if(!this._checkRect){const t=this._checkMeasurer.getBoundingClientRect(),e=getComputedStyle(this._checkMeasurer);this._checkRect={width:t.width+parseInt(e.marginLeft)+parseInt(e.marginRight),height:t.height+parseInt(e.marginTop)+parseInt(e.marginBottom)}}return this._checkRect}measureCheckWidth(){return this.$_refreshCheckMeasurer().width}measureCheckHeight(){return this.$_refreshCheckMeasurer().height}contains(t){if(t instanceof Element)return this._containerDom.contains(t)}getDomPosition(t,e){return this.$_testing?{x:0,y:0,width:1,height:1}:this.$_offsetDomPosition(t,{x:0,y:0},e)}$_offsetDomPosition(t,e,r){t instanceof ht&&(t=t._dom);const s=nt(this._doc),A=(r||this._containerDom).getBoundingClientRect(),i=t.getBoundingClientRect(),n=s.getComputedStyle(this._containerDom);return e.x=i.left-A.left-Math.round(parseFloat(n.borderLeftWidth)),e.y=i.top-A.top-Math.round(parseFloat(n.borderTopWidth)),e.width=i.width,e.height=i.height,e}getBoundingRect(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;const r=ot.getBoundingClientRect2(t._dom),s=ot.getBoundingClientRect2(this._containerDom),A=t.offsetSize,i=100/e;return new x(r.left*i-s.left*i-2,r.top*i-s.top*i-2,A.width,A.height)}$_setTesting(){this.$_testing=!0,ht.Testing=!0}get _isTesting(){return this.$_testing}_doDisabledChanged(){}$_prepareContainer(t){if(!t)throw new Error("container is null!");if(C(t,"HTMLDivElement")?this._containerDiv=t:this._containerDiv=document.getElementById(t),!C(this._containerDiv,"HTMLDivElement"))throw new Error("Invalid visual container element: "+t);const e=this._doc=this._containerDiv.ownerDocument,r=nt(e);r.requestAnimationFrame=r.requestAnimationFrame||r.mozRequestAnimationFrame||r.webkitRequestAnimationFrame||r.msRequestAnimationFrame||function(t){return r.setTimeout(t,10)};const s=this._containerDom=e.createElement("div");let A=s.style;this._cursor=A.cursor,this._containerDiv.appendChild(s),s.className="rr-visual-container",s.setAttribute("tabindex","0"),A.position="relative",A.width="100%",A.height="100%",A.boxSizing="border-box",A.overflow="hidden",A["-webkit-touch-callout"]="none",A["-webkit-user-select"]="none",A["user-select"]="none",A["-webkit-tap-highlight-color"]="rgba(0, 0, 0, 0)",this._rootElement=this._createRootElement(e),s.appendChild(this._rootElement._dom),this._feedbackElement=new vt(e,"rr-feedback-container"),s.appendChild(this._feedbackElement._dom),this._feedbackElement.dom.style.zIndex=bt.FEEDBACK_ZINDEX,this._printRoot=new lt(e,"printRoot"),this._measurer=e.createElement("div"),this._containerDom.appendChild(this._measurer),this._doPrepareContainer(s)}_doPrepareContainer(t){}_createRootElement(t){return new Et(t,"root",this)}_createDefaultTool(){return null}isLayoutNeeded(){return this._layoutNeeded}invalidateLayout(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._scrolling=this._scrolling||t,this._layoutNeeded||(this._layoutNeeded=!0,this.invalidate(!0))}invalidate(t){if((!this._updateRequested||!this._invalidated)&&(t||!this._drawing)){if(!this._requestTimer&&!this.$_testing){const t=nt(this._doc);this._requestTimer=t.requestAnimationFrame(this._containerRender)}this._updateRequested=!0,this._invalidated=!0}}invalidateElement(t){const e=nt(this._doc);this._drawing||this._updateRequested||(this._requestTimer||this.$_testing||(this._requestTimer=e.requestAnimationFrame(this._containerRender)),this._updateRequested=!0)}invalidateElements(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this._rootElement.invalidate(t,!0)}refresh(){this.invalidateLayout(),this.invalidateElements()}_render(t){if(!this.disposing){this._updateRequested=!1,this._offsetX=this._containerDom.offsetLeft,this._offsetY=this._containerDom.offsetTop,this._drawing=!0;try{this.$$_render(t)}finally{this._scrolling=!1,this._drawing=!1,this._invalidated=!1,this._requestTimer=null,this._doAfterRender()}}}$$_render(t){const e=this._containerDom,r=isNaN(this._testWidth)?e.clientWidth:this._testWidth,s=isNaN(this._testHeight)?e.clientHeight:this._testHeight;this._layoutChildren(new x(0,0,r,s)),this._layoutNeeded?(this._doLayout(new x(0,0,r,s)),this._layoutNeeded=!1):this._doPrepareRender(new x(0,0,r,s)),this._doRenderHtml(new x(0,0,r,s))}_layoutChildren(t){}_doLayout(t){}_doAfterRender(){}_doPrepareRender(t){}_doRenderHtml(t){this._doDrawContainer(t),this._drawElement(this._rootElement),this._validateChildren(this._rootElement)}_doDrawContainer(t){}_drawElement(t){t.draw();for(let e=0,r=t.childCount;e<r;e++){const r=t.getChild(e);r.visible&&this._drawElement(r)}}_validateChildren(t){for(let e=0,r=t.childCount;e<r;e++){t.getChild(e).validate()}}_registerEventHandlers(t){const e=At(t);t.style.cursor=this._defaultCursor,this.$_addListener(e,"resize",this._resizeHandler.bind(this),!1),this.$_addListener(e,"mousemove",this._mouseMoveHandler.bind(this),!1),this.$_addListener(e,"mouseup",this._mouseUpHandler.bind(this),!1),this.$_addListener(e,"focus",this._focusHandlerFireFox.bind(this),!0),this.$_addListener(e,"focusin",this._focusinHandler.bind(this),!0),this.$_addListener(e,"focusout",this._focusoutHandler.bind(this),!0),this.$_addListener(e,"mousedown",this._globalMouseDownHandler.bind(this),!1),this.$_addListener(t,"keydown",this._keyDownHandler.bind(this),!1),this.$_addListener(t,"keyup",this._keyUpHandler.bind(this),!1),this.$_addListener(t,"keypress",this._keyPressHandler.bind(this),!1),this.$_addListener(t,"click",this._clickHandler.bind(this),!1),this.$_addListener(t,"dblclick",this._dblclickHandler.bind(this),!1),this.$_addListener(t,"mousedown",this._mouseDownHandler.bind(this),!1),this.$_addListener(t,"mouseenter",this._mouseEnterHandler.bind(this),!1),this.$_addListener(t,"mouseleave",this._mouseLeaveHandler.bind(this),!1),this.$_addListener(t,"mouseover",this._mouseOverHandler.bind(this),!1),this.$_addListener(t,"focus",this._focusHandler.bind(this),!1),this.$_addListener(t,"contextmenu",this._contextMenuHander.bind(this),!1),this.$_addListener(t,"blur",this._blurHandler.bind(this),!1),this.$_addListener(t,"selectstart",this._selectstartHandler.bind(this),!1),this.$_addListener(t,"wheel",this._wheelHandler.bind(this),!1)}$_addListener(t,e,r,s){t in this._eventHandlers||(this._eventHandlers[t]={}),e in this._eventHandlers[t]||(this._eventHandlers[t][e]=[]),this._eventHandlers[t][e].push([r,s]),t.addEventListener(e,r,s),this._eventNodes.indexOf(t)<0&&this._eventNodes.push(t)}$_removeListener(t,e){if(t in this._eventHandlers){const r=this._eventHandlers[t];if(e in r){const s=r[e];for(let r=s.length;r--;){const A=s[r];t.removeEventListener(e,A[0],A[1])}}}}$_removeListenerAll(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const e=t?[t]:this._eventNodes;for(let t=0,r=e.length;t<r;t++){const r=e[t];if(r in this._eventHandlers){const t=this._eventHandlers[r];for(let e in t){const s=t[e];for(let t=s.length;t--;){const A=s[t];r.removeEventListener(e,A[0],A[1])}}}}}_unloadHandler(){this.$_removeListenerAll(),this._containerDiv=null,this._containerDom=null}_resizeHandler(t){this._doResized(t),this.invalidateLayout()}_doResized(t){}_isEnabled(){return this._activeTool&&!this._disabled}_keyDownHandler(t){this._isEnabled()&&this._activeTool.keyDown(t)&&(t.preventDefault(),t.stopImmediatePropagation())}_keyUpHandler(t){this._isEnabled()&&this._activeTool.keyUp(t)}_keyPressHandler(t){this._isEnabled()&&this._activeTool.keyPress(t)}eventToContainer(t){const e=this._containerDom.getBoundingClientRect();return new b(t.pageX-e.left,t.pageY-e.top)}toOffset(t){if(!this.$_testing){const e=this._containerDom.getBoundingClientRect();t.mouseX=t.clientX-e.left,t.mouseY=t.clientY-e.top}return t}toOffsetTouch(t){const e=this._containerDom.getBoundingClientRect(),r=t.touches[0]||t.changedTouches[0];return t.mouseX=r.clientX-e.left,t.mouseY=r.clientY-e.top,t}_clickHandler(t){this._isEnabled()?this._activeTool.click(this.toOffset(t)):t.preventDefault()}_dblclickHandler(t){this._isEnabled()?this._activeTool.dblclick(this.toOffset(t)):t.preventDefault()}$_getHtmlElement(t){return t instanceof At(this._containerDom).HTMLElement?t:t instanceof Node?t.parentElement:void 0}_isAutoFocus(){return!0}_mouseDownHandler(t){if(this._isEnabled()){bt.$_mouseContainer=this.$_hash,this._isAutoFocus()&&this.setFocus(),this.toOffset(t),this._currentX=t.mouseX,this._currentY=t.mouseY;const e=this.findElementAt(this._currentX,this._currentY,!1,!1);e&&e.getAncestor(mt)?(this.activeTool.setFocus(),this._scrollTool._previous=this.activeTool,this.activeTool=this._scrollTool):this.activeTool||(this._defaultTool._previous=this.activeTool,this.activeTool=this._defaultTool),this.activeTool._mouseEventTarget=this.$_getHtmlElement(t.target),this.activeTool.mouseDown(t)}else t.preventDefault()}_mouseMoveHandler(t){const e=At(this._containerDom);if(this.toOffset(t),this._currentX=t.mouseX,this._currentY=t.mouseY,this._isEnabled()){const r=this._activeTool;r._mouseEventTarget=t.target instanceof e.HTMLElement?t.target:null,r.mouseMove(t);const s=r.dragTracker;if(s&&bt.$_mouseContainer==this.$_hash)for(let e in bt.$_Containers){const r=bt.$_Containers[e];if(r!==this){const e=r._activeTool;e&&e.dragFrom(t,s)}}}}_mouseUpHandler(t){const e=bt.$_mouseContainer==this.$_hash,r=At(this._containerDom);try{if(this.toOffset(t),this._currentX=t.mouseX,this._currentY=t.mouseY,this._isEnabled()){const s=this._activeTool.dragTracker;if(this._activeTool._mouseEventTarget=t.target instanceof r.HTMLElement?t.target:null,this._activeTool.mouseUp(t),this._activeTool instanceof yt&&(this.activeTool=this._activeTool.previous),s&&s.linkable&&e)for(let e in bt.$_Containers){const r=bt.$_Containers[e];if(r!==this){const e=r._activeTool;e&&e.dropFrom(t,s)}}}else t.preventDefault()}finally{this._activeTool&&(this._activeTool.dragTracker=null),e&&(bt.$_mouseContainer=-1)}}_mouseEnterHandler(t){this._isEnabled()&&this._activeTool.mouseEnter(this.toOffset(t))}_mouseLeaveHandler(t){this._isEnabled()&&this._activeTool.mouseLeave(this.toOffset(t))}_mouseOverHandler(t){this._isEnabled()&&this._activeTool.mouseOver(this.toOffset(t))}_contextMenuHander(t){const e=At(this._containerDom);this.toOffset(t),this._currentX=t.mouseX,this._currentY=t.mouseY,this._isEnabled()&&(this._activeTool._mouseEventTarget=t.target instanceof e.HTMLElement?t.target:null,this._activeTool.contextMenu(this.toOffset(t)))}_wheelHandler(t){this._isEnabled()&&this._activeTool.mouseWheel(this.toOffset(t))&&ot.stopEvent(t)}_focusHandler(t){}_blurHandler(t){}_selectstartHandler(t){return!1}_focusinHandler(t){}_globalMouseDownHandler(t){ot.isAncestorOf(this._containerDiv,t.target)||this._isEnabled()&&this._activeTool.focusLeave(t)}_focusoutHandler(t){ot.isAncestorOf(this._containerDiv,t.target)&&t.relatedTarget&&!ot.isAncestorOf(this._containerDiv,t.relatedTarget)&&this._isEnabled()&&this._activeTool.focusLeave(t)}_focusHandlerFireFox(t){ot.isAncestorOf(this._containerDiv,t.target)&&this._isEnabled()&&(this._containerDom.setAttribute("tabindex","0"),this._activeTool.setFocus(t.target))}}bt.FEEDBACK_ZINDEX=1e3,bt.$_Containers={},bt.$_mouseContainer=-1,bt.$_ActiveGrid=null;const xt=["yy","yyyy","M","MM","d","dd","a","H","HH","h","hh","m","mm","s","ss","S","SS","SSS"],Pt=[".","/","-",":"],It="Z".charCodeAt(0),St="z".charCodeAt(0),Tt="A".charCodeAt(0),Ft="a".charCodeAt(0),Rt="y".charCodeAt(0),Ot="M".charCodeAt(0),Qt="m".charCodeAt(0),Dt="d".charCodeAt(0),Lt="H".charCodeAt(0),Ut="h".charCodeAt(0),Ht="S".charCodeAt(0),Nt="s".charCodeAt(0),Mt=function(t){return t<10?"0"+t:String(t)},kt=function(t){return t<10?"00"+t:t<100?"0":String(t)};class Vt{constructor(t){this._baseYear=2e3,this._preserveTime=!1,this._hasAmPm=!1,this._formatString="",this.formatString=t}static getFormatter(t){let e=Vt.Formatters[t];return e||(Vt.Formatters[t]=e=new Vt(t)),e}static get Default(){return Vt.getFormatter(Vt.DEFAULT_FORMAT)}get format(){return this._format}get formatString(){return this._formatString}set formatString(t){(t=t||Vt.DEFAULT_FORMAT)!=this._formatString&&(this._tokens=[],this.parse(t),this._formatString=t)}getText(t){if(!this._tokens)return"";const e=t instanceof Date?t:new Date(t),r=this._tokens;let s="";for(var A=0,i=r.length;A<i;A++){var n=r[A],o=n.length;switch(n.charCodeAt(0)){case Rt:s+=o>2?e.getFullYear():Mt(e.getFullYear()%100);break;case Ot:s+=o>1?Mt(e.getMonth()+1):e.getMonth()+1;break;case Dt:s+=o>1?Mt(e.getDate()):e.getDate();break;case Lt:s+=o>1?Mt(e.getHours()):e.getHours();break;case Ut:if(this._hasAmPm){let t=e.getHours();0==t?t=12:t>12&&(t-=12),s+=o>1?Mt(t):t}else s+=o>1?Mt(e.getHours()):e.getHours();break;case Qt:s+=o>1?Mt(e.getMinutes()):e.getMinutes();break;case Nt:s+=o>1?Mt(e.getSeconds()):e.getSeconds();break;case Ft:case Tt:e.getHours()<12?s+=this._amText:s+=this._pmText;break;case Ht:let t=e.getMilliseconds();s+=3==o?kt(t):2==o?Mt(t):t.toString().substr(0,o);break;default:s+=n}}return s}parseDateFormatTokens(t){var e=[];if(t){const r=t.trim(),s=r.length;let A=0;for(;A<s;){let i=r.charAt(A);if(Pt.indexOf(i)>=0)e.push(i),A++;else{let n=A++;for(;A<s&&r.charAt(A)==i;)A++;if(i=r.substring(n,A),xt.indexOf(i)<0){let e=i.charCodeAt(0);if(e>=Tt&&e<=It||e>=Ft&&e<=St)throw new Error("Invalid datetime write format: "+t)}e.push(i)}if(A<s&&ot.isWhiteSpace(i=r.charAt(A)))for(e.push(i);A<s&&ot.isWhiteSpace(r.charAt(A));)A++}}return e}parse(t){if(this._amText="AM",this._pmText="PM",t){const e=t.split(";");if(this._format=e[0]||Vt.DEFAULT_FORMAT,this._tokens=this.parseDateFormatTokens(this._format),this._hasAmPm=this._tokens.indexOf("a")>=0||this._tokens.indexOf("A")>=0,e.length>1&&e[1]){const t=e[1].split(",");t.length>0&&t[0]&&(this._amText=t[0]),t.length>1&&t[1]&&(this._pmText=t[1])}}}}Vt.DEFAULT_FORMAT="yyyy/MM/dd",Vt.Formatters={};class Gt{constructor(t){this._format=null,this._baseYear=2e3,this._patterns=[],this._amText="AM",this._pmText="PM",t&&(this.format=t)}get format(){return this._format}set format(t){if(t!=this._format){if(!t)throw new Error("Invalid empty date format");this._format=t,this.parseFormat(t)}}get baseYear(){return this._baseYear}set baseYear(t){t!=this._baseYear&&(this._baseYear=t)}get amText(){return this._amText}set amText(t){t!=this._amText&&(this._amText=t)}get pmText(){return this._pmText}set pmText(t){t!=this._pmText&&(this._pmText=t)}parse(t){try{let A=0,i=1,n=1,o=0,a=0,h=0,l=0,c=0,u=0,d=this._patterns.length,p=0;const g=t.length;for(let f=0;f<d&&p<g;f++){var e=this._patterns[f],r=e.c,s=e.len;switch(r){case"y":A=parseInt(t.substr(p,s));break;case"M":i=parseInt(t.substr(p,s));break;case"d":n=parseInt(t.substr(p,s));break;case"a":if(this._amText&&t.indexOf(this._amText,p)==p)c=12,s=this._amText.length;else{if(!this._pmText||t.indexOf(this._pmText,p)!=p)return null;u=12,s=this._pmText.length}break;case"H":case"h":o=parseInt(t.substr(p,s));break;case"m":a=parseInt(t.substr(p,s));break;case"s":h=parseInt(t.substr(p,s));break;case"S":l=parseInt(t.substr(p,s));break;case".":case"/":case"-":case":":case" ":if(Gt.DATE_SEPARATORS.indexOf(t.charAt(p))<0)return null;break;default:return null}p+=s}return A<100&&(A+=this._baseYear),c>0?12==o&&(o=0):u>0&&o<12&&(o+=12),new Date(A,i-1,n,o,a,h,l)}catch(t){return null}}parseFormat(t){var e,r,s,A=t,i=A.length,n=0;for(this._patterns=[];n<i;)if(e=n,r=A.charAt(n),ot.isWhiteSpace(r)){for(n++;n<i&&ot.isWhiteSpace(A.charAt(n));)n++;this._patterns.push({c:" ",p:e,len:n-e})}else{switch(s=0,r){case"y":4!=(s=this.getPattern(A,n,r))&&2!=s&&this.throwInvalidFormat(A);break;case"M":case"d":case"H":case"h":case"m":case"s":2!=(s=this.getPattern(A,n,r))&&this.throwInvalidFormat(A);break;case"S":3!=(s=this.getPattern(A,n,r))&&this.throwInvalidFormat(A);break;case"a":case".":case"/":case"-":case":":1!=(s=this.getPattern(A,n,r))&&this.throwInvalidFormat(A);break;default:this.throwInvalidFormat(A)}s>0&&(this._patterns.push({c:r,p:n,len:s}),n+=s)}}throwInvalidFormat(t){throw new Error("Invalid date format: "+t)}throwInvalidValue(t){throw new Error("Invalid date format: "+t)}getPattern(t,e,r){for(var s=1;++e<t.length&&t.charAt(e)==r;)s++;return s}}Gt.DATE_SEPARATORS="./-: ";class Kt{constructor(){}static parse(t,e){var r=null;try{var s,A,i,n,o=t.indexOf("T"),a=t.substring(0,o),h=t.substring(o+1),l=a.split("-"),c=l.length,u=parseInt(l[0]),d=c>1?parseInt(l[1]):1,p=c>2?parseInt(l[2]):1;-1!=h.indexOf("Z")?(s=1,A=0,i=0,h=h.replace("Z","")):-1!=h.indexOf("+")?(s=1,n=h.substring(h.indexOf("+")+1,h.length),A=Number(n.substring(0,n.indexOf(":"))),i=Number(n.substring(n.indexOf(":")+1,n.length)),h=h.substring(0,h.indexOf("+"))):-1!=h.indexOf("-")?(s=-1,n=h.substring(h.indexOf("-")+1,h.length),A=Number(n.substring(0,n.indexOf(":"))),i=Number(n.substring(n.indexOf(":")+1,n.length)),h=h.substring(0,h.indexOf("-"))):s=0;var g=h.split(":"),f=(c=g?g.length:0)>0?parseInt(g[0]):0,_=c>1?parseInt(g[1]):0,m=c>2?String(g[2]).split("."):null,w=m&&m.length>0?parseInt(m[0]):0,B=m&&m.length>1?1e3*parseFloat("0."+m[1]):0,C=Date.UTC(u,d-1,p,f,_,w,B),y=s?(36e5*A+6e4*i)*s:Kt._zoneOffset;if(r=new Date(C-y),e&&isNaN(r.getTime()))throw"Invalidate date text: "+t}catch(r){if(e){var v="Invalid date Text: "+t;throw v+="\nError: "+r.toString(),v}}return r}}Kt._zoneOffset=60*(new Date).getTimezoneOffset()*1e3;class Wt{constructor(t){this._format="",this._type=0,this._parser=new Gt(null),this.format=t}static initialize(){Wt.Default.amText="AM",Wt.Default.pmText="PM",Wt.Default.baseYear=2e3}get format(){return this._format}set format(t){t!=this._format&&(this._format=t,this.parse(t))}get amText(){return this._parser.amText}set amText(t){this._parser.amText=t}get pmText(){return this._parser.pmText}set pmText(t){this._parser.pmText=t}get baseYear(){return this._parser.baseYear}set baseYear(t){this._parser.baseYear=t}toDate(t){if(!t)return null;var e=null;switch(this._type){case 0:e=this._parser.parse(t);break;case 1:e=Kt.parse(t,!1);break;case 2:const r=parseInt(t);e=new Date(r);break;default:e=new Date(t)}return e&&!isNaN(e.getTime())?e:null}parse(t){if(t){const e=t.toLowerCase();this._type=Math.max(0,Wt.Formats.indexOf(e)),0==this._type&&(this._parser.format=t)}}}Wt.Formats=["custom","iso","timestamp","platform"],Wt.Default=new Wt("yyyy/MM/dd HH:mm:ss"),Wt.initialize();class zt extends Error{constructor(t,e){super(t),this.message=t,this.tokenPos=e}}class Xt extends Error{constructor(t){super(t),this.message=t}}const Jt=function(t,e,r){return e=Math.max(e||2,1),r=r||"0",new Array(e-String(t).length+1).join(r)+t},Yt=function(){for(var t=[],e=arguments.length,r=new Array(e),s=0;s<e;s++)r[s]=arguments[s];for(var A of r)t[A]=!0;return t},$t=Yt(26,27),jt=Yt(40,45,46,47,48,49,50,51,52,53,41,42,43,44),Zt=Yt(4,5,18,19),qt=Yt(11,3,2,14,15,16,17);class te{constructor(){this.IS_IDENT=[],this.IS_INTEGER=[],this.IS_NUMBER=[],this.IS_WHITE=[],this.IS_END=[],this.QUOTATION='"'.charCodeAt(0),this.SQUOTATION="'".charCodeAt(0),this.BACKSLASH="\\".charCodeAt(0),this.BACKTICK="`".charCodeAt(0),this.Keywords={str:20,num:21,bool:23,not:13,len:24,and:11,in:12,mod:15,or:18,div:14,shl:16,shr:17,xor:19,is:26,like:46,ilike:48,match:50,imatch:52,defined:35,null:34,empty:36,nan:37,datestr:90,year:91,month:92,day:93,hour:94,rounddown:95},this._procs=null,this._source=null,this._len=0,this._tokenId=0,this._run=0,this._runAhead=0,this._nextRun=0,this._lineNo=0,this._linePos=0,this._tokenPos=0;for(var t=0;t<256;t++)this.IS_IDENT[t]=t==="_".charCodeAt(0)||t===":".charCodeAt(0)||t>="0".charCodeAt(0)&&t<="9".charCodeAt(0)||t>="a".charCodeAt(0)&&t<="z".charCodeAt(0)||t>="A".charCodeAt(0)&&t<="Z".charCodeAt(0),this.IS_INTEGER[t]=t>="0".charCodeAt(0)&&t<="9".charCodeAt(0)||t>="a".charCodeAt(0)&&t<="f".charCodeAt(0)||t>="A".charCodeAt(0)&&t<="F".charCodeAt(0),this.IS_NUMBER[t]=t>="0".charCodeAt(0)&&t<="9".charCodeAt(0)||t==".".charCodeAt(0)||t==="e".charCodeAt(0)||t==="E".charCodeAt(0),this.IS_WHITE[t]=t>=1&&t<=9||11==t||t>=14&&t<=32,this.IS_END[t]=0==t;this.initProcs()}clear(){this._source=null}next(){var t=this._source.charCodeAt(this._run);this._tokenPos=this._run,t<256?this._procs[t].call(this):this.identProc()}unkownProc(){this._tokenId=0,this._run++}commaProc(){this._tokenId=32,this._run++}crProc(){this._tokenId=33,10==this._source.charCodeAt(this._run+1)?this._run+=2:this._run++,this._lineNo++,this._linePos=this._run}lfProc(){this._tokenId=33,this._run++,this._lineNo++,this._linePos=this._run}equalProc(){this._tokenId=40,this._run++}greaterProc(){"="==this._source.charAt(this._run+1)?(this._tokenId=42,this._run+=2):(this._tokenId=41,this._run++)}lowerProc(){"="==this._source.charAt(this._run+1)?(this._tokenId=44,this._run+=2):">"==this._source.charAt(this._run+1)?(this._tokenId=45,this._run+=2):(this._tokenId=43,this._run++)}nextIdent(){for(var t=this._run;t<this._len&&!this.IS_IDENT[this._source.charCodeAt(t)];)t++;for(var e=t;t<this._len&&this.IS_IDENT[this._source.charCodeAt(t)];)t++;return t>e?(this._nextRun=t,this._source.substr(e,t-e).toLowerCase()):null}identProc(){for(var t=this._run;this._run<this._len&&(this.IS_IDENT[this._source.charCodeAt(this._run)]||this._source.charCodeAt(this._run)>255);)this._run++;var e=this._source.substr(t,this._run-t).toLowerCase();if(this.Keywords.hasOwnProperty(e))switch(this._tokenId=this.Keywords[e],this._tokenId){case 13:if(e=this.nextIdent())switch(e){case"like":this._tokenId=47,this._run=this._nextRun;break;case"ilike":this._tokenId=49,this._run=this._nextRun;break;case"match":this._tokenId=51,this._run=this._nextRun;break;case"imatch":this._tokenId=53,this._run=this._nextRun}break;case 26:"not"==(e=this.nextIdent())&&(this._tokenId=27,this._run=this._nextRun)}else this._tokenId=10}integerProc(){for(this._tokenId=64,this._run++;this._run<this._len&&this.IS_INTEGER[this._source.charCodeAt(this._run)];)this._run++}numberProc(){for(this._tokenId=64,this._run++;this._run<this._len&&this.IS_NUMBER[this._source.charCodeAt(this._run)];){if("."==this._source.charAt(this._run)){if("."==this._source.charAt(this._run+1))break;this._tokenId=63}this._run++}}minusProc(){this._tokenId=4,this._run++}plusProc(){this._tokenId=5,this._run++}pointProc(){"."==this._source.charAt(this._run+1)?(this._tokenId=68,this._run+=2):(this._tokenId=65,this._run++)}roundOpenProc(){this._tokenId=66,this._run++}roundCloseProc(){this._tokenId=67,this._run++}slashProc(){this._tokenId=2,this._run++}spaceProc(){for(this._tokenId=71,this._run++;this._run<this._len&&this.IS_WHITE[this._source.charCodeAt(this._run)];)this._run++}bracketOpenProc(){this._tokenId=69,this._run++}bracketCloseProc(){this._tokenId=70,this._run++}starProc(){this._tokenId=3,this._run++}modProc(){this._tokenId=15,this._run++}stringProc(){this._tokenId=61;do{var t=this._source.charCodeAt(this._run);if(this.IS_END[t])throw new zt("Untermintated string",t);t==this.BACKSLASH&&this._run++,this._run++}while(this._run<this._len&&this._source.charCodeAt(this._run)!=this.QUOTATION);this._run++}smallStringProc(){this._tokenId=61;do{var t=this._source.charCodeAt(this._run);if(this.IS_END[t])throw new zt("Untermintated string",t);t==this.BACKSLASH&&this._run++,this._run++}while(this._run<this._len&&this._source.charCodeAt(this._run)!=this.SQUOTATION);this._run++}backtickProc(){this._tokenId=96;do{var t=this._source.charCodeAt(this._run);if(this.IS_END[t])throw new zt("Untermintated backtick string",t);this._run++}while(this._run<this._len&&this._source.charCodeAt(this._run)!=this.BACKTICK);this._run++}initProcs(){this._procs=[];for(let t=1;t<=32;t++)this._procs[t]=this.spaceProc;this._procs[10]=this.lfProc,this._procs[13]=this.crProc,this._procs["$".charCodeAt(0)]=this.integerProc,this._procs[this.QUOTATION]=this.stringProc,this._procs[this.SQUOTATION]=this.smallStringProc,this._procs[this.BACKTICK]=this.backtickProc;for(let t=0;t<=9;t++)this._procs["0".charCodeAt(0)+t]=this.numberProc;for(let t="A".charCodeAt(0);t<="Z".charCodeAt(0);t++)this._procs[t]=this.identProc;for(let t="a".charCodeAt(0);t<="z".charCodeAt(0);t++)this._procs[t]=this.identProc;this._procs[":".charCodeAt(0)]=this.identProc,this._procs["_".charCodeAt(0)]=this.identProc,this._procs["(".charCodeAt(0)]=this.roundOpenProc,this._procs[")".charCodeAt(0)]=this.roundCloseProc,this._procs["*".charCodeAt(0)]=this.starProc,this._procs["+".charCodeAt(0)]=this.plusProc,this._procs[",".charCodeAt(0)]=this.commaProc,this._procs["-".charCodeAt(0)]=this.minusProc,this._procs[".".charCodeAt(0)]=this.pointProc,this._procs["/".charCodeAt(0)]=this.slashProc,this._procs["%".charCodeAt(0)]=this.modProc,this._procs["<".charCodeAt(0)]=this.lowerProc,this._procs["=".charCodeAt(0)]=this.equalProc,this._procs[">".charCodeAt(0)]=this.greaterProc,this._procs["[".charCodeAt(0)]=this.bracketOpenProc,this._procs["]".charCodeAt(0)]=this.bracketCloseProc}get tokenId(){return this._tokenId}get tokenLoc(){return{x:this._tokenPos-this._linePos,y:this._lineNo}}get tokenLen(){return this._run-this._tokenPos}get token(){return this._source.substr(this._tokenPos,this.tokenLen)}get isSpace(){return 71==this._tokenId}init(t){this._source=t,this._len=t.length,this._lineNo=0,this._linePos=0,this._tokenPos=0,this._runAhead=this._run=0,this._tokenId=0}charAhread(){for(this._runAhead=this._run;this._runAhead<this._len&&this._source.charCodeAt(this._runAhead)>0&&this._source.charCodeAt(this._runAhead)<=32;)this._runAhead++;return this._source.charCodeAt(this._runAhead)}nextId(t){do{this.next()}while(this._run<this._len&&this._tokenId!=t)}nextNoSpace(){if(this._run<this._len)do{this.next()}while(this._run<this._len&&this.isSpace)}isFirstInLine(){if(0==this._tokenPos)return!0;var t,e=this._tokenPos;for(e--;e>0&&this.IS_WHITE[this._source.charCodeAt(e)];)e--;return 0==e||(10==(t=this._source.charCodeAt(e))||13==t)}}class ee extends v{constructor(){super()}isIdentifier(t){throw new Error("Token is not a valid Identifier: "+t)}evaluateIdentifier(t){throw new Error("Invalid identifier key: "+t)}evaluateIndexerI(t,e){throw new Error("Invalid identifier indexer: "+t)}evaluateIndexerS(t,e,r){throw new Error("Invalid identifier indexer: "+t)}evaluateFunc(t,e){throw new Error("Invalid identifier func: "+t)}}class re{constructor(){}get value(){}get asLiteral(){return null}prepareValue(){}getLiteral(){}isIdentifier(t){return!1}toString(){return String(this)}}class se extends re{}class Ae extends re{constructor(){super()}evaluate(t){}toString(){return""}}Ae.Default=new Ae;class ie extends re{constructor(){super(),this._operator=0}evaluate(t){if(this._literal)return this._literal.value;if(!this._rightExpr)return this._leftExpr.evaluate(t);var e=this._leftExpr.evaluate(t),r=this._rightExpr.evaluate(t);switch(this._operator){case 40:return e==r;case 45:return e!=r;case 41:return e>r;case 42:return e>=r;case 43:return e<r;case 44:return e<=r;case 46:return this.calcLike(e,r,!1);case 47:return!this.calcLike(e,r,!1);case 48:return this.calcLike(e,r,!0);case 49:return!this.calcLike(e,r,!0);case 50:return this.calcMatch(e,r,!1);case 51:return!this.calcMatch(e,r,!1);case 52:return this.calcMatch(e,r,!0);case 53:return!this.calcMatch(e,r,!0);default:throw new Xt("Unknown operator: "+this._operator)}}toString(){var t="";if(this._literal)t=this._literal.toString();else if(this._rightExpr){var e,r=this._leftExpr.toString(),s=this._rightExpr.toString();switch(this._operator){case 40:e="=";break;case 45:e="<>";break;case 41:e=">";break;case 42:e=">=";break;case 43:e="<";break;case 44:e="<=";break;case 46:e="like";break;case 47:e="not like";break;case 48:e="ilike";break;case 49:e="not ilike";break;case 50:e="match";break;case 51:e="not match";break;case 52:e="imatch";break;case 53:e="not imatch";break;case 32:e=",";break;default:e="<<ERROR>>"}t="("+r+" "+e+" "+s+")"}else t=this._leftExpr.toString();return t}isIdentifier(t){return this._leftExpr&&!this._rightExpr&&this._leftExpr.isIdentifier(t)}prepareValue(){this._leftExpr.prepareValue(),null==this._rightExpr?this._literal=this._leftExpr.getLiteral():this._rightExpr.prepareValue()}getLiteral(){return this._literal}calcLike(t,e,r){let s=String(t),A=String(e);if(s&&A){r&&(s=s.toLowerCase(),A=A.toLowerCase());let t=A.length;if(t>1){const e="%"==A.charAt(0),r="%"==A.charAt(t-1);return e&&r?(A=A.substr(1,t-2),s.indexOf(A,0)>=0):e?(A=A.substr(1,t-1),s.lastIndexOf(A)==s.length-A.length):r?(A=A.substr(0,t-1),0==s.indexOf(A,0)):s==A}return"%"!=A&&s==A}return!1}calcMatch(t,e,r){return new RegExp(e,"m"+(r?"i":"")).test(t)}}class ne extends re{get value(){}get asLiteral(){return this}evaluate(t){}}class oe extends ne{toString(){return"defined"}}class ae extends ne{toString(){return"empty"}}class he extends ne{get value(){return NaN}toString(){return"null"}}class le extends ne{toString(){return"NaN"}}class ce extends ie{constructor(t,e,r){super(),this._leftExpr=t,this._operator=e,this._isNot=27==e,this._value=-1,r instanceof oe?this._value=ce.DEFINED:r instanceof he?this._value=ce.NULL:r instanceof ae?this._value=ce.EMPTY:r instanceof le&&(this._value=ce.NAN)}prepareValue(){this._leftExpr.prepareValue(),this._literal=this._leftExpr.getLiteral()}getLiteral(){return null}evaluate(t){var e,r=this._literal?this._literal.value:this._leftExpr.evaluate(t);switch(this._value){case ce.DEFINED:e=void 0!==r;break;case ce.NULL:e=null==r;break;case ce.EMPTY:e=null==r||0==String(r).length;break;case ce.NAN:e=null===r||isNaN(r);break;default:return}return this._isNot?!e:e}toString(){var t="<<ERROR>>";switch(this._value){case ce.DEFINED:t="defined";break;case ce.NULL:t="null";break;case ce.EMPTY:t="empty";break;case ce.NAN:t="NaN"}return"("+(this._isNot?"is not ":"is ")+t+")"}}ce.DEFINED=0,ce.NULL=1,ce.EMPTY=2,ce.NAN=3;class ue extends se{constructor(t){super(),this._value=Number(t)}get value(){return this._value}get asLiteral(){return this}evaluate(t){return this._value}toString(){return String(this._value)}}class de extends se{constructor(t){super(),this._value="string"==typeof t?parseInt(t):Math.floor(t)}get value(){return this._value}get asLiteral(){return this}evaluate(t){return this._value}toString(){return String(this._value)}}class pe extends se{constructor(t){super(),this._value=t.substr(1,t.length-2);for(var e="",r=0,s=!1;r<this._value.length;)"\\"!=this._value[r]||s?(s=!1,e+=this._value[r++]):(s=!0,r++);this._value=e}get value(){return this._value}get asLiteral(){return this}evaluate(t){return this._value}toString(){return"'"+this._value+"'"}}class ge extends re{constructor(t){super(),this._idKey=-651212,this._literal=t}get identifier(){return this._literal}evaluate(t){return-651212==this._idKey&&(this._idKey=t.isIdentifier(this._literal)),t.evaluateIdentifier(this._idKey)}toString(){return this._literal}}class fe extends ie{constructor(t,e,r){super(),this._idKey=-1490313,this._intIndex=NaN,this._strIndex=null,this._ident=t,this._indexer=e,this._capital=r}prepareValue(){let t=this._indexer.asLiteral;if(t||this._indexer instanceof ie&&(this._indexer.prepareValue(),t=this._indexer.getLiteral()),t){const e=t.value;"string"==typeof e?this._strIndex=e:this._intIndex=parseInt(e),this._capital&&this._strIndex&&(this._strIndex=this._strIndex.toUpperCase())}}getLiteral(){return null}evaluate(t){if(-1490313==this._idKey&&(this._idKey=t.isIdentifier(this._ident)),this._strIndex)return t.evaluateIndexerS(this._idKey,this._strIndex,this._capital);if(isNaN(this._intIndex)){const e=this._indexer.evaluate(t);return"string"==typeof e?t.evaluateIndexerS(this._idKey,e,this._capital):t.evaluateIndexerI(this._idKey,e)}return t.evaluateIndexerI(this._idKey,this._intIndex)}toString(){return this._ident+"["+this._indexer.toString()+"]"}}class _e extends ie{constructor(t,e){super(),this._idKey=-1490313,this._strIndex=null,this._ident=t,this._indexer=e}prepareValue(){let t=this._indexer.asLiteral;if(t||this._indexer instanceof ie&&(this._indexer.prepareValue(),t=this._indexer.getLiteral()),t){const e=t.value;"string"==typeof e&&(this._strIndex=e)}}getLiteral(){return null}evaluate(t){if(-1490313==this._idKey&&(this._idKey=t.isIdentifier(this._ident)),this._strIndex)return t.evaluateFunc(this._idKey,this._strIndex);{const e=this._indexer.evaluate(t);return t.evaluateFunc(this._idKey,e)}}toString(){return this._ident+"("+this._indexer.toString()+")"}}class me extends re{constructor(t){super(),this._factor=t}prepareValue(){this._literal=this._factor.asLiteral,!this._literal&&this._factor instanceof re&&(this._factor.prepareValue(),this._literal=this._factor.getLiteral())}getLiteral(){return null}}class we extends me{constructor(t){super(t)}evaluate(t){const e=this._literal instanceof se?this._literal.value:this._factor.evaluate(t);return e?e.length:0}toString(){return"(len "+this._factor+")"}}class Be extends me{constructor(t){super(t)}evaluate(t){return-(this._literal instanceof se?this._literal.value:this._factor.evaluate(t))}toString(){return"-"+this._factor}}class Ce extends me{constructor(t){super(t)}evaluate(t){return this._literal instanceof se?this._literal.value:this._factor.evaluate(t)}toString(){return"+"+this._factor}}class ye extends me{constructor(t){super(t)}evaluate(t){return!(this._literal instanceof se?this._literal.value:this._factor.evaluate(t))}toString(){return"(not "+this._factor+")"}}class ve extends me{constructor(t){super(t)}evaluate(t){var e=this._literal instanceof se?this._literal.value:this._factor.evaluate(t);return Boolean(e)}toString(){return"(bool "+this._factor+")"}}class Ee extends me{constructor(t){super(t)}evaluate(t){var e=this._literal instanceof se?this._literal.value:this._factor.evaluate(t);return Number(e)}toString(){return"(num "+this._factor+")"}}class be extends me{constructor(t){super(t)}evaluate(t){var e=this._literal instanceof se?this._literal.value:this._factor.evaluate(t);return String(e)}toString(){return"(str "+this._factor+")"}}class xe extends me{constructor(t){super(t)}evaluate(t){var e=this._literal instanceof se?this._literal.value:this._factor.evaluate(t);return e instanceof Date&&(e=Jt(e.getFullYear(),4)+Jt(e.getMonth()+1,2)+Jt(e.getDate(),2)+Jt(e.getHours(),2)+Jt(e.getMinutes(),2)+Jt(e.getSeconds(),2)+Jt(e.getMilliseconds(),3)),String(e)}toString(){return"(datestr "+this._factor+")"}}class Pe extends me{constructor(t){super(t)}evaluate(t){const e=this._literal instanceof se?this._literal.value:this._factor.evaluate(t);return e instanceof Date?e.getFullYear():null}toString(){return"(year "+this._factor+")"}}class Ie extends me{constructor(t){super(t)}evaluate(t){const e=this._literal instanceof se?this._literal.value:this._factor.evaluate(t);return e instanceof Date?e.getMonth()+1:null}toString(){return"(month "+this._factor+")"}}class Se extends me{constructor(t){super(t)}evaluate(t){const e=this._literal instanceof se?this._literal.value:this._factor.evaluate(t);return e instanceof Date?e.getDate():null}toString(){return"(day "+this._factor+")"}}class Te extends me{constructor(t){super(t)}evaluate(t){const e=this._literal instanceof se?this._literal.value:this._factor.evaluate(t);return e instanceof Date?e.getHours():null}toString(){return"(hour "+this._factor+")"}}class Fe extends me{constructor(t){super(t)}evaluate(t){const e=this._factor,r=e.getLiteral();if(e.getLiteral())return r.value;if(e._rightExpr){const r=e._leftExpr.evaluate(t),A=e._rightExpr.evaluate(t);if(32===e._operator){var s=Math.pow(10,A);return Math.floor(r*s)/s}throw new Xt("Unknown operator: "+e._operator)}return e._leftExpr.evaluate(t)}toString(){return"(rounddown "+this._factor+")"}}class Re extends re{constructor(){super(),this._factors=[],this._operators=[],this._literal=null}addFactor(t){this._factors.push(t)}addOperator(t){this._operators.push(t)}isIdentifier(t){return 1==this._factors.length&&this._factors[0]instanceof ge&&this._factors[0].identifier==t}prepareValue(){var t,e,r;for(t=0,e=this._factors.length;t<e;t++)this._factors[t].prepareValue();0==this._operators.length&&(r=this._factors[0],this._literal=r.asLiteral,this._literal||(this._literal=r.getLiteral()))}getLiteral(){return this._literal}evaluate(t){if(this._literal)return this._literal.value;const e=this._factors.length;let r=this._factors[0].evaluate(t);for(let s=1;s<e;s++){const e=this._factors[s].evaluate(t);switch(this._operators[s-1]){case 11:r=r&&e;break;case 3:r*=e;break;case 2:r/=e;break;case 14:r=Math.floor(Math.floor(r)/Math.floor(e));break;case 15:r%=e;break;case 16:r<<=e;break;case 17:r>>=e}}return r}toString(){var t="";if(this._literal)t=this._literal.toString();else if(1==this._factors.length)t=this._factors[0].toString();else{var e,r=this._factors.length;for(t="("+this._factors[0].toString(),e=1;e<r;e++){switch(this._operators[e-1]){case 11:t+=" and ";break;case 3:t+=" * ";break;case 2:case 14:t+=" / ";break;case 15:t+=" mod ";break;case 16:t+=" shl ";break;case 17:t+=" shr "}t+=this._factors[e].toString()}t+=")"}return t}}class Oe extends re{constructor(){super(),this._terms=[],this._operators=[],this._literal=null}addTerm(t){this._terms.push(t)}addOperator(t){this._operators.push(t)}isIdentifier(t){return 1==this._terms.length&&this._terms[0].isIdentifier(t)}prepareValue(){for(let t=0,e=this._terms.length;t<e;t++)this._terms[t].prepareValue();0==this._operators.length&&(this._literal=this._terms[0].getLiteral())}getLiteral(){return this._literal}evaluate(t){if(this._literal)return this._literal.value;const e=this._terms.length;let r=this._terms[0].evaluate(t);for(let s=1;s<e;s++){const e=this._terms[s].evaluate(t);switch(this._operators[s-1]){case 4:r-=e;break;case 5:r+=e;break;case 18:r=r||e;break;case 19:r^=e}}return r}toString(){var t="";if(this._literal)t=this._literal.toString();else if(1==this._terms.length)t=this._terms[0].toString();else{var e,r=this._terms.length;for(t="("+this._terms[0].toString(),e=1;e<r;e++){switch(this._operators[e-1]){case 4:t+=" - ";break;case 5:t+=" + ";break;case 18:t+=" or ";break;case 19:t+=" xor ";break;default:t+=" <<ERROR>> "}t+=this._terms[e].toString()}t+=")"}return t}}class Qe{constructor(){this._node=null,this._capitalIndexers=null,this._lexer=new te}syntaxError(t,e){throw new zt(t,e)}expected(t){if(t!=this._lexer.tokenId)throw new zt("Token is not a expected kind ["+t+"]: "+this._lexer.tokenId,this._lexer.tokenLoc);this.nextToken()}nextToken(){this._lexer.nextNoSpace()}doExpression(){let t,e=null,r=this.doSimpleExpression();if($t[t=this._lexer.tokenId]){this.nextToken();let s=this.doSimpleExpression();s.prepareValue();let A=s.getLiteral();if(!(A instanceof ne))throw new zt("is operator's operand must be defined, null or empty: "+this._lexer.tokenId,null);e=new ce(r,t,A)}else e=new ie,e._leftExpr=r,(jt[this._lexer.tokenId]||32==this._lexer.tokenId)&&(e._operator=this._lexer.tokenId,this.nextToken(),e._rightExpr=this.doSimpleExpression());return e}doSimpleExpression(){let t=new Oe;for(t.addTerm(this.doTerm());Zt[this._lexer.tokenId];)t.addOperator(this._lexer.tokenId),this.nextToken(),t.addTerm(this.doTerm());return t}doTerm(){let t=new Re;for(t.addFactor(this.doFactor());qt[this._lexer.tokenId];)t.addOperator(this._lexer.tokenId),this.nextToken(),t.addFactor(this.doFactor());return t}doFactor(){var t=this._lexer.tokenId;switch(t){case 61:return this.doCharString();case 96:return this.doBacktick();case 66:return this.doRoundOpen();case 10:return this.doIdentifier();case 64:return this.doInteger();case 63:return this.doNumber();case 4:return this.doMinus();case 5:return this.doPlus();case 13:return this.doNot();case 35:return this.doDefined();case 34:return this.doNull();case 36:return this.doEmpty();case 37:return this.doNaN();case 23:return this.doToBool();case 21:return this.doToNumber();case 20:return this.doToString();case 24:return this.doLength();case 90:return this.doToDateString();case 91:return this.doToYear();case 92:return this.doToMonth();case 93:return this.doToDay();case 94:return this.doToHour();case 95:return this.doRoundDown()}throw new zt("Unkown token: "+t,this._lexer.tokenLoc)}doCharString(){var t=this._lexer.token;return this.nextToken(),new pe(t)}doBacktick(){var t=this._lexer.token;return this.nextToken(),new ge(t.substring(1,t.length-1))}doRoundOpen(){this.nextToken();var t=this.doExpression();return this.expected(67),t}doIdentifier(){var t=this._lexer.token;if(this.nextToken(),69==this._lexer.tokenId){this.nextToken();var e=this.doExpression();return this.expected(70),new fe(t,e,this._capitalIndexers.indexOf(t)>=0)}if(66==this._lexer.tokenId){this.nextToken();e=this.doExpression();return this.expected(67),new _e(t,e)}return new ge(t)}doNumber(){var t=this._lexer.token;return this.nextToken(),new ue(t)}doInteger(){var t=this._lexer.token;return this.nextToken(),new de(t)}doMinus(){return this.nextToken(),new Be(this.doFactor())}doPlus(){return this.nextToken(),new Ce(this.doFactor())}doNot(){return this.nextToken(),new ye(this.doFactor())}doDefined(){return this.nextToken(),new oe}doNull(){return this.nextToken(),new he}doEmpty(){return this.nextToken(),new ae}doNaN(){return this.nextToken(),new le}doToBool(){return this.nextToken(),new ve(this.doFactor())}doToNumber(){return this.nextToken(),new Ee(this.doFactor())}doToString(){return this.nextToken(),new be(this.doFactor())}doLength(){return this.nextToken(),new we(this.doFactor())}doToDateString(){return this.nextToken(),new xe(this.doFactor())}doToYear(){return this.nextToken(),new Pe(this.doFactor())}doToMonth(){return this.nextToken(),new Ie(this.doFactor())}doToDay(){return this.nextToken(),new Se(this.doFactor())}doToHour(){return this.nextToken(),new Te(this.doFactor())}doRoundDown(){return this.nextToken(),new Fe(this.doFactor())}parse(t,e){if(t){this._capitalIndexers=e||[],this._lexer.init(t),this.nextToken();var r=this.doExpression();return r&&r.prepareValue(),this._lexer.clear(),this._capitalIndexers=null,r}return null}evaluate(t,e,r){return this.parse(t,r).evaluate(e)}}Qe.Default=new Qe;const De={row:0,values:1},Le=999;class Ue extends ee{constructor(){super(),this._fieldMap={}}_doDispose(){super._doDispose()}prepare(t){const e=this._data=t,r=this._fieldMap={};if(e)for(let t=0;t<e.fieldCount;t++){const e=this._data.getField(t).fieldName;r[":"+e]=r[e]=Le+t}return this}setRow(t){return this._row=t,this}isIdentifier(t){const e=t.toLocaleLowerCase();return De.hasOwnProperty(e)?De[e]:this._fieldMap.hasOwnProperty(t)?this._fieldMap[t]:super.isIdentifier(t)}evaluateIdentifier(t){if(t>=Le)return this._row>=0?this._data.getRowValue(this._row,t-Le):void 0;super.evaluateIdentifier(t)}evaluateIndexerS(t,e,r){if(1==t){const t=this._fieldMap[e];return this._row>=0?this._data.getRowValue(this._row,t-Le):void 0}throw new Xt("Invalid field name: "+t)}evaluateFunc(t,e){return 0===t?this._row:super.evaluateFunc(t,e)}}class He{constructor(t,e){this.data=t,this.path=e}static create(t,e){return new He(t,e)}}class Ne extends v{constructor(t,e){super(),this._name=t,this._dp=e}get provider(){return this._dp}get designTime(){var t;return null===(t=this._dp)||void 0===t?void 0:t.designTime}get isBand(){return!1}get name(){return this._name}set name(t){var e;if(t!==this._name){const r=this._name;this._name=t,null===(e=this._dp)||void 0===e||e.dataNameChanged(this,r)}}preparePrint(t,e){}}class Me extends Ne{constructor(t){super("_context_",null),this._context=t}static isValue(t){return this.Values.hasOwnProperty(t)}static isBandValue(t){return this.BandValues.hasOwnProperty(t)}getValue(t){const e=Me.Values[t];return e&&e(this._context)}getSaveValues(){}getSaveType(){return"context"}}Me.Values={"${page}":t=>t.page+1,"${pages}":t=>t.pageCount,"${date}":t=>t.date},Me.BandValues={"${dpage}":t=>0,"${dpages}":t=>0};class ke extends Ne{constructor(t,e){super(t,null),this.setSample(e),this._isObj=ot.isObject(e)}getValue(t){if(t&&this._isObj){let e=this._values;const r=t.split(".");for(let t of r)e=e[t];return e}return this._values}get sample(){return this._values}setSample(t){t!==this._values&&(this._values=t)}getFieldNames(){if(this._values){const t=[];for(let e in this._values)t.push(e);return t}}getSaveType(){return"simple"}getSaveValues(){return this._values}}var Ve,Ge;!function(t){t.SAMPLE="sample",t.GENERATE="generate"}(Ve||(Ve={}));class Ke extends Ne{constructor(t,e,r){if(super(t,r),this._calcFieldRuntime=new Ue,e){this._fields=e;for(let t of e){if(!t.fieldName)throw new Error("The fieldName must be exists.");t.dataType||(t.dataType="text"),t.dateReader=null}}}get fields(){return this._fields&&this._fields.slice()}get fieldCount(){return this._fields?this._fields.length:0}getFields(){var t;return null===(t=this._fields)||void 0===t?void 0:t.slice(0)}getField(t){return this._fields[t]}getFieldByName(t){for(let e of this._fields)if(e.fieldName===t)return e}getFieldIndex(t){if(this._fields)for(let e=this._fields.length-1;e>=0;e--)if(this._fields[e].fieldName===t)return e;return-1}containsField(t){return this._fields&&this._fields.some((e=>e.fieldName===t))}indexOfField(t){return this._fields.indexOf(t)}setField(t,e){this._fields[t]={...e}}getSaveFields(){return this._fields}getNextFieldName(){const t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")||"field";let e=t,r=1;for(;this._fields.some((t=>e===t.fieldName));)e=t+"-"+r++;return e}getFieldNames(){return this._fields?this._fields.map((t=>t.fieldName)).sort():[]}addField(t,e){if(e&&!this._fields.includes(e))return t=Math.max(0,Math.min(this._fields.length,t)),this._fields.splice(t,0,e),!0}removeField(t){const e=this._fields.indexOf(t);if(e>=0)return this._fields.splice(e,1),!0}groupBy(t){function e(r,s){if(s.push(r),r.level===t.length)for(let t=0;t<r.count;t++)s.push(t+r.row);else for(let t of r.children)e(t,s);s.push({group:r})}const r=this.rowCount;if(t&&t.length>0){const s=[],A={parent:null,level:0,row:0,count:r,children:[]};!function e(r,s){const A=s.row+s.count;let i=s.level+1,n=s.row;const o=t[i-1];let a={parent:s,level:i,row:n,count:1,value:r.getRowValue(n,o),children:[]};for(s.children.push(a);++n<A;){const t=r.getRowValue(n,o);t!==a.value?(a={parent:s,level:i,row:n,count:1,value:t,children:[]},s.children.push(a)):a.count++}if(i<t.length)for(let t of s.children){let s=t.row;for(;s<t.row+t.count;)e(r,t),s+=t.count}}(this,A);for(let t of A.children)e(t,s);return s}}readValue(t,e){if(t){const r=t.dataType;if("datetime"===r)return t.dateReader||(t.dateReader=new Wt(t.format)),t.dateReader.toDate(e);if("number"===r)return"number"==typeof e?e:parseFloat(e);if("bool"===r)return"boolean"==typeof e?e:"number"==typeof e?0!==e:"True"===e||"true"===e}return e}readRow(t){if(this._fields){const e=this._fields;if(ot.isArray(t))for(let r=0;r<e.length;r++)t[r]=this.readValue(e[r],t[r]);else if(t)for(let r in t){const s=this.getFieldIndex(r);s>=0&&(t[r]=this.readValue(e[s],t[r]))}}return t}dateToStr(t,e){const r=t&&t.format&&Vt.getFormatter(t.format);return r?r.getText(e):String(e)}get isBand(){return!0}preparePrint(t,e){super.preparePrint(t,e);const r=this._fields;let s=this._fields;if(!e&&!s){const e=t.designDp.get(this.name);e instanceof Ke&&(s=this._fields=e.getFields())}if(s){const t=this._fieldMap={};for(let e=0;e<s.length;e++)t[s[e].fieldName]=e;r||this._readRows(),this._calcFieldRuntime.prepare(this);for(let e=0;e<s.length;e++){const r=s[e];if(r.expression){const A=Qe.Default.parse(r.expression);this._prepareCalcField(s,t,r,e,A)}}}}_readRows(){}_prepareCalcField(t,e,r,s,A){}}class We extends Ke{constructor(t,e,r,s,A){super(t,e,A),this._sampleCount=-1,this._sampled=!1,s>0&&(this._sampleCount=s),this.setValues(r)}get rowCount(){return this._values.length}getRowValues(t){return this._values[t]}getValue(t){return this.getRowValue(0,t)}getRowValue(t,e){const r=this._values[t];if(r)return"number"==typeof e?r[this.getField(e).fieldName]:r[e]}getFieldValues(t){const e=[];"number"==typeof t&&(t=this.getField(t).fieldName);for(let r=0;r<this._values.length;r++)e.push(this._values[r][t]);return e}equalValues(t,e,r){for(let s=e.length-1;s>=0;s--)if(this._values[t][e[s]]!==r[s])return!1;return!0}equalRows(t,e,r){const s=this._values;r=r||this._fields.map((t=>t.fieldName));for(let A=r.length-1;A>=0;A--)if(s[t][r[A]]!==s[e][r[A]])return!1;return!0}findRows(t){const e=null!=t&&Object.keys(t),r=[];return e&&e.length>0&&this._values.forEach(((s,A)=>{let i=!0;for(let r of e)if(s[r]!==t[r]){i=!1;break}i&&r.push(A)})),r}get sample(){return this._values}getValues(){const t=[];for(let e=0;e<this._values.length;e++)t.push(this.$_cloneRow(this._values[e]));return t}setValues(t){const e=this._values=[];if(this._sampled=!1,t)for(let r=0,s=t.length;r<s;r++){let s=this.$_cloneRow(t[r]);s=this.readRow(s),e.push(s)}else if(this.designTime){const t=this.$_prepareSample();for(let r=0;r<this._sampleCount;r++)e.push({...t});this._sampled=!0}}getSaveType(){return"band"}getSaveValues(){}$_cloneRow(t){if(t){const e={};for(let r in t)e[r]=t[r];return e}return null}$_prepareSample(){const t=this._fields;if(t&&t.length>0){const e={};for(let r of t)e[r.fieldName]=this.readValue(r,r.sample);return e}return{}}_readRows(){const t=this._values;for(let e=0,r=t.length;e<r;e++)t[e]=this.readRow(t[e])}_prepareCalcField(t,e,r,s,A){const i=this._values,n=this._calcFieldRuntime;for(let t=0,e=i.length;t<e;t++){const e=i[t];n.setRow(t);const s=A.evaluate(n);e[r.fieldName]=s}}}class ze extends Ke{constructor(t,e,r,s,A){super(t,e,A),this._sampleCount=1,this._sampled=!1,s>0&&(this._sampleCount=s),this.setValues(r)}get rowCount(){return this._values.length}getValue(t){return this.getRowValue(0,t)}getRowValue(t,e){const r=this._values[t];if(r)return"number"==typeof e?r[e]:r[this.getFieldIndex(e)]}getFieldValues(t){const e=[];"number"!=typeof t&&(t=this.getFieldIndex(t));for(let r=0;r<this._values.length;r++)e.push(this._values[r][t]);return e}equalValues(t,e,r){for(let s=e.length-1;s>=0;s--)if(this._values[t][this.getFieldIndex(e[s])]!==r[s])return!1;return!0}equalRows(t,e,r){const s=this._values;r=r||this._fields.map((t=>t.fieldName));for(let A=r.length-1;A>=0;A--){const i=this.getFieldIndex(r[A]);if(s[t][i]!==s[e][i])return!1}return!0}get sample(){return this._values}getValues(){const t=[];for(let e=0;e<this._values.length;e++)t.push(this.$_cloneRow(this._values[e]));return t}setValues(t){const e=this._values=[];if(this._sampled=!1,t)for(let r=0,s=t.length;r<s;r++){let s=this.$_cloneRow(t[r]);s=this.readRow(s),e.push(s)}else if(this.designTime){const t=this.$_prepareSample();for(let r=0;r<this._sampleCount;r++)e.push(t.slice(0));this._sampled=!0}}getSaveType(){return"array"}getSaveValues(){}$_cloneRow(t){return t?t.slice(0):null}$_prepareSample(){const t=this._fields;if(t&&t.length>0){const e=[];for(let r=0;r<t.length;r++)e.push(this.readValue(t[r],t[r].sample));return e}return[]}_readRows(){const t=this._values;for(let e=0,r=t.length;e<r;e++)t[e]=this.readRow(t[e])}_prepareCalcField(t,e,r,s,A){const i=this._values,n=this._calcFieldRuntime;for(let t=0,e=i.length;t<e;t++){const e=i[t];n.setRow(t);const r=A.evaluate(n);e[s]=r}}}class Xe extends v{constructor(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];super(),this._pageCount=0,this._page=0,this._detailPageCount=0,this._detailPage=0,this._noValueCallback=!1,this.headerHeight=0,this.footerHeight=0,this.reportHeaderHeight=0,this.reportFooterHeight=0,this.bodyTop=0,this.bodyBottom=0,this.bodyHeight=0,this.y=0,this.h=0,this.yBand=0,this.row=-1,this.index=-1,this.contextable=!1,this.contextValues=[],this._userData={row:0},this._tags={},this._printing=t}get printing(){return this._printing}get dp(){return this._dp}set dp(t){this._dp=t}get designDp(){return this._desingDp}set designDp(t){this._desingDp=t}get assets(){return this._assets}set assets(t){this._assets=t}get reportView(){return this._reportView}set reportView(t){this._reportView=t}get pageWidth(){return this._pageWidth}set pageWidth(t){this._pageWidth=t}get pageHeight(){return this._pageHeight}set pageHeight(t){this._pageHeight=t}get date(){return this._date}get pageCount(){return this._pageCount}get page(){return this._page}get detailPageCount(){return this._detailPageCount}get detailPage(){return this._detailPage}preparePrint(t){var e;this.contextValues=[],this._date=new Date,this.report=t||(null===(e=this._reportView)||void 0===e?void 0:e.model)}preparePage(t){this._page=t}setDetailPage(t,e){this._detailPageCount=t,this._detailPage=e}finishPrint(t){this._pageCount=t}getUserData(){return this._userData.row=this.row,this._userData}getCurrentValue(t){if("row"===t)return this.row}setTag(t,e){t&&(this._tags[t]=e)}unsetTag(t){delete this._tags[t]}getTag(t,e){const r=this._tags[t];return void 0!==r?r:e}getValue(t,e,r){if(this._dp&&t&&r){const s=this._dp.get(t);if(s)return e>=0||(e=this.row),s instanceof Ke?s.getRowValue(e,r):s.getValue(r)}}}class Je extends v{constructor(t){super(),this._prop=t}get group(){return this._group}get prop(){return this._prop}get name(){return this._prop.name}get label(){return this._prop.label||this._prop.name}get domain(){return this._prop.domain}get parent(){return this._prop.parent}isVisible(t){return!this._prop.visible||!1!==this._prop.visible(t)}isReadOnly(t){return this._prop.readonly||t.isReadOnlyProperty(this._prop)}getValue(t){return t.getProperty(this._prop.name)}setValue(t,e){t.setProperty(this._prop.name,e)}setValues(t,e){t[0].setItemsProperty(t,this._prop.name,e)}hasColor(){return!1}}class Ye extends v{constructor(t){super(),this._items=[],this._pool=[],this._label=t}get label(){return this._label}get count(){return this._items.length}get(t){return this._items[t]}borrow(t){for(let e=this._pool.length-1;e>=0;e--){const r=this._pool[e];if(r._prop===t)return this._pool.splice(e,1),r}}add(t){t._group=this,this._items.push(t)}clear(){for(let t of this._items)t._group=null,this._pool.push(t);this._items=[]}}class $e extends Je{constructor(t){super(t)}get defaultValue(){return this._defaultValue}set defaultValue(t){this._defaultValue=t}}class je extends Je{constructor(t){super(t)}}class Ze extends $e{constructor(t){super(t)}}Ze.$_ctor="StringProperty";class qe extends $e{constructor(t){super(t),this._minimum=NaN,this._maximum=NaN}get minimum(){return this._minimum}set minimum(t){this._minimum=t}get maximum(){return this._maximum}set maximum(t){this._maximum=t}}qe.$_ctor="NumberProperty";class tr extends Ze{constructor(t){super(t),this.percentable=!0}}tr.$_ctor="DimensionProperty";class er extends tr{constructor(t){super(t)}}er.$_ctor="SizeProperty";class rr extends $e{constructor(t){super(t)}}rr.$_ctor="BooleanProperty";class sr extends $e{constructor(t,e){super(t),this._type=e||t.domain}get domain(){const t=ot.getEnumValues(this._type);return void 0===this.defaultValue&&t.unshift(void 0),t}}sr.$_ctor="EnumProperty";class Ar extends Ze{constructor(t){super(t)}}Ar.$_ctor="ReportItemProperty";class ir extends Ze{constructor(t){super(t)}}ir.$_ctor="ListableProperty";class nr extends Ze{constructor(t){super(t)}}nr.$_ctor="FunctionProperty";class or extends $e{constructor(t){super(t)}}or.$_ctor="NumberArrayProperty";class ar extends $e{constructor(t){super(t)}}ar.$_ctor="StringArrayProperty";class hr extends $e{constructor(t){super(t)}}hr.$_ctor="ColorProperty";class lr extends Je{constructor(t){super(t)}getValue(t){return this.parent?t.getSubStyleProperty(this.parent,this.name):t.getStyleProperty(this.name)}setValue(t,e){this.parent?t.setSubStyleProperty(this.parent,this.name,e):t.setStyleProperty(this.name,e)}setValues(t,e){const r=t[0];this.parent?r.setItemsSubStyleProperty(t,this.parent,this.name,e):r.setItemsStyleProperty(t,this.name,e)}}class cr extends lr{constructor(t){super(t)}get styleName(){return"color"}}cr.$_ctor="ColorStyle";class ur extends lr{constructor(t){super(t)}get styleName(){return"fontFamily"}}ur.VALUES=[void 0,"Arial","Helvetica","Tahoma",'"Trebuchet MS"',"Verdana",'"Courier New"','"Lusida Console"','"Times New Roman"'],ur.$_ctor="FontFamilyStyle";class dr extends lr{constructor(t){super(t)}get styleName(){return"fontSize"}}dr.$_ctor="FontSizeStyle";class pr extends lr{constructor(t){super(t)}get styleName(){return"fontStyle"}}pr.VALUES=[void 0,"normal","italic","oblique"],pr.$_ctor="FontStyleStyle";class gr extends lr{constructor(t){super(t)}get styleName(){return"fontWeight"}}gr.VALUES=[void 0,"normal","bold","lighter","bolder","100","200","300","400","500","600","700","800","900"],gr.$_ctor="FontWeightStyle";class fr extends lr{constructor(t){super(t)}get styleName(){return"textAlign"}}fr.VALUES=[void 0,"left","center","right"],fr.$_ctor="TextAlignStyle";class _r extends lr{constructor(t){super(t)}get styleName(){return"verticalAlign"}}_r.VALUES=[void 0,"top","middle","bottom"],_r.$_ctor="VerticalAlignStyle";class mr extends lr{constructor(t){super(t)}get styleName(){return"textDecoration"}}mr.VALUES=[void 0,"underline","line-through","overline"],mr.$_ctor="TextDecorationStyle";class wr extends lr{constructor(t){super(t)}get styleName(){return"border"}hasColor(){return!0}}wr.$_ctor="BorderStyle";class Br extends lr{constructor(t){super(t)}hasColor(){return!0}}Br.$_ctor="BorderItemStyle";class Cr extends Br{constructor(t){super(t)}get styleName(){return"border-left"}}Cr.$_ctor="BorderLeftStyle";class yr extends Br{constructor(t){super(t)}get styleName(){return"border-right"}}yr.$_ctor="BorderRightStyle";class vr extends Br{constructor(t){super(t)}get styleName(){return"border-top"}}vr.$_ctor="BorderTopStyle";class Er extends Br{constructor(t){super(t)}get styleName(){return"border-bottom"}}Er.$_ctor="BorderBottomStyle";class br extends lr{constructor(t){super(t)}}br.$_ctor="PaddingItemStyle";class xr extends br{constructor(t){super(t)}get styleName(){return"padding-left"}}xr.$_ctor="PaddingLeftStyle";class Pr extends br{constructor(t){super(t)}get styleName(){return"padding-right"}}Pr.$_ctor="PaddingRightStyle";class Ir extends br{constructor(t){super(t)}get styleName(){return"padding-top"}}Ir.$_ctor="PaddingTopStyle";class Sr extends br{constructor(t){super(t)}get styleName(){return"padding-bottom"}}Sr.$_ctor="PaddingBottomStyle";class Tr extends lr{constructor(t){super(t)}get styleName(){return"opacity"}}Tr.$_ctor="OpacityStyle";class Fr extends lr{constructor(t){super(t)}get styleName(){return"cellAlign"}}Fr.VALUES=[void 0,"left","center","right"],Fr.$_ctor="CellAlignStyle";class Rr extends lr{constructor(t){super(t)}get styleName(){return"strokeWidth"}}Rr.$_ctor="StrokeWidthStyle";class Or extends lr{constructor(t){super(t)}get styleName(){return"strokeDasharray"}}Or.$_ctor="StrokeDasharrayStyle";class Qr extends lr{constructor(t){super(t)}get styleName(){return"writingMode"}}Qr.VALUES=[void 0,"horizontal-tb","vertical-rl","vertical-lr"],Qr.$_ctor="WritingModeStyle",function(t){t.DESIGN="design",t.BASIC="basic",t.TEXT="text",t.DATA="data",t.BOUND="bound",t.EVENT="event",t.EDITOR="editor",t.REPORT="report",t.PAPER="paper",t.BOX="box",t.TABLE="table",t.CELL="cell",t.BAND="band",t.FIELD="field",t.COLUMN="column",t.ROW="row",t.CHART="chart",t.TITLE="title",t.AXIS="axis",t.XAXIS="x Axis",t.YAXIS="y Axis",t.SERIES="series",t.LEGEND="legend"}(Ge||(Ge={}));class Dr extends E{constructor(t){super(),this._modelMap={},this._groupMap={},this._styleGroup=new Ye("Styles"),this._childStyleMap={},this._groups=[],this._models=[],this._name=t}get name(){return this._name}get source(){return this._source}set source(t){t!==this._source&&(this._source=t,this.$_buildItems(),this._fireSourceChanged())}get sources(){return this._sources}set sources(t){this._sources=t,this.source=t&&t.length>0?t[0]:null}get groupCount(){return this._groups.length}get modelCount(){return this._models.length}getGroup(t){return this._groups[t]}getModel(t){return this._models[t]}refresh(){this.$_buildItems()}updateValue(t,e,r){const s=e._prop,A=this._sources;t=t||this.source,e.prop.multiple&&A&&A.length>1?(t=A[0],e.setValues(A,r)):t&&e.setValue(t,r),t&&t.isDominantProp(s)&&(this.refresh(),this._fireSourceChanged())}$_borrowGroup(t){let e=this._groupMap[t];return e||(this._groupMap[t]=e=new Ye(t)),e.source=null,e}$_borrowModel(t){let e=this._modelMap[t];return e||(this._modelMap[t]=e=new Dr),e}$_clear(){this._models=[];for(let t in this._modelMap)this._modelMap[t].$_clear();this._groups=[];for(let t in this._groupMap)this._groupMap[t].clear();for(let t in this._childStyleMap)this._childStyleMap[t].clear()}$_buildSource(t,e){let r=t.getEditProps();for(let s of r)if(s.type!==lr){let r=e;r||(r=this.$_borrowGroup(this.name||s.category),this._groups.indexOf(r)<0&&this._groups.push(r));let A=r.borrow(s);A||(A=new s.type(s)),A instanceof Lr&&(A.model.source=t[s.name],s.indented&&(r.source=A.model.source),A.model.$_buildItems(s.indented?r:null)),r.add(A)}let s=t.getStyleProps();if(s&&s.length>0){const t=this._styleGroup;t.source=this.source,t.clear();for(let e of s){let r=t.borrow(e);r||(r=new e.type(e)),t.add(r)}t.count>0&&this._groups.push(t)}for(let e of r)if(e.type===je){const r=this.$_borrowGroup(e.name);if(at(null!=r),r.source=this.source,r.clear(),s=t.getSubStyleProps(e.name),s&&s.length>0)for(let t of s){let e=r.borrow(t);e||(e=new t.type(t)),r.add(e)}r.count>0&&this._groups.push(r)}}$_buildModels(t){for(let e=0;e<t.length;e++){const r=t[e],s=this.$_borrowModel(r.getCollectionLabel()+e);s.source=r,this._models.push(s),s.$_buildItems()}}$_buildItems(t){this.$_clear();const e=this._source;e&&e.getEditProps&&(e.isCollectionProp()?this.$_buildModels(e.getPropertySources()):this.$_buildSource(e,t))}_fireSourceChanged(){this.fireEvent(Dr.SOURCE_CHANGED)}}Dr.SOURCE_CHANGED="onPropertySourceChanged";class Lr extends Je{constructor(t){super(t),this._model=new Dr(t.name)}get model(){return this._model}}Lr.$_ctor="ModelProperty";const Ur="styles",Hr="backgroundColor",Nr="color",Mr="fontFamily",kr="fontSize",Vr="fontStyle",Gr="fontWeight",Kr="textAlign",Wr="verticalAlign",zr="writingMode",Xr="textDecoration",Jr="paddingLeft",Yr="paddingRight",$r="paddingTop",jr="paddingBottom",Zr="border",qr="borderLeft",ts="borderRight",es="borderTop",rs="borderBottom",ss="opacity",As="fill",is="stroke",ns="strokeWidth",os="strokeDasharray",as="backFill",hs="backStroke",ls="barColor",cs="cellAlign",us={};var ds,ps,gs;us.backgroundColor={name:Hr,category:Ur,type:cr,multiple:!0,default:void 0},us.color={name:Nr,category:Ur,type:cr,multiple:!0,default:void 0},us.fontFamily={name:Mr,category:Ur,type:ur,multiple:!0,default:void 0,domain:ur.VALUES},us.fontSize={name:kr,category:Ur,type:dr,multiple:!0,default:void 0},us.fontStyle={name:Vr,category:Ur,type:pr,multiple:!0,default:void 0,domain:pr.VALUES},us.fontWeight={name:Gr,category:Ur,type:gr,multiple:!0,default:void 0,domain:gr.VALUES},us.textAlign={name:Kr,category:Ur,type:fr,multiple:!0,default:void 0,domain:fr.VALUES},us.verticalAlign={name:Wr,category:Ur,type:_r,multiple:!0,default:void 0,domain:_r.VALUES},us.writingMode={name:zr,category:Ur,type:Qr,multiple:!0,default:void 0,domain:Qr.VALUES},us.textDecoration={name:Xr,category:Ur,type:mr,multiple:!0,default:void 0,domain:mr.VALUES},us.border={name:Zr,category:Ur,type:wr,multiple:!0,default:void 0},us.borderLeft={name:qr,category:Ur,type:Cr,multiple:!0,default:void 0},us.borderRight={name:ts,category:Ur,type:yr,multiple:!0,default:void 0},us.borderTop={name:es,category:Ur,type:vr,multiple:!0,default:void 0},us.borderBottom={name:rs,category:Ur,type:Er,multiple:!0,default:void 0},us.paddingLeft={name:Jr,category:Ur,type:xr,multiple:!0,default:void 0},us.paddingRight={name:Yr,category:Ur,type:Pr,multiple:!0,default:void 0},us.paddingTop={name:$r,category:Ur,type:Ir,multiple:!0,default:void 0},us.paddingBottom={name:jr,category:Ur,type:Sr,multiple:!0,default:void 0},us.fill={name:As,category:Ur,type:cr,multiple:!0,default:void 0},us.stroke={name:is,category:Ur,type:cr,multiple:!0,default:void 0},us.strokeWidth={name:ns,category:Ur,type:Rr,multiple:!0,default:void 0},us.strokeDasharray={name:os,category:Ur,type:Or,multiple:!0,default:void 0},us.backFill={name:as,category:Ur,type:cr,multiple:!0,default:void 0},us.backStroke={name:hs,category:Ur,type:cr,multiple:!0,default:void 0},us.barColor={name:ls,category:Ur,type:cr,multiple:!0,default:void 0},us.opacity={name:ss,category:Ur,type:Tr,multiple:!0,default:void 0},us.cellAlign={name:cs,category:Ur,type:Fr,multiple:!0,default:void 0,domain:Fr.VALUES},function(t){t.PROP="prop"}(ds||(ds={}));class fs{}fs.Shared=new fs;class _s extends v{constructor(){super(...arguments),this.outlineOrder=0}get selectItem(){return this}canSelectedWith(t){return!0}get index(){return-1}get outlineItems(){return null}canParentOf(t){return!1}getProperty(t){return this[t]}setProperty(t,e){const r=this.page;r?r.report.setItemProperty(this,t,e):this[t]=e}isReadOnlyProperty(t){return!1}isDominantProp(t){return!1}isCollectionProp(){return!1}getPropertySources(){return null}getCollectionLabel(){}setItemsStyleProperty(t,e,r){const s=t.filter((t=>t instanceof _s)),A=this.page;if(A){this.styles[e]!==r&&A.report.setItemsStyle(s,e,r)}else s.forEach((t=>{t.setStyle(e,r)}))}get parent(){const t=this.outlineParent;return t instanceof ws?t:null}get dataParent(){return this.parent}get displayParent(){return ot.cast(this.outlineParent,_s)}get marqueeParent(){return null}get printable(){return!0}isAncestorOf(t){return t===this}getProps(){const t={};return this.getEditProps().forEach((e=>{t[e.name]=this[e.name]})),t}setProps(t){ot.isObject(t)&&this.getEditProps().forEach((e=>{if(!e.readonly){const r=e.name;t.hasOwnProperty(r)&&(this[r]=t[r])}}))}canMove(){return!0}_loadProp(t,e){t.hasOwnProperty(e)&&(this[e]=t[e])}_loadProps(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),s=1;s<e;s++)r[s-1]=arguments[s];for(let e of r)t.hasOwnProperty(e)&&(this[e]=t[e])}_loadPropOf(t,e){if(!e.readonly&&e.type!==Lr){const r=e.name;t.hasOwnProperty(r)&&(this[r]=t[r])}}_loadPropsOf(t,e){for(let r of e)this._loadPropOf(t,r)}_saveProp(t,e){const r=this[e];void 0===r||"number"==typeof r&&isNaN(r)||(t[e]=r)}_saveProps(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),s=1;s<e;s++)r[s-1]=arguments[s];for(let e of r){const r=this[e];void 0===r||"number"==typeof r&&isNaN(r)||(t[e]=r)}}_savePropOf(t,e){if(e.type!==Lr){const r=e.name,s=this[r];void 0===s||"number"==typeof s&&isNaN(s)||s===e.default||(t[r]=s)}}_savePropsOf(t,e){for(let r of e)this._savePropOf(t,r)}_arrangePaddingStyles(t){if(t.hasOwnProperty("padding")){const e=t.padding.split(/\s+/),r=e.length;t.hasOwnProperty("paddingTop")||(t.paddingTop=e[0]),t.hasOwnProperty("paddingBottom")||(t.paddingBottom=r>2?e[2]:e[0]),t.hasOwnProperty("paddingLeft")||(t.paddingLeft=r>3?e[3]:r>1?e[1]:e[0]),t.hasOwnProperty("paddingRight")||(t.paddingRight=r>1?e[1]:e[0]),delete t.padding}}_validateSize(t){if("number"==typeof t){if(!isNaN(t))return Math.max(0,t)}else if(t){const e=t.indexOf("-");if(e>=0)return t.substr(e+1)}return t}}!function(t){t.INNER="inner",t.OUTER="outer"}(ps||(ps={})),function(t){t.NO="${no}",t.ROW="${row}",t.INDEX="${index}",t.INO="${ino}"}(gs||(gs={}));class ms extends _s{constructor(t){super(),this._visible=!0,this._styles={},this._pageBreak=U.NONE,this._designOrder=ms.DEF_DISPLAY_ORDER,this._index=-1,this._valueCallbackDelegate=(t,e,r,s)=>this._valueCallbackFunc(t,e,r,s),this._styleCallbackDelegate=(t,e,r,s)=>this._styleCallbackFunc(t,e,r,s),this._name=t}static findFloatingAnchor(t){if(t instanceof ms){let e=t.getFloatingContainer();if(e&&e.anchorTarget)return e.outlineParent.find(e.anchorTarget,!0)}}get outlineParent(){return this._parent}get outlineExpandable(){return!1}getEditProps(){const t=this._getEditProps();if(t){const e=[];for(let r of t)r&&r.name&&e.push(r);return e}return[]}getStyleProps(){const t=this._getStyleProps();if(t){const e=[];for(let r of t){const t=us[r];t&&e.push(t)}return e.length>0?e:null}}getSubStyleProps(t){if(this.isChildProp(t)){const e=this._getChildStyleProps(t);if(e){const r=[];for(let s of e){let e=us[s];e&&(e={...e},e.parent=t,r.push(e))}return r.length>0?r:null}}}getPlaceHolder(t){if(t.name===ms.PROP_DATA)return this._getParentData()}getData(){var t;return null===(t=this.page)||void 0===t?void 0:t.report.designData.get(this.data||this._getParentData())}getDataFieldNames(){const t=this.getData();return t instanceof Ke||t instanceof ke?[void 0].concat(t.getFieldNames()):[void 0]}getPropDomain(t){const e=this.page;if(e){if(t.name===ms.PROP_DATA)return[void 0].concat(e.report.designData.getNames());if(t.name===ms.PROP_VALUE)return this.getDataFieldNames()}}getProperty(t){return this.isChildProp(t)?this._childProps&&this._childProps[t]:this[t]}setProperty(t,e){const r=this.report;r?r.setItemProperty(this,t,e):this.isChildProp(t)?(this._childProps||(this._childProps={}),this._childProps[t]=e):this[t]=e}setItemsProperty(t,e,r){const s=t.filter((t=>t instanceof _s)),A=this.report;A?A.setItemsProperty(s,e,r):s.forEach((t=>{t instanceof ms&&(t.isChildProp(e)?(t._childProps||(t._childProps={}),t._childProps[e]=r):t[e]=r)}))}getProperties(t){const e={};if(ot.isArray(t))for(let r of t)e[r]=this.getProperty(r);else for(let r in t)e[r]=this.getProperty(r);return e}setProperties(t){for(let e in t)if(this.isChildProp(e))this.setChildProp(e,t[e]);else{const r=Object.getOwnPropertyDescriptor(this,e);r&&(r.writable||r.set)&&(this[e]=t[e])}}getStyleProperty(t){return this._styles[t]}setStyleProperty(t,e){const r=this.page;if(r){this.styles[t]!==e&&r.report.setItemStyle(this,t,e)}else this.setStyle(t,e)}getSubStyleProperty(t,e){return this._getSubStyle(t,e)}setSubStyleProperty(t,e,r){const s=this.page;if(s){(this._childProps&&this._childProps[t]&&this._childProps[t][e])!=r&&s.report.setChildStyleProperty(this,t,e,r)}else this._setSubStyle(t,e,r)}setItemsSubStyleProperty(t,e,r,s){const A=t.filter((t=>t instanceof ms)),i=this.page;if(i){this.styles[e]!==s&&i.report.setItemsChildStyleProperty(A,e,r,s)}else A.forEach((t=>{t._setSubStyle(e,r,s)}))}canPropAdoptDragSource(t,e){return!1}adoptPropDragSource(t,e){}dataNameChanged(t,e){this._data===e&&(this._data=t.name)}dataFieldNameChanged(t,e,r){}get parent(){return this._parent}get dataParent(){return this._parent}get index(){return this._index}get level(){return this._parent?this._parent.level+1:0}get page(){return this._parent&&this._parent.page}get report(){return this._parent&&this._parent.report}get name(){return this._name}set name(t){if(t!==this._name){const e=this.page,r=this._name;if(e&&t&&e.getItem(t))throw new Error('"'+t+'"는(은) 이미 다른 아이템의 이름으로 사용 중입니다.');this._name=t,e&&e.$_nameChanged(this,r),this._changed(ms.PROP_NAME,t,r)}}get pathLabel(){return this.getSaveType()||ot.uncapitalize(this.outlineLabel)}get displayPath(){return(this._parent?this._parent.displayPath+".":"")+this.pathLabel}get tag(){return this._tag}set tag(t){if(t!=this._tag){const e=this._tag;this._tag=t,this._changed(ms.PROP_TAG,t,e)}}get isArray(){return!1}get isBand(){return!1}get visible(){return this._visible}set visible(t){t!=this._visible&&(this._visible=t,this._changed(ms.PROP_VISIBLE,t,!t))}get removable(){return!0}get data(){return this._data}set data(t){if(t!=this._data){const e=this._data;this._data=t,this._changed(ms.PROP_DATA,t,e)}}get value(){return this._value}set value(t){if(t!=this._value){const e=this._value;this._value=t,this._changed(ms.PROP_TAG,t,e)}}get hint(){return this._hint}set hint(t){if(t!=this._hint){const e=this._hint;this._hint=t,this._changed(ms.PROP_HINT,t,e)}}get width(){return this._width}set width(t){if((t=this._validateSize(t))!=this._width){const e=this._width;this._width=t,this._widthDim=new D(t),this._changed(ms.PROP_WIDTH,t,e)}}get height(){return this._height}set height(t){if((t=this._validateSize(t))!=this._height){const e=this._height;this._height=t,this._heightDim=new D(t),this._changed(ms.PROP_HEIGHT,t,e)}}get minWidth(){return this._minWidth}set minWidth(t){if(t!=this._minWidth){const e=this._minWidth;this._minWidth=t,this._minWidthDim=new D(t),this._changed(ms.PROP_MIN_WIDTH,t,e)}}get minHeight(){return this._minHeight}set minHeight(t){if(t!=this._minHeight){const e=this._minHeight;this._minHeight=t,this._minHeightDim=new D(t),this._changed(ms.PROP_MIN_HEIGHT,t,e)}}get onGetValue(){return this._onGetValue}set onGetValue(t){if(t!==this._onGetValue){t?(this._valueCallbackFunc=new Function("ctx","item, row, value",t),this._valueCallback=this._valueCallbackDelegate):this._valueCallback===this._valueCallbackDelegate&&(this._valueCallback=null);const e=this._onGetValue;this._onGetValue=t,this._changed(ms.PROP_ON_GET_VALUE,t,e)}}get valueCallback(){return this._valueCallback}set valueCallback(t){if(t!==this._valueCallback){const e=this._valueCallback;this._valueCallback=t,this._changed(ms.PROP_ON_GET_VALUE,t,e)}}get styles(){return this._styles}set styles(t){const e=this._styles={};if(t){const r=this._getStyleProps();for(let s of r)s in t&&(e[s]=t[s])}e&&this._arrangePaddingStyles(e)}get styleCallback(){return this._styleCallback}set styleCallback(t){if(t!==this._styleCallback){const e=this._styleCallback;this._styleCallback=t,this._changed(ms.PROP_STYLE_CALLBACK,t,e)}}get onGetStyles(){return this._onGetStyles}set onGetStyles(t){if(t!==this._onGetStyles){t?(this._styleCallbackFunc=new Function("ctx, item, row, value",t),this._styleCallback=this._styleCallbackDelegate):this._styleCallback===this._styleCallbackDelegate&&(this._styleCallback=null);const e=this._onGetStyles;this._onGetStyles=t,this._changed(ms.PROP_ON_GET_STYLES,t,e)}}get pageBreak(){return this._pageBreak}set pageBreak(t){if(t!=this._pageBreak){const e=this._pageBreak;this._pageBreak=t,this._changed(ms.PROP_PAGE_BREAK,t,e)}}get outlineLabel(){return this.name||this.hint}get designText(){return this.outlineLabel}get designLevel(){return 0}get childPropInfos(){return this._childPropInfos}set childPropInfos(t){this._childPropInfos=t}get floating(){return!!this.getFloatingContainer()}get designOrder(){return this._designOrder}set designOrder(t){this._designOrder=t}get isRelativeHeight(){return this._heightDim&&!this._heightDim.fixed}get left(){return this.getChildProp("left")}get right(){return this.getChildProp("right")}get top(){return this.getChildProp("top")}get bottom(){return this.getChildProp("bottom")}get row(){return this.getChildProp("row")||0}get col(){return this.getChildProp("col")||0}get equalBlank(){return this.getChildProp("equalBlank")}get blankFields(){return this.getChildProp("blankFields")}get mergedInGroup(){return this.getChildProp("mergedInGroup")}defaultInit(t,e,r,s){this._doDefaultInit(t,e,r,s)}getSaveType(){}getSaveLabel(){return this.getSaveType()}isContextValue(){return this._value&&Me.isValue(this._value)}setChildProp(t,e){if(this._childProps||(this._childProps={}),e!==this._childProps[t]){const r=this._childProps[t];return this.$_setChildProp(t,e),this._changed(t,e,r),!0}}$_setChildProp(t,e){switch(void 0===e?delete this._childProps[t]:this._childProps[t]=e,t){case ms.PROP_LEFT:this._leftDim=D.create(e);break;case ms.PROP_RIGHT:this._rightDim=D.create(e);break;case ms.PROP_TOP:this._topDim=D.create(e);break;case ms.PROP_BOTTOM:this._bottomDim=D.create(e)}}isChildProp(t){if(this._childPropInfos)for(let e of this._childPropInfos)if(e.name==t)return!0}getChildProp(t,e){const r=this._childProps&&this._childProps[t];return void 0===r?e:r}getChildProps(){return Object.keys(this._childProps).sort()}isStyleProp(t){const e=this._getStyleProps();return e&&e.includes(t)}canParentOf(t){return!1}canAddTo(t){return!!t}prepareLayout(t){this._doPrepareLayout(t)}preparePrint(t){this.prepareLayout(!0),this._doPreparePrint(t)}getLeft(t){return this._leftDim?this._leftDim.getPixel(t):NaN}setLeft(t){if(t!==this._leftDim){const e=this._leftDim;this._leftDim=t,this._changed(ms.PROP_LEFT,e,t)}}getRight(t){return this._rightDim?this._rightDim.getPixel(t):NaN}setRight(t){if(t!==this._rightDim){const e=this._rightDim;this._rightDim=t,this._changed(ms.PROP_RIGHT,e,t)}}getTop(t){return this._topDim?this._topDim.getPixel(t):NaN}setTop(t){if(t!==this._topDim){const e=this._topDim;this._topDim=t,this._changed(ms.PROP_TOP,e,t)}}getBottom(t){return this._bottomDim?this._bottomDim.getPixel(t):NaN}setBottom(t){if(t!==this._bottomDim){const e=this._bottomDim;this._bottomDim=t,this._changed(ms.PROP_BOTTOM,e,t)}}getWidth(t){return this._widthDim?this._widthDim.getPixel(t):NaN}getHeight(t){return this._heightDim?this._heightDim.getPixel(t):NaN}getMinWidth(t){return this._minWidthDim?this._minWidthDim.getPixel(t):NaN}getMinHeight(t){return this._minHeightDim?this._minHeightDim.getPixel(t):NaN}canResize(t){return!0}canResizeWidth(){return this.canResize(H.LEFT)}canResizeHeight(){return this.canResize(H.TOP)}resize(t,e){return this.canResizeWidth()&&(this.width=t),this.canResizeHeight()&&(this.height=e),this}hasStyle(t){return this._styles.hasOwnProperty(t)}getStyle(t){return this._styles[t]}setStyle(t,e){const r=this._styles[t];e||(e=void 0),e!==r&&(void 0===e?delete this._styles[t]:this._styles[t]=e,this._changed(t,e,r))}clearStyle(t){if(this._styles.hasOwnProperty(t)){const e=this._styles[t];delete this._styles[t],this._changed(t,void 0,e)}}clearStyles(t){for(let e of this._getStyleProps())t[e]=""}load(t,e){this._doLoad(t,e)}save(t){var e;const r=this.getSaveType();r&&(t.type=r),this._name&&(t.name=this._name);const s=null===(e=this.page)||void 0===e?void 0:e.saveTag;return s&&(t[s]=this),this._doSave(t),this.stylable&&(ot.isEmpty(this._styles)||(this._saveProp(t,"styles"),s&&(t.styles[s]=fs.Shared)),this._saveProp(t,"styleCallback")),ot.isNotEmpty(t)}getFloatingContainer(){return this instanceof bs?this:this._parent instanceof bs?this._parent:void 0}delete(){this._parent&&this._parent.remove(this)}isAncestor(t){let e=this._parent;for(;e;){if(e===t)return!0;e=e._parent}}$_getValue(t,e,r){if(r&&r.indexOf("::")>0)return t.getValue(r,e);if(this._data)return t.getValueAt(this._data,r,e);{const s=this._getParentData();if(s)return t.getValueAt(s,r,e)}}getValue(t,e){var r;const s=null===(r=this.page)||void 0===r?void 0:r.report.data;if(s)return this.$_getValue(s,t,e)}getPrintValue(t,e){return this.$_getValue(t,e,this._value)}_getParentData(){let t=this.dataParent;for(;t;){if(t.data)return t.data;t=t.dataParent}}canRemoveFrom(){return this._parent&&this._parent.canRemove(this)}canAdoptDragSource(t){return!1}adoptDragSource(t){}canPageBreak(){return this.level<=4}isBreakBefore(){return this.canPageBreak()&&(this.pageBreak===U.BEFORE||this.pageBreak==U.BOTH)}isBreakAfter(){return this.canPageBreak()&&(this.pageBreak===U.AFTER||this.pageBreak==U.BOTH)}getInvalids(t){if(this.data){const e=t.designData.get(this.data);if(!e)return['"'+this.data+'" is not a valid data name.'];if(this.value&&e instanceof Ke&&!e.containsField(this.value))return['"'+this.value+'" is not a valid field name.']}}get marqueeParent(){return this}get printable(){return this.visible}isReadOnlyProperty(t){return!("data"!==t.name||!this.dataParent.dataDominant)}_sizable(){return!0}_boundable(){return!0}_doDefaultInit(t,e,r,s){}_getSubStyle(t,e){const r=this.getChildProp(t);return r&&r[e]}_setSubStyle(t,e,r){this._childProps||(this._childProps={}),this._childProps[t]||(this._childProps[t]={});let s=this.getChildProp(t);s||(s={},this.setChildProp(t,s));const A=s[e];r!=A&&(void 0===r?delete s[e]:s[e]=r,this._changed(t,r,A))}_doApplyStyle(t,e,r){return!1}_setLeft(t){this._leftDim=new D(t)}_setRight(t){this._rightDim=new D(t)}_setTop(t){this._topDim=new D(t)}_setBottom(t){this._bottomDim=new D(t)}_getEditProps(){let t=ms.PROPINFOS;return this._sizable()&&(t=t.concat(ms.SIZE_PROPINFOS)),this._valueable()?t=t.concat(ms.VALUE_PROPINFOS):this._datable()&&(t=t.concat(ms.VALUE_PROPINFOS[0])),this._childPropInfos&&(t=t.concat(this._childPropInfos)),t}_getStyleProps(){return[]}_getChildStyleProps(t){return"cellStyles"===t?["cellAlign","backgroundColor","paddingLeft","paddingRight","paddingTop","paddingBottom","borderLeft","borderRight","borderTop","borderBottom"]:[]}_valueable(){return!0}_datable(){return!1}$_attached(t){this._parent!==t&&(this._parent=t,t&&this._doAttached())}_doAttached(){}$_detached(){this._parent&&(this._parent=null,this._doDetached())}_doDetached(){}_isLoading(){const t=this.page;return t&&t.loading}_changed(t,e,r){const s=this.page;s&&!s.loading&&(this._parent&&this._parent.$_childChanged(this,t,e,r),s.$_itemChanged(this,t,e,r))}get stylable(){return!0}_doLoad(t,e){this._loadPropsOf(e,ms.PROPINFOS),this._valueable()?this._loadPropsOf(e,ms.VALUE_PROPINFOS):this._datable()&&this._loadPropOf(e,ms.VALUE_PROPINFOS[0]),this._sizable()&&this._loadPropsOf(e,ms.SIZE_PROPINFOS),this.stylable&&this._loadProps(e,"styles","styleCallback")}_saveChildPropsOf(t,e){const r=this._childProps;if(r)for(let s of e){const e=s.name,A=r[e];void 0===A||"number"==typeof A&&isNaN(A)||A===s.default||(t[e]=A)}}_doSave(t){this._valueable()?this._savePropsOf(t,ms.VALUE_PROPINFOS):this._datable()&&this._savePropOf(t,ms.VALUE_PROPINFOS[0]),this._sizable()&&this._savePropsOf(t,ms.SIZE_PROPINFOS),this._savePropsOf(t,ms.PROPINFOS);const e=this._childPropInfos;e&&e.length>0&&this._saveChildPropsOf(t,e)}_doPrepareLayout(t){}_doPreparePrint(t){}_loadObject(t,e,r){const s=t.getSaveLabel();r.hasOwnProperty(s)&&t.load(e,r[s])}_loadObjects(t,e,r){t.forEach((t=>{this._loadObject(t,e,r)}))}_saveObject(t,e){const r={};t.save(r),ot.isEmpty(r)||(e[t.getSaveLabel()]=r)}_saveObjects(t,e){t.forEach((t=>{this._saveObject(t,e)}))}}ms.DEF_DISPLAY_ORDER=99,ms.PROP_NAME="name",ms.PROP_TAG="tag",ms.PROP_LEFT="left",ms.PROP_RIGHT="right",ms.PROP_TOP="top",ms.PROP_BOTTOM="bottom",ms.PROP_ON_GET_VALUE="onGetValue",ms.PROP_STYLES="styles",ms.PROP_ON_GET_STYLES="onGetStyles",ms.PROP_VISIBLE="visible",ms.PROP_DATA="data",ms.PROP_VALUE="value",ms.PROP_HINT="hint",ms.PROP_WIDTH="width",ms.PROP_HEIGHT="height",ms.PROP_MIN_WIDTH="minWdth",ms.PROP_MIN_HEIGHT="minHeight",ms.PROP_LOCKED="locked",ms.PROP_PAGE_BREAK="pageBreak",ms.PROP_STYLE_CALLBACK="styleCallback",ms.PROPINFOS=[{name:ms.PROP_NAME,category:Ge.BASIC,type:Ze,multiple:!1,default:void 0},{name:ms.PROP_TAG,category:Ge.BASIC,type:Ze,multiple:!1,default:void 0},{name:ms.PROP_VISIBLE,category:Ge.BASIC,type:rr,multiple:!0,default:!0},{name:ms.PROP_PAGE_BREAK,category:Ge.BASIC,type:sr,multiple:!0,default:U.NONE,domain:U,visible:t=>t.canPageBreak()},{name:ms.PROP_ON_GET_VALUE,category:Ge.EVENT,type:nr,multiple:!1,default:void 0,signature:"(ctx/* PrintContext*/, item/*ReportItem*/, row/*Number*/, value/*any*/)/*any*/",visible:t=>t instanceof ms&&!(t instanceof ws)},{name:ms.PROP_ON_GET_STYLES,category:Ge.EVENT,type:nr,multiple:!1,default:void 0,signature:"(ctx/* PrintContext*/, item/*ReportItem*/, row/*Number*/, value/*any*/)/*any*/"}],ms.SIZE_PROPINFOS=[{name:ms.PROP_WIDTH,category:Ge.BOUND,type:er,multiple:!0,default:void 0},{name:ms.PROP_HEIGHT,category:Ge.BOUND,type:er,multiple:!0,default:void 0}],ms.VALUE_PROPINFOS=[{name:ms.PROP_DATA,category:Ge.DATA,type:ir,multiple:!1,default:void 0,domain:void 0},{name:ms.PROP_VALUE,category:Ge.DATA,type:ir,multiple:!1,default:void 0,domain:void 0,validate:(t,e)=>{if(e){if(ot.getEnumValues(gs).indexOf(e)>=0)return;if(t.getData()&&t.getDataFieldNames().indexOf(e)<0)throw'"'+e+'"는(은) 타당한 출력 변수 혹은 데이터 필드명이 아닙니다.'}}}];class ws extends ms{constructor(t){super(t),this._items=[],this.layoutChanged=!1}get outlineExpandable(){return!0}get outlineItems(){return this.items}get isChildPropContainer(){return!0}get count(){return this._items.length}get items(){return this._items.slice()}get designWidth(){return this._designWidth}set designWidth(t){if(t!==this._designWidth){const e=this._designWidth;this._designWidth=t,this._changed(ws.PROP_DESIGN_WIDTH,t,e)}}get designHeight(){return this._designHeight}set designHeight(t){if(t!==this._designHeight){const e=this._designHeight;this._designHeight=t,this._changed(ws.PROP_DESIGN_HEIGHT,t,e)}}get dataDominant(){return!1}get firstChild(){return this._items[0]}get lastChild(){return this._items[this._items.length-1]}get isDataRowContainer(){return!1}needDesignWidth(){return!0}needDesignHeight(){return!0}get(t){return this._items[t]}canContainsBand(){return!1}contains(t){return t instanceof ms&&this._items.includes(t)}indexOf(t){return t instanceof ms&&this._items.indexOf(t)}getNames(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const r=function(t,s){for(let A=t._items.length-1;A>=0;A--){const i=t._items[A];i.name&&s.push(i.name),e&&i instanceof ws&&r(i,s)}};return r(this,t=t||[]),t}find(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const r=this._items;for(let s=r.length-1;s>=0;s--){let A=r[s];if(A.name===t)return A;if(e&&A instanceof ws&&(A=A.find(t,!0),A))return A}}canAdd(t){return t&&this._items.length<this._maxChildCount()&&t.canAddTo(this)&&!this.contains(t)}append(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.add(t,-1,e)}add(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t instanceof ms&&this.canAdd(t)){let s=t.outlineParent;s&&(s instanceof Ps&&(s=s.outlineParent),s instanceof ws&&s.remove(t)),e<0&&(e=this._items.length);const A=this._addItem(t,e,r);return this._doItemAdded(A,e),this.$_resetIndices(),!0}}canRemove(t){return t instanceof ms&&t.removable&&this.contains(t)}remove(t){if(t instanceof ms&&this.canRemove(t)){const e=this._removeItem(t);e>=0&&(this._doItemRemoved(t,e),this.$_resetIndices())}}clear(){this._clearItems()}getMoveType(t){}canResizeChild(t,e){return!0}search(t,e,r){for(let s of this._items)if(s instanceof ws)s.search(t,e,r);else{const A=s.designText;if(A){let i=A;e.caseSensitive||(i=i.toLowerCase()),(e.wholeWord&&i===t||!e.wholeWord&&i.indexOf(t)>=0)&&r.push({item:s,prop:A})}}}canChangeChildProp(t,e,r){return!0}changeChildIndex(t,e){const r=this.indexOf(t);if(r>=0&&r!==e)return this._items.splice(r,1),this._items.splice(e,0,t),this.$_resetIndices(),t._changed("index",e,r),!0}canAlign(t){return!1}canAlignTo(t,e){return!0}filter(t){return this._items.filter(t)}getDescendants(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const r=[];return function r(s,A){s._items.forEach((s=>{s instanceof ws?t&&(A.push(s),e&&r(s,A)):A.push(s)}))}(this,r),r}collectInvalids(t,e){this._items.forEach((r=>{const s=r.getInvalids(t);s&&s.forEach((t=>e.push({item:r,reason:t}))),r instanceof ws&&r.collectInvalids(t,e)}))}collectBlankItems(t){const e=[];return(t||this._items).forEach((t=>{if(t.equalBlank){let r=t.value?[t.value]:[],s=t.blankFields;s&&(r=s.split(",").map((t=>t.trim())).filter((t=>!!t))),r.length&&(e.push(t),t.$_blankFlds=r)}})),e.length>0?e:null}_getEditProps(){return super._getEditProps().concat(ws.PROPINFOS)}_getStyleProps(){return["paddingLeft","paddingRight","paddingTop","paddingBottom"]}_maxChildCount(){return Number.MAX_SAFE_INTEGER}isAncestorOf(t){if(t===this)return!0;if(this.contains(t))return!0;for(let e of this._items)if(e.isAncestorOf(t))return!0}canParentOf(t){return!0}prepareLayout(t){super.prepareLayout(t);for(let e of this._items)e.prepareLayout(t)}preparePrint(t){super.preparePrint(t);for(let e of this._items)e.preparePrint(t)}_getNameOfItems(){return"items"}_doLoad(t,e){super._doLoad(t,e);const r=this._getNameOfItems();!this._ignoreItems()&&e.hasOwnProperty(r)&&this._loadItems(t,e[r])}_ignoreItems(){return!1}save(t){let e=super.save(t);return!this._ignoreItems()&&this._items.length>0&&(this._saveItems(t[this._getNameOfItems()]=[]),e=!0),e}dataNameChanged(t,e){super.dataNameChanged(t,e),this._items.forEach((r=>r.dataNameChanged(t,e)))}get internalItems(){return this._items}_valueable(){return!1}_loadChildProp(t,e,r){r.hasOwnProperty(e)&&t.setChildProp(e,r[e])}_loadChildProps(t,e,r){for(let s of e)r.hasOwnProperty(s)&&t.setChildProp(s,r[s])}_loadChildPropsOf(t,e,r){for(let s of r)if(s.name in e){const r=e[s.name];t.setChildProp(s.name,r)}}_getChildPropInfos(t){return null}_loadChild(t,e,r){return e.load(t,r),this.isChildPropContainer&&(e.childPropInfos=this._getChildPropInfos(e)),this._doLoadChild(e,r),e}_loadItems(t,e){const r=ot.makeArray(e);if(this.clear(),r){const e=this.page,s=[];let A=0;for(let i of r)if(i){let r=t.createItem(i);r&&(r.$_attached(this),r=this._loadChild(t,r,i),!r.parent&&r.$_attached(this),s.push(r),e&&e.$_itemAdded(r,A,!0),this._doItemAdded(r,A++))}s&&s.length>0&&(this._items=s,this.$_resetIndices())}}_doLoadChild(t,e){}_saveItems(t){this._doSaveItems(t,this._items)}_doSaveItems(t,e){for(let r of e){const e={};r.save(e),t.push(e)}}_addItem(t,e,r){const s=this.page,A=this._items;return e=Math.max(0,Math.min(A.length,e)),A.splice(e,0,t),this.isChildPropContainer&&(t.childPropInfos=this._getChildPropInfos(t)),t.$_attached(this),s&&s.$_itemAdded(t,e,r),t}_removeItem(t){const e=t?this._items.indexOf(t):-1;if(e>=0){const r=this.page,s=t.parent;return this._items.splice(e,1),t.$_detached(),r&&r.$_itemRemoved(t,s),e}return-1}_clearItems(){if(this._items.length>0){const t=this.page,e=this._items.slice();this._items=[];for(let t of e)t.$_detached();t&&t.$_itemsRemoved(e)}}_doItemAdded(t,e){}_doItemRemoved(t,e){}$_resetIndices(){for(let t=this._items.length-1;t>=0;t--)this._items[t]._index=t}$_childChanged(t,e,r,s){this._doItemChanged(t,e,r,s)}_doItemChanged(t,e,r,s){}_setOutlineOrders(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),s=1;s<e;s++)r[s-1]=arguments[s];for(let e of r)e.outlineOrder=t++}}ws.PROP_DESIGN_WIDTH="designWidth",ws.PROP_DESIGN_HEIGHT="designHeight",ws.PROPINFOS=[{name:ws.PROP_DESIGN_WIDTH,category:Ge.DESIGN,type:tr,multiple:!1,default:void 0,visible:t=>t.needDesignWidth()},{name:ws.PROP_DESIGN_HEIGHT,category:Ge.DESIGN,type:tr,multiple:!1,default:void 0,visible:t=>t.needDesignHeight()}];class Bs extends _s{constructor(t,e){super(),this._collection=t,e&&this.load(e),this._styles||(this._styles={})}get outlineParent(){return this._collection}get outlineExpandable(){return!1}get outlineLabel(){return"["+this.index+"] "+this.itemType}getSaveType(){return""}canRemoveFrom(){return!0}getPropDomain(t){return null}getStyleProps(){const t=this._getStyleProps(),e=[];for(let r of t)e.push(us[r]);return e}getStyle(t){return this._styles[t]}setStyle(t,e){const r=this._styles[t];e!==r&&(void 0===e?delete this._styles[t]:this._styles[t]=e,this._changed(t,e,r))}getStyleProperty(t){return this._styles[t]}setStyleProperty(t,e){const r=this.page;if(r){this._styles[t]!==e&&r.report.setItemStyle(this,t,e)}else this.setStyle(t,e)}getSubStyleProps(t){return null}getPlaceHolder(t){}setItemsProperty(t,e,r){}getSubStyleProperty(t,e){}isChildProp(t){return!1}setSubStyleProperty(t,e,r){}setItemsSubStyleProperty(t,e,r,s){}canPropAdoptDragSource(t,e){return!1}adoptPropDragSource(t,e){}get styles(){return this._styles}set styles(t){const e=this._styles={};if(t){const r=this._getStyleProps();for(let s of r)s in t&&(e[s]=t[s])}e&&this._arrangePaddingStyles(e)}get collection(){return this._collection}get level(){return this._collection?this._collection.level+1:0}load(t){this._doLoad(t)}save(t){return this._doSave(t),t}_doLoad(t){t.hasOwnProperty("styles")&&(this.styles=t.styles)}_doSave(t){ot.isEmpty(this._styles)||this._saveProp(t,"styles")}_changed(t,e,r){var s;null===(s=this._collection)||void 0===s||s._itemChanged(this,t,e,r)}}class Cs extends _s{canRemoveFrom(){return!1}canParentOf(t){return!1}getEditProps(){return[]}getStyleProps(){return[]}getSubStyleProps(t){return null}getPlaceHolder(t){}getPropDomain(t){return null}getProperty(t){}setProperty(t,e){}setItemsProperty(t,e,r){}getStyleProperty(t){}getStyle(t){}setStyle(t,e){}setStyleProperty(t,e){}setItemsStyleProperty(t,e,r){}isChildProp(t){return!1}getSubStyleProperty(t,e){}setSubStyleProperty(t,e,r){}setItemsSubStyleProperty(t,e,r,s){}canPropAdoptDragSource(t,e){return!1}adoptPropDragSource(t,e){}isCollectionProp(){return!0}getPropertySources(){return this.items}preparePrint(t){this._doPreparePrint(t);for(let e=this.count-1;e>=0;e--){const r=this.get(e);r instanceof ms&&r.preparePrint(t)}}forEach(t){for(let e=0,r=this.count;e<r;e++)t(this.get(e),e)}get styles(){return null}_itemChanged(t,e,r,s){var A;null===(A=this.page)||void 0===A||A.$_itemChanged(t,e,r,s)}_itemAdded(t){const e=this.page;e&&e.$_itemAdded(t,t.index,!1)}_itemsAdded(t){const e=this.page;e&&e.$_itemsAdded(t,t[0].index)}_itemRemoved(t,e){const r=this.page;r&&r.$_itemRemoved(t,e)}_itemsRemoved(t){const e=this.page;e&&e.$_itemsRemoved(t)}_doPreparePrint(t){}}var ys,vs,Es;!function(t){t.CENTER="center",t.LEFT="left",t.RIGHT="right",t.TOP="top",t.BOTTOM="bottom",t.INNER_LEFT="innerLeft",t.INNER_RIGHT="innerRight",t.INNER_TOP="innerTop",t.INNER_BOTTOM="innerBottom"}(ys||(ys={}));class bs extends ws{constructor(t){super(t),this._anchorPosition=ys.CENTER,this.designWidth=80,this.designHeight=80}get anchorTarget(){return this._anchorTarget}set anchorTarget(t){if(t!=this._anchorTarget){const e=this._anchorTarget;this._anchorTarget=t,this._changed(bs.PROP_ANCHOR_TARGET,t,e)}}get anchorPosition(){return this._anchorPosition}set anchorPosition(t){if(t!=this._anchorPosition){const e=this._anchorPosition;this._anchorPosition=t,this._changed(bs.PROP_ANCHOR_POSITION,t,e)}}getSaveType(){return"floating"}get outlineLabel(){return"[Floating]"}_maxChildCount(){return 1}_boundable(){return!1}_getEditProps(){return super._getEditProps().concat(bs.PROPINFOS)}getPropDomain(t){return t.name===bs.PROP_ANCHOR_TARGET?this.outlineParent.getNames([void 0],!0):super.getPropDomain(t)}_doDefaultInit(t,e,r,s){super._doDefaultInit(t,e,r,s),this.width=Math.min(r||100,100),this.height=100}_doLoad(t,e){super._doLoad(t,e),!e.hasOwnProperty("items")&&e.hasOwnProperty("item")&&this._loadItems(t,e.item),this._loadPropsOf(e,bs.PROPINFOS)}_doSave(t){super._doSave(t),this._savePropsOf(t,bs.PROPINFOS)}canAdd(t){return super.canAdd(t)&&!(t instanceof bs)}}bs.PROP_ANCHOR_TARGET="anchorTarget",bs.PROP_ANCHOR_POSITION="anchorPosition",bs.PROPINFOS=[{name:bs.PROP_ANCHOR_TARGET,category:"Floating",type:Ar,multiple:!1,default:void 0},{name:bs.PROP_ANCHOR_POSITION,category:"Floating",type:sr,multiple:!1,default:ys.CENTER,domain:ys}],bs.$_ctor="FloatingContainer",bs.ITEM_TYPE="Floating Container";class xs extends ws{constructor(t){super(t)}_getChildPropInfos(t){return t._boundable()?xs.CHILD_PROPS:null}_doLoadChild(t,e){super._doLoadChild(t,e),this._loadChildPropsOf(t,e,xs.CHILD_PROPS)}}xs.CHILD_PROPS=[{name:ms.PROP_LEFT,category:Ge.BOUND,type:tr,multiple:!0,default:void 0,domain:void 0},{name:ms.PROP_RIGHT,category:Ge.BOUND,type:tr,multiple:!0,default:void 0,domain:void 0},{name:ms.PROP_TOP,category:Ge.BOUND,type:tr,multiple:!0,default:void 0,domain:void 0},{name:ms.PROP_BOTTOM,category:Ge.BOUND,type:tr,multiple:!0,default:void 0,domain:void 0}];class Ps extends ws{constructor(t,e){super(e),at(!!t),this._addItem(this._item=t,0,!0)}get item(){return this._item}get isChildPropContainer(){return!1}set childPropInfos(t){this._item.childPropInfos=t}get printable(){return!this._item||this._item.printable}_maxChildCount(){return 1}_doItemChanged(t,e,r,s){this.outlineParent._doItemChanged(t,e,r,s)}}class Is extends ws{constructor(t){super(t),this.noPrepareCell=!1}contains(t){if(super.contains(t))return!0;if(!(t instanceof Ps))for(let e of this._items)if(e.item===t)return!0}indexOf(t){let e=super.indexOf(t);if(e<=0&&!(t instanceof Ps)){const r=this._items;for(let s=r.length-1;s>=0;s--)if(r[s].item===t){e=s;break}}return e}findCell(t){for(let e of this.internalItems)if(e.item===t)return e}find(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const r=this.internalItems;for(let s=r.length-1;s>=0;s--){let A=r[s].item;if(A.name===t)return A;if(e&&A instanceof ws&&(A=A.find(t,!0),A))return A}}_loadChild(t,e,r){return super._loadChild(t,e,r),this.noPrepareCell||(e=this._prepareCellGroup(e)),e}_addItem(t,e,r){return t=this._prepareCellGroup(t),super._addItem(t,e,r)}_removeItem(t){const e=this._unprepareCellGroup(t);if(e){let r=super._removeItem(e);if(r>=0&&t.outlineParent===e)return e._removeItem(t),r}return-1}_unprepareCellGroup(t){return this.findCell(t)}}!function(t){t.ACROSS_DOWN="acrossDown",t.DOWN_ACROSS="downAcross"}(vs||(vs={}));class Ss{constructor(t,e){this.name=t,this.data=e,e&&this._parsetData(e)}get isGroup(){return!1}save(t){return(t=t||{}).name=this.name,this._doSave(t),t}_parsetData(t){}_doSave(t){}}class Ts extends Ss{_doSave(t){t.type="img",t.data=this.data,t.description=this.description}}class Fs extends Ss{_doSave(t){t.type="svg",t.data=this.data,t.description=this.description}}class Rs extends Ss{_parsetData(t){}_doSave(t){}}class Os extends Ss{_parsetData(t){this.theme=JSON.parse(t)}_doSave(t){t.type="charitst",t.theme=JSON.stringify(this.theme)}}class Qs extends Ss{_parsetData(t){this.theme=JSON.parse(t)}_doSave(t){t.type="highchart",t.theme=JSON.stringify(this.theme)}}class Ds extends Ss{constructor(t){super(t,void 0),this.items=[]}get count(){return this.items.length}get(t){for(let e of this.items)if(e.name==t)return e}save(t){for(let e of this.items)if(!(e instanceof Ds)){let r={};e.save(r),ot.isNotEmpty(r)&&t.push(r)}}indexOf(t){return this.items.indexOf(t)}get isGroup(){return!0}$_findItem(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=t.indexOf("/");r<0&&(r=t.indexOf("\\"));let s=r>=0?t.substring(0,r):t;for(let A of this.items)if(A.name==s)return!e||A instanceof Ds?r>=0&&r<t.length-1&&A instanceof Ds?A.$_findItem(t.substr(r+1)):A:this}}class Ls extends E{constructor(){super(),this._nameMap={},this._root=new Ds("_root_"),this._root.path="/"}_doDispose(){super._doDispose()}get root(){return this._root}load(t){for(let e in t){const r=this.forceGroup(e),s=t[e];for(let t of s)if(t.name&&t.type&&t.data){let e;switch(t.type){case"img":e=this.$_addImage(r,t.name,t.data);break;case"svg":e=this.$_addSvg(r,t.name,t.data);break;case"palette":e=this.$_addPalette(r,t.name,t.data);break;case"chartist":e=this.$_addChartist(r,t.name,t.data);break;case"highchart":e=this.$_addHighchart(r,t.name,t.data)}t.hasOwnProperty("description")&&(e.description=t.description)}}}$_collectGroups(t,e){e.push(t);for(let r of t.items)r instanceof Ds&&this.$_collectGroups(r,e)}save(t){const e=[];this.$_collectGroups(this._root,e);for(let r of e){let e=[];r.save(e),t[r.path]=e||[]}}$_checkPath(t){return!t||"/"!=t.charAt(0)&&"\\"!=t.charAt(0)||(t=t.substr(1)),t}get(t){return this._nameMap[t]}getImage(t){const e=this._nameMap[t];if(e instanceof Ts)return e.data}getSvg(t){const e=this._nameMap[t];if(e instanceof Fs)return e.data}getPalette(t){const e=this._nameMap[t];if(e instanceof Rs)return e}getChartist(t){const e=this._nameMap[t];if(e instanceof Os)return e}getHighchart(t){const e=this._nameMap[t];if(e instanceof Qs)return e}findGroup(t){return this.$_findGroup(t)}forceGroup(t){let e=this._root;if(t=this.$_checkPath(t)){const r=t.split(/[\/\\]/);for(let t of r){const r=e.get(t);if(r)r instanceof Ds&&(e=r);else{const r=new Ds(t);r.path=e.path+(e===this._root?"":"/")+t,r.parent=e,e.items.push(r),e=r}}}return e}addGroup(t,e){const r="string"==typeof t?this.$_findGroup(t):t;return this.$_addGroup(r||this._root,e)}removeGroup(t){const e="string"==typeof t?this.$_findGroup(t):t;if(e&&e!==this._root)return this.$_removeGroup(e),!0}add(t,e){e&&this.$_addItem(t,e)}remove(t){t&&this.$_removeItem(t)}addImage(t,e,r){return this.$_addImage(t,e,r)}addSvg(t,e,r){return this.$_addSvg(t,e,r)}addPalette(t,e,r){return this.$_addPalette(t,e,r)}addCharitst(t,e,r){return this.$_addChartist(t,e,r)}addHighchart(t,e,r){return this.$_addHighchart(t,e,r)}getTree(){const t={name:arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Report",editable:!1,tag:this._root};return this.$_parseTree(this._root,t),t}$_parseTree(t,e){if(t.count>0){const r=[];for(let e of t.items)if(e instanceof Ds){const t={name:e.name,tag:e,type:"report-asset-group"};this.$_parseTree(e,t),r.push(t)}r.length>0&&(e.children=r)}}getValidName(t){let e=t,r=1;for(;;){let s=!1;for(let A in this._nameMap)if(e===A){e=t+"-"+r++,s=!0;break}if(!s)break}return e}isValidName(t){return!this._nameMap[t]}$_findGroup(t){let e=t?this._root.$_findItem(t):this._root;return e instanceof Ds?e:null}$_addGroup(t,e){const r=new Ds(e);return r.parent=t,r.path=t.path+(t===this._root?"":"/")+r.name,t.items.push(r),r}$_removeGroup(t){const e=t.parent;e.items.splice(e.items.indexOf(t),1),t.parent=null}$_addItem(t,e){if(e.name in this._nameMap)throw new Error("An asset with the same name alyread exisits: "+e.name);const r=("string"==typeof t?this.$_findGroup(t):t)||this._root;r.items.push(e),e.parent=r,this._nameMap[e.name]=e}$_removeItem(t){const e=t.parent,r=e.items.indexOf(t);r>=0&&(e.items.splice(r,1),delete this._nameMap[t.name])}$_addImage(t,e,r){const s=new Ts(e,r);return this.$_addItem(t,s),s}$_addSvg(t,e,r){const s=new Fs(e,r);return this.$_addItem(t,s),s}$_addPalette(t,e,r){const s=new Rs(e,r);return this.$_addItem(t,s),s}$_addChartist(t,e,r){const s=new Os(e,r);return this.$_addItem(t,s),s}$_addHighchart(t,e,r){const s=new Qs(e,r);return this.$_addItem(t,s),s}}class Us extends xs{constructor(t){super(t)}get outlineLabel(){return"[Stack]"}getSaveType(){return"stack"}_datable(){return!0}_doDefaultInit(t,e,r,s){super._doDefaultInit(t,e,r,s),this.width=Math.min(r||300,300),this.height=100}_getStyleProps(){return Us.STYLE_PROPS}canAlign(t){return!0}canAdoptDragSource(t){return t instanceof Ts}getMoveType(t){return ps.INNER}}Us.$_ctor="StackContainer",Us.ITEM_TYPE="Stack Container",Us.STYLE_PROPS=["fontFamily","fontSize","fontWeight","color","backgroundColor","paddingLeft","paddingTop","paddingRight","paddingBottom","border","borderLeft","borderRight","borderTop","borderBottom"];class Hs extends Us{constructor(t){super(t)}get removable(){return!1}get page(){return this.outlineParent}canMove(){return!1}getSaveType(){}canResize(t){return t===H.TOP||t===H.BOTTOM}_getStyleProps(){const t=super._getStyleProps();return[].concat(t)}}class Ns extends Hs{constructor(t){super(t)}get spaceTop(){return this._spaceTop}set spaceTop(t){(t=Math.max(0,t))!=this._spaceTop&&(this._spaceTop=t,this._changed(Ns.PROP_SPACE_TOP,t,!t))}get spaceBottom(){return this._spaceBottom}set spaceBottom(t){(t=Math.max(0,t))!=this._spaceBottom&&(this._spaceBottom=t,this._changed(Ns.PROP_SPACE_BOTTOM,t,!t))}_doLoad(t,e){super._doLoad(t,e),this._loadPropsOf(e,Ns.PROPINFOS)}_doSave(t){super._doSave(t),this._savePropsOf(t,Ns.PROPINFOS)}_getEditProps(){return super._getEditProps().concat(Ns.PROPINFOS)}}Ns.PROP_SPACE_TOP="spaceTop",Ns.PROP_SPACE_BOTTOM="spaceBottom",Ns.PROPINFOS=[{name:Ns.PROP_SPACE_TOP,category:"Section",type:qe,multiple:!1,default:void 0},{name:Ns.PROP_SPACE_BOTTOM,category:"Section",type:qe,multiple:!1,default:void 0}];class Ms extends Ns{constructor(){super("reportHeader"),this.designHeight=20}get outlineLabel(){return"Report Header"}get pathLabel(){return"reportHeader"}canResize(t){return t===H.BOTTOM}}Ms.$_ctor="ReportHeader";class ks extends Ns{constructor(){super("reportFooter"),this._alignToBottom=!1,this.designHeight=20}get alignToBottom(){return this._alignToBottom}set alignToBottom(t){t!=this._alignToBottom&&(this._alignToBottom=t,this._changed(ks.PROP_ALIGN_TO_BOTTOM,t,!t))}get outlineLabel(){return"Report Footer"}get pathLabel(){return"reportFooter"}canResize(t){return t===H.TOP}_getEditProps(){return super._getEditProps().concat(ks.PROPINFOS)}_doLoad(t,e){super._doLoad(t,e),this._loadPropsOf(e,ks.PROPINFOS)}_doSave(t){super._doSave(t),this._savePropsOf(t,ks.PROPINFOS)}}ks.PROP_ALIGN_TO_BOTTOM="alignToBottom",ks.PROPINFOS=[{name:ks.PROP_ALIGN_TO_BOTTOM,category:Ge.BOUND,type:rr,multiple:!0,default:!1,domain:void 0}],ks.$_ctor="ReportFooter";class Vs extends Ns{constructor(){super("pageHeader"),this.designHeight=20}get outlineLabel(){return"Page Header"}get pathLabel(){return"pageHeader"}canResize(t){return t===H.BOTTOM}}Vs.$_ctor="PageHeader";class Gs extends Ns{constructor(){super("pageFooter"),this.designHeight=20}get outlineLabel(){return"Page Footer"}get pathLabel(){return"pageFooter"}canResize(t){return t===H.TOP}}Gs.$_ctor="PageFooter";class Ks extends xs{constructor(t,e){super(t),this._label=e}get outlineLabel(){return this._label}get isArray(){return!0}canResize(t){return!1}_doLoad(t,e){this._loadItems(t,e)}_doSave(t){this._saveItems(t)}}Ks.$_ctor="PageItemContainer";class Ws extends ms{constructor(t){super(t),this._wrap=!1,this._booleanFormat="False:True",this._numberFormat="#,##0",this._dateFormat="yyyy.MM.dd"}get wrap(){return this._wrap}set wrap(t){t!=this._wrap&&(this._wrap=t,this._changed(zs.PROP_WRAP,t,!t))}get booleanFormat(){return this._booleanFormat}set booleanFormat(t){if(t!=this._booleanFormat){const e=this._booleanFormat;this._booleanFormat=t,this._changed(zs.PROP_BOOLEAN_FORMAT,t,e)}}get numberFormat(){return this._numberFormat}set numberFormat(t){if(t!=this._numberFormat){const e=this._numberFormat;this._numberFormat=t,this._changed(zs.PROP_NUMBER_FORMAT,t,e)}}get dateFormat(){return this._dateFormat}set dateFormat(t){if(t!=this._dateFormat){const e=this._dateFormat;this._dateFormat=t,this._changed(zs.PROP_DATE_FORMAT,t,e)}}get textFormat(){return this._textFormat}set textFormat(t){if(t!=this._textFormat){const e=this._textFormat;this._textFormat=t,this._changed(zs.PROP_TEXT_FORMAT,t,e)}}get prefix(){return this._prefix}set prefix(t){if(t!=this._prefix){const e=this._prefix;this._prefix=t,this._changed(zs.PROP_TEXT_PREFIX,t,e)}}get suffix(){return this._suffix}set suffix(t){if(t!=this._suffix){const e=this._suffix;this._suffix=t,this._changed(zs.PROP_TEXT_SUFFIX,t,e)}}_getEditProps(){return super._getEditProps().concat(Ws.PROPINFOS)}_getStyleProps(){return Ws.STYLE_PROPS}_doLoad(t,e){super._doLoad(t,e),this._loadPropsOf(e,Ws.PROPINFOS)}_doSave(t){super._doSave(t),this._savePropsOf(t,Ws.PROPINFOS)}_doApplyStyle(t,e,r){return"verticalAlign"===t||"scale"==t&&(r[t="transform"]="scale("+e+")",!0)}canAdoptDragSource(t){return t instanceof He}adoptDragSource(t){if(t instanceof He)return{type:ds.PROP,prop:"value",value:t.data+"::"+t.path}}canPropAdoptDragSource(t,e){return"value"===t.name&&e instanceof He}adoptPropDragSource(t,e){if("value"===t.name&&e instanceof He)return{type:ds.PROP,prop:"value",value:e.data+"::"+e.path}}getPrintValue(t,e){return this.isContextValue()?t.getContextValue(this.value):super.getPrintValue(t,e)}}Ws.PROP_WRAP="wrap",Ws.PROP_BOOLEAN_FORMAT="booleanFormat",Ws.PROP_NUMBER_FORMAT="numberFormat",Ws.PROP_DATE_FORMAT="dateFormat",Ws.PROP_TEXT_FORMAT="textFormat",Ws.PROP_TEXT_PREFIX="prefix",Ws.PROP_TEXT_SUFFIX="suffix",Ws.PROPINFOS=[{name:Ws.PROP_WRAP,category:Ge.TEXT,type:rr,multiple:!0,default:!1,domain:void 0},{name:Ws.PROP_BOOLEAN_FORMAT,category:Ge.TEXT,type:Ze,multiple:!0,default:"False:True"},{name:Ws.PROP_NUMBER_FORMAT,category:Ge.TEXT,type:Ze,multiple:!0,default:"#,##0"},{name:Ws.PROP_DATE_FORMAT,category:Ge.TEXT,type:Ze,multiple:!0,default:"yyyy.MM.dd"},{name:Ws.PROP_TEXT_FORMAT,category:Ge.TEXT,type:Ze,multiple:!0,default:void 0},{name:Ws.PROP_TEXT_PREFIX,category:Ge.TEXT,type:Ze,multiple:!0,default:void 0},{name:Ws.PROP_TEXT_SUFFIX,category:Ge.TEXT,type:Ze,multiple:!0,default:void 0}],Ws.STYLE_PROPS=["fontFamily","fontSize","fontStyle","textDecoration","fontWeight","color","backgroundColor","textAlign","verticalAlign",,"writingMode","scale","paddingLeft","paddingTop","paddingRight","paddingBottom","border","borderLeft","borderRight","borderTop","borderBottom"];class zs extends Ws{constructor(t,e){super(t),this._multiLine=!1,this._lineGap=0,this._contextValueCallbackDelegate=t=>this._contextValueCallbackFunc(t),e&&(this.text=e)}get multiLine(){return this._multiLine}set multiLine(t){t!==this._multiLine&&(this._multiLine=t,this._changed(zs.PROP_MULTI_LINE,t,!t))}get lineGap(){return this._lineGap}set lineGap(t){if(t!==this._lineGap){const e=this._lineGap;this._lineGap=t,this._changed(zs.PROP_MULTI_LINE,t,e)}}get text(){return this._text}set text(t){if(t!=this._text){const e=this._text;this._text=t,this._changed(zs.PROP_TEXT,t,e)}}get onGetContextValue(){return this._onGetContextValue}set onGetContextValue(t){if(t!==this._onGetContextValue){t?(this._contextValueCallbackFunc=new Function("ctx",t),this._contextValueCallback=this._contextValueCallbackDelegate):this._contextValueCallback===this._contextValueCallbackDelegate&&(this._contextValueCallback=null);const e=this._onGetContextValue;this._onGetContextValue=t,this._changed(zs.PROP_ON_GET_CONTEXT_VALUE,t,e)}}get contextValueCallback(){return this._contextValueCallback}set contextValueCallback(t){if(t!==this._contextValueCallback){const e=this._contextValueCallback;this._contextValueCallback=t,this._changed(zs.PROP_ON_GET_CONTEXT_VALUE,t,e)}}getSaveType(){return"text"}get outlineLabel(){const t=this.value?"["+this.value+"]":this._text;return"[Text]"+(t?" "+t:"")}get designText(){return this.value||this._text}get pathLabel(){return"text"}isContextValue(){return!!this._contextValueCallback||super.isContextValue()}_getEditProps(){return super._getEditProps().concat(zs.PROPINFOS)}_doDefaultInit(t,e,r,s){super._doDefaultInit(t,e,r,s),this.text="Text"}_doLoad(t,e){super._doLoad(t,e),this._loadPropsOf(e,zs.PROPINFOS)}_doSave(t){super._doSave(t),this._savePropsOf(t,zs.PROPINFOS)}}zs.PROP_MULTI_LINE="multiLine",zs.PROP_LINE_GAP="lineGap",zs.PROP_TEXT="text",zs.PROP_ON_GET_CONTEXT_VALUE="onGetContextValue",zs.PROPINFOS=[{name:zs.PROP_MULTI_LINE,category:Ge.TEXT,type:rr,multiple:!0,default:!1},{name:zs.PROP_LINE_GAP,category:Ge.TEXT,type:qe,multiple:!0,default:0},{name:zs.PROP_TEXT,category:Ge.TEXT,type:Ze,multiple:!1,default:void 0},{name:zs.PROP_ON_GET_CONTEXT_VALUE,category:Ge.EVENT,type:nr,multiple:!1,default:void 0,signature:"(ctx/*PrintContext*/)/*any*/"}],zs.$_ctor="TextItem",zs.ITEM_TYPE="Text";class Xs extends ms{constructor(t){super(t),this.size=10}get size(){return this._size}set size(t){if((t=this._validateSize(t))!=this._size){const e=this._size;this._size=t,this._sizeDim=new D(t),this._changed(Xs.PROP_SIZE,t,e)}}getSize(t){return this._sizeDim.getPixel(t)}getSaveType(){return"space"}get outlineLabel(){return this.$_getParentItem(),"[Space] "+this.size}_sizable(){return!1}_boundable(){return!1}_getEditProps(){return super._getEditProps().concat(Xs.PROPINFOS)}_doDefaultInit(t,e,r,s){super._doDefaultInit(t,e,r,s),this.size=10}_doLoad(t,e){super._doLoad(t,e),this._loadPropsOf(e,Xs.PROPINFOS)}_doSave(t){super._doSave(t),this._savePropsOf(t,Xs.PROPINFOS)}canAddTo(t){return t instanceof Js}$_getParentItem(){let t=this.outlineParent;for(;t;){if(t instanceof Js)return t;t=t.outlineParent}}}Xs.PROP_SIZE="size",Xs.PROPINFOS=[{name:Xs.PROP_SIZE,category:Ge.BOUND,type:tr,multiple:!1,default:void 0}],Xs.$_ctor="SpaceItem",Xs.ITEM_TYPE="Space",function(t){t.START="start",t.MIDDLE="middle",t.END="end"}(Es||(Es={}));class Js extends ws{constructor(t){super(t),this.itemGap=4}get itemsAlign(){return this._itemsAlign}set itemsAlign(t){if(t!==this._itemsAlign){const e=this._itemsAlign;this._itemsAlign=t,this._changed(Js.PROP_ITEMS_ALIGN,t,e)}}get itemGap(){return this._itemGap}set itemGap(t){if(ot.isNotDefined(t)&&(t=0),t!=this._itemGap){const e=this._itemGap;this._itemGap=t,this._itemGapDim=ot.isEmpty(t)?null:new D(t),this._changed(Js.PROP_ITEM_GAP,t,e)}}getItemGap(t){return this._itemGapDim?this._itemGapDim.getPixel(t):0}loadProps(t){this._loadPropsOf(t,Js.PROPINFOS)}_getEditProps(){return super._getEditProps().concat(Js.PROPINFOS)}_datable(){return!0}_getStyleProps(){return Js.STYLE_PROPS}_doLoad(t,e){super._doLoad(t,e),this._loadPropsOf(e,Js.PROPINFOS)}_doSave(t){super._doSave(t),this._savePropsOf(t,Js.PROPINFOS)}canAlign(t){return!0}canAdoptDragSource(t){return t instanceof Ts}}Js.PROP_ITEMS_ALIGN="itemsAlign",Js.PROP_ITEM_GAP="itemGap",Js.PROPINFOS=[{name:Js.PROP_ITEMS_ALIGN,category:Ge.BOX,type:sr,multiple:!1,default:void 0,domain:Es},{name:Js.PROP_ITEM_GAP,category:Ge.BOX,type:tr,multiple:!1,default:void 0}],Js.STYLE_PROPS=["fontFamily","fontSize","fontWeight","color","backgroundColor","paddingLeft","paddingTop","paddingRight","paddingBottom","border","borderLeft","borderRight","borderTop","borderBottom"];class Ys extends Js{constructor(t){super(t),this._child_top=NaN,this._child_bottom=NaN,this.designHeight=50,this.designWidth=300}getTopOf(t){return t.getChildProp(ms.PROP_TOP,this._child_top)}setTopOf(t,e){t.setChildProp(ms.PROP_TOP,e)}getBottomOf(t){return t.getChildProp(ms.PROP_BOTTOM,this._child_bottom)}setBottomOf(t,e){t.setChildProp(ms.PROP_BOTTOM,e)}getSaveType(){return"rbox"}get outlineLabel(){return"[Row Box]"}_getChildPropInfos(t){return t._boundable()?Ys.CHILD_PROPS:null}_doDefaultInit(t,e,r,s){super._doDefaultInit(t,e,r,s),this.width=Math.min(r||300,300),this.height=50}_doLoadChild(t,e){super._doLoadChild(t,e),this._loadChildPropsOf(t,e,Ys.CHILD_PROPS)}canAlignTo(t,e){return"top"===e||"bottom"===e}canResizeChild(t,e){return t instanceof Xs?e===H.RIGHT:H.isIn(e,H.RIGHT,H.TOP,H.BOTTOM,H.TOP_RIGHT,H.BOTTOM_RIGHT)}}Ys.CHILD_PROPS=[{name:ms.PROP_TOP,category:Ge.BOUND,type:tr,multiple:!0,default:void 0,domain:void 0},{name:ms.PROP_BOTTOM,category:Ge.BOUND,type:tr,multiple:!0,default:void 0,domain:void 0}],Ys.$_ctor="RowBoxContainer",Ys.ITEM_TYPE="Row Box";class $s extends Js{constructor(t){super(t),this._child_left=NaN,this._child_right=NaN,this.designWidth=100,this.designHeight=100}getLeftOf(t){return t.getChildProp(ms.PROP_LEFT,this._child_left)}setLeftOf(t,e){t.setChildProp(ms.PROP_LEFT,e)}getRightOf(t){return t.getChildProp(ms.PROP_RIGHT,this._child_right)}setRightOf(t,e){t.setChildProp(ms.PROP_RIGHT,e)}getSaveType(){return"cbox"}get outlineLabel(){return"[Column Box]"}get pathLabel(){return"cbox"}_getChildPropInfos(t){return t._boundable()?$s.CHILD_PROPS:null}_doDefaultInit(t,e,r,s){super._doDefaultInit(t,e,r,s),this.width=Math.min(r||100,100),this.height=100}_doLoadChild(t,e){super._doLoadChild(t,e),this._loadChildPropsOf(t,e,$s.CHILD_PROPS)}canAlignTo(t,e){return"left"===e||"right"===e}canResizeChild(t,e){return t instanceof Xs?e===H.BOTTOM:H.isIn(e,H.BOTTOM,H.LEFT,H.RIGHT,H.BOTTOM_LEFT,H.BOTTOM_RIGHT)}}$s.CHILD_PROPS=[{name:ms.PROP_LEFT,category:Ge.BOUND,type:tr,multiple:!0,default:void 0,domain:void 0},{name:ms.PROP_RIGHT,category:Ge.BOUND,type:tr,multiple:!0,default:void 0,domain:void 0}],$s.$_ctor="ColumnBoxContainer",$s.ITEM_TYPE="Column Box";class js extends ws{constructor(t){super(t),this._reversed=!1,this._lineStyles={},this.designWidth=60,this.designHeight=60}getSubStyleProps(t){if(t===js.PROP_LINE_STYLES){const e=[];for(let r of js.LINE_STYLE_PROPS){const s={...us[r]};s.parent=t,e.push(s)}return e}return super.getSubStyleProps(t)}_getSubStyle(t,e){return t===js.PROP_LINE_STYLES?this._lineStyles[e]:super._getSubStyle(t,e)}_setSubStyle(t,e,r){if(t===js.PROP_LINE_STYLES){const s=this._lineStyles[e];this._lineStyles[e]=r,this._changed(t,r,s)}else super._setSubStyle(t,e,r)}get reversed(){return this._reversed}set reversed(t){t!==this._reversed&&(this._reversed=t,this._changed(js.PROP_REVERSED,t,!t))}get lineStyles(){return this._lineStyles}set lineStyles(t){const e=this._lineStyles={};if(t){const r=js.LINE_STYLE_PROPS;for(let s of r)s in t&&(e[s]=t[s])}}get firstItem(){return this._firstItem}get secondItem(){return this._secondItem}getSaveType(){return"dbox"}get outlineLabel(){return"[Diagonal Box]"}_getEditProps(){return super._getEditProps().concat(js.PROPINFOS)}_datable(){return!0}_getStyleProps(){return js.STYLE_PROPS}_maxChildCount(){return 2}_doDefaultInit(t,e,r,s){super._doDefaultInit(t,e,r,s),this.width=60,this.height=45,this.add(new zs(null,"Text1")),this.add(new zs(null,"Text2"))}_doLoad(t,e){this._firstItem=this._secondItem=null,super._doLoad(t,e),this._loadPropsOf(e,js.PROPINFOS);const r=e.dpos;if(!isNaN(r))switch(r){case 1:this._firstItem=this.get(0),this._secondItem=null;break;case 2:this._firstItem=null,this._secondItem=this.get(0);break;case 3:this._firstItem=this.get(0),this._secondItem=this.get(1)}}_doSave(t){super._doSave(t),this._savePropsOf(t,js.PROPINFOS);let e=0;this._firstItem&&(e+=1),this._secondItem&&(e+=2),t.dpos=e}_doItemAdded(t,e){super._doItemAdded(t,e),this._firstItem?this._secondItem||(this._secondItem=t):this._firstItem=t}_doItemRemoved(t,e){super._doItemRemoved(t,e),t===this._firstItem?this._firstItem=null:t===this._secondItem&&(this._secondItem=null)}canAlign(t){return!0}}js.PROP_REVERSED="reversed",js.PROP_LINE_STYLES="lineStyles",js.PROPINFOS=[{name:js.PROP_REVERSED,category:Ge.BOX,type:rr,multiple:!0,default:!1},{name:js.PROP_LINE_STYLES,category:Ge.BASIC,type:je,multiple:!1,default:void 0}],js.STYLE_PROPS=["fontFamily","fontSize","fontWeight","color","backgroundColor","paddingLeft","paddingTop","paddingRight","paddingBottom","border","borderLeft","borderRight","borderTop","borderBottom"],js.LINE_STYLE_PROPS=["borderTop"],js.$_ctor="DiagonalBoxContainer",js.ITEM_TYPE="Diagonal Box";class Zs extends Error{constructor(t){super(t)}}class qs extends Zs{}class tA extends v{constructor(t){super(),this._id=-1,this._time=new Date,this._name=t}_doDispose(){}get name(){return this._name}get id(){return this._id}get time(){return this._time}get displayLabel(){return this._name}get description(){return this._name}run(){return this.redo(!1)}}class eA extends tA{constructor(t,e){super(t),at(e&&e.length>0),this._commands=e.slice()}_doDispose(){for(let t of this._commands)t.dispose();this._commands=null,super._doDispose()}get commands(){return this._commands.slice()}undo(){for(let t=0;t<this._commands.length;t++)this._commands[t].undo()}redo(t){for(let e=this._commands.length-1;e>=0;e--)this._commands[e].redo(t)}get source(){return this._commands[0].source}}class rA extends E{constructor(t){super(),this._commands=[],this._current=-1,this._closed=-1,this._undoing=!1,this._redoing=!1,this._owner=t}_doDispose(){this._owner=null,this._commands=null,super._doDispose()}get owner(){return this._owner}get length(){return this._commands.length}get current(){return this._current}get empty(){return 0===this._commands.length}get canUndo(){return this._current>=0}get canRedo(){return this._commands.length>this._current+1}get undoing(){return this._undoing}get redoing(){return this._redoing}get dirty(){return this._closed!==this._current}get(t){return this._commands[t]}undo(){if(this.canUndo){const t=this._commands[this._current];this._undoing=!0;try{t.undo()}finally{this._undoing=!1}const e=this._current;return this._current=this._current-1,this._changed(e,t),!0}}redo(){if(this.canRedo){const t=this._current+1,e=this._commands[t];this._redoing=!0;try{e.redo(!0)}finally{this._redoing=!1}const r=this._current;return this._current=t,this._changed(r,e),!0}}execute(t){if(t)try{t.run();const e=this._current;return this._current++,this._commands[this._current]=t,t._id=this._current,this.$_shrink(this._current+1),this._changed(e,t),!0}catch(t){if(!(t instanceof qs))throw t}}flush(){let t=this._commands.length;if(t>0){for(;t--;)this._commands[t].dispose();this._commands=[];const e=this._current;this._current=-1,this._changed(e,null)}}close(){this._closed=this._current}getHistory(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._commands.slice(0,t?void 0:this._current+1)}_changed(t,e){const r=this._owner;r&&r.editCommandStackChanged(this,e,this.canUndo,this.canRedo),(this._current<0||t<0)&&r&&r.editCommandStackDirtyChanged(this)}$_shrink(t){const e=this._commands;if(t>=0&&t<e.length){for(let r=e.length-1;r>=t;r--)e[r].dispose();e.splice(t,e.length-t)}}}class sA{}sA.E_TABLE_MOVE_MERGE_CELLS="병합된 셀의 일부를 이동할 수 없습니다.",sA.E_TABLE_MOVE_TARGET_MERGE_CELLS="병합된 셀의 중간으로 이동할 수 없습니다.";class AA extends Ps{constructor(t){super(t,null)}get table(){return this.parent}get col(){const t=this.item.getChildProp(lA.PROP_TABLE_COL);return isNaN(t)?0:t}get row(){const t=this.item.getChildProp(lA.PROP_TABLE_ROW);return isNaN(t)?0:t}canChangeChildProp(t,e,r){return this.parent.canChangeChildProp(t,e,r)}}class iA extends Bs{constructor(t,e){super(t,e),this._index=-1}getEditProps(){return iA.PROPINFOS}getCollectionLabel(){return"tableRow"}get table(){return this.collection.table}get index(){return this._index}get height(){return this._height}set height(t){if("string"==typeof t&&(t=t.trim()),t!=this._height){const e=this._height;this._height=t,this._heightDim=new D(t),this._changed(iA.PROP_HEIGHT,t,e)}}getHeight(t){return this._heightDim?this._heightDim.getPixel(t):NaN}get itemType(){return"Row"}get page(){var t;return null===(t=this.collection)||void 0===t?void 0:t.table.page}get displayPath(){return this.collection?this.collection.table.displayPath+".rows["+this.index+"]":"row"}get collection(){return super.collection}get marqueeParent(){var t;return null===(t=this.collection)||void 0===t?void 0:t.marqueeParent}get level(){return this.collection?this.collection.level+1:0}isAncestor(t){return t===this.collection.table}canRemoveFrom(){return this.collection&&this.collection.count>1}canSelectedWith(t){return t instanceof iA&&t.table===this.table}_getStyleProps(){return iA.styleProps}_doLoad(t){"string"==typeof t||"number"==typeof t?this.height=t:t&&this._loadPropsOf(t,iA.PROPINFOS),super._doLoad(t)}_doSave(t){return this._savePropsOf(t,iA.PROPINFOS),super._doSave(t),t}}iA.PROP_HEIGHT="height",iA.styleProps=["backgroundColor"],iA.PROPINFOS=[{name:iA.PROP_HEIGHT,category:Ge.ROW,type:tr,multiple:!1,default:void 0}];class nA extends Cs{constructor(t){super(),this._rows=[],this._table=t}get outlineParent(){return this._table}get outlineLabel(){return"[Rows]"}get outlineExpandable(){return!0}get outlineItems(){return this._rows.forEach(((t,e)=>t.outlineOrder=e)),this._rows}getSaveType(){return"rows"}get table(){return this._table}get count(){return this._rows.length}set count(t){const e=this._rows.length;if((t=Math.max(0,ot.toNumber(t)))!==e)try{if(t>e){for(let e=this._rows.length;e<t;e++)this._rows.push(new iA(this,null));this._itemsAdded(this._rows.slice(e,t))}else{const r=this._rows.slice(t,e);this._rows.length=t,this._itemsRemoved(r)}}finally{this.$_invalidateRows()}}get items(){return this._rows.slice(0)}load(t,e){if(this._heights=null,this._rows=[],t&&t.length>0)for(let r of t){const t=new iA(this,r);if(this._rows.push(t),e>0&&this._rows.length===e)break}if(e>0)for(;this._rows.length<e;)this._rows.push(new iA(this,null));return this.$_invalidateRows(),this._rows.length}save(t){this._rows.forEach((e=>t.push(e.save({}))))}get(t){return t>=0&&t<this._rows.length?this._rows[t]:null}getRange(t,e){return e>=t?this._rows.slice(t,e+1):this._rows.slice(e,t+1)}indexOf(t){return this._rows.indexOf(t)}getHeights(){if(this._heights)this._rows.forEach(((t,e)=>{this._heights.set(e,this._rows[e]._heightDim)}));else{const t=[];this._rows.forEach((e=>{t.push(e._heightDim)})),this._heights=new L(null),this._heights.$_init(t)}return this._heights}add(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;e=e<0?this._rows.length:e;const r=this.$_add(t,e);if(r)return this.$_invalidateRows(),this._itemAdded(r),r}remove(t){if(t>=0&&t<this._rows.length){const e=this._rows.splice(t,1)[0];return this.$_invalidateRows(),this._itemRemoved(e,this._table),!0}}move(t,e,r){this._rows.splice(t,e).forEach(((t,e)=>this._rows.splice(r+e,0,t))),this.$_invalidateRows()}adjustHeights(t,e,r){const s=e[t+1]-e[t],A=e[t+2]-e[t+1],i=(r-s)/(s+A),n=this._rows[t]._heightDim||new D(s),o=this._rows[t+1]._heightDim||new D(A),a=n.value,h=o.value,l=[];if(n.fixed&&o.fixed){let t=n.getFixedPixel(),e=o.getFixedPixel();const r=t+e;t=Math.round(t+i*r),e=r-t,t=O(n.unit,t),e=O(o.unit,e),l.push(t+n.unit,e+o.unit)}else if(n.fixed||o.fixed){const t=e[this._rows.length];let r=n.getPixel(t),s=o.getPixel(t);const A=r+s,a=n.fixed?n.unit:o.unit;r=Math.round(r+i*A),s=A-r,r=O(a,r),s=O(a,s),l.push(r+a,s+a)}else{const t=a+h,e=+(a+i*t).toFixed(1),r=+(t-e).toFixed(1);l.push(e+"%",r+"%")}return l}get page(){var t;return null===(t=this._table)||void 0===t?void 0:t.page}get displayPath(){return this._table?this._table.displayPath+".rows":"rows"}get level(){return this._table?this._table.level+1:0}get marqueeParent(){return this._table}isAncestor(t){return t===this._table}$_add(t,e){if(t instanceof iA||(t=new iA(this,t)),t instanceof iA&&this._rows.indexOf(t)<0)return this._rows.splice(Math.min(e,this._rows.length),0,t),t}$_invalidateRows(){this._rows.forEach(((t,e)=>{t._parent=this,t._index=e})),this._heights=null,this.$_rowChanged(null)}$_rowChanged(t){this._table&&this._table.$_rowChanged(t)}}class oA extends Bs{constructor(t,e,r,s){super(t,s),this._applyEndStyles=!1,this._row=-1,this._col=-1,this._styleCallbackDelegate=(t,e,r)=>this._styleCallbackFunc(t,e,r),this._row=e,this._col=r}get outlineLabel(){const t=this.table.getCell(this._row,this._col),e=["[",this._row,",",this._col,"] Cell"];if(t){const r=t.rowspan,s=t.colspan;r>1&&e.push(" (",r+" rows)"),s>1&&e.push(" (",s+" cols)")}return e.join("")}getEditProps(){return oA.PROPINFOS}get table(){return this.collection.table}get row(){return this._row}get col(){return this._col}get height(){return this._rowspan||1}get width(){return this._colspan||1}get bottom(){return this._row+(isNaN(this._rowspan)?0:this._rowspan-1)}get right(){return this._col+(isNaN(this._colspan)?0:this._colspan-1)}get isSingle(){return 1===this.width&&1===this.height}get colspan(){return this._colspan}set colspan(t){var e;if(t<=1&&(t=void 0),t!==this._colspan){const r=this._colspan;this._colspan=t,this._changed(oA.PROP_COLSPAN,t,r),null===(e=this.table)||void 0===e||e._spanChanged(this)}}get rowspan(){return this._rowspan}set rowspan(t){var e;if(t<=1&&(t=void 0),t!==this._rowspan){const r=this._rowspan;this._rowspan=t,this._changed(oA.PROP_ROWSPAN,t,r),null===(e=this.table)||void 0===e||e._spanChanged(this)}}get applyEndStyles(){return this._applyEndStyles}set applyEndStyles(t){t!==this._applyEndStyles&&(this._applyEndStyles=t,this._changed(oA.PROP_APPLY_END_STYLES,t,!t))}get styleCallback(){return this._styleCallback}set styleCallback(t){if(t!==this._styleCallback){const e=this._styleCallback;this._styleCallback=t,this._changed(oA.PROP_STYLE_CALLBACK,t,e)}}get onGetStyles(){return this._onGetStyles}set onGetStyles(t){if(t!==this._onGetStyles){t?(this._styleCallbackFunc=new Function("ctx, cell, row, value",t),this._styleCallback=this._styleCallbackDelegate):this._styleCallback===this._styleCallbackDelegate&&(this._styleCallback=null);const e=this._onGetStyles;this._onGetStyles=t,this._changed(ms.PROP_ON_GET_STYLES,t,e)}}adoptDragSource(t){}get itemType(){return"cell"}get collection(){return super.collection}get page(){var t;return null===(t=this.collection)||void 0===t?void 0:t.table.page}get displayPath(){return this.collection?this.collection.table.displayPath+".cells["+this._row+", "+this._col+"]":"cell"}get marqueeParent(){return this.table}_getStyleProps(){return oA.styleProps}setProps(t){super.setProps(t),t.hasOwnProperty("row")&&(this._row=t.row),t.hasOwnProperty("col")&&(this._col=t.col)}canSelectedWith(t){return t instanceof oA||t instanceof aA}_doLoad(t){this._loadPropsOf(t,oA.PROPINFOS),this._loadProps(t,"styleCallback"),super._doLoad(t)}_doSave(t){t.r=this._row,t.c=this._col,this._savePropsOf(t,oA.PROPINFOS),delete t.col,delete t.row,t.colspan<=1&&delete t.colspan,t.rowspan<=1&&delete t.rowspan,this._saveProp(t,"styleCallback"),super._doSave(t)}}oA.PROP_COL="col",oA.PROP_ROW="row",oA.PROP_COLSPAN="colspan",oA.PROP_ROWSPAN="rowspan",oA.PROP_APPLY_END_STYLES="applyEndStyles",oA.PROP_ON_GET_STYLES="onGetStyles",oA.PROP_STYLE_CALLBACK="styleCallback",oA.PROPINFOS=[{name:oA.PROP_ROW,category:Ge.CELL,type:qe,multiple:!1,default:void 0,readonly:!0},{name:oA.PROP_COL,category:Ge.CELL,type:qe,multiple:!1,default:void 0,readonly:!0},{name:oA.PROP_ROWSPAN,category:Ge.CELL,type:qe,multiple:!1,default:void 0},{name:oA.PROP_COLSPAN,category:Ge.CELL,type:qe,multiple:!1,default:void 0},{name:oA.PROP_APPLY_END_STYLES,category:Ge.CELL,type:rr,multiple:!1,default:!1},{name:ms.PROP_ON_GET_STYLES,category:Ge.EVENT,type:nr,multiple:!1,default:void 0,signature:"(ctx/* PrintContext*/, cell/*TableCell*/, row/*Number*/)/*any*/"}],oA.styleProps=["cellAlign","backgroundColor","paddingLeft","paddingRight","paddingTop","paddingBottom","borderLeft","borderRight","borderTop","borderBottom"];class aA{constructor(t,e,r){this.cols=1,this.rows=1,this.selectItem=this._cell=t,this.cols=e,this.rows=r}get table(){return this.selectItem.table}get cell(){return this._cell}get col(){return this._cell.col}get row(){return this._cell.row}get right(){return this._cell.col+this.cols-1}get bottom(){return this._cell.row+this.rows-1}canSelectedWith(t){return t instanceof oA||t instanceof aA}contains(t,e){return t>=this.row&&t<=this.bottom&&e>=this.col&&e<=this.right}containsCell(t){return t.table===this.table&&this.contains(t.row,t.col)}isSingle(t){const e=this._cell,r=e.table,s=e.row,A=e.col;if(this.rows>1||this.cols>1){if(t){let t=0;for(let e=0;e<this.rows;e++)for(let i=0;i<this.cols;i++)if(!r.isHiddenAt(s+e,A+i)&&(t++,t>1))return!1;return!0}return!1}return!0}getCells(t){const e=this._cell,r=e.table,s=e.row,A=e.col,i=[];for(let e=0;e<this.rows;e++)for(let n=0;n<this.cols;n++){const o=r.getCell(s+e,A+n);t&&r.isHiddenAt(s+e,A+n)||i.push(o)}return i}resizeTo(t){if(t){const e=this._cell.table,r=this.rows,s=this.cols,A=e.cells.getRectangle(this.selectItem,t);return this._cell=e.getCell(A.y,A.x),this.rows=A.height,this.cols=A.width,r!==this.rows||s!==this.cols}}resizeBy(t,e){const r=this.selectItem.table;let s=this.selectItem.col,A=this.selectItem.row,i=this._cell.col,n=this._cell.row;if(s===i?i=this.right+t:i+=t,A===n?n=this.bottom+e:n+=e,t>0){const t=i;for(let e=Math.min(A,n);e<=Math.max(A,n);e++){const s=r.getCell(e,i);s&&r.isHiddenCell(s)&&(i=Math.max(t,t+r.getHeadCell(s).width-1))}}if(e>0){const t=n;for(let e=Math.min(s,i);e<=Math.max(s,i);e++){const s=r.getCell(n,e);s&&r.isHiddenCell(s)&&(n=Math.max(t,t+r.getHeadCell(s).height-1))}}return i=Math.max(0,Math.min(r.colCount,i)),n=Math.max(0,Math.min(r.rowCount,n)),this.resizeTo(r.getCell(n,i))}equals(t){return this._cell===t&&this.rows===t.height&&this.cols===t.width}}class hA extends Cs{constructor(t){super(),this._cells=[],this._table=t}get outlineParent(){return this._table}get outlineLabel(){return"[Cells]"}get outlineExpandable(){return!0}get outlineItems(){return this._vcells}getSaveType(){return"cells"}isCollectionProp(){return!1}get table(){return this._table}get count(){return this._vcells.length}get items(){return this._vcells}get rowCount(){return this._cells.length}get colCount(){return this._cells[0].length}getColCount(t){return this._cells[t].length}get(t){return t>=0&&t<this._vcells.length?this._vcells[t]:null}getAt(t,e){if(t>=0&&t<this._cells.length)return this._cells[t][e]}getRectangle(t,e){const r=this.table,s=Math.min(r.getTopRow(t),r.getTopRow(e)),A=Math.max(t.bottom,e.bottom),i=Math.min(r.getLeftCol(t),r.getLeftCol(e)),n=Math.max(t.right,e.right);return x.create(i,s,n-i+1,A-s+1)}getRectangleCells(t,e){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const s=this.table,A=this.getRectangle(t,e),i=[];for(let t=A.y;t<A.y+A.height;t++)for(let e=A.x;e<A.x+A.width;e++)r&&s.isHiddenAt(t,e)||i.push(this._cells[t][e]);return i}prepareCells(){const t=this._table,e=this._cells,r=t.rowCount,s=t.colCount;for(;e.length<r;)e.push([]);for(let t=0;t<r;t++){const r=e[t];for(;r.length<s;)r.push(new oA(this,t,r.length))}}load(t){var e;if(this.prepareCells(),t&&t.length>0){const r=this._cells;for(let s of t){const t=s.r,A=s.c,i=null===(e=r[t])||void 0===e?void 0:e[A];null==i||i.load(s)}}}save(t){this._cells.forEach((e=>{e.forEach((e=>{const r=e.save({});let s=!1;for(let t in r)if("r"!==t&&"c"!==t){s=!0;break}s&&t.push(r)}))}))}resetVisibles(){const t=this._table,e=this._cells,r=t.rowCount,s=t.colCount,A=this._vcells,i=this._vcells=[];for(let A=0;A<r;A++)for(let r=0;r<s;r++)t.isHiddenAt(A,r)||i.push(e[A][r]);A&&!ot.equalArrays(A,i)&&(A&&this._itemsRemoved(A),this._itemsAdded(i))}saveCells(){const t=this._cells,e=t.length,r=[];for(let s=0;s<e;s++){const e=[];for(let r=0,A=t[s].length;r<A;r++){const A=t[s][r];e.push({props:A.getProps(),styles:A.styles})}r.push(e)}return r}restoreCells(t){const e=t.length,r=this._cells;for(let s=0;s<e;s++)for(let e=0,A=t[s].length;e<A;e++){const A=r[s][e],i=t[s][e];A.setProps(i.props),A.styles=i.styles}}truncateRow(t){const e=this._cells,r=this.saveCells();for(let r=0;r<t;r++)for(let s=0,A=e[r].length;s<A;s++){const A=e[r][s];r+A.rowspan>t&&(A.rowspan=t-r)}return r}truncateCol(t){const e=this._cells,r=this.saveCells();for(let r=0;r<e.length;r++)for(let s=0;s<t;s++){const A=e[r][s];s+A.colspan>t&&(A.colspan=t-s)}return r}removeRow(t){const e=this._cells,r=this.saveCells();e.splice(t,1);for(let e=t;e<this._cells.length;e++)this._cells[e].forEach((t=>{t._row=t.row-1}));for(let r=0;r<t;r++)for(let s=0,A=e[r].length;s<A;s++){const A=e[r][s];r+A.rowspan>t&&A.rowspan--}return r}removeRows(t,e){const r=this._cells,s=this.saveCells();r.splice(t,e);for(let s=0;s<t;s++)for(let A=0,i=r[s].length;A<i;A++){const i=r[s][A],n=i.rowspan;s+n>t+e?i.rowspan=Math.max(1,n-e):s+n>t&&(i.rowspan=Math.max(1,s-t))}return s}addRow(t){const e=this.saveCells(),r=[],s=this._cells.length>0?this._cells[0].length:this.table.colCount;for(let e=0;e<s;e++)r.push(new oA(this,t,e));this._cells.splice(t,0,r);for(let e=t+1;e<this._cells.length;e++)this._cells[e].forEach((t=>{t._row=t.row+1}));for(let e=0;e<t;e++)this._cells[e].forEach((r=>{e+r.rowspan>t&&r.rowspan++}));return e}removeCol(t){const e=this._cells,r=e.length,s=this.saveCells();for(let s=0;s<r;s++)e[s].splice(t,1);for(let s=0;s<r;s++)for(let r=t;r<e[s].length;r++)e[s][r]._col=e[s][r].col-1;for(let s=0;s<r;s++)for(let r=0,A=e[s].length;r<A;r++){const A=e[s][r];r+A.colspan>t&&A.colspan--}return s}removeCols(t,e){}addCol(t){const e=this.saveCells(),r=this._cells,s=r.length;for(let e=0;e<s;e++)r[e].splice(t,0,new oA(this,e,t));for(let e=0;e<r.length;e++)for(let s=t+1;s<r[e].length;s++)r[e][s]._col=r[e][s].col+1;for(let e=0;e<s;e++)for(let s=0;s<t;s++)s+r[e][s].colspan>t&&r[e][s].colspan++;return e}$_resetPositions(){const t=this._cells;for(let e=0;e<t.length;e++){const r=t[e];for(let t=0;t<r.length;t++)r[t]._row=e,r[t]._col=t}}moveRows(t,e,r){const s=this.saveCells(),A=this._cells,i=this._table.rowCount;if(r!==t&&e>=1&&t>=0&&t+e<=i&&r>=0&&r<i){return A.splice(t,e).forEach(((t,e)=>A.splice(r+e,0,t))),this.$_resetPositions(),s}}moveCols(t,e,r){const s=this.saveCells(),A=this._table.rowCount,i=this._table.colCount;if(r!==t&&e>=1&&t>=0&&t+e<=i&&r>=0&&r<i){for(let s=0;s<A;s++){const A=this._cells[s];A.splice(t,e).forEach(((t,e)=>A.splice(r+e,0,t)))}return this.$_resetPositions(),s}}getMergeBounds(t,e,r,s){const A=this._cells;let i=e,n=s;for(let o=t;o<=r;o++){for(let t=e-1;t>=0;t--){if(A[o][t].colspan>e-t){i=Math.min(i,t);break}}for(let t=e;t<=s;t++){const e=A[o][t].colspan;if(t+e-1>s){n=Math.max(n,t+e-1);break}}}let o=t,a=r;for(let i=e;i<=s;i++){for(let e=t-1;e>=0;e--){if(A[e][i].rowspan>t-e){o=Math.min(o,e);break}}for(let e=t;e<=r;e++){const t=A[e][i].rowspan;if(e+t-1>r){a=Math.max(a,e+t-1);break}}}return{r1:o,c1:i,r2:a,c2:n}}mergeBoundsOf(t){return this.getMergeBounds(t.row,t.col,t.bottom,t.right)}merge(t,e,r,s){const A=this._cells,i=this.saveCells();for(let i=t;i<=r;i++)for(let t=e;t<=s;t++)A[i][t].rowspan=A[i][t].colspan=void 0;return A[t][e].rowspan=r-t+1,A[t][e].colspan=s-e+1,i}mergeSelection(t){return this.merge(t.row,t.col,t.bottom,t.right)}unmerge(t){const e=this.saveCells();return t.rowspan=t.colspan=void 0,e}get page(){var t;return null===(t=this._table)||void 0===t?void 0:t.page}get displayPath(){return this._table?this._table.displayPath+".cells":"cells"}get level(){return this._table?this._table.level+1:0}get marqueeParent(){return this._table}isAncestor(t){return t===this._table}}class lA extends Is{constructor(t){super(t),this._fixed=!1,this._cellStyles={},this._cellMap=[],this._spans=[],this._spanDirty=!0,this._itemDirty=!1,this._rows=this._createRows(),this._cells=new hA(this),this._resetCells()}getSubStyleProps(t){if(t===lA.PROP_TABLE_CELL_STYLES){const e=[];for(let r of lA.CELL_STYLES){const s={...us[r]};s.parent=t,e.push(s)}return e}return super.getSubStyleProps(t)}_getSubStyle(t,e){return t===lA.PROP_TABLE_CELL_STYLES?this._cellStyles[e]:super._getSubStyle(t,e)}_setSubStyle(t,e,r){if(t===lA.PROP_TABLE_CELL_STYLES){const s=this._cellStyles[e];this._cellStyles[e]=r,this._changed(t,r,s)}else super._setSubStyle(t,e,r)}get outlineItems(){return[this._rows,this._cells].concat(super.outlineItems)}get rowCount(){return this._rowCount||0}set rowCount(t){if((t=Math.max(1,ot.toNumber(t)))!==this._rowCount){const e=this._rowCount;this._rowCount=t,this._rows.count=t,t<e?this._removeRows(t,e-t):this._resetCells(),this._changed(lA.PROP_ROW_COUNT,t,e)}}get rows(){return this._rows}get cells(){return this._cells}get minRowHeight(){return this._minRowHeight}set minRowHeight(t){if(t!=this._minRowHeight){const e=this._minRowHeight;this._minRowHeight=t,this._minRowHeightDim=t?new D(t):null,this._changed(lA.PROP_MIN_ROW_HEIGHT,t,e)}}get cellStyles(){return this._cellStyles}set cellStyles(t){const e=this._cellStyles={};if(t){const r=lA.CELL_STYLES;for(let s of r)s in t&&(e[s]=t[s])}e&&this._arrangePaddingStyles(e)}get fixed(){return this._fixed}set fixed(t){t!==this._fixed&&(this._fixed=t,this._changed(lA.PROP_FIXED,t,!t))}getRow(t){return this._rows.get(t)}getRowHeights(){return this._rows.getHeights()}getCell(t,e){return this._cells.getAt(t,e)}getCellItemAt(t,e){return t>=0&&t<this._cellMap.length?this._cellMap[t][e]:null}getCellItem(t){return this.getCellItemAt(t.row,t.col)}isHiddenAt(t,e){const r=this._spans[t][e];return r.r*r.c==0}isHiddenCell(t){const e=t&&this._spans[t.row][t.col];return e&&e.r*e.c==0}getHeadCell(t){let e=t.row,r=t.col;if(this.isHiddenAt(e,r)){for(;e>0&&this.isHiddenAt(--e,r););for(;r>0&&this.isHiddenAt(e,--r););}return this.getCell(e,r)}getLeftCol(t){const e=t.row;let r=t.col;for(;r>0&&this.isHiddenAt(e,r);)r--;return r}getTopRow(t){const e=t.col;let r=t.row;for(;r>0&&this.isHiddenAt(r,e);)r--;return r}getMinRowHeight(){return this._minRowHeightDim?this._minRowHeightDim.getFixedPixel():NaN}getColItems(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this.filter((r=>{const s=r.col;return e?s===t:s!==t})).map((t=>t.item))}getRowItems(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this.filter((r=>{const s=r.row;return e?s===t:s!==t})).map((t=>t.item))}getRowItemsFrom(t){return this.filter((e=>e.row>=t)).map((t=>t.item))}getRectItems(t,e,r,s){let A=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return this.filter((r=>{const s=r.row,i=r.col;return!A||s!==t||i!==e})).map((t=>t.item))}prepareLayout(){return(this._spanDirty||this._itemDirty)&&(this.$_resetSpans(this._cells,this._spanDirty),this._spanDirty=!1,this._itemDirty=!1),this._spans}setFocus(t){this._focus=t&&{...t}}removeRow(t){const e=this._cellMap,r="number"==typeof t?t:this._rows.indexOf(t);if(r>=0&&r<this._rowCount){this._rows.remove(r);for(let t=0;t<this.colCount;t++){const s=e[r][t];s&&this.remove(s.item)}e.splice(r,1);for(let t=r;t<e.length;t++){const r=e[t];if(r)for(let t=0;t<this.colCount;t++){const e=r[t];e&&e.item&&e.item.$_setChildProp("row",e.item.row-1)}}this._rowCount--,this._resetCells(),this._changed(lA.PROP_ROW_COUNT,this._rowCount,this._rowCount+1)}}addRow(t,e){if(t>=0&&t<=this._rowCount){const r=this._rows.add(e,t);return this._rowCount++,this._addRows(t,1),this._resetCells(),this._changed(lA.PROP_ROW_COUNT,this._rowCount,this._rowCount-1),r}}canMoveRows(t,e,r){let s=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const A=this.rowCount;if(r!==t&&t>=0&&t+e<=A&&r>=0&&r<A){let i=t;const n=this._spans,o=this.colCount;for(let t=0;t<o;t++){const e=n[i][t];if(0===e.r&&e.v.row<i){if(s)throw new Q(sA.E_TABLE_MOVE_MERGE_CELLS);return!1}}i=t+e-1;for(let t=0;t<o;t++){const e=n[i][t].v;if(e&&e.row+e.rowspan>i){if(s)throw new Q(sA.E_TABLE_MOVE_MERGE_CELLS);return!1}}if(r>t&&r++,r<A)for(let t=0;t<o;t++){if(0===n[r][t].r){if(s)throw new Q(sA.E_TABLE_MOVE_TARGET_MERGE_CELLS);return!1}}return!0}}getNearestMovableRow(t,e,r){if(r<0)for(;t+r>=0;){if(this.canMoveRows(t,e,t+r))return t+r;r--}else if(r>0)for(;t+e-1+r<this.rowCount;){if(this.canMoveRows(t,e,t+r))return t+e-1+r;r++}return-1}moveRows(t,e,r){if(arguments.length>3&&void 0!==arguments[3]&&arguments[3]||this.canMoveRows(t,e,r))return this._rows.move(t,e,r),this._moveRows(t,e,r),this.layoutChanged=!0,this._changed(lA.PROP_CELL_LAYOUT,void 0,void 0),!0}canMoveCols(t,e,r){let s=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const A=this.colCount;if(r!==t&&t>=0&&t+e<=A&&r>=0&&r<A){let i=t;const n=this._spans,o=this.rowCount;for(let t=0;t<o;t++){const e=n[t][i];if(0===e.c&&e.v.col<i){if(s)throw new Q(sA.E_TABLE_MOVE_MERGE_CELLS);return!1}}i=t+e-1;for(let t=0;t<o;t++){const e=n[t][i].v;if(e&&e.col+e.colspan-1>i){if(s)throw new Q(sA.E_TABLE_MOVE_MERGE_CELLS);return!1}}if(r>t&&r++,r<A)for(let t=0;t<o;t++){if(0===n[t][r].c){if(s)throw new Q(sA.E_TABLE_MOVE_TARGET_MERGE_CELLS);return!1}}return!0}}getNearestMovableColumn(t,e,r){if(r<0)for(;t+r>=0;){if(this.canMoveCols(t,e,t+r,!1))return t+r;r--}else if(r>0)for(;t+e-1+r<this.colCount;){if(this.canMoveCols(t,e,t+e-1+r,!1))return t+r;r++}return-1}checkCounts(){const t=this.colCount,e=this.rowCount;at(this._spans.length===e),this._spans.forEach((e=>{at(e.length===t)}))}getSelection(t){return new aA(t,t.width,t.height)}mergeCells(t,e,r,s){const A=this._cellMap;let i=t;t=Math.max(0,Math.min(t,r)),r=Math.min(this.rowCount-1,Math.max(i,r)),i=e,e=Math.max(0,Math.min(e,s)),s=Math.min(this.colCount-1,Math.max(i,s));for(let i=t;i<=r;i++)for(let r=e;r<=s;r++)if(i!==t||r!==e){const t=A[i][r];t&&this.remove(t.item)}this._resetCells()}_getEditProps(){return super._getEditProps().concat(lA.PROPINFOS)}_getStyleProps(){return lA.TABLE_STYLES}_doDefaultInit(t,e,r,s){super._doDefaultInit(t,e,r,s),this.minRowHeight="24px"}_doLoad(t,e){super._doLoad(t,e),e&&(this._loadProps(e,"rowCount","base","minRowHeight","cellStyles"),e.hasOwnProperty("rows")&&(this._rowCount=this._rows.load(e.rows,this._rowCount)),this._cells.load(e.cells),this.$_resetSpans(this._cells))}_doSave(t){super._doSave(t),this._saveProps(t,"rowCount","base","minRowHeight","cellStyles"),this._rows.count&&this._rows.save(t.rows=[]),this._cells.save(t.cells=[])}_doSaveItems(t,e){for(let r of e){const e={};r.item.save(e),t.push(e)}}_getChildPropInfos(t){return lA.TABLE_CHILD_PROPS}_doLoadChild(t,e){this._loadChildProps(t,[lA.PROP_TABLE_COL,lA.PROP_TABLE_ROW],e)}_prepareCellGroup(t){try{const e=t.getChildProp(lA.PROP_TABLE_COL,this._focus?this._focus.col:0),r=t.getChildProp(lA.PROP_TABLE_ROW,this._focus?this._focus.row:0),s=this._cellMap;if(e>=0&&r>=0){let A=s[r]&&s[r][e];if(!A)return A=this._createCell(t),s[r]||(s[r]=[]),t.setChildProp(lA.PROP_TABLE_COL,e),t.setChildProp(lA.PROP_TABLE_ROW,r),s[r][e]=A;if(A.item!==t)throw Error("Only one item can exits in a table cell: "+(t.name||"")+"("+r+","+e+")")}}finally{this._focus=null}}_unprepareCellGroup(t){for(let e=0;e<this._cellMap.length;e++){const r=this._cellMap[e];if(r)for(let e=0;e<r.length;e++)if(r[e]&&r[e].item===t){const t=r[e];return r[e]=null,t}}}_doItemAdded(t,e){this._itemDirty=!0}_doItemRemoved(t,e){this._itemDirty=!0}_doItemChanged(t,e,r,s){if("col"===e||"row"===e){let r;"col"===e?(r=this._cellMap[t.row][s],this._cellMap[t.row][s]=null):(r=this._cellMap[s][t.col],this._cellMap[s][t.col]=null),this._cellMap[t.row][t.col]=r,this.onCellChanged&&this.onCellChanged(t,e,s)}}isAncestorOf(t){return super.isAncestorOf(t)||t instanceof oA&&t.table===this}_createRows(){return new nA(this)}_spanChanged(t){this._spanDirty=!0}_resetCells(){var t;const e=this._cellMap.length,r=[],s=this.rowCount,A=this.colCount;for(let i=0;i<s;i++){const s=[];for(let r=0;r<A;r++){const A=e>i?null===(t=this._cellMap[i])||void 0===t?void 0:t[r]:null;s.push(A)}r.push(s)}this._cellMap=r,this._cells.prepareCells(),this.$_resetSpans(this._cells)}_removeCols(t,e){let r;this._cellMap.forEach((s=>{for(let A=0;A<e;A++)r=s[A+t],r&&this.remove(r.item);for(let A=t+e;A<s.length;A++)r=s[A],r&&r.item&&r.item.$_setChildProp("col",r.item.col-e);s.splice(t,e)})),this.$_resetSpans(this._cells)}_addCols(t,e){this._cellMap.forEach((r=>{for(let s=0;s<e;s++)r.splice(t,0,null);for(let s=t+e;s<r.length;s++){let t=r[s];t&&t.item&&t.item.$_setChildProp("col",t.item.col+e)}}))}_moveCols(t,e,r){this._cellMap.forEach((s=>{s.splice(t,e).forEach(((t,e)=>{s.splice(r+e,0,t)}));for(let t=0;t<s.length;t++){const e=s[t];e&&e.item&&e.item.$_setChildProp("col",t)}})),this.$_resetSpans(this._cells)}_removeRows(t,e){const r=this._cellMap;let s;for(let A=0;A<e;A++){const e=r[A+t];if(e)for(let t=0;t<this.colCount;t++)s=e[t],s&&this.remove(s.item)}r.splice(t,e);for(let A=t;A<r.length;A++){const i=r[A+t];if(i)for(let t=0;t<this.colCount;t++)s=i[t],s&&s.item&&s.item.$_setChildProp("row",s.item.row-e)}this.$_resetSpans(this._cells)}_addRows(t,e){const r=this._cellMap;for(let s=0;s<e;s++)r.splice(t,0,[]);for(let s=t+e;s<r.length;s++){const t=r[s];t&&t.forEach((t=>{t&&t.item&&t.item.$_setChildProp("row",t.item.row+e)}))}}_moveRows(t,e,r){const s=this._cellMap;s.splice(t,e).forEach(((t,e)=>s.splice(r+e,0,t)));for(let t=0;t<s.length;t++){const e=s[t];if(e)for(let r=0;r<this.colCount;r++){const s=e[r];s&&s.item&&s.item.$_setChildProp("row",t)}}this.$_resetSpans(this._cells)}canChangeChildProp(t,e,r){if("col"===e||"row"===e){if(r!==t.getProperty(e)){const s="row"===e?r:t.getProperty("row"),A="col"===e?r:t.getProperty("col");if(s<0||s>=this._rowCount||A<0||A>=this.colCount)throw new Error("Out of bounds");if(this.getCellItemAt(s,A))throw new Error("Already a item exists at ("+s+", "+A+")")}}return!0}$_rowChanged(t){this._changed(lA.PROP_ROWS,this._rows,this._rows)}$_resetSpans(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const r=this._rowCount,s=this.colCount;let A=this._spans;if(e){A=this._spans=[];for(let t=0;t<r;t++){A[t]=[];for(let e=0;e<s;e++)A[t][e]={r:1,c:1,m:null,v:null}}}for(let t=0;t<r;t++){A[t]=[];for(let e=0;e<s;e++)A[t][e]={r:1,c:1,m:null,v:null}}for(let e=0;e<r;e++)for(let i=0;i<s;i++){const n=A[e][i];if(n.r>0&&n.c>0){const o=t.getAt(e,i),a=this.getCellItemAt(e,i);if(o){const t=Math.min(s-i,ot.pickNum(o.colspan,1)),h=Math.min(r-e,ot.pickNum(o.rowspan,1));if(t>1||h>1)for(let r=0;r<h;r++)for(let s=0;s<t;s++){const t=A[e+r][i+s];t.m=a,s>0&&(t.c=0),r>0&&(t.r=0),t.v=o}n.m=a,n.v=o,n.r=h,n.c=t}else n.m=n.v=null}}this._cells.resetVisibles()}_addColumn(t){this._addCols(t,1),this._resetCells()}_removeColumn(t){var e,r;const s=this.rowCount,A=this.colCount,i=this._cellMap;for(let n=0;n<s;n++){const s=i[n],o=null===(e=i[n][t])||void 0===e?void 0:e.item;if(o&&this.remove(o),s){s.splice(t,1);for(let e=t;e<A;e++){const t=null===(r=s[e])||void 0===r?void 0:r.item;t&&t.$_setChildProp("col",t.col-1)}}}this._resetCells()}}lA.PROP_ROW_COUNT="rowCount",lA.PROP_MIN_ROW_HEIGHT="minRowHeight",lA.PROP_ROWS="rows",lA.PROP_TABLE_CELL_STYLES="cellStyles",lA.PROP_CELL_LAYOUT="table_cell_layout",lA.PROP_FIXED="fixed",lA.PROP_TABLE_COL="col",lA.PROP_TABLE_ROW="row",lA.PROPINFOS=[{name:lA.PROP_ROW_COUNT,category:Ge.TABLE,type:qe,multiple:!1,default:0},{name:lA.PROP_MIN_ROW_HEIGHT,category:Ge.TABLE,type:tr,typeProps:{percentable:!1},multiple:!1,default:"15px"},{name:lA.PROP_TABLE_CELL_STYLES,category:Ge.BASIC,type:je,multiple:!1,default:void 0},{name:lA.PROP_FIXED,category:Ge.TABLE,type:rr,multiple:!0,default:void 0}],lA.TABLE_CHILD_PROPS=[{name:lA.PROP_TABLE_COL,category:Ge.TABLE,type:qe,multiple:!1,default:void 0,domain:void 0},{name:lA.PROP_TABLE_ROW,category:Ge.TABLE,type:qe,multiple:!1,default:void 0,domain:void 0}],lA.TABLE_STYLES=["fontFamily","fontSize","fontWeight","color","backgroundColor"],lA.CELL_STYLES=["paddingLeft","paddingRight","paddingTop","paddingBottom","borderLeft","borderRight","borderTop","borderBottom"];class cA extends Bs{constructor(t,e){super(t,e),this._index=-1,this._widthDim||(this.width="20%")}getEditProps(){return cA.PROPINFOS}getCollectionLabel(){return"tableColumn"}get index(){return this._index}get width(){return this._width}set width(t){if(t!=this._width){const e=this._width;this._width=t,this._widthDim=new D(t),this._changed(cA.PROP_WIDTH,t,e)}}getWidth(t){return this._widthDim?this._widthDim.getPixel(t):NaN}get itemType(){return"Column"}get page(){var t;return null===(t=this.collection)||void 0===t?void 0:t.page}get level(){return this.collection?this.collection.level+1:0}canSelectedWith(t){return t instanceof cA&&t.parent===this.parent}_getStyleProps(){return cA.styleProps}_doLoad(t){"string"==typeof t||"number"==typeof t?this.width=t:t&&this._loadPropsOf(t,cA.PROPINFOS),super._doLoad(t)}_doSave(t){return this._savePropsOf(t,cA.PROPINFOS),super._doSave(t),t}}cA.PROP_WIDTH="width",cA.PROPINFOS=[{name:cA.PROP_WIDTH,category:Ge.COLUMN,type:tr,multiple:!1,default:void 0}],cA.styleProps=["cellAlign","backgroundColor"];class uA extends Cs{constructor(t){super(),this._columns=[],this._owner=t}get outlineParent(){return this._owner}get outlineLabel(){return"[Columns]"}get outlineExpandable(){return!0}get outlineItems(){return this._columns.forEach(((t,e)=>t.outlineOrder=e)),this._columns}getSaveType(){return"columns"}get owner(){return this._owner}get count(){return this._columns.length}set count(t){const e=this._columns.length;if((t=Math.max(0,ot.toNumber(t)))!==e)try{if(t>e){for(let e=this._columns.length;e<t;e++)this._columns.push(this._createColumn(null));this._itemsAdded(this._columns.slice(e,t))}else this._itemsRemoved(this._columns.splice(t,e))}finally{this.$_invalidateColumns()}}get items(){return this.columns}get columns(){return this._columns.slice(0)}load(t,e){if(this._widths=null,this._columns=[],t&&t.length>0)for(let r of t){const t=this._createColumn(r);if(this._columns.push(t),e>0&&this._columns.length===e)break}if(e>0)for(;this._columns.length<e;)this._columns.push(this._createColumn(null));return this.$_invalidateColumns(),this._columns.length}save(t){this._columns.forEach((e=>t.push(e.save({}))))}get(t){return t>=0&&t<this._columns.length?this._columns[t]:null}getRange(t,e){return e>=t?this._columns.slice(t,e+1):this._columns.slice(e,t+1)}indexOf(t){return this._columns.indexOf(t)}getWidths(){if(this._widths)this._columns.forEach(((t,e)=>{this._widths.set(e,t._widthDim)}));else{const t=[];this._columns.forEach((e=>{t.push(e._widthDim)})),this._widths=new L(null),this._widths.$_init(t)}return this._widths}add(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;e=e<0?this._columns.length:e;const r=this.$_add(t,e);if(r)return this.$_invalidateColumns(),this._itemAdded(r),r}remove(t){if(t>=0&&t<this._columns.length){const e=this._columns.splice(t,1)[0];return this.$_invalidateColumns(),this._itemRemoved(e,this._owner),!0}}clear(){if(this._columns.length>0)return this._columns=[],this.$_invalidateColumns(),!0}move(t,e,r){this._columns.splice(t,e).forEach(((t,e)=>this._columns.splice(r+e,0,t))),this.$_invalidateColumns()}adjustWidths(t,e,r){const s=this._columns[t]._widthDim,A=this._columns[t+1]._widthDim,i=s.value,n=A.value,o=e[t+1]-e[t],a=(r-o)/(o+(e[t+2]-e[t+1])),h=[];if(s.fixed&&A.fixed){let t=s.getFixedPixel(),e=A.getFixedPixel();const r=t+e;t=Math.round(t+a*r),e=r-t,t=O(s.unit,t),e=O(A.unit,e),h.push(t+s.unit,e+A.unit)}else if(s.fixed||A.fixed){const t=e[this._columns.length];let r=s.getPixel(t),i=A.getPixel(t);const n=r+i,o=s.fixed?s.unit:A.unit;r=Math.round(r+a*n),i=n-r,r=O(o,r),i=O(o,i),h.push(r+o,i+o)}else{const t=i+n,e=+(i+a*t).toFixed(1),r=+(t-e).toFixed(1);h.push(e+"%",r+"%")}return h}get page(){var t;return null===(t=this._owner)||void 0===t?void 0:t.page}get displayPath(){return this._owner?this._owner.displayPath+".columns":"columns"}get level(){return this._owner?this._owner.level+1:0}get marqueeParent(){return this._owner}isAncestor(t){return t===this._owner}$_add(t,e){if(t instanceof cA||(t=this._createColumn(t)),t instanceof cA&&this._columns.indexOf(t)<0)return this._columns.splice(Math.min(e,this._columns.length),0,t),t}$_invalidateColumns(){this._columns.forEach(((t,e)=>{t._parent=this,t._index=e})),this._widths=null,this.$_columnChanged(null)}$_columnChanged(t){this._owner&&this._owner.$_columnChanged(t)}}const dA={sum:0,count:1,min:2,max:3,avg:4};class pA extends ee{constructor(t){super(),this._fieldMap={},this._idxMap={},this._masterFieldMap={},this._masterIdxMap={},this._band=t}_doDispose(){super._doDispose()}prepare(t,e){let r=this._data=t;if(this._fieldMap={},this._rowCount=NaN,r)for(let t=0;t<r.fieldCount;t++){const e=r.getField(t).fieldName;this._fieldMap[":"+e]=this._fieldMap[e]=999+t,this._idxMap[999+t]=e}if(e instanceof Ke){r=this._master=e;for(let t=0;t<r.fieldCount;t++){const e=r.getField(t).fieldName;this._masterFieldMap["master:"+e]=888+t,this._masterIdxMap[888+t]=e}}return this}setGroup(t){return this._group=t,this}setRows(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return this._rows=t,this._masterRow=e,this}setRowCount(t){return this._rowCount=t,this}isIdentifier(t){const e=t.toLocaleLowerCase();return dA.hasOwnProperty(e)?dA[e]:this._fieldMap.hasOwnProperty(t)?this._fieldMap[t]:this._masterFieldMap.hasOwnProperty(t)?this._masterFieldMap[t]:super.isIdentifier(t)}evaluateIdentifier(t){return t>=999?this._idxMap[t]:t>=888?this._master.getRowValue(this._masterRow,this._masterIdxMap[t]):void super.evaluateIdentifier(t)}evaluateFunc(t,e){const r=this.$_getRows();switch(t){case 0:return this._band.getSum(e,this._rowCount,r);case 1:return this._band.getCount(e,this._rowCount,r);case 2:return this._band.getMin(e,this._rowCount,r);case 3:return this._band.getMax(e,this._rowCount,r);case 4:return this._band.getAvg(e,this._rowCount,r)}return super.evaluateFunc(t,e)}$_getRows(){let t=this._rows;if(!t&&this._group){t=[];for(let e=0;e<this._group.count;e++)t.push(e+this._group.row)}return t}}class gA extends ws{constructor(t){super(t)}get outlineLabel(){return"["+this.index+"] Group"}canRemoveFrom(){return!0}getEditProps(){return gA.PROPINFOS}get field(){return this._field}set field(t){if(t!=this._field){const e=this._field;this._field=t,this._changed(gA.PROP_FIELD,t,e)}}get pathLabel(){return"group"}_doLoad(t,e){super._doLoad(t,e),this._loadPropsOf(e,gA.PROPINFOS)}_doSave(t){super._doSave(t),this._savePropsOf(t,gA.PROPINFOS)}getPropDomain(t){if(t.name=gA.PROP_FIELD)return this.getDataFieldNames()}}gA.PROP_FIELD="field",gA.PROPINFOS=[{name:gA.PROP_FIELD,category:Ge.BAND,type:ir,multiple:!1,default:void 0}];class fA extends ws{constructor(t){super(t),this._sectionCount=1,this._sectionLayout=vs.DOWN_ACROSS,this._sectionGap=10,this._repeatMastreRow=!1,this._repeatDetailHeader=!1,this._repeatDetailFooter=!1,this.pageNo=0,this.detailRows=NaN,this.add(this._detail=new _A(this,"detail")),this._summaryRuntime=new pA(this)}get dataObj(){return this._dataObj}get designData(){return this._designData}get detail(){return this._detail}get isDetail(){return!!this._master}get master(){return this._master}get bandLevel(){return this._master?this._master.bandLevel+1:0}get sectionCount(){return this.isDetail?1:this._sectionCount}set sectionCount(t){if((t=isNaN(t)?1:Math.max(1,t))!==this._sectionCount){const e=this._sectionCount;this._sectionCount=t,this._changed(fA.PROP_DATA_BAND_SECTION_COUNT,t,e)}}get sectionLayout(){return this._sectionLayout}set sectionLayout(t){if(t!==this._sectionLayout){const e=this._sectionLayout;this._sectionLayout=t,this._changed(fA.PROP_DATA_BAND_SECTIONLAYOUT,t,e)}}get sectionGap(){return this._sectionGap}set sectionGap(t){if((t=ot.toNumber(t,0))!=this._sectionGap){const e=this._sectionGap;this._sectionGap=t,this._changed(fA.PROP_DATA_BAND_SECTION_GAP,t,e)}}get maxRowCount(){return this._maxRowCount}set maxRowCount(t){if(isNaN(t)?t=void 0:t>>=0,t!==this._maxRowCount){const e=this._maxRowCount;this._maxRowCount=t,this._changed(fA.PROP_DATA_BAND_MAX_ROW_COUNT,t,e)}}get rowsPerPage(){return this._rowsPerPage}set rowsPerPage(t){if(isNaN(t)?t=void 0:t>>=0,t!==this._rowsPerPage){const e=this._rowsPerPage;this._rowsPerPage=t,this._changed(fA.PROP_DATA_BAND_ROWS_PER_PAGE,t,e)}}get maxRowsPerPage(){return this._maxRowsPerPage}set maxRowsPerPage(t){if(isNaN(t)?t=void 0:t>>=0,t!==this._maxRowsPerPage){const e=this._maxRowsPerPage;this._maxRowsPerPage=t,this._changed(fA.PROP_DATA_BAND_MAX_ROWS_PER_PAGE,t,e)}}get endRowCount(){return this._endRowCount}set endRowCount(t){if(isNaN(t)?t=void 0:t>>=0,t!==this._endRowCount){const e=this._endRowCount;this._endRowCount=t,this._changed(fA.PROP_DATA_BAND_END_ROW_COUNT,t,e)}}get maxEndRowCount(){return this._maxEndRowCount}set maxEndRowCount(t){if(isNaN(t)?t=void 0:t>>=0,t!==this._maxEndRowCount){const e=this._maxEndRowCount;this._maxEndRowCount=t,this._changed(fA.PROP_DATA_BAND_MAX_END_ROW_COUNT,t,e)}}get endRowMessage(){return this._endRowMessage}set endRowMessage(t){if(t!==this._endRowMessage){const e=this._endRowMessage;this._endRowMessage=t,this._changed(fA.PROP_DATA_BAND_END_ROW_MESSAGE,t,e)}}get masterFields(){return this._masterFields}set masterFields(t){if(t!=this._masterFields){const e=this._masterFields;this._masterFields=t,this._changed(fA.PROP_DATA_BAND_MASTER_FIELDS,t,e)}}get keyFields(){return this._keyFields}set keyFields(t){if(t!=this._keyFields){const e=this._keyFields;this._keyFields=t,this._changed(fA.PROP_DATA_BAND_KEY_FIELDS,t,e)}}get rowsPerMaster(){return this._rowsPerMaster}set rowsPerMaster(t){if(isNaN(t)?t=void 0:t>>=0,t!==this._rowsPerMaster){const e=this._rowsPerMaster;this._rowsPerMaster=t,this._changed(fA.PROP_DATA_BAND_ROWS_PER_MASTER,t,e)}}get repeatMasterRow(){return this._repeatMastreRow}set repeatMasterRow(t){t!==this._repeatMastreRow&&(this._repeatMastreRow=t,this._changed(fA.PROP_DATA_BAND_REPEAT_MASTER_ROW,t,!t))}get repeatDetailHeader(){return this._repeatDetailHeader}set repeatDetailHeader(t){t!==this._repeatDetailHeader&&(this._repeatDetailHeader=t,this._changed(fA.PROP_DATA_BAND_REPEAT_DETAIL_HEADER,t,!t))}get repeatDetailFooter(){return this._repeatDetailFooter}set repeatDetailFooter(t){t!==this._repeatDetailFooter&&(this._repeatDetailFooter=t,this._changed(fA.PROP_DATA_BAND_REPEAT_DETAIL_FOOTER,t,!t))}get summaryRuntime(){return this._summaryRuntime}prepareIndices(t){this._doPrepareIndices(t);for(let e=0;e<this._detail.count;e++){const r=this._detail.get(e);r instanceof fA&&r.prepareIndices(t)}}getColPoints(t){const e=this.sectionGap,r=this.sectionCount,s=(t-e*(r-1))/r;let A=0;const i=[A];for(let t=0;t<r-1;t++)i.push(A+=s),i.push(A+=e);return i.push(A+=s),i}getColWidth(t){const e=this.sectionGap,r=this.sectionCount;return(t-e*(r-1))/r}getValues(t,e,r){if(r){const s=t.dp.get(this.data),A=[];for(let t=0;t<r.length;t++)A.push(s.getRowValue(e,r[t]));return A}}_selectRow(t,e,r){if(this._keyFlds){for(let r=0;r<Math.min(this._keyFlds.length,this._masterFlds.length);r++){if(t.getRowValue(e,this._keyFlds[r])!==this.masterValues[r])return!1}return!0}return r<this.detailRows}_getNextDetailRows(t,e){const r=[],s=t.dp.get(this.data);if(s){const t=s.rowCount;let A=e,i=0;for(;A<t&&this._selectRow(s,A,i);)r.push(A++),i++}return r}_skipDetailRows(t,e){if(this._keyFields){const r=t.dp.get(this.data);if(r){const t=r.rowCount;let s=e;for(;s<t&&this._selectRow(r,s,0);)s++;return s-e}}return 0}getRowsPerPage(){let t=this._rowsPerPage,e=!1;return t>0?e=!0:t=this._maxRowsPerPage>0?this._maxRowsPerPage:Number.MAX_SAFE_INTEGER,{rowsPerPage:t,breakRowsPerPage:e}}getEndRowCount(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=this._endRowCount,r=!0;return e>0?(e+=t,r=!1):e=this._maxEndRowCount>0?this._maxEndRowCount+t:0,{endRowCount:e,stopEndRow:r}}getCount(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(isNaN(e)){if(r)return r.length;return this.$_getSummary(t,e).count}return e}getVCount(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(r)return e<r.length&&(r=r.slice(0,e)),r.length?this.$_getVCount(t,r):0;return this.$_getSummary(t,e).count}getSum(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(r)return e<r.length&&(r=r.slice(0,e)),r.length?this.$_getSum(t,r):0;return this.$_getSummary(t,e).sum}getMin(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(r)return e<r.length&&(r=r.slice(0,e)),r.length?this.$_getMin(t,r):NaN;return this.$_getSummary(t,e).min}getMax(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(r)return e<r.length&&(r=r.slice(0,e)),r.length?this.$_getMax(t,r):NaN;return this.$_getSummary(t,e).max}getAvg(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(r)return e<r.length&&(r=r.slice(0,e)),r.length?this.$_getSum(t,r)/r.length:NaN;return this.$_getSummary(t,e).avg}get designLevel(){return this.bandLevel}get dataDominant(){return!0}_getEditProps(){return super._getEditProps().concat(fA.PROPINFOS)}_getStyleProps(){return["fontFamily","fontSize","fontWeight","color","backgroundColor"].concat(super._getStyleProps())}canAddTo(t){return super.canAddTo(t)&&!t.isDataRowContainer}canResize(t){return!1}canPageBreak(){return!0}_doLoad(t,e){super._doLoad(t,e),e.hasOwnProperty("columnCount")&&(this.sectionCount=e.columnCount),e.hasOwnProperty("columnLayout")&&(this.sectionLayout=e.columnLayout),e.hasOwnProperty("columnCount")&&(this.sectionGap=e.columnGap),this._loadPropsOf(e,fA.PROPINFOS),e.hasOwnProperty("detail")&&this._detail.load(t,e.detail)}_doSave(t){super._doSave(t),this._savePropsOf(t,fA.PROPINFOS),this._detail.save(t.detail={})}_doPreparePrint(t){var e;if(super._doPreparePrint(t),this.detailRows=Number.MAX_SAFE_INTEGER,this._keyFlds=this.isDetail&&this._keyFields?this._keyFields.split(/\s*\,\s*/):null,this._keyFlds){for(let t=0;t<this._keyFlds.length;t++)this._keyFlds[t]=this._keyFlds[t].trim();if(this._masterFields){this._masterFlds=this._masterFields?this._masterFields.split(/\s*\,\s*/):null;for(let t=0;t<this._masterFlds.length;t++)this._masterFlds[t]=this._masterFlds[t].trim()}else this._masterFlds=this._keyFlds}this._dataObj=t.dp.get(this.data),this._designData=null===(e=t.designDp)||void 0===e?void 0:e.get(this.data),this._fieldSummary={},this._summaryRuntime.prepare(this._dataObj,this._master&&this._master._dataObj)}clearSummary(){this._fieldSummary={}}testPrepare(t){this._dataObj=t,this._fieldSummary={}}$_getSummary(t,e){let r=this._fieldSummary[t];return r||(this._fieldSummary[t]=r={},this.$_calcSummary(t,r,e)),r}$_calcSummary(t,e,r){const s=this._dataObj,A=isNaN(r)?s.rowCount:r;let i=0,n=0,o=A?Number.MAX_VALUE:NaN,a=A?Number.MIN_VALUE:NaN;for(let e=0;e<A;e++){const r=+s.getRowValue(e,t);isNaN(r)||(i++,n+=r,o=Math.min(o,r),a=Math.max(a,r))}e.count=A,e.vcount=i,e.sum=n,e.min=o,e.max=a,e.avg=A?n/A:NaN}$_getVCount(t,e){const r=this._dataObj;let s=0;for(let A of e){const e=+r.getRowValue(A,t);isNaN(e)||s++}return s}$_getSum(t,e){const r=this._dataObj;let s=0;for(let A of e){const e=+r.getRowValue(A,t);isNaN(e)||(s+=e)}return s}$_getMin(t,e){const r=this._dataObj;let s=Number.MAX_VALUE;for(let A of e){const e=+r.getRowValue(A,t);isNaN(e)||(s=Math.min(s,e))}return s}$_getMax(t,e){const r=this._dataObj;let s=Number.MIN_VALUE;for(let A of e){const e=+r.getRowValue(A,t);isNaN(e)||(s=Math.max(s,e))}return s}}fA.PROP_DATA_BAND_MASTER_FIELDS="masterFields",fA.PROP_DATA_BAND_KEY_FIELDS="keyFields",fA.PROP_DATA_BAND_ROWS_PER_MASTER="rowsPerMaster",fA.PROP_DATA_BAND_SECTION_COUNT="sectionCount",fA.PROP_DATA_BAND_SECTIONLAYOUT="sectionLayout",fA.PROP_DATA_BAND_SECTION_GAP="sectionGap",fA.PROP_DATA_BAND_MAX_ROW_COUNT="maxRowCount",fA.PROP_DATA_BAND_ROWS_PER_PAGE="rowsPerPage",fA.PROP_DATA_BAND_MAX_ROWS_PER_PAGE="maxRowsPerPage",fA.PROP_DATA_BAND_REPEAT_MASTER_ROW="repeatMasterRow",fA.PROP_DATA_BAND_REPEAT_DETAIL_HEADER="repeatDetailHeader",fA.PROP_DATA_BAND_REPEAT_DETAIL_FOOTER="repeatDetailFooter",fA.PROP_DATA_BAND_END_ROW_COUNT="endRowCount",fA.PROP_DATA_BAND_MAX_END_ROW_COUNT="maxEndRowCount",fA.PROP_DATA_BAND_END_ROW_MESSAGE="endRowMessage",fA.PROPINFOS=[{name:fA.PROP_DATA_BAND_MASTER_FIELDS,category:Ge.BAND,type:Ze,multiple:!1,default:void 0,visible:t=>t.isDetail},{name:fA.PROP_DATA_BAND_KEY_FIELDS,category:Ge.BAND,type:Ze,multiple:!1,default:void 0,visible:t=>t.isDetail},{name:fA.PROP_DATA_BAND_ROWS_PER_MASTER,category:Ge.BAND,type:qe,multiple:!1,default:void 0,visible:t=>t.isDetail},{name:fA.PROP_DATA_BAND_SECTION_COUNT,category:Ge.BAND,type:qe,multiple:!1,default:1},{name:fA.PROP_DATA_BAND_SECTIONLAYOUT,category:Ge.BAND,type:sr,multiple:!1,default:vs.DOWN_ACROSS,domain:vs},{name:fA.PROP_DATA_BAND_SECTION_GAP,category:Ge.BAND,type:qe,multiple:!1,default:10},{name:fA.PROP_DATA_BAND_MAX_ROW_COUNT,category:Ge.DATA,type:qe,multiple:!1,default:void 0},{name:fA.PROP_DATA_BAND_ROWS_PER_PAGE,category:Ge.BAND,type:qe,multiple:!1,default:void 0},{name:fA.PROP_DATA_BAND_MAX_ROWS_PER_PAGE,category:Ge.BAND,type:qe,multiple:!1,default:void 0},{name:fA.PROP_DATA_BAND_REPEAT_MASTER_ROW,category:Ge.BAND,type:rr,multiple:!1,default:!1,visible:t=>!t.isDetail},{name:fA.PROP_DATA_BAND_REPEAT_DETAIL_HEADER,category:Ge.BAND,type:rr,multiple:!1,default:!0,visible:t=>t.isDetail},{name:fA.PROP_DATA_BAND_REPEAT_DETAIL_FOOTER,category:Ge.BAND,type:rr,multiple:!1,default:!1,visible:t=>t.isDetail},{name:fA.PROP_DATA_BAND_END_ROW_COUNT,category:Ge.BAND,type:qe,multiple:!1,default:void 0},{name:fA.PROP_DATA_BAND_MAX_END_ROW_COUNT,category:Ge.BAND,type:qe,multiple:!1,default:void 0},{name:fA.PROP_DATA_BAND_END_ROW_MESSAGE,category:Ge.BAND,type:Ze,multiple:!1,default:void 0}];class _A extends ws{constructor(t,e){super(""),this._owner=t,this._label=e,this.width="100%",this.designHeight=24}get owner(){return this._owner}getSaveType(){return this._label}get outlineLabel(){return"["+ot.capitalize(this._label)+"]"}get designLevel(){return this._owner.designLevel}get marqueeParent(){return this._owner}canAdd(t){return t instanceof fA&&super.canAdd(t)}canContainsBand(){return!0}_doItemAdded(t,e){super._doItemAdded(t,e),t instanceof fA&&(t._master=this._owner)}}_A.PROPINFOS=[];class mA extends cA{constructor(t,e){super(t,e)}getCollectionLabel(){return"tableBandColumn"}get band(){return this.collection.band}get displayPath(){return this.collection?this.collection.band.displayPath+".columns["+this.index+"]":"column"}get collection(){return super.collection}get marqueeParent(){var t;return null===(t=this.collection)||void 0===t?void 0:t.band}isAncestor(t){return t===this.collection.band}canRemoveFrom(){return this.collection&&this.collection.count>1}_changed(t,e,r){this.collection&&this.collection.$_columnChanged(this)}}class wA extends uA{constructor(t){super(t)}get band(){return this.owner}_createColumn(t){return new mA(this,t)}}class BA extends AA{constructor(t){super(t)}}BA.$_ctor="TableBandCellItem";class CA extends lA{constructor(t){super(null),this._band=t,this.rowCount=CA.DEFAULT_ROWS,this.width="100%"}get band(){return this._band}_getStyleProps(){return CA.STYLE_PROPS}needDesignWidth(){return!1}needDesignHeight(){return!1}canResize(t){return t===H.TOP||t===H.BOTTOM}get marqueeParent(){return this._band}get colCount(){return this._band?this._band.colCount:0}getColumn(t){return this._band.columns.get(t)}getCellWidths(){var t;return null===(t=this._band)||void 0===t?void 0:t.getCellWidths()}_createCell(t){return new BA(t)}isAncestorOf(t){return!!super.isAncestorOf(t)||(t===this.rows||(!!this.rows.isAncestorOf(t)||void 0))}}CA.PROP_LINES="lines",CA.STYLE_PROPS=["fontFamily","fontSize","fontWeight","color","backgroundColor"],CA.DEFAULT_ROWS=1;class yA extends CA{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];super(t),this._repeat=!0,this._pageSection=e}get repeat(){return this._repeat}set repeat(t){t!=this._repeat&&(this._repeat=t,this._changed(yA.PROP_TABLE_BAND_HEADER_REPEAT,t,!t))}get outlineLabel(){return this._pageSection?"[Page Header]":"[Band Header]"}get pathLabel(){return"header"}}yA.PROP_TABLE_BAND_HEADER_REPEAT="repeat",yA.$_ctor="TableBandHeader";class vA extends CA{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];super(t),this._attachToBody=!1,this._pageSection=e}get attachToBody(){return this._attachToBody}set attachToBody(t){t!==this._attachToBody&&(this._attachToBody=t,this._changed(vA.PROP_ATTACH_TO_BODY,t,!t))}get outlineLabel(){return this._pageSection?"[Page Footer]":"[Band Footer]"}get pathLabel(){return"footer"}_getEditProps(){return super._getEditProps().concat(vA.PROPINFOS)}_doLoad(t,e){super._doLoad(t,e),this._loadPropsOf(e,vA.PROPINFOS)}_doSave(t){super._doSave(t),this._savePropsOf(t,vA.PROPINFOS)}}vA.PROP_ATTACH_TO_BODY="attachToBody",vA.PROPINFOS=[{name:vA.PROP_ATTACH_TO_BODY,category:Ge.BAND,type:rr,multiple:!1,default:!1}],vA.$_ctor="TableBandFooter";class EA extends CA{constructor(){super(...arguments),this.masterRow=NaN}get blankItems(){return this._blankItems}canBlank(t,e){if(this.band.dataObj.equalRows(e,e-1,t.$_blankFlds))return!0}getMergedColumns(){const t=[];return this.items.forEach((e=>{const r=e.item;if(r.mergedInGroup){const e=r.col;t.indexOf(e)<0&&t.push(e)}})),t.length?t:null}get outlineLabel(){return"[Data Row]"}get pathLabel(){return"dataRow"}get dataDominant(){return!0}get isDataRowContainer(){return!0}_getChildPropInfos(t){return EA.CHILD_PROPS.concat(super._getChildPropInfos(t))}_doLoadChild(t,e){super._doLoadChild(t,e),this._loadChildPropsOf(t,e,EA.CHILD_PROPS)}_doPreparePrint(t){super._doPreparePrint(t),this._blankItems=this.$_collectBlankItems()}$_collectBlankItems(){return this.collectBlankItems(this.items.map((t=>t.item)))}}EA.PROP_EQUAL_BLANK="equalBlank",EA.PROP_BLANK_FIELDS="blankFields",EA.PROP_MERGED_IN_GROUP="mergedInGroup",EA.CHILD_PROPS=[{name:EA.PROP_EQUAL_BLANK,category:Ge.BAND,type:rr,multiple:!1,default:!1},{name:EA.PROP_BLANK_FIELDS,category:Ge.BAND,type:Ze,multiple:!1,default:void 0},{name:EA.PROP_MERGED_IN_GROUP,category:Ge.BAND,type:rr,multiple:!1,default:!1}],EA.$_ctor="TableBandRow";class bA extends lA{constructor(t,e){super(e),this._group=t,this.rowCount=bA.DEFAULT_ROWS,this.width="100%"}get group(){return this._group}get band(){var t;return null===(t=this._group)||void 0===t?void 0:t.band}_getStyleProps(){return CA.STYLE_PROPS}needDesignHeight(){return!1}needDesignWidth(){return!1}canResize(t){return t===H.TOP||t===H.BOTTOM}get marqueeParent(){return this.band}get colCount(){return this.band?this.band.colCount:0}getColumn(t){return this.band.columns.get(t)}getCellWidths(){var t;return null===(t=this.band)||void 0===t?void 0:t.getCellWidths()}_createCell(t){return new BA(t)}isAncestorOf(t){return!!super.isAncestorOf(t)||(t===this.rows||(!!this.rows.isAncestorOf(t)||void 0))}}bA.STYLE_PROPS=["fontFamily","fontSize","fontWeight","color","backgroundColor"],bA.DEFAULT_ROWS=1;class xA extends bA{constructor(t){super(t,"groupHeader")}get outlineLabel(){return"[Group Header]"}get pathLabel(){return"header"}}xA.$_ctor="TableBandRowGroupHeader";class PA extends bA{constructor(t){super(t,"groupFooter"),this._merged=!0}get merged(){return this._merged}set merged(t){t!=this._merged&&(this._merged=t,this._changed(PA.PROP_MERGED,t,!t))}get outlineLabel(){return"[Group Footer]"}get pathLabel(){return"footer"}getEditProps(){return super.getEditProps().concat(PA.PROPINFOS)}_doLoad(t,e){super._doLoad(t,e),this._loadPropsOf(e,PA.PROPINFOS)}_doSave(t){super._doSave(t),this._savePropsOf(t,PA.PROPINFOS)}}PA.PROP_MERGED="merged",PA.PROPINFOS=[],PA.$_ctor="TableBandRowGroupFooter";class IA extends gA{constructor(t){super("tableBandRowGroup"),this._merged=!0,this.add(this._header=new xA(this)),this.add(this._footer=new PA(this)),this._collection=t}get outlineParent(){return this._collection}get marqueeParent(){return this.band}getEditProps(){return super.getEditProps().concat(IA.PROPINFOS)}getCollectionLabel(){return"tableBandGroup"}get header(){return this._header}get footer(){return this._footer}get band(){var t;return null===(t=this._collection)||void 0===t?void 0:t.band}get page(){var t;return null===(t=this.band)||void 0===t?void 0:t.page}get report(){var t;return null===(t=this.band)||void 0===t?void 0:t.report}get collection(){return this._collection}get dataParent(){return this.band}get outlineLabel(){return"[Group]"}get displayPath(){return this.collection?this.collection.band.displayPath+".groups["+this.index+"]":"group"}_ignoreItems(){return!0}_doLoad(t,e){super._doLoad(t,e),this._loadPropsOf(e,IA.PROPINFOS),e.hasOwnProperty("header")&&this._header.load(t,e.header),e.hasOwnProperty("footer")&&this._footer.load(t,e.footer)}_doSave(t){super._doSave(t),this._savePropsOf(t,IA.PROPINFOS),this._header.save(t.header={}),this._footer.save(t.footer={})}_changed(t,e,r){super._changed(t,e,r),this._collection&&this._collection.$_groupChanged(this)}}IA.PROPINFOS=[];class SA extends Cs{constructor(t){super(),this._groups=[],this._band=t}get outlineParent(){return this._band}get outlineLabel(){return"[Groups]"}get outlineExpandable(){return!0}get outlineItems(){return this._groups}getSaveType(){return"groups"}get band(){return this._band}get count(){return this._groups.length}get items(){return this._groups.slice()}get visibleCount(){let t=0;for(let e of this._groups)e.visible&&t++;return t}get groups(){return this._groups.slice()}load(t,e){if(this._groups=[],e&&e.length>0){for(let r of e)if(r){const e=new IA(this);e.load(t,r),this._groups.push(e)}this.$_invalidateGroups()}}save(t){for(let e of this._groups){const r={};e.save(r),t.push(r)}}get(t){return this._groups[t]}indexOf(t){return this._groups.indexOf(t)}add(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;const r=this.$_add(t,e);if(r)return this.$_invalidateGroups(),this._itemAdded(r),r}addAll(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;if(!t||t.length<1)return;const r=this._groups.length;e=e<0?this._groups.length:Math.max(0,this._groups.length);for(let r of t)this.$_add(r,e)&&e++;return this._groups.length!=r?(this.$_invalidateGroups(),!0):void 0}removeAt(t){if(t>=0&&t<this._groups.length){const e=this._groups.splice(t,1)[0];return this.$_invalidateGroups(),this._itemRemoved(e,this._band),!0}}remove(t){return this.removeAt(this.indexOf(t))}clear(){if(this._groups.length>0)return this._groups=[],this.$_invalidateGroups(),!0}getValidGroups(t){if(t){const e=[];for(let r of this._groups){const s=r.field;ot.isNumber(s)?s>=0&&s<t.fieldCount&&e.push(r):t.containsField(s)&&e.push(r)}return e.length?e:null}return null}get page(){var t;return null===(t=this._band)||void 0===t?void 0:t.page}get displayPath(){return this._band?this._band.displayPath+".groups":"groups"}get level(){return this._band?this._band.level+1:0}isAncestorOf(t){if(super.isAncestorOf(t))return!0;if(this._groups.indexOf(t)>=0)return!0;for(let e of this._groups)if(e.indexOf(t))return!0}$_add(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;if(!(t instanceof IA)){const e=t;t=new IA(this),e&&t.extend(e),t.header.cells.prepareCells(),t.footer.cells.prepareCells()}if(t instanceof IA&&this._groups.indexOf(t)<0)return e<0?this._groups.push(t):this._groups.splice(Math.min(e,this._groups.length),0,t),t}$_invalidateGroups(){for(let t=this._groups.length-1;t>=0;t--)this._groups[t]._index=t;this._band&&this._band.$_groupChanged(null)}$_groupChanged(t){this._band&&this._band.$_groupChanged(t)}}class TA extends fA{constructor(t){super(t),this._columns=new wA(this),this._groups=new SA(this),this.add(this._header=new yA(this)),this.add(this._footer=new vA(this)),this.add(this._dataRow=new EA(this)),this._tables=[this._header,this._footer,this._dataRow],this._setOutlineOrders(1,this._dataRow,this._footer,this.detail),this.width="100%"}get outlineItems(){return[this._columns,this._groups].concat(super.outlineItems)}get colCount(){return this._colCount||0}set colCount(t){if((t=Math.max(1,t))!==this._colCount){const e=this._colCount,r=e-t;this._colCount=t,this._columns.count=t,t<e?this._tables.forEach((e=>{e._removeCols(t,r)})):this._tables.forEach((t=>{t._resetCells()})),this._changed(TA.PROP_COL_COUNT,t,e)}}get columns(){return this._columns}get groups(){return this._groups}get header(){return this._header}get footer(){return this._footer}get dataRow(){return this._dataRow}get pr(){return this._pr}get tr(){return this._tr}get lastTrs(){return this._lastTrs}getColumn(t){return this._columns.get(t)}getGroup(t){return this._groups.get(t)}getTables(){const t=this._groups,e=[this._header,this._dataRow,this._footer];for(let r=0;r<t.count;r++){const s=t.get(r);e.push(s.header,s.footer)}return e}removeColumn(t){const e="number"==typeof t?t:this._columns.indexOf(t);e>=0&&e<this._colCount&&(this._columns.remove(e),this._colCount--,this.getTables().forEach((t=>{t._removeColumn(e)})),this._changed(TA.PROP_COL_COUNT,this._colCount,this._colCount+1))}addColumn(t,e){if(t>=0&&t<=this._colCount){const r=this._columns.add(e,t);return this._colCount++,this.getTables().forEach((e=>{e._addColumn(t)})),this._changed(TA.PROP_COL_COUNT,this._colCount,this._colCount-1),r}}canMoveColumns(t,e,r){let s=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return!this.getTables().some((A=>!A.canMoveCols(t,e,r,s)))}getNearestMovableColumn(t,e,r){let s=t+r;return this.getTables().forEach((A=>{const i=A.getNearestMovableColumn(t,e,r);s=r>0?Math.max(s,i):Math.min(s,i)})),s}moveColumns(t,e,r){if(arguments.length>3&&void 0!==arguments[3]&&arguments[3]||this.canMoveColumns(t,e,r))return this._columns.move(t,e,r),this.getTables().forEach((s=>{s._moveCols(t,e,r)})),this.layoutChanged=!0,this._changed(lA.PROP_CELL_LAYOUT,void 0,void 0),!0}getCellWidths(){return this._columns.getWidths()}setPrinting(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t.row=this._pr=e,this._tr+=r,this._lastTrs=r}getSaveType(){return"tableband"}get outlineLabel(){return"[Table Band]"}get isBand(){return!0}_ignoreItems(){return!0}_valueable(){return!0}_getEditProps(){return super._getEditProps().concat(TA.PROPINFOS)}_doDefaultInit(t,e,r,s){super._doDefaultInit(t,e,r,s),this.colCount=TA.DEFAULT_COL_COUNT}isAncestorOf(t){return!!super.isAncestorOf(t)||(t===this._groups||(!!this._groups.isAncestorOf(t)||void 0))}_doLoad(t,e){super._doLoad(t,e),e&&(this._loadProps(e,"colCount"),e.hasOwnProperty("fields")&&(this._colCount=this._columns.load(e.fields,this._colCount)),e.hasOwnProperty("columns")&&(this._colCount=this._columns.load(e.columns,this._colCount)),e.hasOwnProperty("groups")&&this._groups.load(t,e.groups),e.hasOwnProperty("header")&&this._header.load(t,e.header),e.hasOwnProperty("footer")&&this._footer.load(t,e.footer),e.hasOwnProperty("row")&&this._dataRow.load(t,e.row),e.hasOwnProperty("dataRow")&&this._dataRow.load(t,e.dataRow))}_doSave(t){super._doSave(t),this._saveProps(t,"colCount"),this._columns.count&&this._columns.save(t.columns=[]),this._groups.count&&this._groups.save(t.groups=[]),this._header.save(t.header={}),this._footer.save(t.footer={}),this._dataRow.save(t.dataRow={})}$_columnChanged(t){this._changed(TA.PROP_COLUMNS,this._columns,this._columns)}$_groupChanged(t){this._changed(TA.PROP_GROUPS,this._groups,this._groups)}_doPreparePrint(t){super._doPreparePrint(t),this._groups.preparePrint(t)}_doPrepareIndices(t){t.row=t.index=this._pr=this._tr=0,this._lastTrs=0}remove(t){}getNextDetailRows(t){return this._getNextDetailRows(t,this._pr)}skipDetailRows(t){const e=this._skipDetailRows(t,this._pr);this._pr+=e}}TA.PROP_COL_COUNT="colCount",TA.PROP_COLUMNS="columns",TA.PROP_GROUPS="groups",TA.PROPINFOS=[{name:TA.PROP_COL_COUNT,category:Ge.TABLE,type:qe,multiple:!1,default:0}],TA.DEFAULT_COL_COUNT=5,TA.$_ctor="TableBand",TA.ITEM_TYPE="Table Band";class FA extends tA{constructor(t,e){if(super("Change tableband cols"),at(!!t),this._band=t,this._oldCols=t.colCount,this._cols=e,e<this._oldCols){const r=this._deleted=[[],[],[]];t.getTables().forEach((t=>{let s=[];for(let r=e;r<this._oldCols;r++)s=s.concat(t.getColItems(r));r.push(s)}));const s=this._cells=[];t.getTables().forEach((t=>{s.push(t.cells.truncateCol(e))}))}}_doDispose(){this._band=null}get band(){return this._band}get cols(){return this._cols}redo(t){this._band.colCount=this._cols}undo(){const t=this._band,e=this._deleted,r=this._cells;t.colCount=this._oldCols,e&&(t.getTables().forEach(((t,r)=>{e[r].forEach((e=>{t.add(e)}))})),t.getTables().forEach(((t,e)=>{t.cells.restoreCells(r[e])})))}get source(){return this._band}}class RA extends tA{constructor(t,e,r){super("Add Band Field"),at(!!t),this._band=t,this._index=e,this._config=r}_doDispose(){this._band=this._column=null}get band(){return this._band}get index(){return this._index}redo(t){const e=this._band,r=this._index,s=this._cells=[];e.getTables().forEach((t=>{s.push(t.cells.addCol(r))})),this._column=e.addColumn(r,this._config)}undo(){const t=this._band,e=this._index;t.getTables().forEach((t=>{t.cells.removeCol(e)})),t.removeColumn(this._column),t.getTables().forEach(((t,e)=>{t.cells.restoreCells(this._cells[e])}))}get source(){return this._column}}class OA extends tA{constructor(t){super("Remove TableBandColumn"),this._deleted=[],at(!!t);const e=this._band=t.band;at(!!e),this._column=t;const r=this._index=e.columns.indexOf(t);e.getTables().forEach((t=>{this._deleted.push(t.getColItems(r))}))}_doDispose(){this._band=this._column=null}get band(){return this._band}get column(){return this._column}get index(){return this._index}redo(t){this._cells=[],this._band.getTables().forEach((t=>{this._cells.push(t.cells.removeCol(this._index))})),this._band.removeColumn(this._column)}undo(){const t=this._band,e=this._index;t.getTables().forEach(((t,r)=>{t.cells.addCol(e)})),t.addColumn(e,this._column),t.getTables().forEach(((t,e)=>{this._deleted[e].forEach((e=>{t.add(e)})),t.cells.restoreCells(this._cells[e])}))}get source(){return this._column}}class QA extends tA{constructor(t,e,r,s,A){super("Move TableBand Columns"),this._band=t,at(!!t),this._column=t.getColumn(this._index=e),this._count=r,this._newIndex=s,this._force=A}_doDispose(){this._band=this._column=null}get band(){return this._band}redo(t){this._cells=[],this._band.getTables().forEach((t=>{if(this._cells.push(t.cells.moveCols(this._index,this._count,this._newIndex)),!this._cells)throw new Error("TableCellCollection.moveCols failed: "+this._index+", "+this._count+", "+this._newIndex)})),this._band.moveColumns(this._index,this._count,this._newIndex,this._force)}undo(){this._band.getTables().forEach(((t,e)=>{t.cells.restoreCells(this._cells[e])})),this._band.moveColumns(this._newIndex,this._count,this._index,!0)}get source(){return this._column}}class DA extends cA{constructor(t,e){super(t,e)}get table(){return this.collection.table}get displayPath(){return this.collection?this.collection.table.displayPath+".columns["+this.index+"]":"column"}get collection(){return super.collection}get marqueeParent(){var t;return null===(t=this.collection)||void 0===t?void 0:t.table}isAncestor(t){return t===this.collection.table}canRemoveFrom(){return this.collection&&this.collection.count>1}_changed(t,e,r){this.collection&&this.collection.$_columnChanged(this)}}class LA extends uA{constructor(t){super(t)}get table(){return this.owner}_createColumn(t){return new DA(this,t)}}class UA extends AA{constructor(t){super(t)}get pathLabel(){return"cell["+this.row+","+this.col+"]"}}UA.$_ctor="TableCellItem";class HA extends lA{constructor(t){super(t),this._columns=new LA(this)}changeColumnWidth(t,e){}getColumnWidth(t){return this._columns.get(t).width}get outlineItems(){return[this._columns].concat(super.outlineItems)}get baseTable(){return this._baseTable}set baseTable(t){if(t!=this._baseTable){const e=this._baseTable;this._baseTable=t,this._changed(HA.PROP_BASE_TABLE,t,e)}}get colCount(){return this._colCount||0}set colCount(t){if((t=Math.max(1,t))!==this._colCount){const e=this._colCount;this._colCount=t,this._columns.count=t,t<e?this._removeCols(t,e-t):this._resetCells(),this._changed(HA.PROP_COL_COUNT,t,e)}}get columns(){return this._columns}getColumn(t){return this._columns.get(t)}removeColumn(t){const e="number"==typeof t?t:this._columns.indexOf(t);e>=0&&e<this._colCount&&(this._columns.remove(e),this._colCount--,this._removeColumn(e),this._changed(HA.PROP_COL_COUNT,this._colCount,this._colCount+1))}addColumn(t,e){if(t>=0&&t<=this._colCount){const r=this._columns.add(e,t);return this._colCount++,this._addColumn(t),this._changed(HA.PROP_COL_COUNT,this._colCount,this._colCount-1),r}}canMoveColumns(t,e,r){let s=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return this.canMoveCols(t,e,r,s)}moveColumns(t,e,r){if(arguments.length>3&&void 0!==arguments[3]&&arguments[3]||this.canMoveCols(t,e,r))return this._columns.move(t,e,r),this._moveCols(t,e,r),this.layoutChanged=!0,this._changed(lA.PROP_CELL_LAYOUT,void 0,void 0),!0}getSaveType(){return"table"}get outlineLabel(){return"[Table] ("+this.rowCount+" x "+this.colCount+")"}get pathLabel(){return"table"}needDesignWidth(){return!1}needDesignHeight(){return!1}_datable(){return!0}_getEditProps(){return super._getEditProps().concat(HA.PROPINFOS)}_doDefaultInit(t,e,r,s){super._doDefaultInit(t,e,r,s);const A=this.colCount=HA.DEFAULT_COL_COUNT;this.rowCount=HA.DEFAULT_ROW_COUNT,this.width="100%",this._columns.forEach(((t,e)=>{const r=Math.floor(100/A);t.width=r+"%"}))}_doLoad(t,e){e&&(this._loadProps(e,"data","colCount","baseTable"),e.hasOwnProperty("columns")&&(this._colCount=this._columns.load(e.columns,this._colCount)),super._doLoad(t,e))}_doLoadChild(t,e){super._doLoadChild(t,e),this._loadChildProps(t,[],e)}_doSave(t){super._doSave(t),this._saveProps(t,"data","colCount","baseTable"),this._columns.count&&this._columns.save(t.columns=[])}_createCell(t){return new UA(t)}getCellWidths(){return this._baseContainer&&this._baseContainer.getCellWidths()||this._columns.getWidths()}prepareLayout(){return this._baseContainer=this._baseTable&&this.page.getItem(this._baseTable),super.prepareLayout()}$_columnChanged(t){this._changed(HA.PROP_COLUMNS,this._columns,this._columns)}}HA.PROP_BASE_TABLE="baseTable",HA.PROP_COL_COUNT="colCount",HA.PROP_COLUMNS="columns",HA.PROPINFOS=[{name:HA.PROP_BASE_TABLE,category:Ge.TABLE,type:Ze,multiple:!1,default:void 0},{name:HA.PROP_COL_COUNT,category:Ge.TABLE,type:qe,multiple:!1,default:0}],HA.DEFAULT_ROW_COUNT=4,HA.DEFAULT_COL_COUNT=4,HA.$_ctor="TableContainer",HA.ITEM_TYPE="Table";class NA extends tA{constructor(t,e){if(super("Change table cols"),at(!!t),this._table=t,this._oldCols=t.colCount,this._cols=e,e<this._oldCols){this._deleted=[],this._indices=[];for(let r=0;r<t.rowCount;r++)for(let s=e;s<this._oldCols;s++){const e=t.getCellItemAt(r,s);e&&(this._deleted.push(e.item),this._indices.push(e.index))}this._deleted=this._deleted.sort(((t,e)=>t.parent.index-e.parent.index)),this._indices=this._indices.sort(((t,e)=>t-e)),this._cells=t.cells.truncateCol(e)}}_doDispose(){this._table=null}get table(){return this._table}get cols(){return this._cols}redo(t){this._table.colCount=this._cols}undo(){const t=this._table;t.colCount=this._oldCols,this._deleted&&(this._deleted.forEach(((e,r)=>{t.add(e,this._indices[r])})),t.cells.restoreCells(this._cells))}get source(){return this._table}}class MA extends tA{constructor(t){super("Remove TableColumn"),this._deleted=[],at(!!t);const e=this._table=t.table;at(!!e),this._column=t;const r=this._index=e.columns.indexOf(t);this._deleted=e.getColItems(r)}_doDispose(){this._table=this._column=null}get table(){return this._table}get column(){return this._column}get index(){return this._index}redo(t){this._cells=this._table.cells.removeCol(this._index),this._table.removeColumn(this._column)}undo(){const t=this._table;t.cells.addCol(this._index),t.addColumn(this._index,this._column),this._deleted.forEach((e=>{t.append(e,!0)})),t.cells.restoreCells(this._cells)}get source(){return this._column}}class kA extends tA{constructor(t,e){super("Add Table Column"),this._table=t,at(!!t),this._index=e}_doDispose(){this._table=this._column=null}get table(){return this._table}get index(){return this._index}redo(t){this._cells=this._table.cells.addCol(this._index),this._column=this._table.addColumn(this._index,null)}undo(){this._table.cells.removeCol(this._index),this._table.removeColumn(this._index),this._table.cells.restoreCells(this._cells)}get source(){return this._column}}class VA extends tA{constructor(t,e,r,s,A){super("Move Table Columns"),this._table=t,at(!!t),this._column=t.getColumn(this._index=e),this._count=r,this._newIndex=s,this._force=A}_doDispose(){this._table=this._column=null}get table(){return this._table}redo(t){if(this._cells=this._table.cells.moveCols(this._index,this._count,this._newIndex),!this._cells)throw new Error("TableCellCollection.moveRows failed: "+this._index+", "+this._count+", "+this._newIndex);this._table.moveColumns(this._index,this._count,this._newIndex,this._force)}undo(){this._table.cells.restoreCells(this._cells),this._table.moveColumns(this._newIndex,this._count,this._index,!0)}get source(){return this._column}}class GA extends tA{constructor(t,e){super("Change table rows"),at(!!t);const r=this._oldCount=t.rowCount,s=t.colCount;if(this._table=t,this._rows=e,e<r){this._deleted=[],this._indices=[];for(let A=e;A<r;A++)for(let e=0;e<s;e++){const r=t.getCellItemAt(A,e);r&&(this._deleted.push(r.item),this._indices.push(r.index))}this._deleted=this._deleted.sort(((t,e)=>t.parent.index-e.parent.index)),this._indices=this._indices.sort(((t,e)=>t-e)),this._cells=t.cells.truncateRow(e)}}_doDispose(){this._table=null}get table(){return this._table}get cols(){return this._rows}redo(t){this._table.rowCount=this._rows}undo(){const t=this._table;t.rowCount=this._oldCount,this._deleted&&(this._deleted.forEach(((e,r)=>{t.add(e,this._indices[r])})),t.cells.restoreCells(this._cells))}get source(){return this._table}}class KA extends tA{constructor(t){super("Remove TableRow"),at(!!t);const e=this._table=t.table;at(!!e),this._row=t;const r=this._index=e.rows.indexOf(t);this._deleted=e.getRowItems(r)}_doDispose(){this._table=this._row=this._cells=null}get table(){return this._table}get row(){return this._row}get index(){return this._index}redo(t){this._cells=this._table.cells.removeRow(this._index),this._table.removeRow(this._row)}undo(){const t=this._table;t.cells.addRow(this._index),t.addRow(this._index,this._row),this._deleted.forEach((e=>{t.append(e,!0)})),t.cells.restoreCells(this._cells)}get source(){return this._row}}class WA extends tA{constructor(t,e){super("Add TableRow"),this._table=t,at(!!t),this._index=e}_doDispose(){this._table=this._row=null}get table(){return this._table}get index(){return this._index}redo(t){this._cells=this._table.cells.addRow(this._index),this._row=this._table.addRow(this._index,null)}undo(){this._table.cells.removeRow(this._index),this._table.removeRow(this._index),this._table.cells.restoreCells(this._cells)}get source(){return this._row}}class zA extends tA{constructor(t,e,r,s,A){super("Move Table Rows"),this._table=t,at(!!this._table),this._row=t.rows.get(this._index=e),this._count=r,this._newIndex=s,this._force=A}_doDispose(){this._table=this._row=null}get table(){return this._table}redo(t){if(this._cells=this._table.cells.moveRows(this._index,this._count,this._newIndex),!this._cells)throw new Error("TableCellCollection.moveRows failed: "+this._index+", "+this._count+", "+this._newIndex);this._table.moveRows(this._index,this._count,this._newIndex,this._force)}undo(){this._table.cells.restoreCells(this._cells),this._table.moveRows(this._newIndex,this._count,this._index,!0)}get source(){return this._row}}class XA extends tA{constructor(t){super("Merge Table Selection"),this._table=t.table,at(!!this._table),this._sel=t;const e=this._bounds=t.table.cells.mergeBoundsOf(t);this._deleted=this._table.getRectItems(e.r1,e.c1,e.r2,e.c2,!0)}_doDispose(){this._table=this._bounds=null}get table(){return this._table}get bounds(){return this._bounds}redo(t){const e=this._bounds;this._cells=this._table.cells.merge(e.r1,e.c1,e.r2,e.c2),this._table.mergeCells(e.r1,e.c1,e.r2,e.c2)}undo(){const t=this._table;this._deleted.forEach((e=>{t.append(e,!0)})),t.cells.restoreCells(this._cells)}get source(){return this._sel.selectItem}}class JA extends tA{constructor(t){super("Unmerge Table Cell"),this._table=t.table,at(!!this._table),this._cell=t}_doDispose(){this._table=this._cell=null}get table(){return this._table}redo(t){this._cells=this._table.cells.unmerge(this._cell)}undo(){this._table.cells.restoreCells(this._cells)}get source(){return this._cell}}class YA extends tA{constructor(t,e,r,s){super("Adjust Table Column Widths"),this._table=t,at(!!this._table),this._column=t.getColumn(e),at(!!this._column),this._sibling=t.getColumn(e+1),at(!!this._sibling),this._colPoints=r.slice(0),this._newSize=s,this._oldWidth=this._column.width,this._oldSiblingWidth=this._sibling.width}_doDispose(){this._table=this._column=this._sibling=null}redo(t){if(ot.isNotDefined(this._newWidth)){const t=this._table.columns.adjustWidths(this._column.index,this._colPoints,this._newSize);this._newWidth=t[0],this._newSiblingWidth=t[1]}this._column.width=this._newWidth,this._sibling.width=this._newSiblingWidth}undo(){this._column.width=this._oldWidth,this._sibling.width=this._oldSiblingWidth}get source(){return this._column}}class $A extends tA{constructor(t,e,r,s){super("Adjust Table Row Heights"),this._table=t,at(!!this._table),this._row=t.getRow(e),at(!!this._row),this._sibling=t.getRow(e+1),at(!!this._sibling),this._rowPoints=r.slice(0),this._newSize=s,this._oldHeight=this._row.height,this._oldSiblingHeight=this._sibling.height}_doDispose(){this._table=this._row=this._sibling=null}redo(t){if(ot.isNotDefined(this._newHeight)){const t=this._table.rows.adjustHeights(this._row.index,this._rowPoints,this._newSize);this._newHeight=t[0],this._newSiblingHeight=t[1]}this._row.height=this._newHeight,this._sibling.height=this._newSiblingHeight}undo(){this._row.height=this._oldHeight,this._sibling.height=this._oldSiblingHeight}get source(){return this._row}}class jA extends ms{constructor(t,e){super(e),this._chart=t,this.visible=this._isDefaultVisible()}get chart(){return this._chart}canHide(){return!0}get page(){return this._chart.page}get report(){return this._chart.report}get dataParent(){return this._chart}get marqueeParent(){return this._chart}getSaveType(){return""}_getEditProps(){return jA.PROPINFOS}_doLoad(t,e){e.hasOwnProperty("visible")&&(this.visible=e.visible)}_doSave(t){this.visible!==this._isDefaultVisible()&&(t.visible=this.visible)}_isDefaultVisible(){return!0}_getPropsWrapper(t,e,r){const s=this.getEditProps();return s&&s.forEach((s=>{if(!e||e.indexOf(s.name)<0){const e=this[s.name],A=r&&r[s.name]||s.name;e instanceof jA||void 0!==e&&(t[A]=e)}})),t}}jA.PROPINFOS=[{name:ms.PROP_VISIBLE,category:Ge.BASIC,type:rr,multiple:!1,default:void 0,visible:t=>t.canHide()}];class ZA extends jA{constructor(t){super(t),this._text="Title"}get text(){return this._text}set text(t){if(t!==this._text){const e=this._text;this._text=t,this._changed(ZA.PROP_TEXT,t,e)}}_getEditProps(){return super._getEditProps().concat(ZA.PROPINFOS)}_getStyleProps(){return["color","fontSize","fontWeight"]}_doLoad(t,e){super._doLoad(t,e),this._loadPropsOf(e,ZA.PROPINFOS)}_doSave(t){super._doSave(t),this._savePropsOf(t,ZA.PROPINFOS)}}ZA.PROP_TEXT="text",ZA.PROPINFOS=[{name:ZA.PROP_TEXT,category:"",type:Ze,multiple:!1,default:void 0}];class qA extends jA{constructor(t){super(t),this._designVisible=!0,this._values=[3,4,7,2,4]}getPropDomain(t){if(this.report){if(t.name===qA.PROP_DATA)return[void 0].concat(this.chart.report.designData.getNames());if(t.name===qA.PROP_VALUE_FIELD)return this.getDataFieldNames()}}get designVisible(){return this._designVisible}set designVisible(t){t!=this._designVisible&&(this._designVisible=t,this._changed("designVisible",t,!t))}get valueField(){return this._valueField}set valueField(t){if(t!==this._valueField){const e=this._valueField;this._valueField=t,this._changed(qA.PROP_VALUE_FIELD,t,e)}}get values(){return this._values}set values(t){if(t!==this._values){const e=this._values;this._values=null==t?void 0:t.slice(),this._changed(qA.PROP_VALUES,t,e)}}getValues(t,e){if(t&&this._valueField){const t=this.data||this._getParentData();if(t)return e.getFieldValues(t,this._valueField)}return this._values}getSaveType(){return this.seriesType}get displayPath(){return this.chart.displayPath+".series["+this.index+"]"}get outlineLabel(){return"["+this.index+"] "+ot.capitalize(this.seriesType)}_getEditProps(){return super._getEditProps().concat(qA.PROPINFOS)}_doLoad(t,e){super._doLoad(t,e),this._loadPropsOf(e,qA.PROPINFOS)}_doSave(t){super._doSave(t),this._savePropsOf(t,qA.PROPINFOS)}}qA.PROP_VALUE_FIELD="valueField",qA.PROP_VALUES="values",qA.PROPINFOS=[{name:ms.PROP_NAME,category:Ge.BASIC,type:Ze,multiple:!1,default:void 0},{name:ms.PROP_DATA,category:Ge.DATA,type:ir,multiple:!1,default:void 0},{name:qA.PROP_VALUE_FIELD,category:Ge.SERIES,type:ir,multiple:!1,default:void 0},{name:qA.PROP_VALUES,category:Ge.SERIES,type:or,multiple:!1,default:void 0}];class ti extends Cs{constructor(t){super(),this._series=[],this._chart=t}get outlineParent(){return this._chart}get outlineLabel(){return"[Series]"}get outlineExpandable(){return!0}get outlineItems(){return this._series}get chart(){return this._chart}get count(){return this._series.length}get items(){return this._series.slice()}get visibleCount(){let t=0;for(let e of this._series)e.visible&&t++;return t}load(t,e){if(this._series=[],e&&e.length>0){for(let r of e)if(r){const e=this._createSeries(t,r);e.load(t,r),this._series.push(e)}this.$_invalidateSeries()}}save(t){for(let e of this._series){const r={};e.save(r),t.push(r)}}get(t){return this._series[t]}indexOf(t){return this._series.indexOf(t)}add(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;const s=this.$_add(t,e,r);if(s)return this.$_invalidateSeries(),this._itemAdded(s),s}addAll(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;if(!e||e.length<1)return;const s=this._series.length;r=r<0?this._series.length:Math.max(0,this._series.length);for(let s of e)this.$_add(t,s,r)&&r++;return this._series.length!=s?(this.$_invalidateSeries(),!0):void 0}removeAt(t){if(t>=0&&t<this._series.length){const e=this._series.splice(t,1)[0];return this.$_invalidateSeries(),this._itemRemoved(e,this._chart),!0}}remove(t){return this.removeAt(this.indexOf(t))}clear(){if(this._series.length>0)return this._series=[],this.$_invalidateSeries(),!0}select(t){for(let e of this._series)e.designVisible=!t||t===e}getSaveType(){return"series"}get page(){var t;return null===(t=this._chart)||void 0===t?void 0:t.page}get displayPath(){return this._chart?this._chart.displayPath+".series":"series"}get level(){return this._chart?this._chart.level+1:0}isAncestorOf(t){return!!super.isAncestorOf(t)||(this._series.indexOf(t)>=0||void 0)}$_add(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;if(!(e instanceof qA)){const r=e;e=this._createSeries(t,r),r&&e.load(t,r)}if(e instanceof qA&&this._series.indexOf(e)<0)return r<0?this._series.push(e):this._series.splice(Math.min(r,this._series.length),0,e),e}$_invalidateSeries(){for(let t=this._series.length-1;t>=0;t--)this._series[t]._index=t;this._seriesChanged(null)}$_seriesChanged(t){this._seriesChanged(null)}}var ei,ri,si,Ai;!function(t){t.CIRCLE="circle",t.SQUARE="square",t.DIAMOND="diamond",t.TRIANGLE="triangle",t.TRIANGLE_DOWN="triangle-down"}(ei||(ei={}));class ii extends ZA{constructor(t){super(t)}getSaveLabel(){return"title"}_doDefaultInit(t,e,r,s){this.text="Title"}}class ni extends ws{constructor(t){super(t),this._inverted=!1,this._title=new ii(this),this._xAxis=new hi(this),this._yAxis=new li(this),this._legend=new di(this),this._series=new ui(this),this._xAxis.title.visible=!1,this._xAxis.title.text="Labels",this._yAxis.title.text="Values"}get outlineItems(){return[this._series,this._xAxis,this._yAxis].concat(super.outlineItems)}get theme(){return this._theme}set theme(t){if(t!=this._theme){const e=this._theme;this._theme=t,this._changed(ni.PROP_HICHART_THEME,t,e)}}get inverted(){return this._inverted}set inverted(t){t!==this._inverted&&(this._inverted=t,this._changed(ni.PROP_HICHART_INVERTED,t,!t))}get title(){return this._title}get xAxis(){return this._xAxis}get yAxis(){return this._yAxis}get legend(){return this._legend}get series(){return this._series}addSeries(t,e){const r=this.report;if(r)return this._series.add(r.loader,t,e)}removeSeries(t){this._series.remove(t)}selectSeries(t){this._series.select(t)}getSaveType(){return"hichart"}get outlineLabel(){return"[High Chart]"}needDesignWidth(){return!1}needDesignHeight(){return!1}_getEditProps(){return super._getEditProps().concat(ni.PROPINFOS)}_getStyleProps(){return ni.STYLE_PROPS}_doDefaultInit(t,e,r,s){super._doDefaultInit(t,e,r,s),this.width=340,this.height=270,this._title.defaultInit(t,this,r,s),this._xAxis.defaultInit(t,this,r,s),this._yAxis.defaultInit(t,this,r,s),this._legend.defaultInit(t,this,r,s),this._series.add(t,{},0)}_doLoad(t,e){super._doLoad(t,e),this._loadPropsOf(e,ni.PROPINFOS),this._loadObjects([this._title,this._xAxis,this._yAxis,this._legend],t,e),e.hasOwnProperty("series")&&this._series.load(t,e.series)}_doSave(t){super._doSave(t),this._savePropsOf(t,ni.PROPINFOS),this._saveObjects([this._title,this._xAxis,this._yAxis,this._legend],t),this._series.count&&this._series.save(t.series=[])}canAddTo(t){return super.canAddTo(t)&&!t.isDataRowContainer}$_seriesChanged(t){this._changed(ni.PROP_HICHART_SERIES,this._series,this._series)}}ni.PROP_HICHART_THEME="theme",ni.PROP_HICHART_INVERTED="inverted",ni.PROP_HICHART_TITLE="title",ni.PROP_HICHART_XAXIS="xAxis",ni.PROP_HICHART_YAXIS="yAxis",ni.PROP_HICHART_LEGEND="legend",ni.PROP_HICHART_SERIES="series",ni.PROPINFOS=[{name:ms.PROP_DATA,category:Ge.DATA,type:ir,multiple:!1,default:void 0,domain:void 0},{name:ni.PROP_HICHART_INVERTED,category:Ge.CHART,type:rr,multiple:!1,default:!1},{name:ni.PROP_HICHART_THEME,category:Ge.CHART,type:Ze,multiple:!1,default:void 0},{name:ni.PROP_HICHART_TITLE,category:Ge.TITLE,type:Lr,indented:!0,multiple:!1,default:void 0,domain:void 0},{name:ni.PROP_HICHART_LEGEND,category:"legend",type:Lr,indented:!0,multiple:!1,default:void 0,domain:void 0}],ni.STYLE_PROPS=["border","backgroundColor"],ni.$_ctor="HichartItem",ni.ITEM_TYPE="Highchart";class oi extends ZA{constructor(t){super(t)}getSaveLabel(){return"title"}}class ai extends jA{constructor(t){super(t),this._title=new oi(t)}get title(){return this._title}get outlineParent(){return this.chart}_getEditProps(){return super._getEditProps().concat(ai.PROPINFOS)}_doLoad(t,e){super._doLoad(t,e),this._loadPropsOf(e,ai.PROPINFOS),this._loadObject(this._title,t,e)}_doSave(t){super._doSave(t),this._savePropsOf(t,ai.PROPINFOS),this._saveObject(this._title,t)}}ai.PROP_TITLE="title",ai.PROPINFOS=[{name:ai.PROP_TITLE,category:"title",type:Lr,indented:!0,multiple:!1,default:void 0}];class hi extends ai{constructor(t){super(t)}getPropDomain(t){if(this.report&&t.name===hi.PROP_CATEGORY_FIELD)return this.getDataFieldNames()}get categories(){return this._categories}set categories(t){if(t!==this._categories){const e=this._categories;this._categories=null==t?void 0:t.slice(),this._changed(hi.PROP_CATEGORIES,t,e)}}get categoryField(){return this._categoryField}set categoryField(t){if(t!==this._categoryField){const e=this._categoryField;this._categoryField=t,this._changed(hi.PROP_CATEGORY_FIELD,t,e)}}getCategories(t,e){if(!t||!this._categoryField)return this._categories;{const t=this._getParentData();if(t)return e.getFieldValues(t,this._categoryField)}}getSaveLabel(){return"xAxis"}get displayPath(){return this.chart.displayPath+".xAxis"}get outlineLabel(){return"[X Axis]"}_getEditProps(){return super._getEditProps().concat(hi.PROPINFOS)}_doLoad(t,e){super._doLoad(t,e),this._loadPropsOf(e,hi.PROPINFOS)}_doSave(t){super._doSave(t),this._savePropsOf(t,hi.PROPINFOS)}}hi.PROP_CATEGORIES="categories",hi.PROP_CATEGORY_FIELD="categoryField",hi.PROPINFOS=[{name:hi.PROP_CATEGORIES,category:Ge.AXIS,type:ar,multiple:!1,default:void 0},{name:hi.PROP_CATEGORY_FIELD,category:Ge.AXIS,type:ir,multiple:!1,default:void 0}];class li extends ai{constructor(t){super(t)}get min(){return this._min}set min(t){if(t!==this._min){const e=this._min;this._min=t,this._changed(li.PROP_MIN,t,e)}}get max(){return this._max}set max(t){if(t!==this._max){const e=this._max;this._max=t,this._changed(li.PROP_MAX,t,e)}}getSaveLabel(){return"yAxis"}get displayPath(){return this.chart.displayPath+".yAxis"}get outlineLabel(){return"[Y Axis]"}_getEditProps(){return super._getEditProps().concat(li.PROPINFOS)}_doLoad(t,e){super._doLoad(t,e),this._loadPropsOf(e,li.PROPINFOS)}_doSave(t){super._doSave(t),this._savePropsOf(t,li.PROPINFOS)}}li.PROP_MIN="min",li.PROP_MAX="max",li.PROPINFOS=[{name:li.PROP_MIN,category:Ge.AXIS,type:qe,multiple:!1,default:void 0},{name:li.PROP_MAX,category:Ge.AXIS,type:qe,multiple:!1,default:void 0}];class ci extends qA{constructor(t){super(t)}canHideMarker(){return!1}getWrapper(t){return ot.extend(t,{type:this.seriesType,name:this.name}),t}get outlineParent(){return this.chart.series}_getEditProps(){return super._getEditProps().concat(ci.PROPINFOS)}_doDefaultInit(t,e,r,s){super._doDefaultInit(t,e,r,s)}_doLoad(t,e){super._doLoad(t,e)}_doSave(t){super._doSave(t)}getCollectionLabel(){return"hichartSeries"}canRemoveFrom(){return!0}}ci.PROPINFOS=[];class ui extends ti{constructor(t){super(t)}_createSeries(t,e){return t.createHichartSeries(this.chart,e)}_seriesChanged(t){var e;null===(e=this.chart)||void 0===e||e.$_seriesChanged(t)}}!function(t){t.HORIZONTAL="horizontal",t.VERTICAL="vertical",t.PROXIMATE="proximate"}(ri||(ri={}));class di extends jA{constructor(t){super(t),this._layout=ri.HORIZONTAL,this._align=P.CENTER,this._verticalAlign=I.BOTTOM,this.visible=!1}get align(){return this._align}set align(t){if(t!==this._align){const e=this._align;this._align=t,this._changed(di.PROP_HICHART_ALIGN,t,e)}}get verticalAlign(){return this._verticalAlign}set verticalAlign(t){if(t!==this._verticalAlign){const e=this._verticalAlign;this._verticalAlign=t,this._changed(di.PROP_HICHART_VERTICAL_ALIGN,t,e)}}get layout(){return this._layout}set layout(t){if(t!==this._layout){const e=this._layout;this._layout=t,this._changed(di.PROP_HICHART_LAYOUT,t,e)}}_getEditProps(){return super._getEditProps().concat(di.PROPINFOS)}_doLoad(t,e){super._doLoad(t,e),this._loadPropsOf(e,di.PROPINFOS)}_doSave(t){super._doSave(t),this._savePropsOf(t,di.PROPINFOS)}getSaveLabel(){return"legend"}_isDefaultVisible(){return!1}}di.PROP_HICHART_ALIGN="align",di.PROP_HICHART_VERTICAL_ALIGN="verticalAlign",di.PROP_HICHART_LAYOUT="layout",di.PROPINFOS=[{name:di.PROP_HICHART_ALIGN,category:"legend",type:sr,indented:!0,multiple:!1,default:void 0,domain:P},{name:di.PROP_HICHART_VERTICAL_ALIGN,category:"legend",type:sr,indented:!0,multiple:!1,default:void 0,domain:I},{name:di.PROP_HICHART_LAYOUT,category:"legend",type:sr,indented:!0,multiple:!1,default:void 0,domain:ri}];class pi extends jA{constructor(t){super(t.chart),this._series=t}get symbol(){return this._symbol}set symbol(t){if(t!==this._symbol){const e=this._symbol;this._symbol=t,this._changed(pi.PROP_SYMBOL,t,e)}}get fillColor(){return this._fillColor}set fillColor(t){if(t!==this._fillColor){const e=this._fillColor;this._fillColor=t,this._changed(pi.PROP_FILL_COLOR,t,e)}}canHide(){return this._series.canHideMarker()}getWrapper(){return this._getPropsWrapper({},null,{visible:"enabled"})}_getEditProps(){return super._getEditProps().concat(pi.PROPINFOS)}_doLoad(t,e){super._doLoad(t,e),this._loadPropsOf(e,pi.PROPINFOS)}_doSave(t){super._doSave(t),this._savePropsOf(t,pi.PROPINFOS)}}pi.PROP_SYMBOL="symbol",pi.PROP_FILL_COLOR="fillColor",pi.PROPINFOS=[{name:pi.PROP_SYMBOL,category:"marker",type:sr,indented:!0,multiple:!1,default:void 0,domain:ei},{name:pi.PROP_FILL_COLOR,category:"marker",type:hr,multiple:!0,default:void 0}];class gi extends tA{constructor(t){super("Remove HichartSeries"),at(!!t),this._series=t,this._chart=t.chart,at(!!t),this._index=this._chart.series.indexOf(t)}_doDispose(){this._chart=this._series=null}get chart(){return this._chart}get series(){return this._series}get index(){return this._index}redo(t){this._chart.removeSeries(this._series)}undo(){this._chart.addSeries(this._series,this._index)}get source(){return this._series}}class fi extends tA{constructor(t){super("Remove Item"),at(!!t),this._parent=t.outlineParent instanceof Ps?t.outlineParent.outlineParent:t.outlineParent,at(!!this._parent),this._item=t,this._index=this._parent.indexOf(t)}static createCommands(t){if(t&&t.length>0){const e=[];for(let r of t)if(r&&r.canRemoveFrom()){let t;r instanceof iA?t=new KA(r):r instanceof mA?t=new OA(r):r instanceof DA?t=new MA(r):r instanceof ci?t=new gi(r):r instanceof ms&&(t=new fi(r)),e.push(t)}return e.length>0?e:null}}_doDispose(){this._parent=this._item=null}get parent(){return this._parent}get item(){return this._item}get index(){return this._index}undo(){this._parent.add(this._item,this._index)}redo(t){this._parent.remove(this._item)}get source(){return this._item}}class _i extends eA{constructor(t){super("Remove Items",fi.createCommands(t))}}class mi extends ws{constructor(t){super("reportPage"),this._events=new E,this._nameMap={},this._loading=!1,this._removing=!1,this._report=t,this.add(this._reportHeader=new Ms),this.add(this._reportFooter=new ks),this.add(this._pageHeader=new Vs),this.add(this._pageFooter=new Gs),this.add(this._body=new Bi),this.add(this._backItems=new Ks("pageBackItems","Back Items")),this.add(this._frontItems=new Ks("pageFrontItems","Front Items")),this._sections=[this._pageHeader,this._reportHeader,this._body,this._backItems,this._frontItems,this._reportFooter,this._pageFooter]}addListener(t){return this._events.addListener(t)}removeListener(t){return this._events.removeListener(t)}get report(){return this._report}get reportHeader(){return this._reportHeader}get reportFooter(){return this._reportFooter}get pageHeader(){return this._pageHeader}get pageFooter(){return this._pageFooter}get body(){return this._body}get backContainer(){return this._backItems}get backItems(){return this._backItems.items}get frontContainer(){return this._frontItems}get frontItems(){return this._frontItems.items}get loading(){return this._loading}getItem(t){return this._nameMap[t]}removeItems(t,e){if(!(e=e&&e.filter((t=>t.canRemoveFrom())))||0==e.length)return 0;const r=e.sort(((t,e)=>t.level-e.level));for(let t=r.length-1;t>0;t--){const e=r[t];for(let s=t+1;s>=0;s--){const A=r[s];if(A instanceof ws&&e instanceof ms&&e.isAncestor(A)){r.splice(t,1);break}}}try{t?t.execute(new _i(r)):new _i(r).run()}finally{}}search(t,e,r){e.caseSensitive||(t=t.toLowerCase()),this._sections.forEach((s=>s.search(t,e,r)))}get outlineLabel(){return"Page"}get pathLabel(){return"page"}get page(){return this}canMove(){return!1}getEditProps(){return[]}_getStyleProps(){return["fontFamily","fontSize","fontWeight","color","backgroundColor"]}canDelete(){return!1}_doLoad(t,e){this._loading=!0;try{this._loadProps(e,"styles"),e.hasOwnProperty("reportHeader")&&this._reportHeader.load(t,e.reportHeader),e.hasOwnProperty("reportFooter")&&this._reportFooter.load(t,e.reportFooter),e.hasOwnProperty("pageHeader")&&this._pageHeader.load(t,e.pageHeader),e.hasOwnProperty("pageFooter")&&this._pageFooter.load(t,e.pageFooter),e.hasOwnProperty("body")&&this._body.load(t,e.body),e.hasOwnProperty("backItems")&&this._backItems.load(t,e.backItems),e.hasOwnProperty("frontItems")&&this._frontItems.load(t,e.frontItems)}finally{this._loading=!1}}_ignoreItems(){return!0}_doSave(t){let e;this._pageHeader.save(e={})&&(t.pageHeader=e),this._reportHeader.save(e={})&&(t.reportHeader=e),this._reportFooter.save(e={})&&(t.reportFooter=e),this._pageFooter.save(e={})&&(t.pageFooter=e),this._body.save(e={})&&(t.body=e),this._backItems.count>0&&this._backItems.save(t.backItems=[]),this._frontItems.count>0&&this._frontItems.save(t.frontItems=[])}canResize(t){return!1}getAllItems(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t)return t.getDescendants(e);{let t=[];return this._sections.forEach((r=>t=t.concat(r.getDescendants(e)))),t}}collectInvalids(t,e){this._sections.forEach((r=>r.collectInvalids(t,e)))}$_itemAdded(t,e,r){this.$_addItem(t),this._fireItemAdded(t,e,r)}$_addItem(t){if(t instanceof ms&&t.name&&(this._nameMap[t.name]=t),t instanceof ws)for(let e of t._items)this.$_addItem(e)}$_itemsAdded(t,e){t.forEach((t=>this.$_addItem(t))),this._fireItemsAdded(t,e)}$_itemRemoved(t,e){this.$_removeItem(t),this._removing||this._fireItemRemoved(t,e)}$_removeItem(t){if(t instanceof ms&&t.name&&delete this._nameMap[t.name],t instanceof ws)for(let e of t._items)this.$_removeItem(e)}$_itemsRemoved(t){for(let e of t)this.$_removeItem(e);this._removing||this._fireItemsRemoved(t)}$_itemChanged(t,e,r,s){this._fireItemChanged(t,e,r,s)}$_nameChanged(t,e){e&&delete this._nameMap[e],t.name&&(this._nameMap[t.name]=t)}$_dataNameChanged(t,e){this._sections.forEach((r=>r.dataNameChanged(t,e)))}$_dataFieldNameChanged(t,e,r){this._sections.forEach((s=>s.dataFieldNameChanged(t,e,r)))}_fireItemAdded(t,e,r){this._events.fireEvent(mi.ITEM_ADDED,t,e,r)}_fireItemsAdded(t,e){this._events.fireEvent(mi.ITEMS_ADDED,t,e)}_fireItemRemoved(t,e){this._events.fireEvent(mi.ITEM_REMOVED,t,e)}_fireItemsRemoved(t){this._events.fireEvent(mi.ITEMS_REMOVED,t)}_fireItemChanged(t,e,r,s){this._events.fireEvent(mi.ITEM_CHANGED,t,e,r,s)}}mi.ITEM_ADDED="onPageItemAdded",mi.ITEMS_ADDED="onPageItemsAdded",mi.ITEM_REMOVED="onPageItemRemoved",mi.ITEMS_REMOVED="onPageItemsRemoved",mi.ITEM_CHANGED="onPageItemChanged",mi.$_ctor="ReportPage";class wi extends $s{get outlineLabel(){return"Items"}canContainsBand(){return!0}canResize(t){return!1}canMove(){return!1}needDesignWidth(){return!1}needDesignHeight(){return!1}_boundable(){return!1}_getStyleProps(){return wi.STYLE_PROPS}}wi.STYLE_PROPS=["backgroundColor"];class Bi extends Hs{constructor(){super("pageBody"),this.add(this._bodyItems=new wi("bodyItems")),this.add(this._backItems=new Ks("pageBackItems","Back Items")),this.add(this._frontItems=new Ks("pageFrontItems","Front Items"))}get backItems(){return this._backItems.items}get backItemsContainer(){return this._backItems}get frontItems(){return this._frontItems.items}get frontItemsContainer(){return this._frontItems}get bodyItems(){return this._bodyItems.items}get itemsContainer(){return this._bodyItems}get outlineLabel(){return"Body"}canParentOf(t){return!1}canResize(t){return!1}_doLoad(t,e){e.hasOwnProperty("items")&&(this._bodyItems.load(t,{items:e.items}),this._bodyItems.loadProps(e)),e.hasOwnProperty("backItems")&&this._backItems.load(t,e.backItems),e.hasOwnProperty("frontItems")&&this._frontItems.load(t,e.frontItems)}_loadItems(t,e){}_ignoreItems(){return!0}_doSave(t){this._bodyItems.count>0&&(this._bodyItems.save(t),delete t.type,delete t.name),this._backItems.count>0&&this._backItems.save(t.backItems=[]),this._frontItems.count>0&&this._frontItems.save(t.frontItems=[])}canRemove(t){return!1}}Bi.$_ctor="PageBody";class Ci extends ms{constructor(t){super(t)}get url(){return this._url}set url(t){if(t!=this._url){const e=this._url;this._url=t,this._changed(Ci.PROP_URL,t,e)}}get image(){return this._image}set image(t){if(t!=this._image){const e=this._image;this._image=t,this._changed(Ci.PROP_IMAGE,t,e)}}getSaveType(){return"image"}get outlineLabel(){return"[Image]"}_doDefaultInit(t,e,r,s){super._doDefaultInit(t,e,r,s),this.width=52,this.height=52}_getEditProps(){return super._getEditProps().concat(Ci.PROPINFOS)}_getStyleProps(){return["opacity"].concat(super._getStyleProps())}_doLoad(t,e){super._doLoad(t,e),this._loadPropsOf(e,Ci.PROPINFOS)}_doSave(t){super._doSave(t),this._savePropsOf(t,Ci.PROPINFOS)}canAdoptDragSource(t){return t instanceof Ts}adoptDragSource(t){if(t instanceof Ts)return{type:ds.PROP,prop:"image",value:t.name}}canPropAdoptDragSource(t,e){return"image"===t.name&&e instanceof Ts}adoptPropDragSource(t,e){if("image"===t.name&&e instanceof Ts)return{type:ds.PROP,prop:"image",value:e.name}}}Ci.PROP_URL="url",Ci.PROP_IMAGE="image",Ci.PROPINFOS=[{name:Ci.PROP_URL,category:"Image",type:Ze,multiple:!1,default:void 0},{name:Ci.PROP_IMAGE,category:"Image",type:Ze,multiple:!1,default:void 0}],Ci.$_ctor="ImageItem",Ci.ITEM_TYPE="Image";class yi extends ms{constructor(t){super(t),this._threeStates=!1,this._checked=!1,this._text="Check",this._falseText="Uncheck"}get threeStates(){return this._threeStates}set threeStates(t){t!=this._threeStates&&(this._threeStates=t,this._changed(yi.PROP_THREE_STATES,t,!t))}get checked(){return this._checked}set checked(t){if(t!=this._checked){const e=this._checked;this._checked=t,this._changed(yi.PROP_CHECKED,t,e)}}get text(){return this._text}set text(t){if(t!=this._text){const e=this._text;this._text=t,this._changed(yi.PROP_TEXT,t,e)}}get falseText(){return this._falseText}set falseText(t){if(t!=this._falseText){const e=this._falseText;this._falseText=t,this._changed(yi.PROP_FALSE_TEXT,t,e)}}get emptyText(){return this._emptyText}set emptyText(t){if(t!=this._emptyText){const e=this._emptyText;this._emptyText=t,this._changed(yi.PROP_EMPTY_TEXT,t,e)}}getChecked(t){return t?"1":!1!==t||this._threeStates?"-1":"0"}getText(t){return t?this._text:!1!==t||this._threeStates?this._emptyText:this._falseText}get outlineLabel(){return"[Check]"}getSaveType(){return"check"}_getEditProps(){return super._getEditProps().concat(yi.PROPINFOS)}_getStyleProps(){return yi.STYLE_PROPS}_doDefaultInit(t,e,r,s){super._doDefaultInit(t,e,r,s),this.text="Check"}_doLoad(t,e){super._doLoad(t,e),this._loadPropsOf(e,yi.PROPINFOS)}_doSave(t){super._doSave(t),this._savePropsOf(t,yi.PROPINFOS)}}yi.PROP_THREE_STATES="threeStates",yi.PROP_CHECKED="checked",yi.PROP_TEXT="text",yi.PROP_FALSE_TEXT="falseText",yi.PROP_EMPTY_TEXT="emptyText",yi.PROPINFOS=[{name:yi.PROP_THREE_STATES,category:"Check",type:rr,multiple:!1,default:!1},{name:yi.PROP_CHECKED,category:"Check",type:rr,multiple:!1,default:!1},{name:yi.PROP_TEXT,category:Ge.TEXT,type:Ze,multiple:!1,default:void 0},{name:yi.PROP_FALSE_TEXT,category:Ge.TEXT,type:Ze,multiple:!1,default:void 0},{name:yi.PROP_EMPTY_TEXT,category:Ge.TEXT,type:Ze,multiple:!1,default:void 0}],yi.STYLE_PROPS=["fontFamily","fontSize","fontStyle","textDecoration","fontWeight","color","backgroundColor","border"],yi.$_ctor="CheckItem",yi.ITEM_TYPE="Check";class vi extends Ps{constructor(t){super(t,"tableCell")}}vi.$_ctor="ListCellItem";class Ei extends Is{constructor(t){super(t),this._ordered=!1,this._start=1,this.designHeight=50,this.designWidth=160}get ordered(){return this._ordered}set ordered(t){t!=this._ordered&&(this._ordered=t,this._changed(Ei.PROP_ORDERED,t,!t))}get start(){return this._start}set start(t){if(t!=this._start){const e=this._start;this._start=t,this._changed(Ei.PROP_START,t,e)}}getSaveType(){return"list"}get outlineLabel(){return"[List]"}_datable(){return!0}_getEditProps(){return super._getEditProps().concat(Ei.PROPINFOS)}_doLoad(t,e){super._doLoad(t,e),this._loadPropsOf(e,Ei.PROPINFOS)}_doSave(t){super._doSave(t),this._savePropsOf(t,Ei.PROPINFOS)}_doSaveItems(t,e){for(let r of e){const e={};r.item.save(e),t.push(e)}}_prepareCellGroup(t){return new vi(t)}}Ei.PROP_ORDERED="ordered",Ei.PROP_START="start",Ei.PROPINFOS=[{name:Ei.PROP_ORDERED,category:"List",type:rr,multiple:!1,default:0},{name:Ei.PROP_START,category:"List",type:qe,multiple:!1,default:1}],Ei.$_ctor="ListContainer",Ei.ITEM_TYPE="List";class bi extends Us{constructor(t){super(null),this._repeat=!0,this._child_field=null,at(!!t),this._band=t,this.width="100%",this.designHeight=24}get band(){return this._band}get repeat(){return this._repeat}set repeat(t){t!=this._repeat&&(this._repeat=t,this._changed(bi.PROP_SIMPLE_BAND_SECTION_REPEAT,t,!t))}getFieldOf(t){return t.getChildProp(bi.PROP_FIELD,this._child_field)}setFieldOf(t,e){t.setChildProp(bi.PROP_FIELD,e)}get designLevel(){return this._band.designLevel}get marqueeParent(){return this._band}_getStyleProps(){return["fontFamily","fontSize","fontWeight","color","backgroundColor"].concat(super._getStyleProps())}canResize(t){return t===H.BOTTOM}_doLoad(t,e){super._doLoad(t,e),this._loadPropsOf(e,Qi.PROPINFOS)}_doSave(t){super._doSave(t),this._savePropsOf(t,Qi.PROPINFOS)}_doLoadChild(t,e){super._doLoadChild(t,e),e.hasOwnProperty(bi.PROP_FIELD)&&this.setFieldOf(t,e.field)}}bi.PROP_SIMPLE_BAND_SECTION_REPEAT="repeat",bi.PROPINFOS=[{name:bi.PROP_SIMPLE_BAND_SECTION_REPEAT,category:"Band",type:rr,multiple:!1,default:!0}],bi.PROP_FIELD="field";class xi extends bi{constructor(t){super(t)}get outlineLabel(){return"[Band Header]"}}xi.$_ctor="SimpleBandHeader";class Pi extends bi{constructor(){super(...arguments),this._attachToBody=!1}get attachToBody(){return this._attachToBody}set attachToBody(t){t!==this._attachToBody&&(this._attachToBody=t,this._changed(Pi.PROP_ATTACH_TO_BODY,t,!t))}get outlineLabel(){return"[Band Footer]"}_getEditProps(){return super._getEditProps().concat(Pi.PROPINFOS)}_doLoad(t,e){super._doLoad(t,e),this._loadPropsOf(e,Pi.PROPINFOS)}_doSave(t){super._doSave(t),this._savePropsOf(t,Pi.PROPINFOS)}}Pi.PROP_ATTACH_TO_BODY="attachToBody",Pi.PROPINFOS=[{name:Pi.PROP_ATTACH_TO_BODY,category:Ge.BAND,type:rr,multiple:!1,default:!1}],Pi.$_ctor="SimpleBandFooter";class Ii extends bi{constructor(){super(...arguments),this.masterRow=NaN}get blankItems(){return this._blankItems}canBlank(t,e){if(this.band.dataObj.equalRows(e,e-1,t.$_blankFlds))return!0}get outlineLabel(){return"[Data Row]"}get dataDominant(){return!0}get isDataRowContainer(){return!0}_getChildPropInfos(t){return Ii.CHILD_PROPS.concat(super._getChildPropInfos(t))}_doLoadChild(t,e){super._doLoadChild(t,e),this._loadChildPropsOf(t,e,Ii.CHILD_PROPS)}_doPreparePrint(t){super._doPreparePrint(t),this._blankItems=this.collectBlankItems()}}Ii.PROP_EQUAL_BLANK="equalBlank",Ii.PROP_BLANK_FIELDS="blankFields",Ii.CHILD_PROPS=[{name:Ii.PROP_EQUAL_BLANK,category:Ge.BAND,type:rr,multiple:!1,default:!1},{name:Ii.PROP_BLANK_FIELDS,category:Ge.BAND,type:Ze,multiple:!1,default:void 0}],Ii.$_ctor="SimpleBandRow";class Si extends Us{constructor(t,e){super(e),this._group=t}get group(){return this._group}get band(){var t;return null===(t=this._group)||void 0===t?void 0:t.band}}Si.STYLE_PROPS=["backgroundColor"];class Ti extends Si{constructor(t){super(t,"groupHeader")}get outlineLabel(){return"Group Header"}}Ti.$_ctor="SimpleBandRowGroupHeader";class Fi extends Si{constructor(t){super(t,"groupFooter")}get outlineLabel(){return"Group Footer"}}Fi.$_ctor="SimpleBandRowGroupFooter";class Ri extends gA{constructor(t){super("simpleBandRowGroup"),this.add(this._header=new Ti(this)),this.add(this._footer=new Fi(this)),this._collection=t}get outlineParent(){return this._collection}get marqueeParent(){return this.band}getEditProps(){return Ri.PROPINFOS.concat(super.getEditProps())}get header(){return this._header}get footer(){return this._footer}get band(){var t;return null===(t=this._collection)||void 0===t?void 0:t.band}get page(){var t;return null===(t=this.band)||void 0===t?void 0:t.page}get report(){var t;return null===(t=this.band)||void 0===t?void 0:t.report}get collection(){return this._collection}get dataParent(){return this.band}_ignoreItems(){return!0}_doLoad(t,e){super._doLoad(t,e),this._loadPropsOf(e,Ri.PROPINFOS),e.hasOwnProperty("header")&&this._header.load(t,e.header),e.hasOwnProperty("footer")&&this._footer.load(t,e.footer)}_doSave(t){super._doSave(t),this._savePropsOf(t,Ri.PROPINFOS),this._header.save(t.header={}),this._footer.save(t.footer={})}_changed(t,e,r){super._changed(t,e,r),this._collection&&this._collection.$_groupChanged(this)}}Ri.PROPINFOS=[];class Oi extends Cs{constructor(t){super(),this._groups=[],this._band=t}get outlineParent(){return this._band}get outlineLabel(){return"[Groups]"}get outlineExpandable(){return!0}get outlineItems(){return this._groups}getSaveType(){return"groups"}canRemoveFrom(){return!1}canParentOf(t){return!1}get band(){return this._band}get count(){return this._groups.length}get items(){return this._groups.slice()}get visibleCount(){let t=0;for(let e of this._groups)e.visible&&t++;return t}get groups(){return this._groups.slice()}load(t,e){if(this._groups=[],e&&e.length>0){for(let r of e)if(r){const e=new Ri(this);e.load(t,r),this._groups.push(e)}this.$_invalidateGroups()}}save(t){for(let e of this._groups){const r={};e.save(r),t.push(r)}}get(t){return this._groups[t]}indexOf(t){return this._groups.indexOf(t)}add(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;const r=this.$_add(t,e);if(r)return this.$_invalidateGroups(),this._itemAdded(r),r}addAll(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;if(!t||t.length<1)return;const r=this._groups.length;e=e<0?this._groups.length:Math.max(0,this._groups.length);for(let r of t)this.$_add(r,e)&&e++;return this._groups.length!=r?(this.$_invalidateGroups(),!0):void 0}removeAt(t){if(t>=0&&t<this._groups.length){const e=this._groups.splice(t,1)[0];return this.$_invalidateGroups(),this._itemRemoved(e,this._band),!0}}remove(t){return this.removeAt(this.indexOf(t))}clear(){if(this._groups.length>0)return this._groups=[],this.$_invalidateGroups(),!0}getValidGroups(t){if(t){const e=[];for(let r of this._groups){const s=r.field;ot.isNumber(s)?s>=0&&s<t.fieldCount&&e.push(r):t.containsField(s)&&e.push(r)}return e.length?e:null}return null}get page(){var t;return null===(t=this._band)||void 0===t?void 0:t.page}get displayPath(){return this._band?this._band.displayPath+".groups":"groups"}get level(){return this._band?this._band.level+1:0}isAncestorOf(t){if(super.isAncestorOf(t))return!0;if(this._groups.indexOf(t)>=0)return!0;for(let e of this._groups)if(e.indexOf(t))return!0}$_add(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;if(!(t instanceof Ri)){const e=t;t=new Ri(this),e&&t.extend(e)}if(t instanceof Ri&&this._groups.indexOf(t)<0)return e<0?this._groups.push(t):this._groups.splice(Math.min(e,this._groups.length),0,t),t}$_invalidateGroups(){for(let t=this._groups.length-1;t>=0;t--)this._groups[t]._index=t;this._band&&this._band.$_groupChanged(null)}$_groupChanged(t){this._band&&this._band.$_groupChanged(t)}}class Qi extends fA{constructor(t){super(t),this._groups=new Oi(this),this.add(this._header=new xi(this)),this.add(this._footer=new Pi(this)),this.add(this._dataRow=new Ii(this)),this._setOutlineOrders(1,this._dataRow,this._footer,this.detail),this.width="100%"}get outlineItems(){return[this._groups].concat(super.outlineItems)}get groups(){return this._groups}get header(){return this._header}get footer(){return this._footer}get dataRow(){return this._dataRow}get pr(){return this._pr}setPrinting(t,e){t.row=this._pr=e}getSaveType(){return"simpleband"}get outlineLabel(){return"[Simple Band]"}get isBand(){return!0}_valueable(){return!0}_ignoreItems(){return!0}_getEditProps(){return super._getEditProps().concat(Qi.PROPINFOS)}isAncestorOf(t){return!!super.isAncestorOf(t)||(t===this._groups||(!!this._groups.isAncestorOf(t)||void 0))}_doLoad(t,e){super._doLoad(t,e),e.hasOwnProperty("groups")&&this._groups.load(t,e.groups),e.hasOwnProperty("header")&&this.header.load(t,e.header),e.hasOwnProperty("footer")&&this.footer.load(t,e.footer),e.hasOwnProperty("row")&&this.dataRow.load(t,e.row),e.hasOwnProperty("dataRow")&&this.dataRow.load(t,e.dataRow)}_doSave(t){super._doSave(t),this._groups.save(t.groups=[]),this._header.save(t.header={}),this._footer.save(t.footer={}),this._dataRow.save(t.dataRow={})}$_groupChanged(t){this._changed(Qi.PROP_SIMPLE_BAND_GROUPS,this._groups,this._groups)}_doPreparePrint(t){super._doPreparePrint(t),this._groups.preparePrint(t)}_doPrepareIndices(t){t.row=t.index=this._pr=0}canRemove(t){return!1}getNextDetailRows(t){return this._getNextDetailRows(t,this._pr)}skipDetailRows(t){const e=this._skipDetailRows(t,this._pr);this._pr+=e}}Qi.PROP_SIMPLE_BAND_GROUPS="groups",Qi.PROPINFOS=[],Qi.$_ctor="SimpleBand",Qi.ITEM_TYPE="Simple Band",function(t){t.CODE39="code39",t.CODE128="code128"}(si||(si={}));class Di extends ms{constructor(t){super(t),this._format=si.CODE128,this._text=""}get format(){return this._format}set format(t){if(t!=this._format){const e=this._format;this._format=t,this._changed(Di.PROP_BARCODE_FORMAT,t,e)}}get text(){return this._text}set text(t){if(t!=this._text){const e=this._text;this._text=t,this._changed(Di.PROP_BARCODE_TEXT,t,e)}}convertText(t){return this._format?t.toUpperCase():t}getSaveType(){return"barcode"}get outlineLabel(){return"Barcode"}_doDefaultInit(t,e,r,s){super._doDefaultInit(t,e,r,s),this.text="Cosmos",this.width=100,this.height=50}_getEditProps(){return super._getEditProps().concat(Di.PROPINFOS)}_getStyleProps(){return Di.STYLE_PROPS}_doLoad(t,e){super._doLoad(t,e),this._loadPropsOf(e,Di.PROPINFOS)}_doSave(t){super._doSave(t),this._savePropsOf(t,Di.PROPINFOS)}}Di.PROP_BARCODE_FORMAT="format",Di.PROP_BARCODE_TEXT="text",Di.PROPINFOS=[{name:Di.PROP_BARCODE_FORMAT,category:"barcode",type:Ze,multiple:!1,default:si.CODE128,domain:[si.CODE39,si.CODE128]},{name:Di.PROP_BARCODE_TEXT,category:Ge.TEXT,type:Ze,multiple:!1,default:""}],Di.STYLE_PROPS=["fontSize","fontStyle","color","backgroundColor","fill","paddingLeft","paddingTop","paddingRight","paddingBottom","border"],Di.$_ctor="BarcodeItem",Di.ITEM_TYPE="Barcode",function(t){t.L="L",t.M="M",t.Q="Q",t.H="H"}(Ai||(Ai={}));class Li extends ms{constructor(t){super(t),this._text="",this._errorCorrectionLevel=Ai.Q}get text(){return this._text}set text(t){if(t!==this._text){const e=this._text;this._text=t,this._changed(Li.PROP_QRCODE_TEXT,t,e)}}get errorCorrectionLevel(){return this._errorCorrectionLevel}set errorCorrectionLevel(t){if(t!==this._errorCorrectionLevel){const e=this._errorCorrectionLevel;this._errorCorrectionLevel=t,this._changed(Li.PROP_QRCODE_ERROR_CORRECTION_LEVEL,t,e)}}getSaveType(){return"qrcode"}get outlineLabel(){return"Qrcode"}_doDefaultInit(t,e,r,s){super._doDefaultInit(t,e,r,s),this.text="https://www.google.com",this.width=100,this.height=100}_getEditProps(){return super._getEditProps().concat(Li.PROPINFOS)}_doLoad(t,e){super._doLoad(t,e),this._loadPropsOf(e,Li.PROPINFOS)}_doSave(t){super._doSave(t),this._savePropsOf(t,Li.PROPINFOS)}}Li.QRCODE_MIN_SIZE=50,Li.PROP_QRCODE_TEXT="text",Li.PROP_QRCODE_ERROR_CORRECTION_LEVEL="errorCorrectionLevel",Li.PROPINFOS=[{name:Li.PROP_QRCODE_ERROR_CORRECTION_LEVEL,category:"qrcode",type:Ze,multiple:!1,default:Ai.Q,domain:[Ai.L,Ai.M,Ai.Q,Ai.H]},{name:Li.PROP_QRCODE_TEXT,category:Ge.TEXT,type:Ze,multiple:!1,default:""}],Li.$_ctor="QrcodeItem",Li.ITEM_TYPE="Qrcode";class Ui{constructor(t){this.className=t}draw(t,e,r){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,A=arguments.length>4?arguments[4]:void 0;return this._doDraw(t,e,r,s,A||"")}drawAt(t,e,r,s,A){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,n=arguments.length>6?arguments[6]:void 0;const o=this._doDraw(r,s,A,i,n||"");return o.setAttribute("transform","translate("+t+","+e+")"),this.className&&o.classList.add(this.className),o}}const Hi={rectangle:[0,0,1,0,1,1,0,1],triangle:[.5,0,0,1,1,1],itriangle:[0,0,.5,1,1,0],diamond:[.5,0,0,.5,.5,1,1,.5],uparrow:[.5,0,0,.5,.3,.5,.3,1,.7,1,.7,.5,1,.5],downarrow:[.3,0,.3,.5,0,.5,.5,1,1,.5,.7,.5,.7,0],leftarrow:[0,.5,.5,1,.5,.7,1,.7,1,.3,.5,.3,.5,0],rightarrow:[0,.3,0,.7,.5,.7,.5,1,1,.5,.5,0,.5,.3],plus:[.3,0,.3,.3,0,.3,0,.7,.3,.7,.3,1,.7,1,.7,.7,1,.7,1,.3,.7,.3,.7,0],minus:[0,.3,0,.7,1,.7,1,.3],star:[.5,0,.6122,.3454,.9755,.3454,.6816,.559,.7938,.9045,.5,.691,.2061,.9045,.3183,.559,.02447,.3454,.3877,.3454]},Ni={equal:[[0,.2,0,.4,1,.4,1,.2],[0,.6,0,.8,1,.8,1,.6]]};class Mi extends Ui{constructor(t,e){super(e),this._shape=t}get shape(){return this._shape}set shape(t){this._shape=t?"inverted_triangle"===t?Mi.INVERTED_TRIANLGE:t.toLowerCase():null}_doDraw(t,e,r,s,A){const i=this._shape;if(e-=s,r-=s,Hi.hasOwnProperty(i)){let n=Hi[i];if(n){let i=s/2,o=s/2;n=n.slice();for(let t=0,s=n.length/2;t<s;t++)n[2*t]=i+n[2*t]*e,n[2*t+1]=o+n[2*t+1]*r;return n.push(n[0],n[1]),t.polygon(A,n)}}else if(Ni.hasOwnProperty(i)){const n=Ni[i];if(n){let i=s/2,o=s/2,a=n[0].slice();for(let t=0,s=a.length/2;t<s;t++)a[2*t]=i+a[2*t]*e,a[2*t+1]=o+a[2*t+1]*r;a.push(a[0],a[1]),t.polygon(null,a),a=n[1],a=a.slice();for(let t=0,s=a.length/2;t<s;t++)a[2*t]=i+a[2*t]*e,a[2*t+1]=o+a[2*t+1]*r;return a.push(a[0],a[1]),t.polygon(A,a)}}}}Mi.RECTANGLE="rectangle",Mi.TRIANLGE="triangle",Mi.INVERTED_TRIANLGE="itriangle",Mi.DIAMOND="diamond",Mi.UP_ARROW="uparrow",Mi.DOWN_ARROW="downarrow",Mi.LEFT_ARROW="leftarrow",Mi.RIGHT_ARROW="rightarrow",Mi.PLUS="plus",Mi.MINUS="minus",Mi.EQUAL="equal",Mi.STAR="star";class ki extends Ui{constructor(){super(...arguments),this.circled=!0}static isEllipse(t){return t in this.ELLIPSES}_doDraw(t,e,r,s,A){const i=s/2;if(this.circled){const s=Math.min(e,r)/2;return t.ellipse(A,e/2,r/2,s-i,s-i)}return t.ellipse(A,e/2,r/2,e/2-i,r/2-i)}}ki.CIRCLE="circle",ki.ELLIPSE="ellipse",ki.ELLIPSES={circle:"",ellipse:""};class Vi extends Ui{static isLine(t){return t in this.LINES}_doDraw(t,e,r,s){let A,i;switch(this.shape){case Vi.HLINE:return i=r/2,t.line(null,0,i,e,i);case Vi.VLINE:return A=e/2,t.line(null,A,0,A,r);case Vi.DIAGONAL:return t.line(null,0,0,e,r);case Vi.RDIAGONAL:return t.line(null,0,r,e,0)}}}Vi.HLINE="hline",Vi.VLINE="vline",Vi.DIAGONAL="diagonal",Vi.RDIAGONAL="rdiagonal",Vi.LINES={hline:"",vline:"",diagonal:"",rdiagonal:""};const Gi=[Mi.RECTANGLE,Mi.TRIANLGE,Mi.INVERTED_TRIANLGE,Mi.DIAMOND,Mi.UP_ARROW,Mi.DOWN_ARROW,Mi.LEFT_ARROW,Mi.RIGHT_ARROW,Mi.PLUS,Mi.MINUS,Mi.EQUAL,Mi.STAR,ki.CIRCLE,ki.ELLIPSE],Ki=Gi.concat([Vi.HLINE,Vi.VLINE,Vi.DIAGONAL,Vi.RDIAGONAL]);class Wi extends ms{constructor(t){super(t),this._shape=Mi.STAR}get shape(){return this._shape}set shape(t){if(t!==this._shape){const e=this._shape;this._shape=t,this._changed(Wi.PROP_SHAPE,t,e)}}get shapeCallback(){return this._shapeCallback}set shapeCallback(t){if(t!==this._shapeCallback){const e=this._shapeCallback;this._shapeCallback=t,this._changed(Wi.PROP_SHAPE_CALLBACK,t,e)}}_getEditProps(){return super._getEditProps().concat(Wi.PROPINFOS)}_doLoad(t,e){super._doLoad(t,e),this._loadPropsOf(e,Wi.PROPINFOS)}_doSave(t){super._doSave(t),this._savePropsOf(t,Wi.PROPINFOS)}setProperty(t,e){if(super.setProperty(t,e),"shape"===t&&Vi.isLine(e)&&!this._isLoading()){let t=this.getStyle("stroke");t||(this.setStyleProperty("stroke","green"),t=this.getStyle("strokeWidth"),t||this.setStyleProperty("strokeWidth","2"))}}}Wi.PROP_SHAPE="shape",Wi.PROP_SHAPE_CALLBACK="shapeCallback",Wi.PROPINFOS=[];class zi extends Wi{constructor(t){super(t)}getSaveType(){return"shape"}get outlineLabel(){return"Shape"}_doDefaultInit(t,e,r,s){super._doDefaultInit(t,e,r,s),this.shape="star",this.width=24,this.height=24}_getEditProps(){return super._getEditProps().concat(zi.PROPINFOS)}_getStyleProps(){return zi.STYLE_PROPS}_doLoad(t,e){super._doLoad(t,e),this._loadPropsOf(e,zi.PROPINFOS)}_doSave(t){super._doSave(t),this._savePropsOf(t,zi.PROPINFOS)}}zi.PROPINFOS=[{name:Wi.PROP_SHAPE,category:"Shape",type:Ze,multiple:!1,default:void 0,domain:Ki}],zi.STYLE_PROPS=["backgroundColor","fill","stroke","strokeWidth","strokeDasharray"],zi.$_ctor="ShapeItem",zi.ITEM_TYPE="Shape";class Xi extends ms{constructor(t){super(t)}get svg(){return this._svg}set svg(t){if(t!=this._svg){const e=this._svg;this._svg=t,this._changed(Xi.PROP_SVG,t,e)}}getSaveType(){return"svg"}get outlineLabel(){return"Svg"}_doDefaultInit(t,e,r,s){super._doDefaultInit(t,e,r,s),this.width=52,this.height=52}_getEditProps(){return super._getEditProps().concat(Xi.PROPINFOS)}_getStyleProps(){return Xi.STYLE_PROPS}_doLoad(t,e){super._doLoad(t,e),this._loadPropsOf(e,Xi.PROPINFOS)}_doSave(t){super._doSave(t),this._savePropsOf(t,Xi.PROPINFOS)}}var Ji,Yi;Xi.PROP_SVG="svg",Xi.PROPINFOS=[{name:Xi.PROP_SVG,category:"Svg",type:Ze,multiple:!1,default:void 0}],Xi.STYLE_PROPS=["backgroundColor","fill","stroke"],Xi.$_ctor="SvgItem",Xi.ITEM_TYPE="Svg",function(t){t.BAR="bar",t.LINE="line",t.PIE="pie"}(Ji||(Ji={}));class $i extends ms{constructor(t){super(t)}get values(){return this._values}set values(t){if(t!==this._values){const e=this._values;this._values=t&&t.slice(),this._changed($i.PROP_CHART_VALUES,t,e)}}get labels(){return this._labels}set labels(t){if(t!==this._labels){const e=this._labels;this._labels=t&&t.slice(),this._changed($i.PROP_CHART_LABELS,t,e)}}import(t){this._doImport(t)}getEditProps(){const t=$i.$_ctor,e=super.getEditProps();for(let r of e)r.tag==Ge.CHART&&(r.category=t);return e}_getEditProps(){return $i.PROPINFOS}_doLoad(t,e){super._doLoad(t,e),this._loadProps(e,$i.PROP_CHART_VALUES,$i.PROP_CHART_LABELS)}_doSave(t){super._doSave(t),this._saveProps(t,$i.PROP_CHART_VALUES,$i.PROP_CHART_LABELS)}_doImport(t){this._importPropsOf(t,$i.PROPINFOS)}_importProps(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),s=1;s<e;s++)r[s-1]=arguments[s];for(let e of r)this[e]=t[e]}_importPropsOf(t,e){for(let r of e){const e=r.name;t.hasOwnProperty(e)&&(this[e]=t[e])}}}$i.PROP_CHART_VALUES="values",$i.PROP_CHART_LABELS="labels",$i.PROPINFOS=[{name:$i.PROP_CHART_VALUES,category:Ge.CHART,type:or,multiple:!1,default:void 0,domain:void 0,tag:Ge.CHART},{name:$i.PROP_CHART_LABELS,category:Ge.CHART,type:ar,multiple:!1,default:void 0,domain:void 0,tag:Ge.CHART}],$i.$_ctor="Chart";class ji extends $i{constructor(t){super(t),this._lowValue=NaN,this._highValue=NaN,this._xAxisOffset=NaN,this._yAxisOffset=NaN}get lowValue(){return this._lowValue}set lowValue(t){if(t!=this._lowValue){const e=this._lowValue;this._lowValue=t,this._changed(ji.PROP_CHART_LOW_VALUE,t,e)}}get highValue(){return this._highValue}set highValue(t){if(t!=this._highValue){const e=this._highValue;this._highValue=t,this._changed(ji.PROP_CHART_HIGH_VALUE,t,e)}}get xAxisOffset(){return this._xAxisOffset}set xAxisOffset(t){if(t!=this._xAxisOffset){const e=this._xAxisOffset;this._xAxisOffset=t,this._changed(ji.PROP_CHART_X_AXIS_OFFSET,t,e)}}get yAxisOffset(){return this._yAxisOffset}set yAxisOffset(t){if(t!=this._yAxisOffset){const e=this._yAxisOffset;this._yAxisOffset=t,this._changed(ji.PROP_CHART_Y_AXIS_OFFSET,t,e)}}_getEditProps(){return super._getEditProps().concat(ji.PROPINFOS)}_doLoad(t,e){super._doLoad(t,e),this._loadPropsOf(e,ji.PROPINFOS)}_doSave(t){super._doSave(t),this._savePropsOf(t,ji.PROPINFOS)}_doImport(t){t instanceof ji&&this._importPropsOf(t,ji.PROPINFOS)}}ji.PROP_CHART_LOW_VALUE="lowValue",ji.PROP_CHART_HIGH_VALUE="highValue",ji.PROP_CHART_X_AXIS_OFFSET="xAxisOffset",ji.PROP_CHART_Y_AXIS_OFFSET="yAxisOffset",ji.PROPINFOS=[{name:ji.PROP_CHART_LOW_VALUE,category:Ge.CHART,type:qe,multiple:!1,default:void 0,tag:Ge.CHART},{name:ji.PROP_CHART_HIGH_VALUE,category:Ge.CHART,type:qe,multiple:!0,default:void 0,tag:Ge.CHART},{name:ji.PROP_CHART_X_AXIS_OFFSET,category:Ge.XAXIS,type:qe,multiple:!0,label:"Offset",default:void 0},{name:ji.PROP_CHART_Y_AXIS_OFFSET,category:Ge.YAXIS,type:qe,multiple:!0,label:"Offset",default:void 0}];class Zi extends ji{constructor(){super("lineChart"),this._showPoint=!0,this._curved=!1}get showPoint(){return this._showPoint}set showPoint(t){t!=this._showPoint&&(this._showPoint=t,this._changed(Zi.PROP_LINE_CHART_SHOW_POINT,t,!t))}get curved(){return this._curved}set curved(t){t!=this._curved&&(this._curved=t,this._changed(Zi.PROP_LINE_CHART_CURVED,t,!t))}_getEditProps(){return super._getEditProps().concat(Zi.PROPINFOS)}_doLoad(t,e){super._doLoad(t,e),this._loadPropsOf(e,Zi.PROPINFOS)}_doSave(t){super._doSave(t),this._savePropsOf(t,Zi.PROPINFOS)}_doImport(t){super._doImport(t),t instanceof Zi&&this._importPropsOf(t,Zi.PROPINFOS)}}Zi.PROP_LINE_CHART_SHOW_POINT="showPoint",Zi.PROP_LINE_CHART_CURVED="curved",Zi.PROPINFOS=[{name:Zi.PROP_LINE_CHART_SHOW_POINT,category:Ge.CHART,type:rr,multiple:!1,default:!0,domain:void 0,tag:Ge.CHART},{name:Zi.PROP_LINE_CHART_CURVED,category:Ge.CHART,type:rr,multiple:!1,default:!0,domain:void 0,tag:Ge.CHART}],Zi.$_ctor="LineChart";class qi extends $i{constructor(){super("pieChart")}_getEditProps(){return super._getEditProps()}_doLoad(t,e){super._doLoad(t,e)}_doSave(t){super._doSave(t)}_doImport(t){}}qi.$_ctor="PieChart";class tn extends ji{constructor(){super("barChart")}_doLoad(t,e){super._doLoad(t,e)}_doImport(t){super._doImport(t)}}tn.$_ctor="BarChart";class en extends ws{constructor(t){super(t)}get chartType(){return this._chartType}set chartType(t){if(t!=this._chartType){const e=this._chartType;this._chartType=t,this._chart=this.$_createChart(t,this._chart),this._changed(en.PROP_CHART_TYPE,t,e)}}get theme(){return this._theme}set theme(t){if(t!=this._theme){const e=this._theme;this._theme=t,this._changed(en.PROP_CHART_THEME,t,e)}}get chart(){return this._chart}getSaveType(){return"chart"}get outlineLabel(){return"[Chart]"}needDesignWidth(){return!1}needDesignHeight(){return!1}_getEditProps(){return super._getEditProps().concat(en.PROPINFOS)}_getStyleProps(){return en.STYLE_PROPS}isDominantProp(t){return t.name==en.PROP_CHART_TYPE}_doDefaultInit(t,e,r,s){super._doDefaultInit(t,e,r,s),this.chartType=Ji.BAR,this.chart.labels=["A","B"],this.chart.values=[3,5],this.width=240,this.height=240}_doLoad(t,e){super._doLoad(t,e),this._loadProps(e,en.PROP_CHART_TYPE,en.PROP_CHART_THEME),this._chart=this.$_createChart(this.chartType,null),e.hasOwnProperty("chart")&&this._chart.load(t,e.chart)}_doSave(t){super._doSave(t),this._saveProps(t,en.PROP_CHART_TYPE,en.PROP_CHART_THEME);let e={};this._chart.save(e),ot.isEmpty(e)||(t.chart=e)}$_createChart(t,e){let r;switch(t){case Ji.LINE:r=new Zi;break;case Ji.PIE:r=new qi;break;case Ji.BAR:default:r=new tn}return e&&(e.$_detached(),r.import(e)),r.$_attached(this),r}}en.PROP_CHART_TYPE="chartType",en.PROP_CHART_THEME="theme",en.PROP_CHART_CHART="chart",en.PROPINFOS=[{name:en.PROP_CHART_TYPE,category:Ge.CHART,type:sr,multiple:!1,default:void 0,domain:Ji},{name:en.PROP_CHART_THEME,category:Ge.CHART,type:Ze,multiple:!1,default:void 0},{name:en.PROP_CHART_CHART,category:Ge.CHART,type:Lr,multiple:!1,default:void 0}],en.STYLE_PROPS=["border","backgroundColor"],en.$_ctor="ChartItem",en.ITEM_TYPE="Chart";class rn extends ms{constructor(t){super(t),this._template=rn.TEMPLATE}get template(){return this._template}set template(t){if(t!=this._template){const e=this._template;this._template=t,this._changed(rn.PROP_TEMPLATE,t,e)}}getSaveType(){return"template"}get outlineLabel(){return"[Template]"}_getEditProps(){return super._getEditProps().concat(rn.PROPINFOS)}_doLoad(t,e){super._doLoad(t,e),this._loadPropsOf(e,rn.PROPINFOS)}_doSave(t){super._doSave(t),this._savePropsOf(t,rn.PROPINFOS)}}rn.TEMPLATE="<div>Template</div>",rn.PROP_TEMPLATE="template",rn.PROPINFOS=[{name:rn.PROP_TEMPLATE,category:"Template",type:Ze,multiple:!1,default:rn.TEMPLATE}],rn.$_ctor="TemplateItem",rn.ITEM_TYPE="Template Item";class sn extends Wi{constructor(t){super(t),this._shapeCount=5,this._countinuous=!1,this._designValue=2}get shapeCount(){return this._shapeCount}set shapeCount(t){if((t=Math.max(1,ot.toNumber(t)))!==this._shapeCount){const e=this._shapeCount;this._shapeCount=t,this._changed(sn.PROP_RATING_SHAPE_COUNT,t,e)}}get countinuous(){return this._countinuous}set countinuous(t){t!==this._countinuous&&(this._countinuous=t,this._changed(sn.PROP_SHAPE,t,!this._countinuous))}get minimum(){return this._minimum}set minimum(t){if((t=ot.toNumber(t,NaN))!=this._minimum){const e=this._minimum;this._minimum=t,this._changed(sn.PROP_RATING_MINIMUM,t,e)}}get maximum(){return this._maximum}set maximum(t){if((t=ot.toNumber(t,NaN))!=this._maximum){const e=this._maximum;this._maximum=t,this._changed(sn.PROP_RATING_MAXIMUM,t,e)}}get designValue(){return this._designValue}set designValue(t){if((t=ot.toNumber(t,0))!=this._designValue){const e=this._designValue;this._designValue=t,this._changed(sn.PROP_RATING_DESIGN_VALUE,t,e)}}get outlineLabel(){return"[Rating]"}getSaveType(){return"rating"}_getEditProps(){return super._getEditProps().concat(sn.PROPINFOS)}_getStyleProps(){return sn.STYLE_PROPS}_doDefaultInit(t,e,r,s){super._doDefaultInit(t,e,r,s),this.width=Math.min(100,r||100),this.height=Math.min(20,s||20)}_doLoad(t,e){super._doLoad(t,e),this._loadPropsOf(e,sn.PROPINFOS)}_doSave(t){super._doSave(t),this._savePropsOf(t,sn.PROPINFOS)}}sn.PROP_RATING_SHAPE_COUNT="shapeCount",sn.PROP_RATING_CONTINUOUS="continuous",sn.PROP_RATING_MINIMUM="minimum",sn.PROP_RATING_MAXIMUM="maximum",sn.PROP_RATING_DESIGN_VALUE="designValue",sn.PROPINFOS=[{name:Wi.PROP_SHAPE,category:"Shape",type:Ze,multiple:!1,default:void 0,domain:Gi},{name:sn.PROP_RATING_SHAPE_COUNT,category:"Rating",type:qe,multiple:!1,default:5},{name:sn.PROP_RATING_MINIMUM,category:"Rating",type:qe,multiple:!1,default:0},{name:sn.PROP_RATING_MAXIMUM,category:"Rating",type:qe,multiple:!1,default:100},{name:sn.PROP_RATING_DESIGN_VALUE,category:"Rating",type:qe,multiple:!1,default:50}],sn.STYLE_PROPS=["backgroundColor","fill","stroke","backFill","backStroke"],sn.$_ctor="RatingItem",sn.ITEM_TYPE="Rating";class An extends Ws{constructor(t){super(t)}get expression(){return this._expression}set expression(t){if(t!=this._expression){const e=this._expression;this._expression=t,this._exprNode=t?Qe.Default.parse(t):null,this._changed(An.PROP_EXPRESSION,t,e)}}getSummary(t){return this._exprNode?this._exprNode.evaluate(t):NaN}getSaveType(){return"summary"}get designText(){return this.value}get outlineLabel(){let t=this.expression;return"[Summary]"+(t?" "+t:"")}get pathLabel(){return"summary"}_doDefaultInit(t,e,r,s){super._doDefaultInit(t,e,r,s)}_getEditProps(){return super._getEditProps().concat(An.PROPINFOS)}_doLoad(t,e){super._doLoad(t,e),this._loadPropsOf(e,An.PROPINFOS)}_doSave(t){super._doSave(t),this._savePropsOf(t,An.PROPINFOS)}}An.PROP_EXPRESSION="expression",An.PROPINFOS=[{name:An.PROP_EXPRESSION,category:Ge.DATA,type:Ze,multiple:!1,default:void 0}],An.$_ctor="SummaryItem",An.ITEM_TYPE="Summary";class nn extends ms{constructor(t){super(t),this._minimum=0,this._maximum=100,this._position=35}get minimum(){return this._minimum}set minimum(t){if(t!=this._minimum){const e=this._minimum;this._minimum=t,this._changed(nn.PROP_BAR_MINIMUM,t,e)}}get maximum(){return this._maximum}set maximum(t){if(t!=this._maximum){const e=this._maximum;this._maximum=t,this._changed(nn.PROP_BAR_MAXIMUM,t,e)}}get position(){return this._position}set position(t){if((t=ot.toNumber(t,0))!=this._position){const e=this._position;this._position=t,this._changed(nn.PROP_POSITION,t,e)}}get outlineLabel(){return"[Bar]"}getSaveType(){return"bar"}_getEditProps(){return super._getEditProps().concat(nn.PROPINFOS)}_getStyleProps(){return nn.STYLE_PROPS}_doDefaultInit(t,e,r,s){super._doDefaultInit(t,e,r,s),this.width=Math.min(60,r||60),this.height=Math.min(25,s||25)}_doLoad(t,e){super._doLoad(t,e),this._loadPropsOf(e,nn.PROPINFOS)}_doSave(t){super._doSave(t),this._savePropsOf(t,nn.PROPINFOS)}}nn.PROP_BAR_MINIMUM="minimum",nn.PROP_BAR_MAXIMUM="maximum",nn.PROP_POSITION="position",nn.PROPINFOS=[{name:nn.PROP_BAR_MINIMUM,category:"Bar",type:qe,multiple:!1,default:0},{name:nn.PROP_BAR_MAXIMUM,category:"Bar",type:qe,multiple:!1,default:100},{name:nn.PROP_POSITION,category:"Bar",type:qe,multiple:!1,default:50}],nn.STYLE_PROPS=["border","backgroundColor","barColor"],nn.$_ctor="BarItem",nn.ITEM_TYPE="Bar";class on extends ci{constructor(t){super(t)}get seriesType(){return"column"}_doLoad(t,e){super._doLoad(t,e)}_doSave(t){super._doSave(t)}}on.$_ctor="HichartColumnSeries";class an extends pi{constructor(t){super(t)}get radius(){return this._radius}set radius(t){if(t!==this._radius){const e=this._radius;this._radius=t,this._changed(an.PROP_RADIUS,t,e)}}_getEditProps(){return super._getEditProps().concat(an.PROPINFOS)}_doLoad(t,e){super._doLoad(t,e),this._loadPropsOf(e,an.PROPINFOS)}_doSave(t){super._doSave(t),this._savePropsOf(t,an.PROPINFOS)}}an.PROP_RADIUS="radius",an.PROPINFOS=[{name:an.PROP_RADIUS,category:"marker",type:qe,multiple:!0,default:void 0}];class hn extends ci{constructor(t){super(t),this._marker=new an(this)}get lineWidth(){return this._lineWidth}set lineWidth(t){if(t!==this._lineWidth){const e=this._lineWidth;this._lineWidth=t,this._changed(hn.PROP_LINE_WIDTH,t,e)}}get lineColor(){return this._lineColor}set lineColor(t){if(t!==this._lineColor){const e=this._lineColor;this._lineColor=t,this._changed(hn.PROP_LINE_COLOR,t,e)}}get marker(){return this._marker}get seriesType(){return"line"}canHideMarker(){return!0}_getEditProps(){return super._getEditProps().concat(hn.PROPINFOS)}_doDefaultInit(t,e,r,s){super._doDefaultInit(t,e,r,s),this._marker.defaultInit(t,e,r,s)}_doLoad(t,e){super._doLoad(t,e),this._loadPropsOf(e,hn.PROPINFOS),this._loadObjects([this._marker],t,e)}_doSave(t){super._doSave(t),this._savePropsOf(t,hn.PROPINFOS),this._saveObjects([this._marker],t)}getWrapper(t){super.getWrapper(t);const e=this._getPropsWrapper({});return e.marker=this._marker.getWrapper(),ot.extend(t,e)}}hn.PROP_LINE_WIDTH="lineWidth",hn.PROP_LINE_COLOR="lineColor",hn.PROP_MARKER="marker",hn.PROPINFOS=[{name:hn.PROP_LINE_WIDTH,category:Ge.SERIES,type:qe,multiple:!0,default:void 0},{name:hn.PROP_LINE_COLOR,category:Ge.SERIES,type:hr,multiple:!0,default:void 0},{name:hn.PROP_MARKER,category:"marker",indented:!0,type:Lr,multiple:!1,default:void 0}],hn.$_ctor="HichartLineSeries";class ln extends hn{constructor(t){super(t)}get fillColor(){return this._fillColor}set fillColor(t){if(t!==this._fillColor){const e=this._fillColor;this._fillColor=t,this._changed(ln.PROP_FILL_COLOR,t,e)}}get seriesType(){return"area"}_getEditProps(){return super._getEditProps().concat(ln.PROPINFOS)}_doLoad(t,e){super._doLoad(t,e),this._loadPropsOf(e,ln.PROPINFOS)}_doSave(t){super._doSave(t),this._savePropsOf(t,ln.PROPINFOS)}getWrapper(t){return super.getWrapper(t),ot.extend(t,this._getPropsWrapper({}))}}ln.PROP_FILL_COLOR="fillColor",ln.PROPINFOS=[{name:ln.PROP_FILL_COLOR,category:Ge.SERIES,type:hr,multiple:!0,default:void 0}],ln.$_ctor="HichartAreaSeries";class cn extends ci{constructor(t){super(t),this._names=["사과","배","감","귤","수박"],this.size="75%",this.innerSize="0%"}getPropDomain(t){return this.report&&t.name===cn.PROP_PIE_SERIES_NAME_FIELD?this.getDataFieldNames():super.getPropDomain(t)}get nameField(){return this._nameField}set nameField(t){if(t!==this._nameField){const e=this._nameField;this._nameField=t,this._changed(cn.PROP_PIE_SERIES_NAME_FIELD,t,e)}}get names(){return this._names}set names(t){if(t!==this._names){const e=this._names;this._names=null==t?void 0:t.slice(),this._changed(cn.PROP_PIE_SERIES_NAMES,t,e)}}get size(){return this._size}set size(t){if((t=this._validateSize(t))!==this._size){const e=this._size;this._size=t,this._sizeDim=new D(t),this._changed(cn.PROP_PIE_SERIES_SIZE,t,e)}}get innerSize(){return this._innerSize}set innerSize(t){if((t=this._validateSize(t))!==this._innerSize){const e=this._innerSize;this._innerSize=t,this._innerSizeDim=new D(t),this._changed(cn.PROP_PIE_SERIES_SIZE,t,e)}}get seriesType(){return"pie"}_getEditProps(){return super._getEditProps().concat(cn.PROPINFOS)}_doLoad(t,e){super._doLoad(t,e),this._loadPropsOf(e,cn.PROPINFOS)}_doSave(t){super._doSave(t),this._savePropsOf(t,cn.PROPINFOS)}getWrapper(t){return super.getWrapper(t),ot.extend(t,{size:this.getSize(),innerSize:this.getInnerSize()})}getValues(t,e){const r=this._getNames(t,e),s=super.getValues(t,e),A=[];if(s){let t=0;for(let e of s)A.push({y:e,name:r&&r.length>t?r[t]:t}),t++}return A}getSize(){if(this._sizeDim)return this._sizeDim.getValue()}getInnerSize(){if(this._innerSizeDim)return this._innerSizeDim.getValue()}_getNames(t,e){if(t&&this._nameField){const t=this.data||this._getParentData();if(t)return e.getFieldValues(t,this._nameField)}return this._names}}cn.PROP_PIE_SERIES_NAME_FIELD="nameField",cn.PROP_PIE_SERIES_NAMES="names",cn.PROP_PIE_SERIES_SIZE="size",cn.PROP_PIE_SERIES_INNER_SIZE="innerSize",cn.PROPINFOS=[{name:cn.PROP_PIE_SERIES_NAME_FIELD,category:Ge.SERIES,type:ir,multiple:!1,default:void 0},{name:cn.PROP_PIE_SERIES_NAMES,category:Ge.SERIES,type:ar,multiple:!1,default:void 0},{name:cn.PROP_PIE_SERIES_SIZE,category:Ge.SERIES,type:tr,multiple:!0,default:void 0},{name:cn.PROP_PIE_SERIES_INNER_SIZE,category:Ge.SERIES,type:tr,multiple:!0,default:void 0}],cn.$_ctor="HichartPieSeries";class un extends pi{constructor(t){super(t),this._fillOpacity=.5,this._lineWidth=1}get fillOpacity(){return this._fillOpacity}set fillOpacity(t){if(t!==this._fillOpacity){const e=this._fillOpacity;this._fillOpacity=t,this._changed(un.PROP_FILL_OPACITY,t,e)}}get lineColor(){return this._lineColor}set lineColor(t){if(t!==this._lineColor){const e=this._lineColor;this._lineColor=t,this._changed(un.PROP_LINE_COLOR,t,e)}}get lineWidth(){return this._lineWidth}set lineWidth(t){if(t!==this._lineWidth){const e=this._lineWidth;this._lineWidth=t,this._changed(un.PROP_LINE_WIDTH,t,e)}}_getEditProps(){return super._getEditProps().concat(un.PROPINFOS)}_doLoad(t,e){super._doLoad(t,e),this._loadPropsOf(e,un.PROPINFOS)}_doSave(t){super._doSave(t),this._savePropsOf(t,un.PROPINFOS)}}un.PROP_FILL_OPACITY="fillOpacity",un.PROP_LINE_COLOR="lineColor",un.PROP_LINE_WIDTH="lineWidth",un.PROPINFOS=[{name:un.PROP_FILL_OPACITY,category:"marker",type:qe,multiple:!0,default:.5},{name:un.PROP_LINE_COLOR,category:"marker",type:hr,multiple:!0,default:void 0},{name:un.PROP_LINE_WIDTH,category:"marker",type:qe,multiple:!0,default:1}];class dn extends ci{constructor(t){super(t),this._xValues=[1,2,3,4,5],this._yValues=[1,2,3,4,5],this._marker=new un(this),this.values=[3,4,7,9,4]}get xField(){return this._xField}set xField(t){if(t!==this._xField){const e=this._xField;this._xField=t,this._changed(dn.PROP_X_FIELD,t,e)}}get xValues(){return this._xValues}set xValues(t){if(t!==this._xValues){const e=this._xValues;this._xValues=null==t?void 0:t.slice(),this._changed(dn.PROP_X_VALUES,t,e)}}get yField(){return this._yField}set yField(t){if(t!==this._yField){const e=this._yField;this._yField=t,this._changed(dn.PROP_Y_FIELD,t,e)}}get yValues(){return this._yValues}set yValues(t){if(t!==this._yValues){const e=this._yValues;this._yValues=null==t?void 0:t.slice(),this._changed(dn.PROP_Y_VALUES,t,e)}}get marker(){return this._marker}get seriesType(){return"bubble"}_getEditProps(){return super._getEditProps().concat(dn.PROPINFOS)}_doLoad(t,e){super._doLoad(t,e),this._loadPropsOf(e,dn.PROPINFOS),this._loadObjects([this._marker],t,e)}_doSave(t){super._doSave(t),this._savePropsOf(t,dn.PROPINFOS),this._saveObjects([this._marker],t)}getValues(t,e){const r=super.getValues(t,e),s=this._getValues("x",t,e),A=this._getValues("y",t,e),i=[];if(r&&s&&A){let t=0;for(let e of r)i.push({x:s[t],y:A[t],z:e}),t++}return i}getWrapper(t){super.getWrapper(t);const e=this._getPropsWrapper({});return e.marker=this._marker.getWrapper(),ot.extend(t,e)}_getValues(t,e,r){const s=this["_"+t+"Field"];if(e&&s){const t=this.data||this._getParentData();if(t)return r.getFieldValues(t,s)}return this["_"+t+"Values"]}}dn.PROP_X_FIELD="xField",dn.PROP_X_VALUES="xValues",dn.PROP_Y_FIELD="yField",dn.PROP_Y_VALUES="yValues",dn.PROP_MARKER="marker",dn.PROPINFOS=[{name:dn.PROP_X_FIELD,category:Ge.SERIES,type:ir,multiple:!1,default:void 0},{name:dn.PROP_X_VALUES,category:Ge.SERIES,type:or,multiple:!1,default:void 0},{name:dn.PROP_Y_FIELD,category:Ge.SERIES,type:ir,multiple:!1,default:void 0},{name:dn.PROP_Y_VALUES,category:Ge.SERIES,type:or,multiple:!1,default:void 0},{name:dn.PROP_MARKER,category:"marker",indented:!0,type:Lr,multiple:!1,default:void 0}],dn.$_ctor="HichartBubbleSeries";class pn extends v{constructor(){super(),this._itemCreators={text:t=>new zs(t),summary:t=>new An(t),image:t=>new Ci(t),check:t=>new yi(t),stack:t=>new Us(t),cbox:t=>new $s(t),rbox:t=>new Ys(t),dbox:t=>new js(t),list:t=>new Ei(t),table:t=>new HA(t),space:t=>new Xs(t),simpleband:t=>new Qi(t),tableband:t=>new TA(t),floating:t=>new bs(t),shape:t=>new zi(t),barcode:t=>new Di(t),qrcode:t=>new Li(t),bar:t=>new nn(t),rating:t=>new sn(t),template:t=>new rn(t),svg:t=>new Xi(t),chart:t=>new en(t),chartist:t=>new en(t),hichart:t=>new ni(t),highchart:t=>new ni(t)},this._hichartSeriesCreators={column:t=>new on(t),area:t=>new ln(t),line:t=>new hn(t),pie:t=>new cn(t),bubble:t=>new dn(t)}}_doDispose(){super._doDispose()}createItem(t){const e="string"==typeof t?t:t.type,r=t.name,s=this._itemCreators[e];let A=s&&s(r);return!A&&(t.hasOwnProperty("text")||t.hasOwnProperty("value")||t.hasOwnProperty("title"))&&(A=new zs(r)),A}createHichartSeries(t,e){let r="string"==typeof e?e:e.type;const s=this._hichartSeriesCreators[r]||this._hichartSeriesCreators.column;return s&&s(t)}}class gn extends tA{constructor(t,e){super("Add Item"),at(!!t),at(!!e),at(t!==e),this._parent=t,this._item=e}_doDispose(){this._parent=this._item=null}get parent(){return this._parent}get item(){return this._item}undo(){this._parent.remove(this._item)}redo(t){if(!this._parent.add(this._item))throw new qs("Item is not added.")}get source(){return this._item}}class fn{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.width=t,this.height=e}static empty(){return new fn}static create(){return new fn(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)}get isEmpty(){return 0===this.width||0===this.height}clone(){return new fn(this.width,this.height)}equals(t){return t===this||t&&this.width===t.width&&this.height===t.height}setEmpty(){return this.width=this.height=0,this}set(t,e){return this.width=t,this.height=e,this}round(){const t=this.clone();return t.width>>>=0,t.height>>>=0,t}toString(){return"{width: "+this.width+", height: "+this.height+"}"}}fn.EMPTY=new fn;class _n extends tA{constructor(t,e,r){super("Set Property"),at(!!t),at(!!e),this._item=t,this._prop=e,this._childProp=t instanceof ms&&t.isChildProp(e),this._newValue=r,this._oldValue=this._childProp?t.getChildProp(e):t[e]}_doDispose(){this._item=null}get item(){return this._item}get prop(){return this._prop}get childProp(){return this._childProp}get oldValue(){return this._oldValue}get newValue(){return this._newValue}undo(){this._childProp?this._item.setChildProp(this._prop,this._oldValue):this._item[this._prop]=this._oldValue}redo(t){this._childProp?this._item.setChildProp(this._prop,this._newValue):this._item[this._prop]=this._newValue}get description(){return"prop."+this._prop+": "+this._oldValue+" -> "+this._newValue}get source(){return this._item}}class mn extends tA{constructor(t,e,r){super("Update Band Field"),at(!!t),at(!!r),this._data=t,this._index=e,this._field=r,this._oldField={...t.getField(e)}}_doDispose(){this._data=this._field=this._oldField=null}get data(){return this._data}get index(){return this._index}get field(){return this._field}get oldField(){return this._oldField}undo(){this._data.setField(this._index,this._oldField)}redo(t){this._data.setField(this._index,this._field)}get source(){return this._data}}class wn extends tA{constructor(t,e,r){super("Add Band Field"),at(!!t),at(!!r),this._data=t,this._index=e,this._field=r}_doDispose(){this._data=this._field=null}get data(){return this._data}get index(){return this._index}get field(){return this._field}redo(t){this._data.addField(this._index,this._field)}undo(){this._data.removeField(this._field)}get source(){return this._data}}class Bn extends tA{constructor(t,e,r){super("Remove Band Field"),at(!!t),at(!!r),this._data=t,this._index=e,this._field=r}_doDispose(){this._data=this._field=null}get data(){return this._data}get index(){return this._index}get field(){return this._field}redo(t){this._data.removeField(this._field)}undo(){this._data.addField(this._index,this._field)}get source(){return this._data}}class Cn extends E{constructor(t){super(),this._dataMap={},this._commands=t}_doDispose(){this._dataMap=null,this._contextData=null,super._doDispose()}get designTime(){return!0}preparePrint(t){this._contextData=new Me(t),this._contextData.preparePrint(t,!0);for(let e in this._dataMap){const r=this._dataMap[e];r instanceof Ne&&r.preparePrint(t,!0)}}getAll(){const t=[];for(let e in this._dataMap)t.push(this._dataMap[e]);return t}getNames(){const t=[];for(let e in this._dataMap)t.push(e);return t}get(t){return this._dataMap[t]}getContextValue(t){return this._contextData.getValue(t)}getValue(t,e){if(t){const r=t.indexOf("::"),s=r>=0?t.substring(0,r):t,A=this._dataMap[s];if(A)return t=r>=0?t.substr(r+2):null,A instanceof Ke?A.getRowValue(e,t):A.getValue(t)}}getValueAt(t,e,r){const s=this._dataMap[t];if(s)return s instanceof Ke?s.getRowValue(r,e):s.getValue(e)}getFieldValues(t,e){const r=this._dataMap[t];if(r)return r instanceof Ke?r.getFieldValues(e):[r.getValue(e)]}addData(t){if(t)return this.$_register(null,t),this.$_fireDataAdded(t),!0}removeData(t){const e="string"==typeof t?t:t.name,r=this.get(e);if(r)return this.$_unregister(r),this.$_fireDataRemoved(r),r}dataNameChanged(t,e){this.fireEvent(Cn.NAME_CHANGED,t,e)}fieldNameChanged(t,e,r){this.fireEvent(Cn.FIELD_NAME_CHANGED,t,e,r)}load(t){if(!t)return this;for(let e in t){const r=t[e];if(r){const t=r.sample,s=r.fields;switch(r.type){case"array":this.$_register(e,new ze(e,s,t,r.sampleCount,this));break;case"band":this.$_register(e,new We(e,s,t,r.sampleCount,this));break;default:t&&this.$_register(e,new ke(e,t))}}}return this}save(t){for(let e in this._dataMap){const r=this._dataMap[e],s=r.getSaveValues(),A=t[e]={type:r.getSaveType()};s&&(A.sample=s),r instanceof Ke&&(A.fields=r.getSaveFields())}}getFieldIndex(t,e){const r=this._dataMap[t];return r instanceof Ke?r.getFieldIndex(e):-1}updateField(t,e,r){var s;null===(s=this._commands)||void 0===s||s.execute(new mn(t,e,r)),this.$_fireDataUpdated(t)}addField(t,e,r){var s;r&&t.indexOfField(r)<0&&(null===(s=this._commands)||void 0===s||s.execute(new wn(t,e,r)),this.$_fireDataUpdated(t))}removeField(t,e){var r;const s=t.indexOfField(e);s>=0&&(null===(r=this._commands)||void 0===r||r.execute(new Bn(t,s,e)),this.$_fireDataUpdated(t))}renameData(t,e){delete this._dataMap[t.name],t.name=e,this._dataMap[e]=t}$_register(t,e){if(e&&(t=t||e.name)){if(this._dataMap[t])throw new Error("Data is already exists: "+t);return e._dp=this,this._dataMap[t]=e,e}}$_unregister(t){t&&t._dp===this&&(delete this._dataMap[t.name],t._dp=null)}$_fireDataAdded(t){this.fireEvent(Cn.DATA_ADDED,t)}$_fireDataRemoved(t){this.fireEvent(Cn.DATA_REMOVED,t)}$_fireDataUpdated(t){this.fireEvent(Cn.DATA_UPDATED,t)}}Cn.DATA_ADDED="onDesignDataManagerDataAdded",Cn.DATA_REMOVED="onDesignDataManagerDataRemoved",Cn.DATA_UPDATED="onDesignDataManagerDataUpdated",Cn.NAME_CHANGED="onDesignDataManagerNameChanged",Cn.FIELD_NAME_CHANGED="onDesignDataManagerFieldNameChanged";class yn extends tA{constructor(t,e,r){super("Add Asset"),at(!!t),at(!!r),this._manager=t,this._group=e||t.root,this._item=r}_doDispose(){this._group=this._item=null}get manager(){return this._manager}get group(){return this._group}get item(){return this._item}undo(){this._manager.remove(this._item)}redo(t){this._manager.add(this._group,this._item)}get source(){return this._item}}class vn extends tA{constructor(t,e){super("Remove Asset"),at(!!t),at(!!e),this._manager=t,this._group=e.parent,this._item=e}_doDispose(){this._group=this._item=null}get manager(){return this._manager}get group(){return this._group}get item(){return this._item}undo(){this._manager.add(this._group,this._item)}redo(t){this._manager.remove(this._item)}get source(){return this._group}}class En extends tA{constructor(t,e,r){super("Set Property"),at(!!t),at(!!e),at(!!r),this._dm=t,this._data=e,this._oldName=e.name,this._newName=r}_doDispose(){this._dm=null,this._data=null}get data(){return this._data}get oldName(){return this._oldName}get newName(){return this._newName}undo(){this._dm.renameData(this._data,this._oldName)}redo(t){this._dm.renameData(this._data,this._newName)}get description(){return"rename data: "+this._oldName+" -> "+this._newName}get source(){return this._data}}class bn extends tA{constructor(t,e){super("Add Data"),at(!!t),at(!!e),this._dm=t,this._data=e}_doDispose(){this._dm=null,this._data=null}get data(){return this._data}undo(){this._dm.removeData(this._data)}redo(t){this._dm.addData(this._data)}get description(){return"Add data: "+this._data.name}get source(){return this._data}}class xn extends tA{constructor(t,e){super("Remove Data"),at(!!t),at(!!e),this._dm=t,this._data=e}_doDispose(){this._dm=null,this._data=null}get data(){return this._data}undo(){this._dm.addData(this._data)}redo(t){this._dm.removeData(this._data)}get description(){return"Remove data: "+this._data.name}get source(){return this._data}}class Pn extends tA{constructor(t,e){super("Save Simple Data"),at(!!t),at(!!e),this._data=t,this._values=e}_doDispose(){this._data=null,this._values=null}get data(){return this._data}undo(){this._data.setSample(this._oldValues)}redo(t){this._data.setSample(this._values)}get description(){return"Save simple data: "+this._data.name}get source(){return this._data}}class In extends tA{constructor(t,e,r){super("Set Style"),at(!!t),at(!!e),this._item=t,this._style=e,this._newValue=r,this._oldValue=this._item.getStyle(e)}_doDispose(){this._item=null}get item(){return this._item}get style(){return this._style}get oldValue(){return this._oldValue}get newValue(){return this._newValue}undo(){this._item.setStyle(this._style,this._oldValue)}redo(t){this._item.setStyle(this._style,this._newValue)}get description(){return"style."+this._style+": "+this._oldValue+" -> "+this._newValue}get source(){return this._item}}class Sn extends tA{constructor(t,e,r){let s=arguments.length>3&&void 0!==arguments[3]&&arguments[3];super("Move Item"),at(!!t),this._item=t,this._oldLeft=t.left,this._oldRight=t.right,this._oldTop=t.top,this._oldBottom=t.bottom,this._newLeft=e,this._newTop=r,this._persistant=s}static createCommands(t,e){if(t&&t.length>0){const r=[];return t.forEach(((t,s)=>{r.push(new Sn(t,e[s].x,e[s].y))})),r.length>0?r:null}}_doDispose(){this._item=null}redo(t){this._item.setChildProp("left",this._newLeft),!this._persistant&&this._item.setChildProp("right",void 0),this._item.setChildProp("top",this._newTop),!this._persistant&&this._item.setChildProp("bottom",void 0)}undo(){this._item.setChildProp("left",this._oldLeft),!this._persistant&&this._item.setChildProp("right",this._oldRight),this._item.setChildProp("top",this._oldTop),!this._persistant&&this._item.setChildProp("bottom",this._oldBottom)}get description(){return"Move item: "+this._item.designText}get source(){return this._item}}class Tn extends tA{constructor(t,e,r){super("Move Item One Way"),at(!!t),this._item=t,this._dir=e,this._old=t[e],this._new=r}static createCommands(t,e,r){if(t&&t.length>0){const s=[];return t.forEach(((t,A)=>{s.push(new Tn(t,e,r[A]))})),s.length>0?s:null}}_doDispose(){this._item=null}redo(t){this._item.setChildProp(this._dir,this._new)}undo(){this._item.setChildProp(this._dir,this._old)}get description(){return"Move item One Way: "+this._item.designText}get source(){return this._item}}class Fn extends tA{constructor(t,e,r,s,A,i,n){super("Resize Item"),at(!!t),this._item=t,this._saveWidth=e,this._saveHeight=r,this._oldWidth=s,this._oldHeight=A,this._dx=i,this._dy=n}_doDispose(){this._item=null}redo(t){this._dx&&(this._item.width=this._oldWidth+this._dx),this._dy&&(this._item.height=this._oldHeight+this._dy)}undo(){this._dx&&(this._item.width=this._saveWidth),this._dy&&(this._item.height=this._saveHeight)}get description(){return"Resize item: "+this._item.designText}get source(){return this._item}}class Rn extends eA{static createCommand(t,e,r,s,A,i,n,o,a){return[new Fn(t,e,r,s,A,i,n),new Sn(t,o,a,!0)]}constructor(t,e,r,s,A,i,n,o,a){super("Resize and Move Item",Rn.createCommand(t,e,r,s,A,i,n,o,a))}}class On extends tA{constructor(t,e){super("Set Properties"),at(!!t),at(!!e),this._item=t,this._props={...e},this._oldProps=t.getProperties(e)}_doDispose(){this._item=null,this._props=null}get item(){return this._item}get props(){return this._props}redo(t){this._item.setProperties(this._props)}undo(){this._item.setProperties(this._oldProps)}get source(){return this._item}}class Qn extends tA{constructor(t,e,r,s){super("Set Child Style"),at(!!t),at(!!e),at(!!r),this._item=t,this._prop=e,this._style=r,this._newValue=s,this._oldValue=this._item._getSubStyle(e,r)}_doDispose(){this._item=null}get item(){return this._item}get prop(){return this._prop}get style(){return this._style}get oldValue(){return this._oldValue}get newValue(){return this._newValue}undo(){this._item._setSubStyle(this._prop,this._style,this._oldValue)}redo(t){this._item._setSubStyle(this._prop,this._style,this._newValue)}get description(){return this._prop+".style."+this._style+": "+this._oldValue+" -> "+this._newValue}get source(){return this._item}}class Dn extends tA{constructor(t,e,r){super("Add Table Band Group"),at(!!t),this._band=t,this._index=Math.max(0,t.groups.count),this._config=r}_doDispose(){this._band=null}get band(){return this._band}get index(){return this._index}redo(t){this._group=this._band.groups.add(this._config,this._index)}undo(){this._band.groups.remove(this._group)}get source(){return this._band}}class Ln extends tA{constructor(t,e){super("Change child index"),at(!!t),this._item=t,this._newIndex=e,this._oldIndex=t.index}_doDispose(){this._item=null}redo(t){this._item.parent.changeChildIndex(this._item,this._newIndex)}undo(){this._item.parent.changeChildIndex(this._item,this._oldIndex)}get description(){return"Change child index: "+this._item.designText}get source(){return this._item}}class Un extends tA{constructor(t,e,r){super("Set Items Property"),at(!!t&&t.length>0),at(!!e),this._items=t.slice(),this._prop=e,this._childProps=[],this._oldValues=[],this._newValue=r,this._items.forEach((t=>{const r=t instanceof ms&&t.isChildProp(e);this._childProps.push(r),this._oldValues.push(r?t.getChildProp(e):t[e])}))}_doDispose(){this._items=null}get items(){return this._items.slice()}get prop(){return this._prop}get newValue(){return this._newValue}undo(){this._items.forEach(((t,e)=>{this._childProps[e]?t.setChildProp(this._prop,this._oldValues[e]):ot.hasSetter(t,this._prop)&&(t[this._prop]=this._oldValues[e])}))}redo(t){this._items.forEach(((t,e)=>{this._childProps[e]?t.setChildProp(this._prop,this._newValue):ot.hasSetter(t,this._prop)&&(t[this._prop]=this._newValue)}))}get description(){return"prop."+this._prop+", "+this._newValue}get source(){return this._items.slice()}}class Hn extends tA{constructor(t,e,r){super("Set Items Style"),at(!!t&&t.length>0),at(!!e),this._items=t.slice(),this._style=e,this._newValue=r,this._oldValues=[],this._items.forEach((t=>{this._oldValues.push(t.getStyle(e))}))}_doDispose(){this._items=null}get items(){return this._items.slice()}get style(){return this._style}get newValue(){return this._newValue}undo(){this._items.forEach(((t,e)=>{t.setStyle(this._style,this._oldValues[e])}))}redo(t){this._items.forEach(((t,e)=>{t.setStyle(this._style,this._newValue)}))}get description(){return"style."+this._style+": "+this._newValue}get source(){return this._items.slice()}}class Nn extends tA{constructor(t,e,r,s){super("Set Child Style"),at(!!t&&t.length>0),at(!!e),at(!!r),this._items=t.slice(),this._prop=e,this._style=r,this._newValue=s,this._oldValues=[],this._items.forEach((t=>{this._oldValues.push(t._getSubStyle(e,r))}))}_doDispose(){this._items=null}get items(){return this._items.slice()}get prop(){return this._prop}get style(){return this._style}get newValue(){return this._newValue}undo(){this._items.forEach(((t,e)=>{t._setSubStyle(this._prop,this._style,this._oldValues[e])}))}redo(t){this._items.forEach((t=>{t._setSubStyle(this._prop,this._style,this._newValue)}))}get description(){return this._prop+".style."+this._style+": "+this._newValue}get source(){return this._items.slice()}}class Mn extends tA{constructor(t,e){super("Set Items Properties"),at(!!t&&t.length),at(!!e),this._items=t.slice(),this._props={...e},this._oldProps=[],this._items.forEach((t=>{this._oldProps.push(t.getProperties(e))}))}_doDispose(){this._items=null,this._props=null}get items(){return this._items.slice()}get props(){return this._props}redo(t){this._items.forEach(((t,e)=>{t.setProperties(this._props)}))}undo(){this._items.forEach(((t,e)=>{t.setProperties(this._oldProps[e])}))}get source(){return this._items.slice()}}class kn extends tA{constructor(t,e,r){super("Add Simple Band Group"),at(!!t),this._band=t,this._index=Math.max(0,t.groups.count),this._config=r}_doDispose(){this._band=null}get band(){return this._band}get index(){return this._index}redo(t){this._group=this._band.groups.add(this._config,this._index)}undo(){this._band.groups.remove(this._group)}get source(){return this._band}}class Vn extends tA{constructor(t,e,r,s){super("Resize Space Item"),at(!!t),this._item=t,this._orgSize=e,this._oldSize=r,this._delta=s}_doDispose(){this._item=null}redo(t){this._item.size=this._oldSize+this._delta}undo(){this._item.size=this._orgSize}get description(){return"Resize space item"}get source(){return this._item}}!function(t){t.A0="A0",t.A1="A1",t.A2="A2",t.A3="A3",t.A4="A4",t.A5="A5",t.A6="A6",t.A7="A7",t.A8="A8"}(Yi||(Yi={}));const Gn={A0:{w:841,h:1189},A1:{w:594,h:841},A2:{w:420,h:594},A3:{w:297,h:420},A4:{w:210,h:297},A5:{w:148,h:210},A6:{w:105,h:148},A7:{w:74,h:105},A8:{w:52,h:74}};var Kn;!function(t){t.PORTRAIT="portrait",t.LANDSCAPE="landscape"}(Kn||(Kn={}));class Wn extends v{constructor(t){super(),this._orientation=Kn.PORTRAIT,this._size=Yi.A4,this._width="210mm",this._height="297mm",this._marginLeft="12mm",this._marginRight="12mm",this._marginTop="15mm",this._marginBottom="15mm",this._widthDim=new D(this._width),this._heightDim=new D(this._height),this._marginLeftDim=new D(this._marginLeft),this._marginRightDim=new D(this._marginRight),this._marginTopDim=new D(this._marginTop),this._marginBottomDim=new D(this._marginBottom),this._report=t}_doDispose(){super._doDispose()}get orientation(){return this._orientation}set orientation(t){t!==this._orientation&&(this._orientation=t,this._changed())}get size(){return this._size}set size(t){t!=this._size&&(this._size=t,this._changed())}get width(){return this._width}set width(t){t!=this._width&&(this._width=t,this._widthDim=new D(t),this._changed())}get height(){return this._height}set height(t){t!=this._height&&(this._height=t,this._heightDim=new D(t),this._changed())}get marginLeft(){return this._marginLeft}set marginLeft(t){t!=this._marginLeft&&(this._marginLeft=t,this._marginLeftDim=new D(t),this._changed())}get marginRight(){return this._marginRight}set marginRight(t){t!=this._marginRight&&(this._marginRight=t,this._marginRightDim=new D(t),this._changed())}get marginTop(){return this._marginTop}set marginTop(t){t!=this._marginTop&&(this._marginTop=t,this._marginTopDim=new D(t),this._changed())}get marginBottom(){return this._marginBottom}set marginBottom(t){t!=this._marginBottom&&(this._marginBottom=t,this._marginBottomDim=new D(t),this._changed())}load(t){}getPageSize(){let t=NaN,e=NaN;if(this._size){const r=Gn[this._size];r&&(t=R(S.MILLI,r.w),e=R(S.MILLI,r.h))}return isNaN(t)&&(t=this._widthDim.getFixedPixel(),e=this._heightDim.getFixedPixel()),this._orientation===Kn.LANDSCAPE?new fn(e,t):new fn(t,e)}getContentRect(t){return t.topBy(this._marginTopDim.getFixedPixel()),t.bottomBy(-this._marginBottomDim.getFixedPixel()),t.leftBy(this._marginLeftDim.getFixedPixel()),t.rightBy(-this._marginRightDim.getFixedPixel()),t}getClientRect(){const t=this.getPageSize();return new x(0,0,t.width-this._marginLeftDim.getFixedPixel()-this._marginRightDim.getFixedPixel(),t.height-this._marginTopDim.getFixedPixel()-this._marginBottomDim.getFixedPixel()).round()}applyExtents(t){const e=this.getPageSize(),r=this._marginLeftDim.getFixedPixel(),s=this._marginRightDim.getFixedPixel(),A=this._marginTopDim.getFixedPixel(),i=this._marginBottomDim.getFixedPixel();t.width=e.width-r-s+"px",t.height=e.height-A-i+"px"}applyPreviewExtents(t){const e=this.getPageSize();t.width=e.width+"px",t.height=e.height+"px"}applyClient(t){const e=this.getPageSize(),r=this._marginLeftDim.getFixedPixel(),s=this._marginRightDim.getFixedPixel(),A=this._marginTopDim.getFixedPixel(),i=this._marginBottomDim.getFixedPixel();t.width=e.width-r-s+"px",t.height=e.height-A-i+"px",t.left="0",t.top="0"}applyPreviewClient(t){const e=this.getPageSize(),r=this._marginLeftDim.getFixedPixel(),s=this._marginRightDim.getFixedPixel(),A=this._marginTopDim.getFixedPixel(),i=this._marginBottomDim.getFixedPixel();t.width=e.width-r-s+"px",t.height=e.height-A-i+"px",t.left=r+"px",t.top=A+"px",ot.extend(t,this._report.page.styles)}_changed(){this._report&&this._report._firePaperChanged()}}class zn extends v{constructor(t){super(),this.paper=new Wn(t)}}class Xn extends ws{constructor(t){super("reportRoot"),this._report=t}get report(){return this._report}get name(){return this._report.info.name}set name(t){const e=this.name;t!=e&&(this._report.info.name=t,this._changed(Xn.PROP_NAME,t,e))}get author(){return this._report.info.author}set author(t){this._report.info.author=t}get version(){return this._report.info.version}set version(t){this._report.info.version=t}get description(){return this._report.info.description}set description(t){this._report.info.description=t}get paperOrientation(){return this._report.info.paper.orientation}set paperOrientation(t){this._report.info.paper.orientation=t}get paperSize(){return this._report.info.paper.size}set paperSize(t){this._report.info.paper.size=t}get paperWidth(){return this._report.info.paper.width}set paperWidth(t){this._report.info.paper.width=t}get paperHeight(){return this._report.info.paper.height}set paperHeight(t){this._report.info.paper.height=t}get marginLeft(){return this._report.info.paper.marginLeft}set marginLeft(t){this._report.info.paper.marginLeft=t}get marginRight(){return this._report.info.paper.marginRight}set marginRight(t){this._report.info.paper.marginRight=t}get marginTop(){return this._report.info.paper.marginTop}set marginTop(t){this._report.info.paper.marginTop=t}get marginBottom(){return this._report.info.paper.marginBottom}set marginBottom(t){this._report.info.paper.marginBottom=t}get pathLabel(){return"report"}get displayPath(){return"report"}_ignoreItems(){return!0}getEditProps(){return Xn.PROPINFOS}getStyleProps(){return[]}canResize(t){return!1}_doLoad(t,e){super._doLoad(t,e),this._loadPropsOf(e,Xn.PROPINFOS)}_doSave(t){super._doSave(t),this._savePropsOf(t,Xn.PROPINFOS)}}Xn.PROP_REPORT_NAME="name",Xn.PROP_REPORT_AUTHOR="author",Xn.PROP_REPORT_VERSION="version",Xn.PROP_REPORT_DESCRIPTION="description",Xn.PROP_PAPER_ORIENTATION="paperOrientation",Xn.PROP_PAPER_SIZE="paperSize",Xn.PROP_PAPER_WIDTH="paperWidth",Xn.PROP_PAPER_HEIGHT="paperHeight",Xn.PROP_MARGIN_LEFT="marginLeft",Xn.PROP_MARGIN_RIGHT="marginRight",Xn.PROP_MARGIN_TOP="marginTop",Xn.PROP_MARGIN_BOTTOM="marginBottom",Xn.PROPINFOS=[{name:Xn.PROP_REPORT_NAME,category:Ge.REPORT,type:Ze,multiple:!1,default:void 0},{name:Xn.PROP_REPORT_AUTHOR,category:Ge.REPORT,type:Ze,multiple:!1,default:void 0},{name:Xn.PROP_REPORT_VERSION,category:Ge.REPORT,type:Ze,multiple:!1,default:void 0},{name:Xn.PROP_REPORT_DESCRIPTION,category:Ge.REPORT,type:Ze,multiple:!1,default:void 0},{name:Xn.PROP_PAPER_ORIENTATION,category:Ge.PAPER,type:sr,multiple:!1,default:Kn.PORTRAIT,domain:Kn},{name:Xn.PROP_PAPER_SIZE,category:Ge.PAPER,type:sr,multiple:!1,default:void 0,domain:Yi},{name:Xn.PROP_PAPER_WIDTH,category:Ge.PAPER,type:tr,multiple:!1,default:void 0},{name:Xn.PROP_PAPER_HEIGHT,category:Ge.PAPER,type:tr,multiple:!1,default:void 0},{name:Xn.PROP_MARGIN_LEFT,category:Ge.PAPER,type:tr,multiple:!1,default:void 0},{name:Xn.PROP_MARGIN_RIGHT,category:Ge.PAPER,type:tr,multiple:!1,default:void 0},{name:Xn.PROP_MARGIN_TOP,category:Ge.PAPER,type:tr,multiple:!1,default:void 0},{name:Xn.PROP_MARGIN_BOTTOM,category:Ge.PAPER,type:tr,multiple:!1,default:void 0}],Xn.$_ctor="ReportRootItem";class Jn extends E{constructor(t,e){super(),this._unit=S.MILLI,this._assetRoot="",this._loader=new pn,this._loading=!1,this._invalids=[],this._designTime=t,this._commands=new rA(this),this._info=new zn(this),this._page=new mi(this),this._page.addListener(this),this._root=new Xn(this),this._root.add(this._page),this._assets=new Ls,this._designData=new Cn(this._commands),t&&(this._data=this._designData,this._designData.addListener(this)),e&&this.load(e)}static isReportSource(t){return t&&ot.isObject(t.page)}_doDispose(){this._designData.removeListener(this),this._designData=this._designData.dispose(),super._doDispose()}onDesignDataManagerDataAdded(t,e){this.fireEvent(Jn.DATA_ADDED,e),this.$_refreshInvalids()}onDesignDataManagerDataRemoved(t,e){this.fireEvent(Jn.DATA_REMOVED,e),this.$_refreshInvalids()}onDesignDataManagerDataUpdated(t,e){this.fireEvent(Jn.DATA_UPDATED,e),this.$_refreshInvalids()}onDesignDataManagerNameChanged(t,e,r){this._page.$_dataNameChanged(e,r),this.fireEvent(Jn.DATA_NAME_CHANGED,e,r),this.$_refreshInvalids()}onDesignDataManagerFieldNameChanged(t,e,r,s){this._page.$_dataFieldNameChanged(e,r,s),this.fireEvent(Jn.DATA_FIELD_NAME_CHANGED,e,r,s),this.$_refreshInvalids()}editCommandStackChanged(t,e,r,s){this.fireEvent(Jn.COMMANDS_STACK_CHANGED,e,r,s),this.$_refreshInvalids()}editCommandStackDirtyChanged(t){this.fireEvent(Jn.DIRTY_CHANGED)}get loader(){return this._loader}get info(){return this._info}get paper(){return this._info.paper}get unit(){return this._unit}set unit(t){t!=this._unit&&(this._unit=t)}get assetRoot(){return this._assetRoot}set assetRoot(t){this._assetRoot=t,this._assetRoot.endsWith("/")||(this._assetRoot+="/")}get root(){return this._root}get page(){return this._page}set page(t){this._page=t}get assets(){return this._assets}get data(){return this._data}get designData(){return this._designData}get canUndo(){return this._commands.canUndo}get canRedo(){return this._commands.canRedo}get dirty(){return this._commands.dirty}load(t){if(t){this._loading=!0;try{return this._root.load(this._loader,t),t.report&&this._root.load(this._loader,t.report),t.page&&this._page.load(this._loader,t.page),t.assets&&this._assets.load(t.assets),t.data&&this._designData.load(t.data),this._fireReset(),this}finally{this._loading=!1}}}setSaveTagging(t){return this._page.saveTag=t,this}save(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const e={report:{},page:{}};return this._root.save(e.report),this._page.save(e.page),t||(this._assets.save(e.assets={}),this._data instanceof Cn&&this._data.save(e.data={})),this._page.saveTag=null,e}prepareLayout(){this._page.prepareLayout(!1)}preparePrint(t){this._page.preparePrint(t),this.models={}}getImageUrl(t){if(t)return this._assetRoot.indexOf(":")>=0?this._assetRoot+t:t}clearHistory(){this._commands.flush()}closeHistory(){this._commands.close()}undo(){return this._commands.undo()}redo(){return this._commands.redo()}execute(t){return t&&this._commands.execute(t)}getEditHistory(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._commands.getHistory(t)}getCommand(t){return this._commands.get(t)}itemByName(t){return this._page.getItem(t)}defaultInit(t,e,r,s){t.defaultInit(this._loader,e,r,s)}addItem(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;if(t&&e){if(!this._fireItemAdd(t,e,r))return!1;if(t.contains(e))throw new Error("Item is already contained in this group item.");if(e.outlineParent)throw new Error("Item is already contained in other group item.");if(e instanceof fA&&!t.canContainsBand())throw new Error("데이타밴드를 추가할 수 없는 영역입니다.");if(!(r>=0&&r<t.count))return this.execute(new gn(t,e)),e.parent instanceof Ps?e.parent.parent===t:e.parent===t}}addTableRow(t,e){e<0&&(e=t.rowCount),this.execute(new WA(t,e))}moveTableRows(t,e,r,s){}moveTableRowsToNearest(t,e,r,s){let A=arguments.length>4&&void 0!==arguments[4]&&arguments[4];try{const i=t.getNearestMovableRow(e,r,s);i>=0&&t.canMoveRows(e,r,i,A)&&this.execute(new zA(t,e,r,i,!0))}catch(e){if(!(e instanceof Q))throw e;this._fireAlert(t,e.message)}}addTableColumn(t,e){t instanceof TA?this.execute(new RA(t,e)):t instanceof HA&&this.execute(new kA(t,e))}moveTableColumns(t,e,r,s){}moveTableColumnsToNearest(t,e,r,s){try{if(t instanceof TA){const A=t.getNearestMovableColumn(e,r,s);A>=0&&A!==e&&t.canMoveColumns(e,r,A,!0)&&this.execute(new QA(t,e,r,A,!0))}else if(t instanceof HA){const A=t.getNearestMovableColumn(e,r,s);A>=0&&A!==e&&t.canMoveColumns(e,r,A,!0)&&this.execute(new VA(t,e,r,A,!0))}}catch(e){if(!(e instanceof Q))throw e;this._fireAlert(t,e.message)}}removeItem(t){t&&this.removeItems([t])}removeItems(t){t&&t.length>0&&this._page.removeItems(this._commands,t)}setItemProperty(t,e,r){if(t){if(t.isChildProp(e)&&!t.parent.canChangeChildProp(t,e,r))return;t instanceof TA&&"colCount"===e?this.execute(new FA(t,r)):t instanceof HA&&"colCount"===e?this.execute(new NA(t,r)):t instanceof lA&&"rowCount"===e?this.execute(new GA(t,r)):e&&this.execute(new _n(t,e,r))}}setItemProperties(t,e){t instanceof ms&&e&&this.execute(new On(t,e))}setItemsProperties(t,e){t&&t.length&&e&&this.execute(new Mn(t,e))}resetItemProperty(t,e){if(t instanceof ms&&e){let r=!1;if(t.isChildProp(e.name)?t.getChildProp(e.name)!==e.default&&(r=!0):t[e.name]!==e.default&&(r=!0),r)return this.execute(new _n(t,e.name,e.default)),!0}}setItemsProperty(t,e,r){t&&t.length&&e&&this.execute(new Un(t,e,r))}setItemStyle(t,e,r){t&&e&&this.execute(new In(t,e,r))}setItemsStyle(t,e,r){t&&t.length&&e&&this.execute(new Hn(t,e,r))}setChildStyleProperty(t,e,r,s){t&&e&&this.execute(new Qn(t,e,r,s))}setItemsChildStyleProperty(t,e,r,s){t&&t.length&&e&&this.execute(new Nn(t,e,r,s))}addTableBandColumn(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;t&&this.execute(new RA(t,r,e))}addTableBandGroup(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;t&&this.execute(new Dn(t,r,e))}addSimpleBandGroup(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;t&&this.execute(new kn(t,r,e))}canMergeSelection(t){return t instanceof aA&&!t.isSingle(!0)}mergeSelection(t){if(this.canMergeSelection(t)){const e=new XA(t);this.execute(e),this._fireCellMerged(t.table.getCell(e.bounds.r1,e.bounds.c1))}}canUnmergeCell(t){return!t.isSingle}unmergeCell(t){this.canUnmergeCell(t)&&this.execute(new JA(t))}search(t,e){const r=[];return this._page.search(t,e,r),r.length>0?r:null}applyDropResult(t,e){if(t&&e)return e.type===ds.PROP?this.execute(new _n(t,e.prop,e.value)):void 0}addAsset(t,e){if(e){const r="string"==typeof t?this._assets.findGroup(t):t;this.execute(new yn(this._assets,r,e))}}removeAsset(t){t&&this.execute(new vn(this._assets,t))}renameData(t,e){if(this._data instanceof Cn&&t&&e&&t.name!=e)return this.execute(new En(this._data,t,e)),!0}addData(t){if(this._data instanceof Cn)return this.execute(new bn(this._data,t)),!0}removeData(t){if(this._data instanceof Cn)return"string"==typeof t&&(t=this._data.get(t)),t&&this.execute(new xn(this._data,t)),!0}saveSimpleData(t,e){t&&e&&this.execute(new Pn(t,e))}saveItems(t){if(t&&t.length>0){if(t.length>1)for(let e=(t=t.sort(((t,e)=>t.level-e.level))).length-1;e>=0;e--){const r=t[e].parent;for(let s=e+1;s>=0;s--)if(t[s]===r){t.splice(s,1);break}}const e=[];for(let r of t){const t={};r.save(t)&&e.push(t)}return JSON.stringify(e)}}pasteItems(t,e){let r;e instanceof oA&&(r=e,e=e.table);let s=(e instanceof ws?e:null==e?void 0:e.parent)||this.page.body._bodyItems;if(s){const e=JSON.parse(t),A=[];for(let t of e){const e=this._loader.createItem(t);if(e){if(s instanceof lA){s.noPrepareCell=!0;try{s._loadChild(this._loader,e,t),e.setChildProp("row",r.row),e.setChildProp("col",r.col)}finally{s.noPrepareCell=!1}}else s._loadChild(this._loader,e,t);this.addItem(s,e)&&A.push(e)}}return A}}moveItem(t,e,r){t&&this.execute(new Sn(t,e,r))}moveItemDir(t,e,r){t&&this.execute(new Tn(t,e,r))}resizeItem(t,e,r,s,A,i,n){t&&this.execute(new Fn(t,e,r,s,A,i,n))}resizeSpace(t,e,r,s){t&&this.execute(new Vn(t,e,r,s))}resizeAndMove(t,e,r,s,A,i,n,o,a){t&&this.execute(new Rn(t,e,r,s,A,i,n,o,a))}alignItem(t,e){if(t instanceof DA||t instanceof oA)this.setItemStyle(t,"cellAlign",e);else if(t instanceof ms)if(t.parent instanceof Ps){const r=t.parent.parent.getCell(t.row,t.col);this.execute(new In(r,"cellAlign",e))}else if(t.parent.canAlign(t))switch(e){case"left":this.setItemProperties(t,{left:0,right:void 0});break;case"right":this.setItemProperties(t,{left:void 0,right:0});break;case"top":this.setItemProperties(t,{top:0,bottom:void 0});break;case"bottom":this.setItemProperties(t,{top:void 0,bottom:0});break;case"center":this.setItemProperties(t,{left:void 0,right:void 0,top:void 0,bottom:void 0})}}alignItems(t,e){const r=[];t.forEach((t=>{if(t instanceof oA||t instanceof DA)r.push(new In(t,"cellAlign",e));else if(t instanceof ms)if(t.parent instanceof Ps){const s=t.parent.parent.getCell(t.row,t.col);r.push(new In(s,"cellAlign",e))}else if(t.parent.canAlign(t))switch(e){case"left":r.push(new On(t,{left:0,right:void 0}));break;case"right":r.push(new On(t,{left:void 0,right:0}));break;case"top":r.push(new On(t,{top:0,bottom:void 0}));break;case"bottom":r.push(new On(t,{top:void 0,bottom:0}));break;case"center":r.push(new On(t,{left:void 0,right:void 0,top:void 0,bottom:void 0}))}})),r.length>0&&this.execute(new eA("alignItems",r))}changeItemIndex(t,e){if(e=Math.max(0,Math.min(t.parent.count-1,e)),t&&t.index!==e)return this.execute(new Ln(t,e)),!0}clearTexts(t){const e=[];t.forEach((t=>{(t instanceof zs&&t.text||t instanceof yi&&t.text)&&e.push(new _n(t,"text",void 0))})),e.length&&this.execute(new eA("",e))}adjustColumnWidths(t,e,r,s){this.execute(new YA(t,e,r,s))}adjustRowHeights(t,e,r,s){this.execute(new $A(t,e,r,s))}getInvalids(){return this._invalids}$_refreshInvalids(){this._page.collectInvalids(this,this._invalids=[])}onPageItemAdded(t,e,r,s){this._loading||this.fireEvent(Jn.ITEM_ADDED,e,r,s)}onPageItemsAdded(t,e,r){this._loading||this.fireEvent(Jn.ITEMS_ADDED,e,r)}onPageItemRemoved(t,e,r){this.fireEvent(Jn.ITEM_REMOVED,e,r)}onPageItemsRemoved(t,e){this.fireEvent(Jn.ITEMS_REMOVED,e)}onPageItemChanged(t,e,r,s,A){this.fireEvent(Jn.ITEM_CHANGED,e,r,s,A)}_fireReset(){this.fireEvent(Jn.RESET)}_firePaperChanged(){this.fireEvent(Jn.PAPER_CHANGED)}_fireItemAdd(t,e,r){return this.fireConfirmEvent(Jn.ITEM_ADD,t,e,r)}_fireItemMoved(t,e){this.fireEvent(Jn.ITEM_MOVED,t)}_fireCellMerged(t){this.fireEvent(Jn.CELL_MERGED,t)}_fireAlert(t,e){this.fireEvent(Jn.ALERT,t,e)}}Jn.RESET="onReportReset",Jn.PAPER_CHANGED="onReportPaperChanged",Jn.ITEM_ADD="onReportItemAdd",Jn.ITEM_ADDED="onReportItemAdded",Jn.ITEMS_ADDED="onReportItemsAdded",Jn.ITEM_REMOVED="onReportItemRemoved",Jn.ITEMS_REMOVED="onReportItemsRemoved",Jn.ITEM_CHANGED="onReportItemChanged",Jn.ITEM_MOVED="onReportItemMoved",Jn.COMMANDS_STACK_CHANGED="onReportCommandStackChanged",Jn.DIRTY_CHANGED="onReportDirtyChanged",Jn.DATA_ADDED="onReportDataAdded",Jn.DATA_REMOVED="onReportDataRemoved",Jn.DATA_UPDATED="onReportDataUpdated",Jn.DATA_NAME_CHANGED="onReportDataNameChanged",Jn.DATA_FIELD_NAME_CHANGED="onReportDataFieldNameChanged",Jn.CELL_MERGED="onReportCellMerged",Jn.ALERT="onReportAlert";const Yn=/\s*\,\s*/;class $n{static get hueCount(){return this.HUES.length}static getHue(t){return this.HUES[t]}static rbg2Hue(t){const e=(16711680&t)>>16,r=(65280&t)>>8,s=255&t,A=Math.min(e,r,s),i=Math.max(e,r,s);if(A==i)return 0;{let t=0;return t=i==e?(r-s)/(i-A):i==r?2+(s-e)/(i-A):4+(e-r)/(i-A),t*=60,t<0&&(t+=360),Math.round(t)}}static rgb2Hsl(t,e,r){if(void 0===e){const s=t;t=(16711680&s)>>16,e=(65280&s)>>8,r=255&s}t/=255,e/=255,r/=255;const s=Math.max(t,e,r),A=Math.min(t,e,r);let i,n,o=(s+A)/2;if(s==A)i=n=0;else{const a=s-A;switch(n=o>.5?a/(2-s-A):a/(s+A),s){case t:i=(e-r)/a+(e<r?6:0);break;case e:i=(r-t)/a+2;break;case r:i=(t-e)/a+4}i/=6}return{h:360*i,s:100*n,l:100*o}}static hue2rgb(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}static hsl2Rgb(t,e,r){if(void 0===e){const s=t;t=(16711680&s)>>16,e=(65280&s)>>8,r=255&s}let s,A,i;if(t/=360,r/=100,0==(e/=100))s=A=i=r;else{const n=r<.5?r*(1+e):r+e-r*e,o=2*r-n;s=$n.hue2rgb(o,n,t+1/3),A=$n.hue2rgb(o,n,t),i=$n.hue2rgb(o,n,t-1/3)}return Math.round(255*s)<<16|Math.round(255*A)<<8|Math.round(255*i)}static toHex(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:NaN,r=((16711680&t)>>16).toString(16);1==r.length&&(r="0"+r);let s=((65280&t)>>8).toString(16);1==s.length&&(s="0"+s);let A=(255&t).toString(16);1==A.length&&(A="0"+A);let i="";return isNaN(e)||(e=Math.round(255*e),i=(255&e).toString(16),1==i.length&&(i="0"+i)),"#"+r+s+A+i}static toRgba(t,e){let r="rgba(";return r+=((16711680&t)>>16)+","+((65280&t)>>8)+","+(255&t)+","+e,r+")"}static interpoate(t,e,r){const s=(16711680&t)>>16,A=(65280&t)>>8,i=255&t,n=(16711680&e)>>16,o=(65280&e)>>8,a=255&e;return(Math.floor((n-s)*r+s)<<16)+(Math.floor((o-A)*r+A)<<8)+Math.floor((a-i)*r+i)}static colorToHex(t,e){return"#"+ot.pad16(t,6)+ot.pad16(Math.round(255*e),2)}static colorToHex2(t,e){return e<1?"#"+ot.pad16(t,6)+ot.pad16(Math.round(255*e),2):"#"+ot.pad16(t,6)}static colorToCss(t,e){const r=Math.round(100*e)/100;if(1!==r){return"rgba("+((16711680&t)>>16)+","+((65280&t)>>8)+","+(255&t)+","+r+")"}return"#"+ot.pad16(t,6)}static strToColor(t){let e=0,r=1;if(t)if((t=t.trim()).startsWith("rgba(")&&t.endsWith(")")){const s=t.substring(5,t.length-1).trim().split(Yn);4===s.length&&(e=parseInt(s[0])<<16|parseInt(s[1])<<8|parseInt(s[2]),r=parseFloat(s[3]))}else if(t.startsWith("rgb(")&&t.endsWith(")")){const r=t.substring(4,t.length-1).trim().split(Yn);3===r.length&&(e=parseInt(r[0])<<16|parseInt(r[1])<<8|parseInt(r[2]))}else{t.startsWith("#")&&(t=t.substr(1));const s=t.length;s>6?(e=parseInt(t.substr(0,6),16),r=parseInt(t.substring(6),16)/255):s>0&&(3===s&&(t=t.charAt(0)+t.charAt(0)+t.charAt(1)+t.charAt(1)+t.charAt(2)+t.charAt(2)),e=parseInt(t,16))}return{color:e,alpha:r}}static cssToColor(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(t)if(t.startsWith("rgba(")){const r=t.substring(5,t.length-1).split(Yn),s=parseFloat(r[3]);if(s>0||!e){return{color:parseInt(r[0])<<16|parseInt(r[1])<<8|parseInt(r[2]),alpha:s}}}else if(t.startsWith("rgb(")){const e=t.substring(4,t.length-1).split(Yn);return{color:parseInt(e[0])<<16|parseInt(e[1])<<8|parseInt(e[2]),alpha:1}}}static lighten(t,e){if(e>=1)return t;const r=this.rgb2Hsl(t),s=r.l+r.l*(1-e);return this.hsl2Rgb(r.h,r.s,s)}}$n.HUE_MAX=360,$n.SATURATION_MAX=100,$n.LIGHTNESS_MAX=100,$n.HUES=[16711680,16776960,65280,65535,255,16711935,16711680];const jn={position:"poistion",display:"display",marign:"margin"},Zn={color:0,backgroundColor:1,fill:2},qn={};function to(t){if(t&&"#"==t.charAt(0)&&t.length>7){const e=parseInt(t.substring(1,7),16),r=parseInt(t.substring(7),16)/255;t=$n.colorToCss(e,r)}return t}function eo(t,e){const r=t.values;return r[e]||r.default}function ro(t,e,r){if(e)for(let s in e){let A=e[s];A&&!t._doApplyStyle(s,A,r)&&(s in jn||(s in Zn?A=to(A):s in qn&&(A=eo(qn[s],A),s=qn[s].css),r[s]=A||""))}}class so extends ht{constructor(t,e){super(t,e)}_doDispose(){super._doDispose()}get debugging(){return so.Debugging}get debugLabel(){return this.constructor.name}get guardLabel(){return this.debugLabel}get measuredWidth(){return this._measuredWidth}get measuredHeight(){return this._measuredHeight}get lazyLayout(){return!1}get floating(){return!1}measure(t,e,r){const s=this._dom;t.printing?delete s.dataset.design:s.dataset.design="",t.printing&&this._clearDesign(),this._doPrepareMeasure(t,s);const A=this._doMeasure(t,s,e,r);return this._doAfterMeasure(t,s,e,r,A),this._measuredWidth=A.width,this._measuredHeight=A.height,A}layoutContent(t){this._doPrepareContent(t),this._doLayoutContent(t),this._doAfterLayout(t)}print(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:NaN;const s=this._dom;return this._printWidth=r,this._setClassName(s),this._doPrint(t,e),this._setSizeStyle(s.style),this.height}findElement(t){return null}applyMeasure(){this.resize(this._measuredWidth,this._measuredHeight)}_doDraw(t){}_debugBorder(){return"1px solid rgba(0, 61, 0, 0.3)"}_debugColor(){return"rgba(0, 61, 0, 0.4)"}_clearDesign(){}_afterDraw(t){if(this.debugging&&this._debuggable()){if(!this._debugView){this._debugView=t.ownerDocument.createElement("span");const e=this._debugView.style;e.display="inline-block",e.position="absolute",e.pointerEvents="none",e.left="0",e.top="0",e.right="0",e.bottom="0",e.border=this._debugBorder(),e.color=this._debugColor()}this._debugView.textContent=this.debugLabel,t.appendChild(this._debugView)}else this._debugView&&ot.detach(this._debugView)}_debuggable(){return!0}_doPrepareMeasure(t,e){}_doAfterMeasure(t,e,r,s,A){}_doMeasure(t,e,r,s){return new fn(r,s)}_doPrepareContent(t){}_doLayoutContent(t){}_doAfterLayout(t){}_doSetStyles(t,e){this._setStyles(t,t.styles,e.style)}_setStyles(t,e,r){ro(t,e,r)}_getModelWidth(t,e){return t.getWidth(e)}_getModelHeight(t,e){return t.getHeight(e)}_setModelSize(t,e,r,s){let A=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const i=this._modelWidth=this._getModelWidth(t,r),n=this._modelHeight=this._getModelHeight(t,s);isNaN(i)?A&&(e.style.width=""):e.style.width=i+"px",isNaN(n)?A&&(e.style.height=""):e.style.height=n+"px"}_doPrint(t,e){const r=this.measure(e,e.pageWidth,e.pageHeight);this.width=r.width,this.height=r.height,this.layoutContent(e)}}so.Debugging=!1;class Ao extends so{constructor(t,e,r,s,A){super(t,null),this._model=e,this._text=r,this.dom.title=s;let i="rr-section-head";A&&(i+=" "+A),this.styleName=i}get model(){return this._model}set model(t){this._model=t}get text(){return this._text}set text(t){t!==this._text&&(this._text=t,this.invalidateLayout())}setSelected(t){this.model.isAncestorOf(t)?this.dom.dataset.selected="":delete this.dom.dataset.selected}_initDom(t,e){super._initDom(t,e),this._span=t.createElement("span"),e.appendChild(this._span)}_doMeasure(t,e,r,s){const A=this._span;return e.style.width="",e.style.height="",A.textContent=this._text,new fn(Math.ceil(e.offsetWidth),e.offsetHeight)}isDom(t){return super.isDom(t)||t===this._span}}class io extends so{constructor(t,e,r){super(t,r),this._modelChanged=!0,this._model=e,this._doModelChanged(null)}_doDispose(){this._model=null,super._doDispose()}get model(){return this._model}set model(t){if(t!==this._model){const e=this._model;this._model=t,this._modelChanged=!0,this._doModelChanged(e)}}get navigableParent(){let t=this.parent;for(;t;){if(t instanceof no)return t.navigable?t:t.navigableParent;t=t.parent}}get modelParent(){let t=this.parent;for(;t;){if(t instanceof no&&t.model===this._model.outlineParent)return t;t=t.parent}return null}get marqueeParent(){var t;const e=null===(t=this.model)||void 0===t?void 0:t.marqueeParent;if(e){let t=this;for(;t;){if(t instanceof io&&t.model===e)return t;t=t.parent}}return this}get designable(){return!0}get editable(){return!1}get isSpace(){return!1}get isRelativeHeight(){return this._model.isRelativeHeight}_clearDesign(){this._designView&&(ot.remove(this._designView),this._designView=null),super._clearDesign()}getEditText(){return""}setEditText(t,e){}refreshPrintValues(t){}get printable(){return!this._model||this._model.printable}_initDom(t,e){super._initDom(t,e),this.designable&&(this._designView=t.createElement("div"),this._designView.className="rr-design-back",e.appendChild(this._designView),this._bindMarker=t.createElement("span"),this._bindMarker.className="rr-bind-marker",this._designView.appendChild(this._bindMarker))}_setBindMarker(){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?(this._bindMarker.dataset.vis="1",t?this._bindMarker.dataset.sys="1":delete this._bindMarker.dataset.sys):delete this._bindMarker.dataset.vis}_doPrepareMeasure(t,e){const r=this._model;if(r){if(r.stylable){if(!t.printing){if(this._prevStyles){const t=e.style;for(let e in this._prevStyles)t[e]=""}this._prevStyles=r.styles&&{...r.styles}}this._doSetStyles(r,e)}if(t.printing){e.dataset._m_=r.shash,t.report&&(t.report.models[r.shash]=r);const s=r.styleCallback;if(s)try{const A=this.getPrintValue(t,r),i=s(t,r,t.row,A);i&&ot.extend(e.style,i)}catch(t){console.error("StyleCallback Error",t)}e.dataset.row=t.row+""}e.title=r.hint||""}}_doAfterMeasure(t,e,r,s,A){if(this.model){const t=this._model.getWidth(r),e=this._model.getHeight(s);isNaN(t)||(A.width=t),isNaN(e)||(A.height=e)}}findElement(t){return this._model&&t&&this._model.name===t?this:null}findElementOf(t){return this.isDom(t)?this:null}getPrintValue(t,e,r){let s,A=e.value;switch(A){case gs.NO:if(t.row>=0)return t.row+1;break;case gs.ROW:if(t.row>=0)return t.row;break;case gs.INDEX:return t.index;case gs.INO:return t.index+1;default:A&&t.dp&&(s=e.getPrintValue(t.dp,t.row))}const i=this._runValueCallback(t,e,s);return void 0!==i&&(s=i),void 0!==s?s:r}_doModelChanged(t){}_setX(t,e){t.style.left=e+"px"}_setY(t,e){t.style.top=e+"px"}_setPos(t,e,r){t.style.left=e+"px",t.style.top=r+"px"}_runValueCallback(t,e,r){if(!t._noValueCallback){const s=e.valueCallback;if(s){const A=s(t,e,t.row,r);if(void 0!==A)return A}}}}class no extends io{constructor(t,e,r){super(t,e,r),this._padLeft=0,this._padRight=0,this._padTop=0,this._padBottom=0,this._borderApplied=!1,this.measureFixed=!1}_doDispose(){this._floatings&&(this._floatings=null),super._doDispose()}get navigable(){return!0}isContentDom(t){return t===this._contentBox}findElement(t){let e=super.findElement(t);if(!e){const r=this._getItemsParent();for(let s=0,A=r.childCount;s<A;s++){if(e=r.getChild(s).findElement(t),e)break}}return e}findElementOf(t){let e=super.findElementOf(t);if(!e){const r=this._getItemsParent();for(let s=0,A=r.childCount;s<A;s++){const A=r.getChild(s);if(A instanceof io&&(e=A.findElementOf(t),e))break}}return e||t!==this._contentBox?e:this}getElementOf(t){if(t===this.model)return this;const e=this._getItemsParent();for(let r=0,s=e.childCount;r<s;r++){const s=e.getChild(r);if(s instanceof io&&s.model===t)return s;if(s instanceof no){const e=s.getElementOf(t);if(e)return e}}}indexOfElement(t){return this._getItemsParent().indexOf(t)}getLeaves(){const t=[];return function t(e,r){for(let s=0,A=e.childCount;s<A;s++){const A=e.getChild(s);A instanceof no?t(A,r):A instanceof io&&r.push(A)}}(this._getItemsParent(),t),t}getFirst(){const t=this._getItemsParent();for(let e=0,r=t.childCount;e<r;e++){const r=t.getChild(e);if(r.visible&&r instanceof io)return r}return this}getLast(){const t=this._getItemsParent();for(let e=t.childCount-1;e>=0;e--){const r=t.getChild(e);if(r.visible&&r instanceof io)return r}return this}_getPrev(t){const e=this._getItemsParent(),r=e.indexOf(t);return r>0?e.getChild(r-1):t}_getNext(t){const e=this._getItemsParent(),r=e.indexOf(t);return r<e.childCount-1?e.getChild(r+1):t}getPrev(t){return this._getPrev(t)}getNext(t){return this._getNext(t)}getLeft(t){return this._getPrev(t)}getRight(t){return this._getNext(t)}getUpper(t){return this._getPrev(t)}getLower(t){return this._getNext(t)}itemOfDom(t){if(this.isDom(t))return this.model;const e=this._getElements();if(e)for(let r of e){if(r instanceof no){const e=r.itemOfDom(t);if(e)return e}if(r instanceof io&&r.containsDom(t))return r.model}}setFixedSize(t){return this.width=t,this.measureFixed=!0,this}isDom(t){return super.isDom(t)||t===this._contentBox}_initDom(t,e){if(super._initDom(t,e),this._needContentBox()){const r=this._contentBox=t.createElement("div"),s=r.style;r.className="rr-content-box",s.position="absolute",s.boxSizing="content-box",s.left="0",s.top="0",s.width="100%",s.height="100%",e.appendChild(r)}}replaceDom(t){super.replaceDom(t),this._needContentBox()&&(this._contentBox=t.getElementsByClassName("rr-content-box")[0])}refreshPrintValues(t){for(let e=0;e<this.childCount;e++){const r=this.getChild(e);r instanceof io&&r.refreshPrintValues(t)}}_getItemViews(){const t=this._getElements(),e=[];for(let r of t)r instanceof io&&e.push(r);return e}_getParentDom(){return this._contentBox||this._dom}_getItemsParent(){return this}_needContentBox(){return!0}_needDesignBox(){return!1}_applyPaddings(t,e){const r=getComputedStyle(t),s=this._padTop=ot.toInt(r.paddingTop)+ot.toInt(r.borderTopWidth),A=this._padBottom=ot.toInt(r.paddingBottom)+ot.toInt(r.borderBottomWidth),i=this._padLeft=ot.toInt(r.paddingLeft)+ot.toInt(r.borderLeftWidth),n=this._padRight=ot.toInt(r.paddingRight)+ot.toInt(r.borderRightWidth);s>0&&(e.height+=s),A>0&&(e.height+=A),i>0&&(e.width+=i),n>0&&(e.width+=n),this._borderApplied=!0}_applyBorders(t,e){if(!this._borderApplied){const r=getComputedStyle(t),s=this._padTop+=ot.toInt(r.borderTopWidth),A=this._padBottom+=ot.toInt(r.borderBottomWidth),i=this._padLeft+=ot.toInt(r.borderLeftWidth),n=this._padRight+=ot.toInt(r.borderRightWidth);s>0&&(e.height+=s),A>0&&(e.height+=A),i>0&&(e.width+=i),n>0&&(e.width+=n),this._borderApplied=!0}}_isEmpty(){return this._getItemsParent().childCount<1}_isFocused(){return this.container.focusedElement===this}_isItemFocused(t){return this.container.focusedItem===t}_isItemSelected(t){return this.container._selection.contains(t)}_getFocusedItem(){return this.container.focusedItem}_doMeasure(t,e,r,s){const A=t.printing,i=this.model,n=t.reportView,o=this._getItemsParent();(this._modelChanged||n._modelDirty||i.layoutChanged)&&(o.clear(),this._buildItems(t,n,i),this._modelChanged=!1,i.layoutChanged=!1);const a=this.measureFixed?this.width:ot.pickNum(this._modelWidth,r),h=o.childCount;for(let e=0;e<h;e++){const r=o.getChild(e);(r.visible=!A||r.printable)&&(r.lazyLayout||this._doMeasureItem(t,r,a,s))}return new fn(this.offsetWidth,this.offsetHeight)}_doPrepareMeasure(t,e){super._doPrepareMeasure(t,e),this._borderApplied=!1,this._padTop=this._padBottom=this._padLeft=this._padRight=0}_getDesignText(){return this.model.outlineLabel}_setDesignContent(t){t?(this._designView.textContent=this._getDesignText(),this._designView.style.paddingLeft=12*this.model.designLevel+"px"):this._designView.textContent=""}_doMeasureItem(t,e,r,s){t.printing&&e.resetStyleName(),e.measure(t,r,s)}_createElement(t,e,r){const s=t.$_createElement(r);return this._prepareChild(s),e.addChild(s),s}_buildItems(t,e,r){const s=r&&r.items,A=this._getItemsParent();if(s&&s.length>0)for(let t of s)this._createElement(e,A,t)}_prepareChild(t){}_doLayoutContent(t){const e=t.printing,r=this._getItemsParent(),s=this._padLeft,A=this._padTop,i=r.width-s-this._padRight,n=r.height-A-this._padBottom;this._floatings&&(this._floatings=[]);for(let o=0,a=r.childCount;o<a;o++){const a=r.getChild(o);(a.visible=!e||a.printable)&&(a.lazyLayout&&this._doMeasureItem(t,a,this.width,this.height),a.resize(a.measuredWidth,a.measuredHeight),a.floating||a.draw(),a.layoutContent(t),a instanceof io?a.floating?(this._floatings||(this._floatings=[]),a._nodraw=!0,this._floatings.push(a)):this._layoutItem(t,a,a.model,s,A,i,n):this._layoutChild(t,a,s,A,i,n))}}layoutFloating(t){const e=this._floatings;if(e&&e.length)for(let r=0;r<e.length;r++){const s=e[r];s.visible&&(s._nodraw=!1,this._layoutFloating(t,s,s.model),s.draw())}}_layoutItem(t,e,r,s,A,i,n){}_layoutChild(t,e,r,s,A,i){}_layoutFloating(t,e,r){const s=this.findElement(r.anchorTarget);if(s instanceof io){const t=this.container.getDomPosition(this),A=this.container.getDomPosition(s);let i=A.x-t.x,n=A.y-t.y;switch(r.anchorPosition){case ys.INNER_LEFT:n-=(e.height-s.height)/2;break;case ys.LEFT:i-=e.width,n-=(e.height-s.height)/2;break;case ys.INNER_RIGHT:i+=s.width-e.width,n-=(e.height-s.height)/2;break;case ys.RIGHT:i+=s.width,n-=(e.height-s.height)/2;break;case ys.INNER_TOP:i-=(e.width-s.width)/2;break;case ys.TOP:i-=(e.width-s.width)/2,n-=e.height;break;case ys.INNER_BOTTOM:i-=(e.width-s.width)/2,n+=s.height-e.height;break;case ys.BOTTOM:i-=(e.width-s.width)/2,n+=s.height;break;case ys.CENTER:default:i-=(e.width-s.width)/2,n-=(e.height-s.height)/2}return e.dom.$_anc=s.dom,e.dom.$anp=r.anchorPosition,e.move(i,n),void e.setPrintStyles()}}_doAfterLayout(t){if(!t.printing&&this._designView)if(this._needDesignBox()){const t=this._isEmpty();this.dom.setAttribute("data-empty",String(t)),this._setDesignContent(t)}else this._designView.style.display="none"}_doPrint(t,e){super._doPrint(t,e),this.layoutFloating(e)}}const oo="r",ao="gh",ho="gf";class lo extends no{getSibling(t,e){const r=this.getLines(),s=r.indexOf(t);if(e<0&&s>0||e>0&&s<r.length-1)return r[Math.max(0,Math.min(r.length-1,s+e))]}_getNext(t){const e=this.getLines(),r=e.indexOf(t);if(r<e.length-1)return e[r+1]}_getPrev(t){const e=this.getLines(),r=e.indexOf(t);if(r>0)return e[r-1]}}lo.END_ROW_MESSAGE_CLASS="rr-end-row-message";class co extends no{constructor(t,e,r){super(t,e,r)}_prepareChild(t){}_doMeasure(t,e,r,s){this.measureFixed||this._setModelSize(this.model,e,r,s,!0);const A=super._doMeasure(t,e,r,s),i=this.childCount;let n=0,o=0;for(let t=0;t<i;t++){const e=this.getChild(t);if(e.visible){const t=e.model;n=Math.max(n,e.measuredWidth),o=Math.max(o,e.measuredHeight);let A=t.getTop(s);A>0&&(o+=A),A=t.getBottom(s),A>0&&(o+=A),A=t.getLeft(r),A>0&&(n+=A),A=t.getRight(r),A>0&&(n+=A)}}return A.set(n,o),this._applyPaddings(e,A),A}_layoutItem(t,e,r,s,A,i,n){const o=r.getLeft(i),a=r.getRight(i),h=r.getTop(n),l=r.getBottom(n);isNaN(o)||isNaN(a)?isNaN(o)?isNaN(a)?s+=(i-e.width)/2:s+=i-e.width-a:s+=o:(s+=o,e.width=Math.max(0,i-o-a)),isNaN(h)||isNaN(l)?isNaN(h)?isNaN(l)?A+=(n-e.height)/2:A+=n-e.height-l:A+=h:(A+=h,e.height=Math.max(0,n-h-l)),e.move(s,A),e.setPrintStyles()}_layoutChild(t,e,r,s,A,i){r+=(A-e.width)/2,s+=(i-e.height)/2,e.move(r,s),e.setPrintStyles()}}class uo extends co{constructor(t,e,r){super(t,e,r)}_doDispose(){super._doDispose()}get debugLabel(){return"stack"}_getPrev(t){const e=this.$_getSorted("x"),r=e.indexOf(t);return r>0?e[r-1]:null}_getNext(t){const e=this.$_getSorted("x"),r=e.indexOf(t);return r<e.length-1?e[r+1]:null}getUpper(t){const e=this.$_getSorted("y"),r=e.indexOf(t);return r>0?e[r-1]:null}getLower(t){const e=this.$_getSorted("y"),r=e.indexOf(t);return r<e.length-1?e[r+1]:null}$_getSorted(t){return this._getItemViews().sort(((e,r)=>e[t]-r[t]))}}class po extends uo{get debugLabel(){return"stack"}_getCssSelector(){return"rr-stack-container rr-group-element"}_needDesignBox(){return!0}}class go extends uo{constructor(t,e,r){super(t,e,r)}_doDispose(){super._doDispose()}_needDesignBox(){return!0}_isContexable(){return!1}_doPrepareMeasure(t,e){t.contextable=this._isContexable(),super._doPrepareMeasure(t,e)}_doMeasure(t,e,r,s){const A=super._doMeasure(t,e,r,s);return A.height>0||t.printing||!(this.model.designHeight>0)||(A.height=this.model.designHeight),A}measure(t,e,r){const s=super.measure(t,e,r);return t.printing&&(isNaN(this._printWidth)?isNaN(this.measuredWidth)||(this.width=this.measuredWidth):this.width=this._printWidth,isNaN(this._printHeight)?isNaN(this.measuredHeight)||(this.height=this.measuredHeight):this.height=this._printHeight,s.width=this.width,s.height=this.height),s}}class fo extends go{constructor(t,e){super(t,e,"reportHeaderView")}_doDispose(){super._doDispose()}get debugLabel(){return"report header"}_getCssSelector(){return"rr-report-header rr-group-element"}}class _o extends go{constructor(t,e){super(t,e,"reportFooterView")}_doDispose(){super._doDispose()}get debugLabel(){return"report footer"}_getCssSelector(){return _o.STYLE_NAME}}_o.STYLE_NAME="rr-page-header rr-group-element",_o.isFooter=function(t){return t&&t.className===_o.STYLE_NAME};class mo extends go{constructor(t,e){super(t,e,"pageHeaderView")}_doDispose(){super._doDispose()}get debugLabel(){return"page header"}_getCssSelector(){return"rr-page-header rr-group-element"}_isContexable(){return!0}}class wo extends go{constructor(t,e){super(t,e,"pageFooterView")}_doDispose(){super._doDispose()}get debugLabel(){return"page footer"}_getCssSelector(){return"rr-page-footer rr-group-element"}_isContexable(){return!0}}class Bo extends io{constructor(t,e){super(t,e,"spaceItemView")}_doDispose(){super._doDispose()}_getCssSelector(){return"rr-space rr-item-element"}get guardLabel(){return"space"}get debugLabel(){return"space"}get isSpace(){return!0}_doMeasure(t,e,r,s){return fn.create(0,0)}}class Co extends no{constructor(t,e,r){super(t,e,r),this._gap=0,this._container=this}_doDispose(){super._doDispose()}get gap(){return this._gap}get debugLabel(){return""}_needDesignBox(){return!0}_initDom(t,e){super._initDom(t,e)}_doMeasure(t,e,r,s){this.measureFixed||this._setModelSize(this.model,e,r,s,!0);const A=this.measureFixed?this.width:ot.pickNum(this._modelWidth,r);this._gap=this.model.getItemGap(A);return super._doMeasure(t,e,A,s)}_doAfterMeasure(t,e,r,s,A){const i=this.measureFixed?this.width:r;A.height>0||t.printing||!(this.model.designHeight>0)||(A.height=this.model.designHeight),A.width>0||t.printing||!(this.model.designWidth>0)||(A.width=this.model.designWidth),this.childCount>0&&this._applyPaddings(e,A),super._doAfterMeasure(t,e,i,s,A)}}class yo extends Co{constructor(t,e){super(t,e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"rowBoxView")}_doDispose(){super._doDispose()}getColPoints(){return this._points.slice()}get debugLabel(){return"rbox"}_getCssSelector(){return"rr-box-container rr-rbox rr-group-element"}_initDom(t,e){super._initDom(t,e)}_doMeasure(t,e,r,s){const A=this.model,i=this._paddings=t.reportView.getBoxPaddings(A);super._doMeasure(t,e,r,s);const n=this,o=n.childCount;let a=0,h=this._gap*(o-1);for(let t=0;t<o;t++){const e=n.getChild(t);e.visible&&(e instanceof Bo?h+=e._measuredWidth=e.model.getSize(r):e.floating||(a=Math.max(a,e.measuredHeight),h+=e.measuredWidth))}return n.width=h,n.height=a,n.resetSizeStyle(),this.invalidate(!0,!0),new fn(h+i.left+i.right,a+i.top+i.bottom)}_doLayoutContent(t){const e=this;for(let t=0,r=e.childCount;t<r;t++){const r=e.getChild(t);r.visible&&r instanceof Bo&&(r._measuredHeight=this.height)}super._doLayoutContent(t);const r=e.width;let s=0;const A=this._points=[];let i=0;for(let t=0,r=e.childCount;t<r;t++){const r=e.getChild(t);r.visible&&!r.floating&&(i+=r.width+this._gap)}switch(i>0&&(i-=this._gap),this.model.itemsAlign){case Es.END:s=r-i;break;case Es.MIDDLE:s=(r-i)/2;break;default:s=0}for(let t=0,r=e.childCount;t<r;t++){const r=e.getChild(t);r.visible&&!r.floating&&(r.x=s,A.push(s),s+=r.width,A.push(s),s+=this._gap,r.setPrintStyles())}}_layoutItem(t,e,r,s,A,i,n){const o=r.getTop(n),a=r.getBottom(n);isNaN(o)?isNaN(a)?A+=(n-e.height)/2:A+=n-e.height-a:A+=o,e.move(this.x,A),e.setPrintStyles()}getUpper(t){return t}getLower(t){return t}}class vo extends Co{constructor(t,e){super(t,e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"columnBoxView")}_doDispose(){super._doDispose()}getRowPoints(){return this._points.slice()}get debugLabel(){return"cbox"}_getCssSelector(){return"rr-box-container rr-cbox rr-group-element"}_initDom(t,e){super._initDom(t,e)}_doMeasure(t,e,r,s){const A=this.model,i=this._paddings=t.reportView.getBoxPaddings(A);super._doMeasure(t,e,r,s);const n=this,o=n.childCount;let a=this._gap*(o-1),h=0;for(let t=0;t<o;t++){const e=n.getChild(t);e.visible&&(e instanceof Bo?a+=e._measuredHeight=e.model.getSize(s):e.floating||(h=Math.max(h,e.measuredWidth),a+=e.measuredHeight))}return n.width=h,n.height=a,n.resetSizeStyle(),this.invalidate(!0,!0),new fn(h+i.left+i.right,a+i.top+i.bottom)}_doLayoutContent(t){const e=this;for(let t=0,r=e.childCount;t<r;t++){const r=e.getChild(t);r.visible&&r instanceof Bo&&(r._measuredWidth=this.width)}super._doLayoutContent(t);const r=e.height;let s=0;const A=this._points=[];let i=0;for(let t=0,r=e.childCount;t<r;t++){const r=e.getChild(t);r.visible&&!r.floating&&(i+=r.height+this._gap)}switch(i>0&&(i-=this._gap),this.model.itemsAlign){case Es.END:s=r-i;break;case Es.MIDDLE:s=(r-i)/2;break;default:s=0}for(let t=0,r=e.childCount;t<r;t++){const r=e.getChild(t);r.visible&&!r.floating&&(r.y=s,A.push(s),s+=r.height,A.push(s),s+=this._gap,r.setPrintStyles())}}_layoutItem(t,e,r,s,A,i,n){const o=r.getLeft(i),a=r.getRight(i);isNaN(o)?isNaN(a)?s+=(i-e.width)/2:s+=i-e.width-a:s+=o,e.move(s,e.y),e.setPrintStyles()}getLeft(t){return t}getRight(t){return t}}class Eo extends no{constructor(t,e){super(t,e,"diagonalBoxView")}_doDispose(){super._doDispose()}get debugLabel(){return"dbox"}_getCssSelector(){return"rr-box-container rr-dbox rr-group-element"}_needDesignBox(){return!0}_initDom(t,e){super._initDom(t,e),e.appendChild(this._line=t.createElement("span")),ot.extend(this._line.style,{position:"absolute",boxSizing:"borderBox"}),this._line.dataset.line="1"}_doMeasure(t,e,r,s){const A=this.model,i=this._paddings=t.reportView.getBoxPaddings(A);this.measureFixed||this._setModelSize(A,e,r,s,!0),ot.extend(this._line.style,A.lineStyles),super._doMeasure(t,e,r,s);const n=this.getChild(0),o=this.getChild(1);let a=0,h=0;return n&&o?(a=n.measuredWidth+o.measuredWidth,h=n.measuredHeight+o.measuredHeight):n&&(a=n.measuredWidth,h=n.measuredHeight),t.printing&&(this._line.dataset._m_=e.dataset._m_),new fn(a+i.left+i.right,h+i.top+i.bottom)}_doAfterMeasure(t,e,r,s,A){A.height>0||t.printing||!(this.model.designHeight>0)||(A.height=this.model.designHeight),A.width>0||t.printing||!(this.model.designWidth>0)||(A.width=this.model.designWidth),this.childCount>0&&this._applyPaddings(e,A),super._doAfterMeasure(t,e,r,s,A),e.style.padding="0"}_doLayoutContent(t){const e=this._line,r=this.width,s=this.height,A=Math.sqrt(Math.pow(r,2)+Math.pow(s,2));e.style.width=A+"px",this.model.reversed?(e.style.transform="translateY("+s+"px) rotate(-"+Math.atan(s/r)+"rad)",e.style.transformOrigin="0% 0%"):(e.style.transform="rotate("+Math.atan(s/r)+"rad)",e.style.transformOrigin="0% 0%"),super._doLayoutContent(t)}_layoutItem(t,e,r,s,A,i,n){const o=this.model;o.reversed?e.model===o.firstItem||(s=this.width-e.width-this._padRight,A=this.height-e.height-this._padBottom):e.model===o.firstItem?A=this.height-e.height-this._padBottom:s=this.width-e.width-this._padRight,e.move(s,A,!0)}}class bo extends co{constructor(t,e,r){let s=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];super(t,e,r),this._findable=!0,this._emptySize=s}_doDispose(){super._doDispose()}get isLayer(){return!0}get findable(){return this._findable}set findable(t){this._findable=t}get debugLabel(){return""}get lazyLayout(){return!0}_getCssSelector(){return"rr-item-container "+this.name}_needDesignBox(){return!1}_isEmptySize(){return this._emptySize}_initDom(t,e){super._initDom(t,e)}_prepareChild(t){}_doMeasure(t,e,r,s){return super._doMeasure(t,e,r,s).set(r,s)}}class xo extends vo{getLines(){const t=[];for(let e=0;e<this._container.childCount;e++){const r=this._container.getChild(e);r instanceof io&&!r.isSpace&&!r.floating&&t.push(r)}return t}getLine(t){const e=this._container.childCount;if(e>0)if(t>=0)for(let r=0,s=0;r<e;r++){const e=this._container.getChild(r);if(e instanceof io&&!e.isSpace&&!e.floating){if(s==t)return e;s++}}else for(let r=e-1,s=-1;r>=0;r--){const e=this._container.getChild(r);if(e instanceof io&&!e.isSpace&&!e.floating){if(s==t)return e;s--}}}isLine(t){return!t.isSpace&&!t.floating&&this._container.contains(t)}getLineOf(t){if(this.isLine(t))return t;let e=t;for(;e;){const t=e.navigableParent;if(t===this._container||t instanceof lo)return e;e=t}}getSiblingLine(t,e){let r=t.navigableParent;if(r instanceof lo){const s=r.getSibling(t,e);if(s)return s;t=r}r=this._container;let s=r.indexOf(t);if(s>=0)if(e>0)for(let t=s+1;t<r.childCount;t++){const e=r.getChild(t);if(e instanceof io&&!e.isSpace&&!e.floating)return e}else if(e<0)for(let t=s-1;t>=0;t--){const e=r.getChild(t);if(e instanceof io&&!e.isSpace&&!e.floating)return e}}get isLayer(){return!0}get debugLabel(){return""}get designable(){return!1}_debugBorder(){return"none"}_doMeasure(t,e,r,s){const A=t.printing?Math.ceil(t.bodyHeight)-Math.ceil(t.reportHeaderHeight)-Math.ceil(t.reportFooterHeight)-Math.ceil(t.headerHeight)-Math.ceil(t.footerHeight):s;return super._doMeasure(t,e,r,A)}}class Po extends so{constructor(t,e){super(t,"pageBody"),this._findable=!0,this._modelChanged=!1,this._model=e,this.addChild(this._backContainerView=new bo(t,null,"backView")),this.addChild(this._itemsView=new xo(t,null)),this.addChild(this._frontContainerView=new bo(t,null,"frontView"))}_doDispose(){super._doDispose()}get model(){return this._model}set model(t){t!==this._model&&(this._model=t,this._modelChanged=!0,t&&(this._backContainerView.model=t.backItemsContainer,this._frontContainerView.model=t.frontItemsContainer,this._itemsView.model=t.itemsContainer))}get empty(){return 0==this._itemsView.childCount&&0==this._backContainerView.childCount&&0==this._frontContainerView.childCount}get itemsView(){return this._itemsView}isPageDom(t){return this.isDom(t)||this._itemsView.isDom(t)||this._itemsView.isContentDom(t)}findElement(t){return this._itemsView.findElement(t)||this._backContainerView.findElement(t)||this._frontContainerView.findElement(t)}findElementOf(t){return this._itemsView.findElementOf(t)||this._backContainerView.findElementOf(t)||this._frontContainerView.findElementOf(t)}getElementOf(t){return this._itemsView.getElementOf(t)||this._backContainerView.getElementOf(t)||this._frontContainerView.getElementOf(t)}isLine(t){return this._itemsView.isLine(t)}getLineOf(t){return this._itemsView.getLineOf(t)}getSiblingLine(t,e){return this._itemsView.getSiblingLine(t,e)}getLine(t){return this._itemsView.getLine(t)}getLines(){return this._itemsView.getLines()}printAll(t,e){const r={startPage:0,pages:new Array,floatings:new Array};return this.print(t,e),this.empty||(this.layoutFloating(e),this.$_buildPages(t,e,r)),r}itemOfDom(t){let e;return(e=this._frontContainerView.itemOfDom(t))||(e=this._itemsView.itemOfDom(t))||(e=this._backContainerView.itemOfDom(t))?e:void 0}_getCssSelector(){return"rr-page-body"}get debugLabel(){return"page body"}get findable(){return this._findable}set findable(t){this._findable=t}_debugBorder(){return"1px solid rgba(0, 0, 255, 0.3)"}_debugColor(){return"rgba(0, 0, 255, 0.4)"}_doMeasure(t,e,r,s){this._modelChanged&&(this._modelChanged=!1),this._backContainerView.setFixedSize(r).measure(t,r,s),this._itemsView.setFixedSize(r).measure(t,r,s),this._frontContainerView.setFixedSize(r).measure(t,r,s);const A=Math.max(this.itemsView.measuredHeight,s);return new fn(r,A)}_doLayoutContent(t){const e=this.width,r=this.height;let s;s=this._backContainerView,s.setBounds(0,0,e,r),s.layoutContent(t),s=this._itemsView,s.setBounds(0,0,e,r),s.layoutContent(t),s=this._frontContainerView,s.setBounds(0,0,e,r),s.layoutContent(t)}layoutFloating(t){this._backContainerView.layoutFloating(t),this._itemsView.layoutFloating(t),this._frontContainerView.layoutContent(t)}$_buildPages(t,e,r){function s(){const t=[];n.push(t);let r=e.bodyTop;return e.h=e.bodyHeight,0==l&&(e.h-=e.reportHeaderHeight,r+=e.reportHeaderHeight),e.y=r,t}const A=this._itemsView,i=A.childCount;if(i<1)return;const n=r.pages,o=e.pageWidth,a=A.gap;let h,l=0;for(e.h=0;l<i;){e.h<=0&&(h=s());const r=l<i-1;let c,u,d=A.getChild(l++);if(d.printable){if(d instanceof io&&d.model.isBreakBefore()&&(h=s()),d instanceof lo){let s=e.y;const A=[];d.printBand(t,e,o,A);for(let t=0;t<A.length;t++)t>0&&(n.push(h=[]),s=e.bodyTop),c=A[t],c.style.top=s+"px",c.$_h=e.y-s+(r&&t===A.length-1?a:0),h.push(c);e.h-=a}else u=d.height,u>e.h&&d instanceof Bo&&(u=e.h),c=d._dom,d instanceof io&&d.floating?(h.push(c),d=null):u<=e.h?(c.style.top=e.y+"px",c.$_h=u+=r?a:0,h.push(c),e.h-=u,e.y+=u):(e.h=0,l--,d=null);d instanceof io&&d.model.isBreakAfter()&&l<i-1&&(h=s())}else d.visible=!1}e.h<e.reportFooterHeight&&s(),console.log(n.length+" page(s) printed.")}}class Io extends no{constructor(t,e,r,s){super(t,r,s),this._table=e}_doDispose(){super._doDispose()}get table(){return this._table}get container(){return this._table.container}get debugLabel(){return""}get designable(){return!1}get navigable(){return!1}get navigableParent(){return this._table}_getCssSelector(){return Io.STYLE}_needContentBox(){return!1}_initDom(t,e){super._initDom(t,e),e.className=Io.STYLE}_prepareChild(t){t.dom.style.position="relative"}_doLayoutContent(t){super._doLayoutContent(t);const e=this.model,r=this._table,s=r.model.getCell(e.row,e.col),A=this.getChild(0),i=r.model.getColumn(e.col).styles,n=s.styles,o=n&&n.cellAlign||i&&i.cellAlign;let a=0;switch(o){case"left":break;case"right":a=this.offsetWidth-A.offsetWidth;break;default:a=(this.offsetWidth-A.offsetWidth)/2}if(A.x=a,A.setPrintStyles(),A.dom.style.verticalAlign="middle",A.dom.style.top="",A.y=NaN,t.printing){r.$_td(this._row,this._col).dataset._align=o?o.charAt(0):"c"}}}Io.STYLE="rr-table-cell";class So extends no{constructor(t,e,r){super(t,e,r),this._tcells=[],this._ecells=[],this._spans=[]}static setTableStyle(t){const e=t.style;e.setProperty("table-layout","fixed","important"),e.setProperty("width","100%","important"),e.setProperty("border-collapse","collapse","important"),t.className="rr-table"}static getTable(t){return t instanceof Io?t.table:t&&t.parent instanceof Io?t.parent.table:t instanceof So?t:void 0}_doDispose(){super._doDispose()}get rowCount(){return this._tbody.rows.length}get cellCount(){return this._tcells.length}get cellViews(){return this._tcells.slice(0)}get hasCells(){return this._tcells.length>0}getColPoints(){let t=0;const e=[t];if(this._cellWidths)for(let r of this._cellWidths)e.push(t+=parseFloat(r));return e}getColWidth(t){return this._colPts[t+1]-this._colPts[t]}getRowPoints(){const t=this._tbody.rows;let e=0;const r=[e];for(let s=0;s<t.length;s++)r.push(e+=t[s].offsetHeight);return r}getRowRect(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const r=this._tbody.rows,s=x.create(0,0,this.width,0);for(let e=0;e<t;e++)s.y+=r[e].offsetHeight;for(let A=0,i=Math.min(e,this.rowCount-t);A<i;A++)s.height+=r[A+t].offsetHeight;return s}getColRect(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const r=x.create(0,0,0,this.height);return r.x=this._colPts[t],e=Math.min(e,this._colPts.length-t),r.width=this._colPts[t+e]-r.x,r}get blockable(){return!0}get debugLabel(){return"table"}_needContentBox(){return!1}getCellOf(t,e){if(!t)return null;let r;if(e){let e=t;for(;e;){if(e instanceof HTMLTableCellElement){r=e;break}e=e.parentElement}}else t.parentElement instanceof HTMLTableCellElement?r=t.parentElement:t instanceof HTMLTableCellElement&&(r=t);if(r){const t=r.parentElement.rowIndex;return this.model.getCell(t,r.cellIndex)}}findChildAt(t,e,r){const s=this.container.activeTool.mouseEventTarget;for(let t of this._tcells){if(t.isDom(s))return t;let e=t.getChild(0);if(e.isDom(s))return e;let r=e.findDescendantOf(s);if(r)return r;if(e.containsDom(s))return e}}findChildOf(t){for(let e of this._tcells){if(e.isDom(t))return e;const r=e.findChildOf(t);if(r)return r}}findElement(t){const e=super.findElement(t);if(!e)for(let e of this._tcells){const r=e.getChild(0);if(r instanceof io){const e=r.findElement(t);if(e)return e}}return e}findElementOf(t){const e=super.findElementOf(t);if(!e)for(let e of this._tcells){const r=e.getChild(0);if(r instanceof io){if(e.isDom(t))return r;const s=r.findElementOf(t);if(s)return s}}return!e&&(t instanceof HTMLTableCellElement||t.classList.contains(Io.STYLE))&&this.containsDom(t)?this:e}getElementOf(t){for(let e of this._tcells){const r=e.getChild(0);if(r instanceof io&&r.model==t)return r;if(r instanceof no){const e=r.getElementOf(t);if(e)return e}}}setCellDoms(t,e){const r=t.cells,s=e.cells;for(let t=s.length-1;t>=0;t--){const e=s[t].firstElementChild;e&&r[t].appendChild(e)}for(let e of this._tcells)e._row===t.rowIndex&&(e._dom=r[e._col].lastElementChild)}unsetCellDoms(t,e){const r=t.cells,s=e.cells;for(let t=s.length-1;t>=0;t--){const e=s[t].lastElementChild;e&&r[t].appendChild(e)}for(let e of this._tcells)e._row===t.rowIndex&&(e._dom=r[e._col].firstElementChild)}replaceCellDoms(t,e){const r=t.cells,s=e.cells;for(let t=s.length-1;t>=0;t--){const e=s[t].firstElementChild,A=r[t].firstElementChild;e&&A&&(s[t].removeChild(e),s[t].appendChild(A),r[t].appendChild(e))}for(let e of this._tcells)e._row===t.rowIndex&&(e._dom=r[e._col].firstElementChild)}_setTableStyles(t){So.setTableStyle(t)}_createDom(t){const e=super._createDom(t),r=this._table=t.createElement("table");return this._setTableStyles(r),this._colgroup=t.createElement("colgroup"),r.appendChild(this._colgroup),this._tbody=t.createElement("tbody"),r.appendChild(this._tbody),e.appendChild(r),e}_doModelChanged(t){t&&(t.onCellChanged=null),this.model&&(this.model.onCellChanged=this.$_cellChanged.bind(this))}$_refreshRowCells(t,e,r){let s=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const A=this.container;for(let i of this._tcells){s&&(i._modelChanged=!0);const n=ot.pickNum(i.dom.offsetWidth,e);i.measure(t,n,r);const o=i.getChild(0);i.layoutContent(t),A?A._drawElement(o):o.drawRecursive()}const i=this.model.getMinRowHeight();if(!isNaN(i)){const t=i+"px",e=this._tbody.rows;for(let r=0;r<e.length;r++){e[r].offsetHeight<i&&(e[r].style.height=t)}}}_isEmpty(){return 0==this.model.colCount}_doMeasure(t,e,r,s){const A=this.model;return this.$_prepareTable(A,this._tbody),this._setModelSize(A,e,r,s,!0),this.$_measureCellWidths(A,this._modelWidth||r),this.$_measureRowHeights(A,this._modelHeight||NaN),super._doMeasure(t,e,r,s),this.$_refreshRowCells(t,r,s),t.printing?this._table.dataset._m_=e.dataset._m_:(this._table.dataset._m_=A.shash,this._table.style.border="1px solid rgba(55, 55, 55, 0.1)"),new fn(this._table.offsetWidth,this._table.offsetHeight)}_doLayoutContent(t){super._doLayoutContent(t)}clear(){if(this._ecells&&this._ecells.length&&(this._ecells.forEach((t=>ot.remove(t))),this._ecells=null),this._tcells&&this._tcells.length)return this._tcells.forEach((t=>ot.remove(t._dom))),this._tcells=null,!0}_buildItems(t,e,r){function s(t,e){let r=parseInt(l[t]);for(let s=1;s<e;s++)r+=parseInt(l[t+1]);return r>0?r+"px":""}function A(t,e){return t&&0!==e?Math.max(0,parseInt(t)-e)+"px":t}const i=this.doc,n=r.rowCount,o=r.colCount,a=this._tbody.rows,h=this._spans,l=this._rowHeights;this._tcells=[],this._ecells=[];for(let e=0;e<n;e++){const n=a[e];for(let a=0;a<o;a++){const o=n.cells[a],c=r.getCellItemAt(e,a);if(t.printing||(o.dataset.design=""),0===h[e][a].r||0===h[e][a].c)o.removeAttribute("colspan"),o.removeAttribute("rowspan"),o.style.display="none";else{this._prepareCellStyles(t,r,e,a,o);const n=h[e][a].r,u=n>1?s(e,n):l[e],d=getComputedStyle(o),p=ot.toInt(d.paddingTop)+ot.toInt(d.paddingBottom);if(o.colSpan=h[e][a].c,o.rowSpan=n,c){const t=this._createCellElement(i,c);t._row=e,t._col=a,t._dom.style.maxHeight=A(u,p),this._prepareChild(t),o.appendChild(t._dom),this._tcells.push(t)}else{const t=i.createElement("div");t.className=Io.STYLE,t.innerHTML="&nbsp;",t.style.maxHeight=A(u,0),o.appendChild(t),this._ecells.push(t)}}}}}_prepareCellStyles(t,e,r,s,A){const i=e.getCell(r,s),n=i.applyEndStyles;let o=e.cellStyles;this._setStyles(e,o,A.style),o=e.getColumn(s).styles,this._setStyles(e,o,A.style),n&&A.colSpan>1&&(o=e.getColumn(s+A.colSpan-1).styles,this._setStyles(e,o,A.style)),o=e.rows.get(r).styles,this._setStyles(e,o,A.style),n&&A.rowSpan>1&&(o=e.rows.get(r+A.rowSpan-1).styles,this._setStyles(e,o,A.style)),o=i.styles,o&&(cs in o?(o={...o},delete o.cellAlign,this._setStyles(e,o,A.style)):this._setStyles(e,o,A.style))}_prepareChild(t){t._dom.style.position="relative",t.positionable=!1}getFirst(){const t=this._spans;for(let e=0;e<t.length;e++){const r=t[e];for(let t=0;t<r.length;t++)if(r[t].r){const e=r[t].m;if(e)return this._findCell(e).firstChild}}}getLast(){const t=this._spans;for(let e=t.length-1;e>=0;e--){const r=t[e];for(let t=r.length-1;t>=0;t--)if(r[t].r){const e=r[t].m;if(e)return this._findCell(e).firstChild}}}_getPrev(t){const e=t.model,r=this._spans;let s=e.col;if(s>0){const t=e.row,A=r[t][s].v.rowspan||1;for(;--s>=0;)for(let i=0;i<A;i++){const A=r[t+i][s].m;if(A&&A.item!==e)return this._findCell(A).firstChild}}}_getNext(t){const e=this._spans,r=t.model,s=r.row;let A=r.col;if(A<e[s].length-1){const t=e[s][A].v.rowspan||1;for(;++A<e[s].length;)for(let i=0;i<t;i++){const t=e[s+i][A].m;if(t&&t.item!==r)return this._findCell(t).firstChild}}}getUpper(t){const e=this._spans,r=t.model;let s=r.row;if(s>0){const t=r.col,A=e[s][t].v.colspan||1;for(;--s>=0;)for(let i=0;i<A;i++){const A=e[s][t+i].m;if(A&&A.item!==r)return this._findCell(A).firstChild}}}getLower(t){const e=this._spans,r=t.model;let s=r.row;if(s<e.length-1){const t=r.col,A=e[s][t].v.colspan||1;for(;++s<e.length;)for(let i=0;i<A;i++){const A=e[s][t+i].m;if(A&&A.item!==r)return this._findCell(A).firstChild}}}get $_trows(){return this._tbody.rows}get $_trowsCopy(){return Array.from(this._tbody.rows)}$_cloneRow(t){const e=t.cloneNode(!1),r=t.cells;for(let t=0,s=r.length;t<s;t++){const s=r[t].cloneNode(!1),A=r[t].firstElementChild;A&&s.appendChild(A.cloneNode(!1)),e.appendChild(s)}return e}$_td(t,e){return this._tbody.rows[t].cells[e]}$_cellChanged(t,e,r){}$_prepareTable(t,e){const r=it(e),s=t.rowCount,A=t.colCount;for(this._spans=t.prepareLayout(),this.$_prepareColGroup(r,this._colgroup,A);e.childElementCount<s;){const t=r.createElement("tr");e.appendChild(t)}for(;e.childElementCount>s;)e.removeChild(e.lastChild);const i=e.children;for(let e=0;e<s;e++){const s=i[e];this.$_prepareTableRow(r,t,e,s,A)}}_setRowStyles(t,e){}$_prepareColGroup(t,e,r){let s=e.childElementCount;for(;s++<r;){const r=t.createElement("col");e.appendChild(r)}for(;e.childElementCount>r;)e.removeChild(e.lastElementChild)}$_prepareTableRow(t,e,r,s,A){this._setRowStyles(s,r),this.$_prepareTableRowCells(t,s,A)}$_prepareTableRowCells(t,e,r){let s=e.childElementCount;for(;s++<r;){const r=t.createElement("td");e.appendChild(r)}for(;e.childElementCount>r;)e.removeChild(e.lastChild);return e.childElementCount}$_calcCellWidths(t,e){const r=t.colCount,s=(t.getCellWidths()||L.Empty).getSizes(r,e,t._minCellWidthDim,!1),A=[],i=this._colPts=[0];for(let t=0;t<r;t++)A[t]=s[t]+"px",i.push(i[t]+s[t]);return A}$_measureCellWidths(t,e){if(this._masterView)this._cellWidths=this._masterView._cellWidths,this._colPts=this._masterView._colPts;else{const r=t.colCount;this._tbody.rows.length>0&&r>0?this._cellWidths=this.$_calcCellWidths(t,e):this._cellWidths=[]}let r=0;if(this._cellWidths.length>0){const t=this._colgroup.children;for(let e=t.length-1;e>=0;e--){const s=t[e],A=s.style,i=parseFloat(this._cellWidths[e]);s.$_w=i,A.width=this._cellWidths[e],r+=i}}t.fixed?this._table.style.setProperty("width",ot.pickNum(r,0)+"px","important"):this._table.style.setProperty("width","100%","important")}$_calcRowHeights(t,e){const r=(t.getRowHeights()||L.Empty).getSizes(t.rowCount,e,t._minRowHeightDim),s=[];for(let e=0,A=t.rowCount;e<A;e++)isNaN(r[e])?s[e]="":s[e]=r[e]+"px";return s}$_measureRowHeights(t,e){const r=this._tbody.rows,s=this._rowHeights=this.$_calcRowHeights(t,e);for(let t=0;t<r.length;t++){const e=s[t];r[t].style.height=e}}getCellBoundingRect(t,e,r,s){const A=this._tbody.rows,i=this._colPts[0]-A[0].cells[0].offsetLeft;let n=this._colPts[t]-i,o=A[e].offsetTop,a=this._colPts[t+r]-i-n-1,h=0;for(let t=0;t<s;t++)h+=A[e+t].offsetHeight;return{x:n,y:o,width:a,height:h}}$_layoutViewInCell(t,e){const r=this.model;let s=-1,A=-1;const i=e instanceof oA&&e.table instanceof HA?1:0;if(e instanceof oA&&e.table===r&&(s=e.row,A=e.col),t.visible=A>=0&&s<r.rowCount){const e=this._tbody.rows[s].cells[A],r=e.colSpan||1,n=e.rowSpan||1,o=this._colPts[A],a=this._colPts[A+r]-o,h=this._tbody.rows;let l=h[s].offsetHeight,c=0;for(let t=0;t<s;t++)c+=h[t].offsetHeight;for(let t=0;t<n-1;t++)l+=h[s+t+1].offsetHeight;return t.dom.dataset.focused="",t.setBounds(o,c+1,a,l+i),t.draw(),!0}}_findCell(t){for(let e of this._tcells)if(e.model===t)return e}createColGroup(t,e){const r=this.model,s=r.colCount,A=t.createElement("colgroup"),i=this.$_calcCellWidths(r,e);for(let e=0;e<s;e++){const r=t.createElement("col");A.appendChild(r),r.style.width=i[e],r.$_w=parseFloat(i[e])}return A}}class To{constructor(t){this._rows=t.tBodies[0].rows}get height(){let t=0;for(let e=0;e<this._rows.length;e++)t+=this._rows[e].offsetHeight;return t}appendTo(t,e){if(!this._doms){this._doms=[];for(let t=0;t<this._rows.length;t++){const e=this._rows[t].cloneNode(!0);this._doms.push(e)}}for(let r of this._doms)r.classList.add(e),t.appendChild(r);for(let t of this._doms)t.style.height=t.offsetHeight+"px"}remove(){if(this._doms){for(let t=this._doms.length-1;t>=0;t--){const e=this._doms[t],r=e.parentElement;r&&r.removeChild(e)}this._doms=null}}}class Fo extends io{get guardLabel(){return"[page]"}}class Ro extends lt{constructor(t){super(t,"pageView"),this.addChild(this._backView=new bo(t,null,"rr-back-container",!1)),this.addChild(this._reportHeaderView=new fo(t)),this.addChild(this._reportFooterView=new _o(t)),this.addChild(this._pageHeaderView=new mo(t)),this.addChild(this._pageFooterView=new wo(t)),this.addChild(this._bodyView=new Po(t)),this.addChild(this._frontView=new bo(t,null,"rr-front-container",!1)),this._sections=[this._pageHeaderView,this._reportHeaderView,this._bodyView,this._reportFooterView,this._pageFooterView],this._sectionGuard=new Fo(t)}_doDispose(){super._doDispose()}get model(){return this._model}get reportHeaderView(){return this._reportHeaderView}get reportFooterView(){return this._reportFooterView}get pageHeaderView(){return this._pageHeaderView}get pageFooterView(){return this._pageFooterView}get bodyView(){return this._bodyView}get backFloatingView(){return this._backView}get frontFloatingView(){return this._frontView}get sections(){return this._sections}isPageDom(t){return this.isDom(t)||this.bodyView.isPageDom(t)}measure(t,e){const r=e.width-2,s=e.height-2;let A=0;this._sectionGuard.model=this._model,this._model.clearStyles(this.dom.style),ro(this._model,this._model.styles,this.dom.style);let i=this._backView;i.measureFixed=!0,i.measure(t,r,s),i.setBounds(0,0,r,s);const n=this._pageHeaderView.model;let o=this._pageHeaderView,a=o.setFixedSize(r).measure(t,r,s);A+=ot.toNumber(n.spaceTop),o.setBounds(0,A,r,a.height),A+=a.height+ot.toNumber(n.spaceBottom);const h=this._reportHeaderView.model;o=this._reportHeaderView,a=o.setFixedSize(r).measure(t,r,s),A+=ot.toNumber(h.spaceTop),o.setBounds(0,A,r,a.height),A+=a.height+ot.toNumber(h.spaceBottom);let l=s;const c=this._pageFooterView.model;o=this._pageFooterView,a=o.setFixedSize(r).measure(t,r,s),l-=a.height-ot.toNumber(c.spaceBottom),o.setBounds(0,l,r,a.height),l-=ot.toNumber(c.spaceTop);const u=this._reportFooterView.model;o=this._reportFooterView,a=o.setFixedSize(r).measure(t,r,s),l-=a.height-ot.toNumber(u.spaceBottom),o.setBounds(0,l,r,a.height),l-=ot.toNumber(u.spaceTop);const d=this._bodyView;a=d.measure(t,r,l-A),d.setBounds(0,A,r,a.height);const p=a.height-(l-A);p>0&&(this.pageFooterView.y+=p,this._reportFooterView.y+=p),i=this._frontView,i.setFixedSize(r).measure(t,r,s),i.setBounds(0,0,r,s);return{width:r,height:this._pageHeaderView.measuredHeight+this._reportHeaderView.measuredHeight+this._bodyView.measuredHeight+this._pageFooterView.measuredHeight+this._reportFooterView.measuredHeight}}layout(t,e){let r=this._pageHeaderView;r.layoutContent(t),r=this._reportHeaderView,r.layoutContent(t),r=this._reportFooterView,r.layoutContent(t),r=this._pageFooterView,r.layoutContent(t),this._bodyView.layoutContent(t),this._backView.layoutContent(t),this._frontView.layoutContent(t)}layoutFloating(t){this._pageHeaderView.layoutFloating(t),this._reportHeaderView.layoutFloating(t),this._reportFooterView.layoutFloating(t),this._pageFooterView.layoutFloating(t),this._bodyView.layoutFloating(t),this._backView.layoutFloating(t),this._frontView.layoutFloating(t)}afterRender(t){const e=this._backView.width,r=this._backView.height;this._backView.measure(t,e,r),this._backView.layoutContent(t),this._frontView.measure(t,e,r),this._frontView.layoutContent(t)}findElement(t){return this._bodyView.findElement(t)||this._backView.findElement(t)||this._frontView.findElement(t)||this._pageHeaderView.findElement(t)||this._pageFooterView.findElement(t)||this._reportHeaderView.findElement(t)||this._reportFooterView.findElement(t)}findElementOf(t){return this._pageHeaderView.findElementOf(t)||this._pageFooterView.findElementOf(t)||this._reportHeaderView.findElementOf(t)||this._reportFooterView.findElementOf(t)||this._bodyView.findElementOf(t)||this._backView.findElementOf(t)||this._frontView.findElementOf(t)}getElementOf(t){if(t===this._bodyView.model)return this._bodyView;for(let e of this._sections)if(e instanceof io&&e.model===t)return e;return this._bodyView.getElementOf(t)||this._backView.getElementOf(t)||this._frontView.getElementOf(t)||this._pageHeaderView.getElementOf(t)||this._pageFooterView.getElementOf(t)||this._reportHeaderView.getElementOf(t)||this._reportFooterView.getElementOf(t)}getAllElements(t,e){function r(t,e){(t instanceof So?t.cellViews:t.elements).forEach((t=>{t instanceof Io?t.getChild(0)instanceof io&&e.push(t.getChild(0)):t instanceof no?r(t,e):t instanceof io&&e.push(t)}))}const s=[];t?(e.translate(-t.dom.offsetLeft,-t.dom.offsetTop),r(t,s),e.translate(t.dom.offsetLeft,t.dom.offsetTop)):this.sections.forEach((t=>{e.translate(-t.dom.offsetLeft,-t.dom.offsetTop),r(t,s),e.translate(t.dom.offsetLeft,t.dom.offsetTop)}));const A=this.getBoundingRect();return e.translate(A.x,A.y),s.filter((t=>{const r=t.getBoundingRect();return e.intersects(r)}))}print(t,e,r){const s=this.width;this._model.clearStyles(this.dom.style),ro(this._model,this._model.styles,this.dom.style),this.setPrintStyles(),this._backView.setBounds(0,0,s,this.height),this._backView.print(t,e,s),this._frontView.setBounds(0,0,s,this.height),this._frontView.print(t,e,s),[[this._pageHeaderView,"header"],[this._pageFooterView,"footer"],[this._reportHeaderView,"reportHeader"],[this._reportFooterView,"reportFooter"]].forEach((r=>{!function(r,A){const i=r.model;i.visible?e[A+"Height"]=r.$_h=r.print(t,e,s)+ot.toNumber(i.spaceTop)+ot.toNumber(i.spaceBottom):e[A+"Height"]=r.$_h=0}(r[0],r[1])})),e.bodyTop=e.headerHeight,e.bodyBottom=e.pageHeight-e.footerHeight,e.bodyHeight=e.bodyBottom-e.bodyTop;const A=this._bodyView.printAll(t,e),i=Math.max(1,A.pages.length),n=[];e.finishPrint(i);for(let t=0;t<i;t++){const r=new Oo,s=r.contents;let o;e.preparePage(t),n.push(r);for(let t of e.contextValues)t.refreshPrintValues(e);if(r.background=this._backView.cloneNode(),o=this._pageHeaderView.cloneNode(),o.$_h=this._pageHeaderView.$_h,r.pageHeader=o,o=this._pageFooterView.cloneNode(),o.$_h=this._pageFooterView.$_h,r.pageFooter=o,0==t&&(o=this._reportHeaderView.cloneNode(),o.$_h=this._reportHeaderView.$_h,s.push(o)),A.pages.length>t){const e=A.pages[t];for(let t of e)s.push(t)}t==i-1&&(o=this._reportFooterView.cloneNode(),o.$_h=this._reportFooterView.$_h,s.push(o)),r.foreground=this._frontView.cloneNode()}return n}getSections(){let t=[this._sectionGuard];return this._pageHeaderView.visible&&t.push(this._pageHeaderView),this._reportHeaderView.visible&&t.push(this._reportHeaderView),t=t.concat(this._bodyView.getLines()),this._reportFooterView.visible&&t.push(this._reportFooterView),this._pageFooterView.visible&&t.push(this._pageFooterView),t}isLine(t){return t instanceof go||this._bodyView.isLine(t)}getFirst(){if(this._pageHeaderView.visible)return this._pageHeaderView.getFirst()}getLast(){if(this._pageFooterView.visible)return this._pageFooterView.getLast()}getFirstInGroup(t){return null==t?void 0:t.getFirst()}getLastInGroup(t){return null==t?void 0:t.getLast()}getPrev(t){var e;if(t instanceof go);else if(t){let r=null===(e=t.navigableParent)||void 0===e?void 0:e.getPrev(t);if(r&&r!==t)return r}}getNext(t){if(t instanceof go);else if(t){let e=t.navigableParent;if(e){let r=e.getNext(t);if(r&&r!==t)return r;for(e=e.navigableParent;e;)e.getLeaves(),e=e.navigableParent}}}getLeft(t){var e;if(t instanceof go);else if(t){let r=null===(e=t.navigableParent)||void 0===e?void 0:e.getLeft(t);if(r&&r!==t)return r;if(this._bodyView.isLine(t))return}}getRight(t){var e;if(t instanceof go);else if(t){let r=null===(e=t.navigableParent)||void 0===e?void 0:e.getRight(t);if(r&&r!==t)return r;if(this._bodyView.isLine(t))return}}getUpper(t){var e;if(t instanceof go){const e=this._sections.indexOf(t);if(e>0){const t=this._sections[e-1];return t instanceof io?t:this._bodyView.getLine(-1)}}else if(t){let r=null===(e=t.navigableParent)||void 0===e?void 0:e.getUpper(t);if(r&&r!==t)return r;if(t.navigableParent===this._reportHeaderView)return this._pageHeaderView;if(r=this._bodyView.getLineOf(t),r&&(r=this._bodyView.getSiblingLine(r,-1),r))return r}return this.getFirst()}getLower(t){var e;if(t instanceof go){const e=this._sections.indexOf(t);if(e<this._sections.length-1){const t=this._sections[e+1];return t instanceof io?t:this._bodyView.getLine(0)}}else if(t){let r=null===(e=t.navigableParent)||void 0===e?void 0:e.getLower(t);if(r&&r!==t)return r;if(t.navigableParent===this._pageHeaderView)return this._reportHeaderView;if(t.navigableParent===this._reportHeaderView)return this._bodyView.getLine(0);if(r=this._bodyView.getLineOf(t),r)return r=this._bodyView.getSiblingLine(r,1),r||(r=this._reportFooterView,r.visible?r:(r=this._pageFooterView,r.visible?r:void 0))}return this.getFirst()}itemOfDom(t){let e;if(e=this._frontView.itemOfDom(t))return e;for(let r of this._sections)if(r instanceof no&&(e=r.itemOfDom(t)))return e;return(e=this._bodyView.itemOfDom(t))||(e=this._backView.itemOfDom(t))?e:void 0}_getCssSelector(){return this.container.printing?"":"rr-page"}$_setModel(t){this._model=t,t?(this._reportHeaderView.model=t.reportHeader,this._reportFooterView.model=t.reportFooter,this._pageHeaderView.model=t.pageHeader,this._pageFooterView.model=t.pageFooter,this._bodyView.model=t.body,this._backView.model=t._backItems,this._frontView.model=t._frontItems):(this._reportHeaderView.model=null,this._reportFooterView.model=null,this._pageHeaderView.model=null,this._pageFooterView.model=null,this._bodyView.model=null,this._backView.model=null,this._frontView.model=null)}}class Oo{constructor(){this.contents=[]}}const Qo=".",Do=",",Lo=function(t){return ot.included(t,"c","f","C","F","a","A")};class Uo{constructor(t){this._optDecimal=!1,this._groupPos=0,this._replacement="$&,",this._minDigits=0,this._maxDigits=0,this._minInts=0,this._maxInts=0,this.parse(this._format=t)}static getFormatter(t){let e=Uo.Formatters[t];return e||(Uo.Formatters[t]=e=new Uo(t)),e}static get Default(){return Uo.getFormatter(Uo.DEFAULT_FORMAT)}get format(){return this._format}get separator(){return this._seperator}get groupSep(){return this._groupSep}get minDigits(){return this._minDigits}get maxDigits(){return this._maxDigits}parse(t){this._minDigits=0,this._maxDigits=0,this._minInts=0,this._maxInts=0,this._parse(t)}getText(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=Number(t);if(isNaN(r))return"";{let t=this._minDigits,A=0;if(this._optDecimal){const e=(s=(""+r).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/))?Math.max(0,(s[1]?s[1].length:0)-(s[2]?+s[2]:0)):0;t=Math.min(Math.max(e,this._minDigits),this._maxDigits)}if(t>0&&this._round)switch(A=Math.pow(10,t),this._round){case"c":r=Math.ceil(A*r)/A;break;case"f":const e=r.toString().split(".");r=parseFloat(e.length>1?e[0]+"."+e[1].substr(0,t):e[0])}r="a"===this._round?Math.abs(r):r,r=Number(r.toPrecision(15));let i=r.toFixed(t);try{!e&&(A=parseFloat(i))===Math.abs(parseFloat(i))&&0===A&&(i=Math.abs(r).toFixed(t))}catch(t){}return this._seperator&&(i=i.replace(Qo,this._seperator)),this._reg?t?i.replace(this._regDecimal,this._replacement):i.replace(this._reg,this._replacement):i}var s}_parse(t){if(t&&(t=t.trim()),!t)return;var e=Qo,r=Do;if(t.indexOf(";")>-1){const s=t.split(";");t=s[0],s.length>1&&s[1]&&!Lo(s[1])&&(e=s[1]),s.length>2&&s[2]&&!Lo(s[2])&&(r=s[2]),this._round=s[3]||s[2]||s[1],this._round=Lo(this._round)?this._round.toLowerCase():this._round}this._seperator=e==Qo?null:e,this._groupSep=r==Do?null:r;const s=t.length,A=t.indexOf(Qo);if(this._optDecimal=t.indexOf("#",A)>0,A>=0){let e=A+1;for(;e<s&&"0"==t.charAt(e);e++)this._minDigits++,this._maxDigits++;for(;e<s&&"#"==t.charAt(e);e++)this._maxDigits++;t=t.substr(0,A)}if(t){const e=t.length;t.charAt(e-1)==Do&&(this._groupPos=3,t=t.substr(0,e-1))}if(t){const e=t.length;let r=!0;for(let s=e-1;s>=0;s--){const A=t.charAt(s);if("0"==A&&r)this._minInts++,this._maxInts++;else if(0==this._groupPos&&A==Do)this._groupPos=e-s-1;else{if("#"!=A)break;r=!1}}}this._groupPos>0&&(this._replacement="$&"+r,this._reg=new RegExp("\\d(?=(\\d{"+this._groupPos+"})+($|\\"+e+"))","g"),this._regDecimal=new RegExp("\\d(?=(\\d{"+this._groupPos+"})+\\"+e+")","g"))}}Uo.DEFAULT_FORMAT="#,##0.0",Uo.Formatters={};class Ho{constructor(t){this.$_parse(this._format=t)}static getFormatter(t){let e=Ho.Formatters[t];return e||(Ho.Formatters[t]=e=new Ho(t)),e}get format(){return this._format}getText(t){return void 0===t?this._nullText:t?this._trueText:this._falseText}$_parse(t){if(this._falseText=this._trueText=null,t){var e=t.split(/[;\:]/);this._falseText=e[0],e.length>0&&(this._trueText=e[1]),e.length>1&&(this._nullText=e[2])}}}Ho.Formatters={};const No=/(.*)/;class Mo{constructor(t){this._pattern=No,this._replace="$1",this.$_parse(this._format=t)}static getFormatter(t){let e=Mo.Formatters[t];return e||(Mo.Formatters[t]=e=new Mo(t)),e}get format(){return this._format}getText(t){return t&&t.replace(this._pattern,this._replace)}$_parse(t){if(t){const e=t.trim().split(ot.colonreg);if(e.length>1){let t=e[0].trim(),r=e[1].trim();t&&r&&('"'==t.charAt(0)&&(t=t.substr(1,t.length-2)),t&&('"'==r.charAt(0)&&(r=t.substr(1,r.length-2)),r&&(this._pattern=new RegExp(t,e[2]||""),this._replace=r)))}}}}Mo.Formatters={};class ko extends io{constructor(t,e,r){super(t,e,r)}_doDispose(){super._doDispose()}get debugLabel(){return""}_initDom(t,e){super._initDom(t,e),e.style.overflow="hidden",this._table=t.createElement("div"),this._table.style.display="inline-table",this._table.style.height="100%",e.appendChild(this._table),this._span=t.createElement("span"),this._span.style.display="table-cell",this._span.style.verticalAlign="middle",this._table.appendChild(this._span)}_doPrepareMeasure(t,e){super._doPrepareMeasure(t,e),t.contextable&&this.model.isContextValue()&&t.contextValues.push(this),t.printing&&(this._span.dataset._m_=e.dataset._m_||String(this.model.hash),this._span.classList.add(Vo.SPAN))}_doMeasure(t,e,r,s){const A=this.model,i=this._span,n=e.style;let o;if(ot.addChild(e,this._table),e.style.display="inline-table",e.style.lineHeight="1.1em",this._span.style.verticalAlign=A.getStyle("verticalAlign"),this._span.style.textDecoration=A.getStyle("textDecoration"),e.style.width="",e.style.height="",this._setModelSize(A,e,r,s),n.whiteSpace=A.wrap?"pre-wrap":"pre",t.printing)o=this._getPrintText(t,A),this._setBindMarker(!1);else{const t=A.value,e=t&&t.startsWith("${");o=this._getDesignText(A,e),t?this._setBindMarker(!0,e):this._setBindMarker(!1)}this._text=o=o||"",i.textContent=A.wrap?o:o.replace(/(\r\n|\r|\n)/gm,""),!t.printing&&o&&(e.title=o);let a=this._modelWidth,h=this._modelHeight;return isNaN(a)?(i.style.maxWidth="",a=e.offsetWidth,"italic"===A.getStyle("fontStyle")&&(a+=Math.max(1,.04*i.offsetWidth)),a=Math.ceil(a)+1):i.style.maxWidth=a+"px",isNaN(h)?(i.style.maxHeight="",h=Math.round(e.offsetHeight)):h<e.offsetHeight&&(e.style.lineHeight=h+"px"),new fn(a,h)}_doLayoutContent(t){}refreshPrintValues(t){this._span.textContent=this._getPrintText(t,this.model)}isDom(t){return t===this._span||super.isDom(t)}_getText(t,e){const r=typeof e;let s=e;if("string"===r){if(e){const r=t.textFormat;if(r){const t=Mo.getFormatter(r);t&&(s=t.getText(e))}}}else if("number"===r){const r=t.numberFormat;if(r){const t=Uo.getFormatter(r);t&&(s=t.getText(e))}}else if(e instanceof Date){const r=t.dateFormat;if(r){const t=Vt.getFormatter(r);t&&(s=t.getText(e))}}else if("boolean"===r){const r=t.booleanFormat;if(r){const t=Ho.getFormatter(r);t&&(s=t.getText(e))}}return ot.isDefined(s)&&""!==s?t.prefix||t.suffix?(t.prefix||"")+s+(t.suffix||""):String(s):s}}ko.CLASS_NAME="rr-text",ko.CLASS_LIST=ko.CLASS_NAME+" rr-item-element",ko.SPAN="_rr_span_";class Vo extends ko{constructor(t,e){super(t,e,"textItemView")}_doDispose(){super._doDispose()}_getCssSelector(){return ko.CLASS_LIST}get guardLabel(){return"text"}get editable(){return!0}getEditText(){return this.model.text}setEditText(t,e){t.setItemProperty(this.model,"text",e)}_getPrintText(t,e){const r=e.contextValueCallback;if(r){const s=r(t);return this._getText(e,s)}if(e.value){const r=this.getPrintValue(t,e);return this._getText(e,r)}{const r=this._runValueCallback(t,e,void 0);return void 0!==r?this._getText(e,r):e.text}}_getDesignText(t,e){return t.value?e?t.value:"["+t.value+"]":t.text||"[text]"}_doMeasure(t,e,r,s){const A=this.model;if(!t.printing){A.value||A.text?delete e.dataset.empty:e.dataset.empty=""}let i=super._doMeasure(t,e,r,s);if(A.multiLine){const t=this._text.split(/\r|\c\r|\<br\>/g),r=this.$_prepareMultiLine(this.doc,this.model,t);if(r){const s=r.length,n=1,o=ot.pickNum(A.lineGap,0);let a=0,h=0;const l=[0],c=[];ot.remove(this._table),ot.addChild(e,this._spanContainer),e.title=t.join(" "),e.style.lineHeight="",r.forEach(((e,r)=>{e.style.textDecoration=A.getStyle("textDecoration"),e.textContent=t[r],e.style.maxWidth="";let i=e.offsetWidth;"italic"===A.getStyle("fontStyle")&&(i+=Math.max(1,.04*e.offsetWidth)),i=Math.ceil(i)+n,a=Math.max(a,i),c.push(i),h+=e.offsetHeight,r<s-1&&(h+=o),l.push(h)}));let u=0;if(!isNaN(this._modelHeight)){switch(A.getStyle("verticalAlign")){case"middle":u=Math.max(0,(this._modelHeight-h)/2);break;case"bottom":u=this._modelHeight-h}h=this._modelHeight}return isNaN(this._modelWidth)||(a=this._modelWidth),r.forEach(((t,e)=>{t.style.top=l[e]+u+"px";let r=0;switch(A.getStyle("textAlign")){case"center":r=Math.max(0,(a-c[e])/2);break;case"right":r=a-c[e]}t.style.left=r+"px"})),i.set(a,h)}}return this._spanContainer&&ot.removeChild(e,this._spanContainer),i}$_prepareMultiLine(t,e,r){if(e.multiLine){if(this._spans||(this._spans=[]),!this._spanContainer){(this._spanContainer=t.createElement("div")).style.position="absolute"}for(;this._spans.length<r.length;){const e=t.createElement("span");e.style.position="absolute",e.style.whiteSpace="pre",this._spanContainer.appendChild(e),this._spans.push(e)}for(;this._spans.length>r.length;){const t=this._spans.pop()[0];this._spanContainer.removeChild(t)}}else this._spans&&(this._spans.forEach((t=>this._spanContainer.removeChild(t))),this._spans=null);return this._spans&&1===this._spans.length&&(this._spans=null),this._spans}}class Go extends io{constructor(t,e){super(t,e,"imageItemView")}_doDispose(){super._doDispose()}get debugLabel(){return"image"}_getCssSelector(){return"rr-image rr-item-element"}_doMeasure(t,e,r,s){const A=this.model,i=A.image&&t.assets.getImage(A.image),n=e.style;let o=i||A.url;return t.printing&&!this._image&&(this._image=new Image),t.printing&&!o&&(o=this.getPrintValue(t,A)),this._setModelSize(A,e,r,s),o?(n.overflow="hidden",n.backgroundImage="url("+o+")",n.backgroundRepeat="no-repeat",n.backgroundSize="cover",n["-webkit-print-color-adjust"]="exact",delete e.dataset.empty,e.innerHTML="",this._image&&(this._image.src=o)):(e.dataset.empty="true",e.innerHTML="<span></span>"),new fn(e.offsetWidth,e.offsetHeight)}}class Ko extends io{constructor(t,e){super(t,e,"checkItemView")}_doDispose(){super._doDispose()}_getCssSelector(){return"rr-check rr-item-element"}get debugLabel(){return""}isDom(t){return t===this._check||t===this._text||t===this._text.parentElement||super.isDom(t)}_initDom(t,e){super._initDom(t,e),e.style.overflow="hidden",e.style.whiteSpace="nowrap";const r=t.createElement("div");r.style.display="table-cell",r.style.verticalAlign="middle",e.appendChild(r),this._check=t.createElement("span"),this._check.className=Ko.CHECK_CLASS,this._check.style.display="inline-block",this._check.style.verticalAlign="middle",r.appendChild(this._check),this._text=t.createElement("span"),this._text.className=Ko.TEXT_CLASS,r.appendChild(this._text)}_doMeasure(t,e,r,s){const A=this.model,i=t.printing?ot.pick(this.getPrintValue(t,A),A.checked):A.checked,n=this._check,o=this._text;this._setModelSize(A,e,r,s,!0),n.dataset.checked=A.getChecked(i),o.textContent=A.getText(i);let a=Math.ceil(Math.max(n.offsetHeight,o.offsetHeight)),h=Math.ceil(n.offsetWidth)+Math.ceil(o.offsetWidth)+1;return"italic"===A.getStyle("fontStyle")&&(h+=Math.max(1,.04*o.offsetWidth)),h=Math.ceil(h),t.printing&&(this._check.dataset._m_=e.dataset._m_),fn.create(h,a)}}Ko.CHECK_CLASS="rr-check-check",Ko.TEXT_CLASS="rr-check-text";class Wo extends no{constructor(t,e,r){super(t,r,"listCellView"),this._list=e}_doDispose(){super._doDispose()}get debugLabel(){return""}get navigable(){return!1}get navigableParent(){return this._list}_needContentBox(){return!1}_isEmptySize(){return!0}_getParentDom(){return this._div}_createDom(t){const e=t.createElement("li"),r=this._div=t.createElement("div");return e.appendChild(r),r.className="rr-list-cell",r.style.position="relative",r.style.setProperty("display","inline-block","important"),e}_prepareChild(t){t._dom.style.position="relative",t.positionable=!1}_doMeasure(t,e,r,s){return super._doMeasure(t,e,r,s)}}class zo extends no{constructor(t,e){super(t,e,(e&&e.ordered?"o":"u")+"listContainerView")}_doDispose(){super._doDispose()}get debugLabel(){return"list"}_getCssSelector(){return"rr-list-container rr-group-element"}_needDesignBox(){return!0}_needContentBox(){return!1}_getParentDom(){return this._list}_createDom(t){const e=super._createDom(t);e.style.overflow="hidden";const r=this._list=t.createElement(this.name.startsWith("o")?"ol":"ul");return e.appendChild(r),e}_initDom(t,e){super._initDom(t,e);const r=this._list.style;r.marginBlockStart="0",r.marginBlockEnd="0",r.paddingInlineStart=zo.ITEM_INDENT+"px"}_createElement(t,e,r){const s=new Wo(this.doc,this,r);return s.positionable=!1,this._prepareChild(s),e.addChild(s),s}_prepareChild(t){t._dom.style.position="relative",t.positionable=!1}_doMeasure(t,e,r,s){return this.measureFixed?(e.style.width="",e.style.height=""):this._setModelSize(this.model,e,r,s,!0),super._doMeasure(t,e,r,s)}_doAfterMeasure(t,e,r,s,A){this.childCount>0?this._applyBorders(e,A):t.printing||(!this.model.height&&this.model.designHeight>0&&(A.height=this.model.designHeight),!this.model.width&&this.model.designWidth>0&&(A.width=this.model.designWidth)),super._doAfterMeasure(t,e,r,s,A)}_doLayout(t){}getLower(t){for(let e=0,r=this.childCount;e<r;e++)if(this.getChild(e).firstChild===t&&e<r-1)return this.getChild(e+1).firstChild}getUpper(t){for(let e=0,r=this.childCount;e<r;e++)if(this.getChild(e).firstChild===t&&e>0)return this.getChild(e-1).firstChild}}zo.ITEM_INDENT=16;class Xo extends Io{constructor(t,e,r){super(t,e,r,"tableCellView")}_getCssSelector(){return"rr-table-cell"}}class Jo extends So{constructor(t,e){super(t,e,"tableContainerView")}get columns(){return this.model.columns}get colCount(){return this.model.colCount}getColumn(t){return this.model.getColumn(t)}_getCssSelector(){return"rr-table-container rr-group-element"}_createCellElement(t,e){return new Xo(t,this,e)}_prepareCellStyles(t,e,r,s,A){if(super._prepareCellStyles(t,e,r,s,A),t.printing){const i=e.getCell(r,s),n=i.styleCallback;if(n)try{const e=n(t,i,t.row);e&&ot.extend(A.style,e)}catch(t){console.error("CellStyleCallback Error",t)}}}}class Yo extends no{constructor(t,e){super(t,e,"bandCollectionView")}_doDispose(){super._doDispose()}get debugLabel(){return""}_getCssSelector(){return"rr-band-collection rr-group-element"}_needDesignBox(){return!0}_initDom(t,e){super._initDom(t,e)}_doMeasure(t,e,r,s){const A=super._doMeasure(t,e,r,s);A.height=0;for(let t=0;t<this.childCount;t++)A.height+=this.getChild(t).measuredHeight;return A}_doAfterMeasure(t,e,r,s,A){this.childCount>0?this._applyBorders(e,A):t.printing||(!this.model.height&&this.model.designHeight>0&&(A.height=this.model.designHeight),!this.model.width&&this.model.designWidth>0&&(A.width=this.model.designWidth)),super._doAfterMeasure(t,e,r,s,A)}_doLayoutContent(t){super._doLayoutContent(t);const e=this,r=e.width;let s=0;for(let t=0,A=e.childCount;t<A;t++){const A=e.getChild(t);A.floating||(A.y=s,A.x=0+(r-A.width)/2,s+=A.height,s+=0,A.setPrintStyles())}}}class $o extends uo{constructor(t,e,r,s){super(t,e,r),this.styleName=s}_doDispose(){super._doDispose()}get debugLabel(){return""}_getCssSelector(){return this.styleName+" rr-group-element"}_needDesignBox(){return!0}_doAfterMeasure(t,e,r,s,A){this.childCount>0||t.printing||(!this.model.height&&this.model.designHeight>0&&(A.height=this.model.designHeight),!this.model.width&&this.model.designWidth>0&&(A.width=this.model.designWidth)),super._doAfterMeasure(t,e,r,s,A)}}class jo extends uo{constructor(t,e,r){super(t,e,r)}applyGroupStyles(t){ot.extend(t.style,this.model.styles)}_needDesignBox(){return!0}_doMeasure(t,e,r,s){const A=super._doMeasure(t,e,r,s);return A.width=r,A.height=Math.max(10,A.height),A}_doAfterMeasure(t,e,r,s,A){this.childCount>0?this._applyBorders(e,A):t.printing||(!this.model.height&&this.model.designHeight>0&&(A.height=Math.max(A.height,this.model.designHeight)),!this.model.width&&this.model.designWidth>0&&(A.width=Math.max(A.width,this.model.designWidth))),super._doAfterMeasure(t,e,r,s,A)}}class Zo extends jo{constructor(t,e){super(t,e,"simpleBandGroupHeader")}_getCssSelector(){return"rr-simpleband-group-header rr-group-element"}measure(t,e,r){return super.measure(t,e,r)}}class qo extends jo{constructor(t,e){super(t,e,"simpleBandGroupFooter")}_getCssSelector(){return"rr-simpleband-group-footer rr-group-element"}}class ta extends no{constructor(t,e){super(t,e,"simpleBandGroupView")}_doDispose(){super._doDispose()}get header(){return this._header}get footer(){return this._footer}_getCssSelector(){return"rr-simpleband-group rr-group-element"}_needDesignBox(){return!0}_doMeasure(t,e,r,s){return super._doMeasure(t,e,r,s),this._header=this.getChild(0),this._footer=this.getChild(1),fn.create(Math.max(this._header.measuredWidth,this._footer.measuredWidth),this._header.measuredHeight+this._footer.measuredHeight)}_doLayoutContent(t){super._doLayoutContent(t),t.printing||(this._header.y=0,this._footer.y=this._header.y+this._header.height)}}class ea extends lo{constructor(t,e){super(t,e,"simpleBandView"),this._groupViews=[],this._colSpans=[],this._grouped=!1,this._masterRow=-1,this._printedRows=NaN,this.addChild(this._headerView=new $o(t,e&&e.header,"bandHeaderView",ea.HEADER_CLASS)),this.addChild(this._footerView=new $o(t,e&&e.footer,"bandFooterView",ea.FOOTER_CLASS)),this.addChild(this._rowView=new $o(t,e&&e.dataRow,"bandRowTemplateView",ea.ROW_CLASS)),this.addChild(this._detailView=new Yo(t,e&&e.detail)),this._rowContainer=t.createElement("div"),this._dom.appendChild(this._rowContainer)}static isRow(t){return t.classList.contains(ea.ROW_CLASS)&&t.$_brt===oo}_doDispose(){super._doDispose()}printBand(t,e,r,s,A){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:-1;const n=this.model,o=n.dataObj,a=n.sectionCount,h=a<2;let l=this._rowDivs;const c=h?null:n.getColPoints(r),u=e.pageHeight;if(A||n.prepareIndices(e),this._masterRow=i,n.dataRow.masterRow=i>=0?i:NaN,n.summaryRuntime.setRows(A,i),c&&(r=c[1]-c[0]),isNaN(this._rowView.measuredHeight)){let t=this._headerView;if((t.visible=t.model.visible)&&(t.measure(e,r,u),t.resize(t.measuredWidth,t.measuredHeight),t.setPrintStyles(),t.layoutContent(e)),t=this._rowView,!l&&(t.measure(e,r,u),t.resize(t.measuredWidth,t.measuredHeight),t.setPrintStyles(),t.layoutContent(e),h)){const s=n.designData,i=this.$_getGroupViews(e,n.groups.getValidGroups(s),r,u);l=this._rowDivs=this.$_printRows(e,o,i,t,r,A)}t=this._footerView,(t.visible=t.model.visible)&&(e.bandSummaryRuntime=n.summaryRuntime,t.measure(e,r,u),t.resize(t.measuredWidth,t.measuredHeight),t.setPrintStyles(),t.layoutContent(e))}else h&&!l&&(l=this._rowDivs=this.$_printRows(e,o,null,this._rowView,r,A));h?this.$_printLinear(t,e,n,o,r,l,s):n.sectionLayout==vs.ACROSS_DOWN?this.$_printAcross(t,e,c,n,a,o,s):this.$_printDown(t,e,c,n,a,o,s),A&&(this._rowDivs=null)}addMasterRow(t,e,r,s){const A=e.cloneNode(!0),i=r.cloneNode(!0);t.appendChild(A),A.style.top=s+"px";const n=A.offsetHeight;return s+=n,t.appendChild(i),i.style.top=s+"px",n+i.offsetHeight}get headerView(){return this._headerView}get footerView(){return this._footerView}get rowTemplateView(){return this._rowView}get groupCount(){return this._groupViews.length}get detailView(){return this._detailView}getGroupView(t){return this._groupViews[t]}indexOfGroup(t){let e=-1;for(let r of this._groupViews)if(r.visible&&(e++,r.model===t))return e;return e}getRowPoints(){const t=[];this.headerView.visible&&t.push(this._headerView.y,this.headerView.height),t.push(this._rowView.y,this._rowView.height),this._footerView.visible&&t.push(this._footerView.y,this._footerView.height);for(let e of this._groupViews)e.visible&&t.push(e.y,e.height);return this.detailView.visible&&t.push(this._detailView.y,this._detailView.height),t}get debugLabel(){return"simple band"}_getCssSelector(){return"rr-band rr-group-element"}_needDesignBox(){return!0}get rowView(){return this._rowView}_isEmpty(){return this.model.sectionCount<2&&super._isEmpty()}$_prepareHeads(t){if(!this._headViews){const e=this.model;this._headViews={},this.addChild(this._headViews[this.shash]=new Ao(t,e,"SIMPLE BAND","SimpleBand","rr-band-head")),this.addChild(this._headViews[this._headerView.shash]=new Ao(t,e.header,"HEADER","SimpleBand Header")),this.addChild(this._headViews[this._footerView.shash]=new Ao(t,e.footer,"FOOTER","SimpleBand Footer")),this.addChild(this._headViews[this._rowView.shash]=new Ao(t,e.dataRow,"DATA ROW","SimpleBand Row Template"));for(let e of this._groupViews)this.addChild(this._headViews[e.shash]=new Ao(t,e.model,"GROUP-"+(e.model.index+1),"SimpleBand Group"));this.addChild(this._headViews[this._detailView.shash]=new Ao(t,e.detail,"DETAILS","SimpleBand Details"))}}_doMeasure(t,e,r,s){const A=this.model;let i,n=0,o=0;r=A.getColWidth(r);let a=this._headerView;if(!t.printing&&(a.visible=a.model.visible)&&(i=a.measure(t,r,s),n=Math.max(n,i.width),o+=i.height),t.printing||(a=this._rowView,i=a.measure(t,r,s),n=Math.max(n,i.width),o+=i.height),a=this._footerView,!t.printing&&(a.visible=a.model.visible)&&(t.bandSummaryRuntime=A.summaryRuntime,i=a.measure(t,r,s),n=Math.max(n,i.width),o+=i.height),this.$_prepareGroupViews(A,this.doc)>0&&(t.printing||(o+=this.$_measureGroupViews(A,t,r,s))),a=this._detailView,(a.visible=a.model.visible)&&(i=a.measure(t,r,s),n=Math.max(n,i.width),o+=i.height),!t.printing&&(this.$_prepareHeads(this.doc),this._headViews)){const e=this.container,A=null==e?void 0:e.focusedItem;for(let e in this._headViews){const a=this._headViews[e],h=a.model;i=a.measure(t,r,s),n=Math.max(n,i.width),o+=i.height+2,h.isAncestorOf(A)?a.dom.dataset.selected="":delete a.dom.dataset.selected}}return new fn(n,o)}_doLayoutContent(t){const e=this.model,r=!!this._headViews,s=e.sectionCount,A=e.getColWidth(this.width),i=2+8*e.bandLevel;let n,o,a=0;const h=t.printing?null:this._lines=[];r&&(o=this._headViews[this.shash],o.setBounds(i,a+2,o.measuredWidth,o.measuredHeight),a+=o.height+2),n=this._headerView,r&&(o=this._headViews[n.shash],o.setBounds(i+8,a+2,o.measuredWidth,o.measuredHeight),a+=o.height+2),n.visible&&(n.setBounds((A-n.measuredWidth)/2,a,n.measuredWidth,n.measuredHeight),a+=n.height,n.setPrintStyles(),n.layoutContent(t)),null==h||h.push(n),n=this._rowView,r&&(o=this._headViews[n.shash],o.setBounds(i+8,a+2,o.measuredWidth,o.measuredHeight),a+=o.height+2),t.printing||(n.setBounds((A-n.measuredWidth)/2,a,n.measuredWidth,n.measuredHeight),a+=n.height,n.setPrintStyles(),n.layoutContent(t)),null==h||h.push(n),n=this._footerView,r&&(o=this._headViews[n.shash],o.setBounds(i+8,a+2,o.measuredWidth,o.measuredHeight),a+=o.height+2),n.visible&&(n.setBounds((A-n.measuredWidth)/2,a,n.measuredWidth,n.measuredHeight),n.setPrintStyles(),n.layoutContent(t),a+=n.height),null==h||h.push(n);for(let e of this._groupViews)r&&(o=this._headViews[e.shash],o.setBounds(i+8,a+2,o.measuredWidth,o.measuredHeight),a+=o.height+2),e.setBounds((A-e.measuredWidth)/2,a,A,e.measuredHeight),e.setPrintStyles(),e.layoutContent(t),a+=e.height,null==h||h.push(e);n=this._detailView,r&&(o=this._headViews[n.shash],o.setBounds(i+8,a+2,o.measuredWidth,o.measuredHeight),a+=o.height+2),n.visible&&(n.setBounds((A-n.measuredWidth)/2,a,n.measuredWidth,n.measuredHeight),a+=n.height,n.setPrintStyles(),n.layoutContent(t)),null==h||h.push(n),this._designView&&this.$_layoutCols(this.doc,s)}$_getHeadHeight(){return this._headViews[this.shash].height+1}_setDesignContent(t){const e=this.$_getHeadHeight();this._designView.style.top=e+"px",this._designView.style.height=this.height-e+"px",t&&super._setDesignContent(t)}getLines(){return this._lines}$_checkBlanks(t,e,r){const s=t.dataRow.blankItems;s&&s.forEach((s=>{if(t.dataRow.canBlank(s,e)){const t=r.children;for(let e=t.length-1;e>=0;e--){const A=t[e];if(A.dataset._m_===s.shash){r.removeChild(A);break}}}}))}$_printRows(t,e,r,s,A,i){function n(e,r,i){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;const h=s.dom,l=(n||e>0)&&0===o,c=h.cloneNode(!l);if(l&&s.replaceDom(c),c.$_brb=o,c.$_brt=oo,a.setPrinting(t,e),i){const s=i(t,r,e,void 0);s&&ot.extend(c.style,s)}return l&&(t.bandSummaryRuntime=a.summaryRuntime,t.bandSummaryRuntime.setGroup(null),s._modelChanged=!0,s.measure(t,A,t.pageHeight),s.resize(s.measuredWidth,s.measuredHeight),s.setPrintStyles(),s.layoutContent(t)),l&&s.replaceDom(h),isNaN(r.masterRow)||(c.dataset.master=String(r.masterRow)),t.index++,c}function o(e,r,s,i){const n=r.dom,o=n.cloneNode(!1);return o.$_brt=i,t.bandSummaryRuntime=a.summaryRuntime,t.bandSummaryRuntime.setGroup(s),a.setPrinting(t,e),r.replaceDom(o),r._modelChanged=!0,r.measure(t,A,t.pageHeight),r.resize(r.measuredWidth,r.measuredHeight),r.setPrintStyles(),r.layoutContent(t),r.replaceDom(n),o}const a=this.model,h=a.dataRow,l=h.styleCallback,c=[];let u=i?i.length:e?e.rowCount:0;const d=u;a.maxRowCount>0&&(u=Math.min(u,a.maxRowCount));const p=a.getEndRowCount();if(!r&&p.endRowCount>0&&(this._endRowView||(this._endRowView=n(0,h,l,!1,1),ot.clearChildren(this._endRowView)),a.endRowMessage&&(this._endMessageView=function(){const t=s.cloneNode(),e=s.doc.createElement("span");return t.$_brt="d",ot.clearChildren(t),e.textContent=a.endRowMessage,e.className=lo.END_ROW_MESSAGE_CLASS,t.append(e),Object.assign(t.style,{display:"flex",alignItems:"center",justifyContent:"center",width:s.measuredWidth+"px",height:s.measuredHeight+"px"}),t}())),0===u&&!this._endRowView)return c;this._printedRows=u!==d?u:NaN;const g=a.pr;if(t.index=0,r&&u>0){const t=r.map((t=>t.visible&&t.model.field)).filter((t=>!!t)),s=e.groupBy(t,u);for(let t=0;t<s.length;t++){const e=s[t];if(ot.isNumber(e))c.push(n(e,h,l));else if(e.parent){const t=r[e.level-1];t.header&&t.header.visible&&c.push(o(e.row,t.header,e,ao))}else{const t=r[e.group.level-1];t.footer&&t.footer.visible&&c.push(o(t.row,t.footer,e.group,ho))}}this._grouped=!0}else if(i)for(let t=0;t<u;t++)c.push(n(i[t],h,l,!0));else for(let t=0;t<u;t++)c.push(n(t,h,l));return a.setPrinting(t,g),c}$_prepareGroupViews(t,e){const r=t.groups.count,s=this._groupViews;for(;s.length>r;){const t=s.pop();t.dispose(),this.removeChild(t)}for(;s.length<r;){const t=new ta(e,null);this.addChild(t),s.push(t)}return s.length}$_measureGroupViews(t,e,r,s){const A=t.groups,i=this._groupViews;let n=0;for(let t=0;t<A.count;t++)i[t].model=A.get(t),n+=i[t].measure(e,r,s).height;return n}$_getGroupViews(t,e,r,s){if(e){const A=[];for(let i of e){const e=this._groupViews[i.index];e.model=i,t._noValueCallback=!0;try{e.measure(t,r,s)}finally{t._noValueCallback=!1}A.push(e)}return A.length?A:null}}$_layoutCols(t,e){const r=this._colSpans;for(;r.length<e-1;){const e=t.createElement("span");e.className="rr-band-col",r.push(e),this._designView.appendChild(e)}const s=this.model.sectionGap,A=this.model.getColWidth(this.width),i=this.height-this.$_getHeadHeight();let n=A+s;for(let t=0;t<e-1;t++){const e=r[t];delete e.dataset.hidden,e.textContent=t+2+"",ot.setBounds(e,n,0,A,i),n+=A+s}for(let t=e-1;t<r.length;t++)r[t].dataset.hidden="1"}$_createPage(t){const e=t.createElement("div");return e.dataset._m_=this.model.shash,e.dataset._page_="1",e.style.position="relative",this._rowContainer.appendChild(e),e}$_cloneRow(t,e,r,s){const A=this._rowView,i=A.dom,n=A.cloneNode();return t.bandSummaryRuntime=e.summaryRuntime,A.replaceDom(n),A.measure(t,s,t.pageHeight),A.resize(A.measuredWidth,A.measuredHeight),A.setPrintStyles(),A.layoutContent(t),A.replaceDom(i),n}$_printLinear(t,e,r,s,A,i,n){function o(s,A){const i=s.$_createPage(t);return e.yBand=O=0,A&&(F=e.y=e.bodyTop,at(r.pr>0)),(isNaN(x)||!g||x<=0)&&(x=p),y.length||(T=0),c>0&&r.pageNo>0&&(r.repeatMasterRow&&function(t,e){const r=t.rowView.masterBandView,s=t.rowView.masterHeaderView,A=t.rowView.masterRowView,i=r.addMasterRow(e,s,A,O);O+=i,F+=i}(s,i),r.repeatDetailHeader&&a(s,i)),n.push(i),A&&r.pageNo++,i}function a(t,e){if(t._headerView.visible){b=t._headerView.dom.cloneNode(!0),e.appendChild(b);const r=b.offsetHeight;t._setY(b,O),O+=r,F+=r}}function h(t){const s=t._footerView;!_&&isNaN(t._printedRows)||(r.clearSummary(),e.bandSummaryRuntime=r.summaryRuntime.setRows(_,t._masterRow).setRowCount(t._printedRows),s.measure(e,A,e.pageHeight),s.resize(s.measuredWidth,s.measuredHeight),s.setPrintStyles(),s.layoutContent(e));let i=s.cloneNode();if(t._setY(i,O),E.appendChild(i),O+=Q=i.offsetHeight,F+=Q,F>R&&y.length&&C){let e=F,r=y.length-1;for(;r>=0&&e>R;)e-=y[r--].offsetHeight;if(e<=R){O-=F-e,t._setY(i,O-Q),F=e;for(let t=y.length-1;t>r;t--)E.removeChild(y[t])}}F>R&&(E.removeChild(i),E=o(t,!0),F+=Q,t._setY(i,O),E.appendChild(i)),e.yBand=O,e.y=F,e.h=e.bodyHeight-(F-e.bodyTop)}const l=s?s.rowCount:0,c=r.bandLevel,u=r.detail,d=this._grouped,{rowsPerPage:p,breakRowsPerPage:g}=r.getRowsPerPage(),f=r.pr,_=c>0?[]:null,m=this._endRowView;let w=this._endMessageView;const{endRowCount:B,stopEndRow:C}=r.getEndRowCount(w?1:0),y=[];let v,E,b,x,P,I,S,T=0,F=e.y,R=e.bodyBottom,O=e.yBand,Q=0,D=!1;for(0==c?E=o(this,!1):(E=n[n.length-1],r.pageNo++,x=p),a(this,E);i.length>0||B>0&&T<B;){const s=r.pr,p=O===e.yBand&&(0===c||0===r.pageNo);if(p&&(F+Q>R&&O>0&&(E=o(this,!0)),F!==e.bodyTop||0!==c&&0!==T||a(this,E)),P=I,P||(i.length>0?P=i[0]:w?(P=w,y.push(P)):(P=v=m.cloneNode(!0),P.$_brt="d",y.push(P))),p&&S&&P.$_brt!==ao)P=S.cloneNode(!0),this._setY(P,O),E.appendChild(P),P.$_h=P.offsetHeight,O+=Q=P.$_h,F+=Q,S=P;else if(this._setY(P,O),E.appendChild(P),P.$_h=Q=P.offsetHeight,O+=Q,F+=Q,I=null,F>R&&(c>0||s>0))E.removeChild(P),y.pop(),I=P,y.length&&C?T=B:E=o(this,!0);else{const a=i.shift()||w||v,p=a.$_brt===oo;if(_&&p&&_.push(s),s>0&&!d&&p&&this.$_checkBlanks(r,s,a),!a.$_brb&&p&&r.setPrinting(e,s+1),d&&a.$_brt===ao&&(S=a),(p||a===w||a===v)&&(x--,T++,a===w&&(w=null)),D=!1,x<=0&&(i.length>0||B<=0||T===B)&&r.pr<l&&(c>0&&r.repeatDetailFooter&&(h(this),D=!0),(i.length>0||D)&&s<l&&(E=o(this,!0))),p&&u.count>0){e.y=F,e.h=e.bodyHeight-(F-e.bodyTop),e.yBand=O;for(let i=0;i<u.count;i++){const o=this._detailView.getChild(i),a=o.model;o.rowView.masterBandView=this,o.rowView.masterHeaderView=this._headerView.dom,o.rowView.masterRowView=P,a.pageNo=0,a.masterValues=r.getValues(e,s,a._masterFlds),a.detailRows=a.rowsPerMaster;const h=a.getNextDetailRows(e)||[];o.printBand(t,e,A,n,h,s)}E=n[n.length-1],F=e.y,O=e.yBand}}}if(0==c||r.pr>f){if(!D&&(h(this),D=!1,c>0&&p<Number.MAX_SAFE_INTEGER&&r.pr<l)){const r=this.$_createPage(t);e.yBand=O=0,e.y=e.bodyTop,F=e.bodyTop,n.push(r)}}else if(b){const t=b.offsetHeight;ot.remove(b),O-=t,F-=t}D||(e.yBand=O,e.y=F,e.h=e.bodyHeight-(F-e.bodyTop))}$_printAcross(t,e,r,s,A,i,n){function o(t){if(t._headerView.visible){let e=0;for(let s=0;s<A;s++){const A=t._headerView.cloneNode();t._setPos(A,r[2*s],p),w.appendChild(A),e=Math.max(e,A.offsetHeight)}p+=e,u=l+=e}}const a=Math.min(s.endRowCount>=0?s.endRowCount:Number.MAX_SAFE_INTEGER,i?i.rowCount:0),h=this._headerView.offsetHeight;let l=e.y,c=e.bodyBottom,u=l,d=l,p=0,g=Math.min(A,a);const f=new Array(A),_=new Array,m=new Array;let w;w=this.$_createPage(t),n.push(w),h&&o(this);for(let t=0;t<g;t++)f[t]=[];for(;s.pr<a;){0===p&&h&&o(this);let i=-1,B=0;_.length=0;for(let t=0;t<g&&s.pr<a;t++){const n=r[2*t],o=r[2*t+1]-n,a=m.pop()||this.$_cloneRow(e,s,s.pr,o);_.push(a),this._setPos(a,n,p),w.appendChild(a);const h=a.$_h=a.offsetHeight;if(l+h>c){i=t;break}f[t].push(a),s.setPrinting(e,s.pr+1),t===A-1&&(u+=h),B=Math.max(B,h)}if(i>=0){for(let t of _)w.removeChild(t),m.push(t);u=l=e.bodyTop,p=0,i=-1,d=e.bodyTop,w=this.$_createPage(t),n.push(w)}else l+=B,p+=B,m.length=0}let B=0;if(a>0)for(let t=0;t<g;t++)f[t].length&&B++;const C=this._footerView.cloneNode(),y=s.footer.attachToBody,v=y?Math.min(B,A-1):A-1;this._setPos(C,r[2*v],(y?u:l)-d),w.appendChild(C);const E=C.offsetHeight;y?l=Math.max(l,u+E):l+=E,l>c&&(w.removeChild(C),w=this.$_createPage(t),n.push(w),this._setY(C,0),w.appendChild(C),l=e.bodyTop+E),e.y=l,e.h=e.bodyHeight-(l-e.bodyTop)}$_printDown(t,e,r,s,A,i,n){function o(t){for(let t=0;t<A;t++)p[t]=a,g[t]=[];if(m=0,t._headerView.visible){for(let e=0;e<A;e++){const s=t._headerView.cloneNode();t._setPos(s,r[2*e],c),_.appendChild(s),m=Math.max(m,s.offsetHeight)}c+=m,a+=m}}let a=e.y,h=e.bodyBottom,l=a,c=0;const u=Math.min(s.endRowCount>=0?s.endRowCount:Number.MAX_SAFE_INTEGER,i?i.rowCount:0);let d=Math.min(A,u);const p=new Array(A),g=new Array(A);let f,_,m=0;_=this.$_createPage(t),n.push(_),o(this);do{for(let i=0;i<A;i++){const d=r[2*i],w=r[2*i+1]-d;for(0===c&&(0===i?o(this):(c+=m,a+=m));s.pr<u;){const r=f||this.$_cloneRow(e,s,s.pr,w);f=null,this._setPos(r,d,c),_.appendChild(r),r.$_h=r.offsetHeight;const o=r.$_h;if(c+=o,a+=o,p[i]=a,g[i].push(r),a>h){_.removeChild(r),f=r,g[i].pop(),c=0,i==A-1?(_=this.$_createPage(t),n.push(_),l=e.bodyTop):l=n.length>1?e.bodyTop:e.y,a=l;break}s.setPrinting(e,s.pr+1)}}}while(s.pr<u);let w=0;if(u>1){let t=0;for(let e=0;e<g.length;e++)for(let r=0;r<g[e].length;r++)t+=g[e][r].$_h;const e=new Array(d);let s=Math.round(t/d);for(let t=0;t<d-1;t++){let A,i=g[t],n=0,o=0;for(;n<i.length;){if(o+=A=i[n].$_h,o>s){o-=A;break}n++}e[t]=o;const a=g[t+1];let h=0;for(;n<i.length;){const t=i.splice(n,1)[0];a.splice(h++,0,t)}let l=m;for(let e=0;e<a.length;e++)this._setPos(a[e],r[2*(t+1)],l),l+=a[e].$_h}e[A-1]=0;for(let t=0;t<g[A-1].length;t++)e[A-1]+=g[A-1][t].$_h;for(let t=0;t<2;t++)(()=>{for(let t=d-1;t>0;t--)for(;e[t]>e[t-1];){const s=g[t],A=g[t-1],i=s.shift(),n=i.$_h;let o=m;for(let t=0;t<s.length;t++)this._setY(s[t],o),o+=s[t].$_h;e[t]-=n,A.push(i),this._setX(i,r[2*(t-1)]),this._setY(i,e[t-1]+m),e[t-1]+=n}})();for(let t=0;t<d;t++){let e=g[t];if(p[t]=l+m,e.length>0){w=t+1;for(let r=0;r<e.length;r++)p[t]+=e[r].$_h}}}else{for(let t=0;t<A;t++)p[t]=l+m;w=u,w&&(p[0]+=g[0][0].$_h)}const B=this._footerView.cloneNode(),C=s.footer.attachToBody,y=C?Math.min(w,A-1):A-1,v=C?p[y]:0;a=p[0];for(let t=1;t<d;t++)a=Math.max(a,p[t]);this._setPos(B,r[2*y],(C?v:a)-l),_.appendChild(B);const E=B.offsetHeight;C?a=Math.max(a,v+E):a+=E,a>h&&(_.removeChild(B),_=this.$_createPage(t),n.push(_),this._setY(B,c=0),_.appendChild(B),a=e.bodyTop+E),e.y=a,e.h=e.bodyHeight-(a-e.bodyTop)}}ea.HEADER_CLASS="rr-band-header",ea.FOOTER_CLASS="rr-band-footer",ea.ROW_CLASS="rr-band-rowtemplate";class ra{constructor(t,e,r){this._rows=[];for(let s=0;s<r;s++)this._rows.push(t[e+s])}get count(){return this._rows.length}get height(){if(isNaN(this._height)){this._height=0;for(let t of this._rows)this._height+=t.offsetHeight}return this._height}get group(){return this._rows[0].$_grp}get isGroup(){return!!this._rows[0].$_grp}get isRow(){return this._rows[0].$_brt===oo}get isGroupHeader(){return this._rows[0].$_brt===ao}get isGroupFooter(){return this._rows[0].$_brt===ho}get first(){return this._rows[0]}get(t){return this._rows[t]}getCell(t,e){return this._rows[t].cells[e]}appendTo(t){for(let e of this._rows)t.appendChild(e),e.style.height=e.offsetHeight+"px"}detach(){for(let t=this._rows.length-1;t>=0;t--)ot.detach(this._rows[t])}makeBlank(t,e){const r=this._rows[t].cells[e];ot.remove(r.firstChild.firstChild)}hide(t,e){this._rows[t].cells[e].style.display="none"}clone(){const t=this._rows.map((t=>t.cloneNode(!0)));return new ra(t,0,t.length)}}class sa extends ra{constructor(t,e,r){super(t,e,r),this._rows.forEach((t=>{t.$_brt="d";const e=t.cells,r=e.length;if(r>0){for(let t=0;t<r;t++)ot.clearChildren(e[t]);e[0].innerHTML="&#160;"}}))}}class Aa extends Io{constructor(t,e,r){super(t,e,r,"tableBandCellView")}}class ia extends So{constructor(t,e,r,s){super(t,e,r),this.styleName=s}get debugLabel(){return""}_getCssSelector(){return this.styleName+" rr-group-element"}_needDesignBox(){return!0}_createCellElement(t,e){return new Aa(t,this,e)}_doMeasure(t,e,r,s){return super._doMeasure(t,e,r,s)}_doAfterMeasure(t,e,r,s,A){this.childCount>0?this._applyBorders(e,A):t.printing||(!this.model.height&&this.model.designHeight>0&&(A.height=Math.max(A.height,this.model.designHeight)),!this.model.width&&this.model.designWidth>0&&(A.width=Math.max(A.width,this.model.designWidth))),super._doAfterMeasure(t,e,r,s,A)}}class na extends ia{_setTableStyles(t){super._setTableStyles(t),t.style.setProperty("height","100%","important")}_setRowStyles(t,e){super._setRowStyles(t,e),ot.extend(t.style,this.model.styles)}}class oa extends ia{_setTableStyles(t){super._setTableStyles(t),t.style.setProperty("height","100%","important")}_setRowStyles(t,e){super._setRowStyles(t,e),ot.extend(t.style,this.model.styles)}}class aa extends ia{applyCellStyles(t,e,r,s,A){const i=this.model,n=r.cells;for(let e=0;e<n.length;e++){const r=n[e].style;this._styles&&ot.extend(r,this._styles),A&&ot.extend(r,A);const o=i.getCell(s,n[e].cellIndex),a=o.styleCallback;let h=o.styles;if(h&&ot.extend(r,h),a)try{const e=a(t,o,t.row);e&&ot.extend(r,e)}catch(t){console.error("CellStyleCallback Error",t)}}}_setTableStyles(t){super._setTableStyles(t),t.style.setProperty("height","100%","important")}_setRowStyles(t,e){super._setRowStyles(t,e),this._styles={...this.model.styles}}}class ha extends ia{constructor(t,e){super(t,e,"tableBandBodyView","rr-tableband-body"),this._bandRowCount=0}get bandRowCount(){return this._bandRowCount}get endMessageView(){return this._endMessageView}get endRowView(){return this._endRowView}printRows(t,e,r,s,A,i){function n(e){let r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const n=r||e>0,o=s.$_trows,l=o.length,p=[];for(let r=0;r<l;r++){const A=o[r],l=n?s.$_cloneRow(A):A.cloneNode(!0);let c;u&&(c=u(t,a,e,void 0)),l.$_brt=oo,l.$_brb=i,s.setCellDoms(A,l),s.applyCellStyles(t,h,l,r,c),p.push(l)}n&&(t.bandSummaryRuntime=h.summaryRuntime,t.bandSummaryRuntime.setGroup(null),h.setPrinting(t,e),s.$_refreshRowCells(t,A,d,!0));for(let t=0;t<l;t++)s.unsetCellDoms(p[t],o[t]),p[t].classList.add(pa.ROW_CLASS),isNaN(a.masterRow)||(p[t].dataset.master=String(a.masterRow)),0==i&&c.appendChild(p[t]);return t.index++,p}function o(e,r,s,i){const n=r.$_trows,o=n.length,a=[];for(let t=0;t<o;t++){const e=n[t],s=r.$_cloneRow(e);s.$_brt=i,r.replaceCellDoms(e,s),r.applyGroupStyles(s),a.push(s)}t.bandSummaryRuntime=h.summaryRuntime,t.bandSummaryRuntime.setGroup(s),h.setPrinting(t,e),r.$_refreshRowCells(t,A,d,!0),s.trows=o;for(let t=0;t<o;t++)a[t].$_grp=s,r.replaceCellDoms(a[t],n[t]),c.appendChild(a[t])}if(i)this._bandRowCount=0;else if(this._bandRowCount>0)return;const a=this.model,h=a.band,l=!!i,c=this._tbody,u=a.styleCallback,d=t.pageHeight;let p=l?i.length:e?e.rowCount:0;const g=p;h.maxRowCount>0&&(p=Math.min(p,h.maxRowCount));const f=h.getEndRowCount();if(!r&&f.endRowCount>0){if(!this._endRowView){const t=n(0,!1,1);this._endRowView=new sa(t,0,t.length)}h.endRowMessage&&(this._endMessageView=function(){const t=s.$_trows[0].cloneNode(!0),e=new sa([t],0,1),r=t.cells[0];return r.colSpan=t.cells.length,r.textContent=h.endRowMessage,r.className=lo.END_ROW_MESSAGE_CLASS,r.style.textAlign="center",t.classList.add(pa.ROW_CLASS),e}())}if(0===p&&!this._endRowView)return;const _=p!==g?p:NaN,m=h.pr;if(t.index=0,r){const t=r.map((t=>t.visible&&t.model.field)).filter((t=>!!t)),s=e.groupBy(t,p);for(let t=0;t<s.length;t++){const e=s[t];if(ot.isNumber(e))n(e),this._bandRowCount++;else if(e.parent){const t=r[e.level-1];t.header&&t.header.visible&&(o(e.row,t.header,e,ao),this._bandRowCount++)}else{const t=r[e.group.level-1];t.footer&&t.footer.visible&&(o(t.row,t.footer,e.group,ho),this._bandRowCount++)}}}else if(i)for(let t=0;t<p;t++)n(i[t],!0),this._bandRowCount++;else for(let t=0;t<p;t++)n(t),this._bandRowCount++;return h.setPrinting(t,m),_}}class la extends So{constructor(t,e,r){super(t,e,r)}applyGroupStyles(t){ot.extend(t.style,this.model.styles)}_needDesignBox(){return!0}_createCellElement(t,e){return new Aa(t,this,e)}_doMeasure(t,e,r,s){const A=super._doMeasure(t,e,r,s);return A.height=Math.max(10,A.height),A}_doAfterMeasure(t,e,r,s,A){this.childCount>0?this._applyBorders(e,A):t.printing||(!this.model.height&&this.model.designHeight>0&&(A.height=Math.max(A.height,this.model.designHeight)),!this.model.width&&this.model.designWidth>0&&(A.width=Math.max(A.width,this.model.designWidth))),super._doAfterMeasure(t,e,r,s,A)}}class ca extends la{constructor(t,e){super(t,e,"tableBandGroupHeader")}_getCssSelector(){return"rr-tableband-group-header rr-group-element"}_setTableStyles(t){super._setTableStyles(t),t.style.setProperty("height","100%","important")}}class ua extends la{constructor(t,e){super(t,e,"tableBandGroupFooter")}_getCssSelector(){return"rr-tableband-group-footer rr-group-element"}_setTableStyles(t){super._setTableStyles(t),t.style.setProperty("height","100%","important")}}class da extends no{constructor(t,e){super(t,e,"tableBandGroupView"),this.headIndent=0}_doDispose(){super._doDispose()}get header(){return this._header}get footer(){return this._footer}_getCssSelector(){return"rr-tableband-group rr-group-element"}_needDesignBox(){return!0}_doMeasure(t,e,r,s){super._doMeasure(t,e,r,s);const A=this.container.focusedItem;this._header=this.getChild(0),!t.printing&&(this._header._masterView=this._masterView),this._footer=this.getChild(1),!t.printing&&(this._footer._masterView=this._masterView),t.printing||this._headerHead||(this.addChild(this._headerHead=new Ao(this.doc,this.model.header,"GROUP HEADER","TableBand RowGroup Header")),this.addChild(this._footerHead=new Ao(this.doc,this.model.footer,"GROUP FOOTER","TableBand RowGroup Footer")));let i=this._header.measuredHeight+this._footer.measuredHeight;if(!t.printing){let e=this._headerHead,n=e.measure(t,r,s);e.setSelected(A),i+=n.height+2,e=this._footerHead,n=e.measure(t,r,s),e.setSelected(A),i+=n.height+2}return fn.create(Math.max(this._header.measuredWidth,this._footer.measuredWidth),i)}_doLayoutContent(t){if(super._doLayoutContent(t),!t.printing){let t=0,e=this._headerHead;e.applyMeasure(),e.x=this.headIndent,e.y=t+2,t+=e.height+2,this._header.y=t,t+=this._header.height,e=this._footerHead,e.applyMeasure(),e.x=this.headIndent,e.y=t+2,t+=e.height+2,this._footer.y=t}}$_setMasterView(t){this._masterView=t}}class pa extends lo{constructor(t,e){super(t,e,"TableBandView"),this._groupViews=[],this._rowGap=2,this._colSpans=[],this._colWidth=0,this._grouped=!1,this._masterRow=-1,this._printedRows=NaN,this.addChild(this._headerView=new na(t,e&&e.header,"bandHeaderView","rr-tableband-header")),this.addChild(this._rowView=new aa(t,e&&e.dataRow,"bandRowTemplateView","rr-tableband-row-template")),this.addChild(this._bodyView=new ha(t,e&&e.dataRow)),this._bodyView.visible=!1,this.addChild(this._footerView=new oa(t,e&&e.footer,"bandFooterView","rr-tableband-footer")),this.addChild(this._detailView=new Yo(t,e&&e.detail)),this._lines=[this._headerView,this._rowView,this._footerView,this._detailView],this._rowContainer=t.createElement("div"),this._dom.appendChild(this._rowContainer)}_doDispose(){super._doDispose()}get columns(){return this.model.columns}get colCount(){return this.model.colCount}getColumn(t){return this.model.getColumn(t)}printBand(t,e,r,s,A){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:-1;const n=this.model,o=n.dataObj,a=n.sectionCount,h=a<2,l=h?null:n.getColPoints(r);if(A||n.prepareIndices(e),this._masterRow=i,n.dataRow.masterRow=i>=0?i:NaN,n.summaryRuntime.setRows(A,i),this._colWidth=n.getColWidth(r),l&&(r=this._colWidth),isNaN(this._rowView.measuredHeight)){let t=this._headerView;if((t.visible=t.model.visible)&&(t.resetStyleName(),t.measure(e,r,e.pageHeight),t.resize(r,t.measuredHeight),t.setPrintStyles(),t.layoutContent(e)),t=this._rowView,!this._printingRows){t.resetStyleName(),t.measure(e,r,e.pageHeight),t.resize(r,t.measuredHeight),t.setPrintStyles(),t.layoutContent(e),this._bodyView.visible=!0;const s=n.designData,i=this.$_getGroupViews(e,n.groups.getValidGroups(s),r,e.pageHeight);this._printedRows=this._bodyView.printRows(e,o,i,this._rowView,r,A),this._printingRows=this._bodyView.$_trowsCopy,this._grouped=!!i}t=this._footerView,(t.visible=t.model.visible)&&(t.resetStyleName(),e.bandSummaryRuntime=n.summaryRuntime.setGroup(null).setRows(null,this._masterRow),t.measure(e,r,e.pageHeight),t.resize(t.measuredWidth,t.measuredHeight),t.setPrintStyles(),t.layoutContent(e))}else this._printingRows||(this._printedRows=this._bodyView.printRows(e,o,null,this._rowView,r,A),this._printingRows=this._bodyView.$_trowsCopy);const c=this._printingRows,u=this._bodyView.bandRowCount;return this._tempRow||(this._tempRow=c[0]),h?this.$_printLinear(t,e,n,o,r,c,s):n.sectionLayout==vs.ACROSS_DOWN?this.$_printAcross(t,e,n,l,a,r,c,u,s):this.$_printDown(t,e,n,l,a,r,c,u,s),A&&(this._printingRows=null),u}addMasterRow(t,e,r,s){const A=this.$_addTable(this.doc,t,0,s),i=new To(e);i.appendTo(A.tBodies[0],pa.HEADER_CLASS);const n=i.height,o=r.clone();return o.appendTo(A.tBodies[0]),n+o.height}get headerView(){return this._headerView}get footerView(){return this._footerView}get dataRowView(){return this._rowView}get groupCount(){return this._groupViews.length}getGroupView(t){return this._groupViews[t]}indexOfGroup(t){let e=-1;for(let r of this._groupViews)if(r.visible&&(e++,r.model===t))return e;return e}getRowPoints(){const t=[];t.push(this._headerView.y,this.headerView.height),t.push(this._rowView.y,this._rowView.height),t.push(this._footerView.y,this._footerView.height);for(let e of this._groupViews)e.visible&&t.push(e.y,e.height);return t}getColPoints(){return this._rowView.getColPoints()}getColRect(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const r=this._rowView.getColRect(t,e);return r.height=this.height,r}getTableView(t){for(let e of[this._headerView,this._footerView,this._rowView])if(e.model===t)return e;for(let e of this._groupViews){if(e.header.model===t)return e.header;if(e.footer.model===t)return e.footer}}getTableViews(){const t=[this._headerView,this._footerView,this._rowView];for(let e of this._groupViews)t.push(e.header,e.footer);return t}get debugLabel(){return"table band"}_getCssSelector(){return"rr-table-band rr-group-element"}_needDesignBox(){return!0}get rowView(){return this._rowView}$_prepareHeads(t){if(!this._headViews){const e=this.model;this._headViews={},this.addChild(this._headViews[this.hash]=new Ao(t,e,"TABLE BAND","TableBand","rr-band-head")),this.addChild(this._headViews[this._headerView.hash]=new Ao(t,e.header,"HEADER","SimpleBand Header")),this.addChild(this._headViews[this._footerView.hash]=new Ao(t,e.footer,"FOOTER","TableBand Footer")),this.addChild(this._headViews[this._rowView.hash]=new Ao(t,e.dataRow,"DATA ROW","TableBand Data Row"));for(let e of this._groupViews)this.addChild(this._headViews[e.hash]=new Ao(t,e.model,"GROUP-"+(e.model.index+1),"TableBand RowGroup"));this.addChild(this._headViews[this._detailView.hash]=new Ao(t,e.detail,"DETAILS","TableBand Details"))}}_doMeasure(t,e,r,s){var A;const i=t.printing,n=this.model;let o,a=0,h=0;t.printing||(this._headerView._masterView=this._bodyView._masterView=this._footerView._masterView=this._rowView),r=n.getColWidth(r);let l=this._rowView;if(t.printing||(o=l.measure(t,r,s),a=Math.max(a,o.width),h+=o.height+this._rowGap),l=this._headerView,!i&&(l.visible=l.model.visible)&&(o=l.measure(t,r,s),a=Math.max(a,o.width),h+=o.height+this._rowGap),l=this._footerView,!t.printing&&(l.visible=l.model.visible)&&(t.bandSummaryRuntime=n.summaryRuntime,o=l.measure(t,r,s),a=Math.max(a,o.width),h+=o.height),this.$_prepareGroupViews(n,this.doc),t.printing||(h+=this.$_measureGroupViews(n,t,r,s)),l=this._detailView,(l.visible=l.model.visible)&&(o=l.measure(t,r,s),a=Math.max(a,o.width),h+=o.height),!t.printing&&(this.$_prepareHeads(this.doc),this._headViews)){const e=null===(A=this.container)||void 0===A?void 0:A.focusedItem;for(let A in this._headViews){const i=this._headViews[A];o=i.measure(t,r,s),a=Math.max(a,o.width),h+=o.height+2,i.setSelected(e)}}return new fn(a,h)}_doLayoutContent(t){const e=this.model,r=!!this._headViews,s=e.sectionCount,A=e.getColWidth(this.width),i=2+8*e.bandLevel;let n,o,a=0,h=t.printing?null:this._lines=[];r&&(o=this._headViews[this.hash],o.setBounds(i,a+2,o.measuredWidth,o.measuredHeight),a+=o.height+2),n=this._headerView,r&&(o=this._headViews[n.hash],o.setBounds(i+8,a+2,o.measuredWidth,o.measuredHeight),a+=o.height+2),n.visible&&(n.setBounds((A-n.measuredWidth)/2,a,A,n.measuredHeight),n.setPrintStyles(),a+=n.height+this._rowGap,n.layoutContent(t)),null==h||h.push(n),n=this._rowView,r&&(o=this._headViews[n.hash],o.setBounds(i+8,a+2,o.measuredWidth,o.measuredHeight),a+=o.height+2),n.setBounds((A-n.measuredWidth)/2,a,A,n.measuredHeight),n.setPrintStyles(),a+=n.height+this._rowGap,n.layoutContent(t),null==h||h.push(n),n=this._footerView,n=this._footerView,r&&(o=this._headViews[n.hash],o.setBounds(i+8,a+2,o.measuredWidth,o.measuredHeight),a+=o.height+2),n.visible&&(n.setBounds((A-n.measuredWidth)/2,a,A,n.measuredHeight),n.setPrintStyles(),n.layoutContent(t),a+=n.height),null==h||h.push(n);for(let e of this._groupViews)r&&(o=this._headViews[e.hash],o.setBounds(i+8,a+2,o.measuredWidth,o.measuredHeight),a+=o.height+2),e.setBounds((A-e.measuredWidth)/2,a,A,e.measuredHeight),e.setPrintStyles(),e.headIndent=i+16,e.layoutContent(t),a+=e.height,null==h||h.push(e);n=this._detailView,r&&(o=this._headViews[n.hash],o.setBounds(i+8,a+2,o.measuredWidth,o.measuredHeight),a+=o.height+2),n.visible&&(n.setBounds((A-n.measuredWidth)/2,a,n.measuredWidth,n.measuredHeight),a+=n.height,n.setPrintStyles(),n.layoutContent(t)),null==h||h.push(n),this._designView&&this.$_layoutCols(this.doc,s)}$_getHeadHeight(){return this._headViews[this.hash].height+1}_setDesignContent(t){const e=this.$_getHeadHeight();this._designView.style.top=e+"px",this._designView.style.height=this.height-e+"px",t&&super._setDesignContent(t)}getLines(){return this._lines}$_prepareGroupViews(t,e){const r=t.groups.count,s=this._groupViews;for(;s.length>r;){const t=s.pop();t.dispose(),this.removeChild(t)}for(;s.length<r;){const t=new da(e,null);this.addChild(t),s.push(t),t.$_setMasterView(this._rowView)}}$_measureGroupViews(t,e,r,s){const A=t.groups,i=this._groupViews;let n=0;for(let t=0;t<A.count;t++)i[t].model=A.get(t),n+=i[t].measure(e,r,s).height;return n}$_getGroupViews(t,e,r,s){if(e){const A=[];for(let i of e){const e=this._groupViews[i.index];e.model=i,t._noValueCallback=!0;try{e.measure(t,r,s)}finally{t._noValueCallback=!1}(e.header.hasCells||e.footer.hasCells)&&A.push(e)}return A.length?A:null}}$_layoutCols(t,e){const r=this._colSpans;for(;r.length<e-1;){const e=t.createElement("span");e.className="rr-band-col",r.push(e),this._designView.appendChild(e)}const s=this.model.sectionGap,A=this.model.getColWidth(this.width),i=this.height-this.$_getHeadHeight();let n=A+s;for(let t=0;t<e-1;t++){const e=r[t];delete e.dataset.hidden,e.textContent=t+2+"",ot.setBounds(e,n,0,A,i),n+=A+s}for(let t=e-1;t<r.length;t++)r[t].dataset.hidden="1"}$_createPage(t){const e=t.createElement("div");return e.style.position="relative",this._rowContainer.appendChild(e),e}$_createTableContainer(t,e,r){const s=t.createElement("div");return ot.extend(s.style,{position:"absolute",left:e+"px",top:r+"px",width:this._colWidth+"px"}),s}$_createTable(t){const e=t.createElement("table"),r=t.createElement("tbody");return e.appendChild(this._bodyView.createColGroup(t,this._colWidth)),e.appendChild(r),e.style.position="absolute",So.setTableStyle(e),e}$_cloneEmptyRow(t){const e=t.cloneNode(!0),r=e.cells;e.style.height="0px";for(let t=0;t<r.length;t++){const e=r[t],s=e.style;e.colSpan=1,e.rowSpan=1,e.innerHTML="",s.height="0",s.border="none",s.margin="0",s.padding="0"}return e}$_addTable(t,e,r,s){const A=this.$_createTableContainer(t,r,s),i=this.$_createTable(t);return A.dataset._m_=this.model.shash,A.appendChild(i),e.appendChild(A),i}$_checkBlanks(t,e,r){const s=t.dataRow.blankItems;s&&s.forEach((s=>{t.dataRow.canBlank(s,e)&&r.makeBlank(s.row,s.col)}))}$_printLinear(t,e,r,s,A,i,n){function o(){L&&(f.forEach((t=>{const e=[];L.forEach((r=>{for(let s=0;s<r.count;s++)e.push(r.getCell(s,t))})),e[0].rowSpan=e.length;for(let t=1;t<e.length;t++)e[t].style.display="none"})),L=null)}function a(e,r){T=e.$_addTable(t,r,0,M),F=T.tBodies[0],k=!1}function h(s,A){o();const i=s.$_createPage(t);return e.yBand=M=0,A&&(H=e.y=e.bodyTop),(isNaN(R)||!m||R<=0)&&(R=_),x.length||(U=0),d>0&&r.pageNo>0&&r.repeatMasterRow&&function(t,e){const r=t.rowView.masterBandView,s=t.rowView.masterHeaderView,A=t.rowView.masterRowView,i=r.addMasterRow(e,s,A,M);M+=i,H+=i}(s,i),a(s,i),d>0&&r.pageNo>0&&r.repeatDetailHeader&&l(s),n.push(i),A&&r.pageNo++,i}function l(t){if(t._headerView.visible){S=new To(t._headerView._dom.firstChild);const e=S.height;e&&(S.appendTo(F,pa.HEADER_CLASS),M+=e,H+=e)}}function c(s){if(C||!isNaN(s._printedRows)){const t=s._footerView;t.resetStyleName(),r.clearSummary(),e.bandSummaryRuntime=r.summaryRuntime.setRows(C,s._masterRow).setRowCount(s._printedRows),t.measure(e,A,e.pageHeight),t.resize(t.measuredWidth,t.measuredHeight),t.setPrintStyles(),t.layoutContent(e)}const i=new To(s._footerView._dom.firstChild),n=i.height;n&&(H+n>N?(I=h(s,!0),F.appendChild(s.$_cloneEmptyRow(s._tempRow))):k&&(T=s.$_addTable(t,I,0,M),F=T.tBodies[0],k=!1),i.appendTo(F,pa.FOOTER_CLASS),M+=n,H+=n,H>N&&x.length,H>N&&(i.remove(),0===F.rows.length&&I.removeChild(T),I=h(s,!0),F.appendChild(s.$_cloneEmptyRow(s._tempRow)),i.appendTo(F,pa.FOOTER_CLASS),M+=n,H+=n)),e.yBand=M,e.y=H,e.h=e.bodyHeight-(H-e.bodyTop)}const u=s?s.rowCount:0,d=r.bandLevel,p=r.detail,g=this._grouped,f=g&&r.dataRow.getMergedColumns(),{rowsPerPage:_,breakRowsPerPage:m}=r.getRowsPerPage(),w=r.dataRow.rowCount,B=r.pr,C=d>0?[]:null,y=this._bodyView.endRowView;let v=this._bodyView.endMessageView;const{endRowCount:E,stopEndRow:b}=r.getEndRowCount(v?1:0),x=[];let P,I,S,T,F,R,O,Q,D,L,U=0,H=e.y,N=e.bodyBottom,M=e.yBand,k=!1,V=0,G=!1;for(0===d?I=h(this,!1):(I=n[n.length-1],r.pageNo++,R=_,a(this,I)),l(this);i.length>0||E>0&&U<E;){const s=i[0]&&i[0].$_grp,_=r.pr,m=M===e.yBand&&(0===d||0===r.pageNo);if(m?(H+V>N&&M>0?I=h(this,!0):k&&a(this,I),H!==e.bodyTop||0!==d&&0!==U||l(this)):k&&a(this,I),O=Q,O||(i.length>0?O=new ra(i,0,s?s.trows:w):v?O=v:(O=P=y.clone(),x.push(O))),m&&D&&O.first.$_brt!==ao)O=D.clone(),O.appendTo(F),M+=V=O.height,H+=V,R--;else if(O.appendTo(F),V=O.height,M+=V,H+=V,Q=null,H>N&&(d>0||_>0))O.detach(),x.pop(),Q=O,x.length&&b?U=E:I=h(this,!0);else{const s=!1;let a;O.isGroup&&!s&&o(),a=i.length?i.splice(0,O.count)[0]:v?v.first:P.first;const l=a.$_brt===oo;if(C&&l&&C.push(_),_>0&&!O.isGroup&&l&&this.$_checkBlanks(r,_,O),!a.$_brb&&l){const t=O.isGroup?_:_+1;r.setPrinting(e,t,O.count)}if(g&&a.$_brt===ao&&(D=O),f&&(O.isGroup&&!s||(L||(L=[]),L.push(O))),(l||v&&a===v.first||P&&a===P.first)&&(R--,U++,v&&a===v.first&&(v=null)),G=!1,R<=0&&(i.length>0||E<=0||U===E)&&r.pr<u&&(d>0&&r.repeatDetailFooter&&(c(this),G=!0),(i.length>0||G)&&_<u&&(I=h(this,!0))),O.isGroupFooter&&s&&o(),l&&p.count>0){e.y=H,e.h=e.bodyHeight-(H-e.bodyTop),e.yBand=M;for(let s=0;s<p.count;s++){const i=this._detailView.getChild(s),o=i.model;i.rowView.masterBandView=this,i.rowView.masterHeaderView=this._headerView.dom.firstChild,i.rowView.masterRowView=O,o.pageNo=0,o.masterValues=r.getValues(e,_,o._masterFlds),o.detailRows=o.rowsPerMaster;const a=o.getNextDetailRows(e)||[];i.printBand(t,e,A,n,a,_)}I=n[n.length-1],k=e.y!==H,H=e.y,M=e.yBand}}}if(0==d||r.pr>B){if(!G&&(c(this),G=!0,d>0&&_<Number.MAX_SAFE_INTEGER&&r.pr<u)){const r=this.$_createPage(t);e.yBand=M=0,e.y=e.bodyTop,H=e.bodyTop,n.push(r),a(this,r)}}else if(S){const t=S.height;S.remove(),M-=t,H-=t}G||(e.yBand=M,e.y=H,e.h=e.bodyHeight-(H-e.bodyTop))}$_printAcross(t,e,r,s,A,i,n,o,a){function h(t){let e=0;for(let r=0;r<A;r++){const s=new To(t._headerView._dom.firstChild);e=Math.max(e,s.height),e&&s.appendTo(b[r],pa.HEADER_CLASS)}m+=e,f=p+=e}const l=new To(this._footerView._dom.firstChild),c=l.height,u=r.dataRow.rowCount;let d=Math.min(A,o),p=e.y,g=e.bodyBottom,f=p,_=p,m=0;const w=new Array(A),B=new Array,C=new Array;let y,v,E;const b=[];let x;y=this.$_createPage(t),a.push(y);for(let e=0;e<A;e++)v=this.$_addTable(t,y,s[2*e],m),b.push(v.tBodies[0]);h(this);for(let t=0;t<d;t++)w[t]=[];for(;r.pr<o;){0===m&&h(this);let i=-1,l=0;B.length=0;for(let t=0;t<d&&r.pr<o;t++){x=C.pop()||new ra(n,r.tr,u),x.appendTo(b[t]),B.push(x);const s=x.height;if(p+s>g){i=t;break}w[t].push(x),r.setPrinting(e,r.pr+1,x.count),t===A-1&&(f+=s),l=Math.max(l,s)}if(i>=0){for(let t of B)t.detach(),C.push(t);f=p=e.bodyTop,m=0,i=-1,_=e.bodyTop,y=this.$_createPage(t),a.push(y),b.length=0;for(let e=0;e<A;e++)v=this.$_addTable(t,y,s[2*e],m),b.push(v.tBodies[0])}else p+=l,m+=l,C.length=0}let P=0;if(o>0)for(let t=0;t<d;t++)w[t].length&&P++;const I=r.footer.attachToBody,S=I?Math.min(P,A-1):A-1;if(I&&(E=b[S]),E||(E=this.$_addTable(t,y,s[2*S],p-_).tBodies[0]),c&&l.appendTo(E,pa.FOOTER_CLASS),I?p=Math.max(p,f+c):p+=c,p>g){l.remove(),y=this.$_createPage(t),a.push(y),b.length=0;for(let e=0;e<A;e++)v=this.$_addTable(t,y,s[2*e],m),b.push(v.tBodies[0]);E=b[S],c&&l.appendTo(E,pa.FOOTER_CLASS),p=e.bodyTop+c}e.y=p,e.h=e.bodyHeight-(p-e.bodyTop)}$_printDown(t,e,r,s,A,i,n,o,a){function h(e){for(let t=0;t<A;t++)m[t]=p,w[t]=[];v=0;for(let r=0;r<A;r++){y=e.$_addTable(t,C,s[2*r],_).tBodies[0],E[r]=y;const A=new To(e._headerView._dom.firstChild);A.appendTo(y,pa.HEADER_CLASS),v=Math.max(v,A.height)}_+=v,p+=v}const l=new To(this._footerView._dom.firstChild),c=l.height,u=r.dataRow.rowCount;let d=Math.min(A,o),p=e.y,g=e.bodyBottom,f=p,_=0;const m=new Array(A),w=new Array(A);let B,C,y,v=0;const E=new Array(A);C=this.$_createPage(t),a.push(C),h(this);do{for(let s=0;s<A;s++)for(0===_&&(0===s?h(this):(_+=v,p+=v));r.pr<o;){const i=B||new ra(n,r.tr,u);B=null,y=E[s],i.appendTo(y);const o=i.height;if(_+=o,p+=o,m[s]=p,w[s].push(i),p>g){i.detach(),B=i,w[s].pop(),_=0,s==A-1?(C=this.$_createPage(t),a.push(C),f=e.bodyTop):f=a.length>1?e.bodyTop:e.y,p=f;break}r.setPrinting(e,r.pr+1,i.count)}}while(r.pr<o);let b=0;if(o>1){let t=0;for(let e=0;e<m.length;e++)for(let r=0;r<w[e].length;r++)t+=w[e][r].height;const e=new Array(d);let r=Math.round(t/d);for(let t=0;t<d-1;t++){let s,A=w[t],i=0,n=0;for(;i<A.length;){if(n+=s=A[i].height,n>r){n-=s;break}i++}e[t]=n;const o=w[t+1];let a=0;for(;i<A.length;){const t=A[i];A.splice(i,1),o.splice(a++,0,t)}_=v;for(let e=0;e<o.length;e++)o[e].detach(),o[e].appendTo(E[t+1])}e[A-1]=0;for(let t=0;t<w[A-1].length;t++)e[A-1]+=w[A-1][t].height;for(let t=0;t<2;t++)(()=>{for(let t=d-1;t>0;t--)for(;e[t]>e[t-1];){const r=w[t],s=w[t-1],A=r.shift(),i=A.height;A.detach(),e[t]-=i,s.push(A),A.appendTo(E[t-1]),e[t-1]+=i}})();for(let t=0;t<A;t++){let e=w[t];if(m[t]=f+v,e.length>0){b=t+1;for(let r=0;r<e.length;r++)m[t]+=e[r].height}}}else{for(let t=0;t<A;t++)m[t]=f+v;b=o,b&&(m[0]+=w[0][0].height)}const x=r.footer.attachToBody,P=x?Math.min(b,A-1):A-1,I=x?m[P]:0;p=m[0];for(let t=1;t<d;t++)p=Math.max(p,m[t]);y=x?E[P]:this.$_addTable(t,C,s[2*P],p-f).tBodies[0],c&&l.appendTo(y,pa.FOOTER_CLASS),x?p=Math.max(p,I+c):p+=c,p>g&&(l.remove(),C=this.$_createPage(t),a.push(C),y=this.$_addTable(t,C,s[2*P],_=0).tBodies[0],c&&l.appendTo(y,pa.FOOTER_CLASS),p=e.bodyTop+c),e.y=p,e.h=e.bodyHeight-(p-e.bodyTop)}}pa.HEADER_CLASS="-rrp-tableband-header",pa.FOOTER_CLASS="-rrp-tableband-footer",pa.ROW_CLASS="-rrp-tableband-row";class ga extends no{constructor(t,e){super(t,e,"floatingContainerView")}_getCssSelector(){return"rr-floating-container rr-group-element"}get debugLabel(){return"floating"}get floating(){return!0}_needDesignBox(){return!0}_doMeasure(t,e,r,s){if(this.measureFixed||this._setModelSize(this.model,e,r,s,!0),super._doMeasure(t,e,r,s),this.childCount>0){const t=this.getChild(0);return new fn(t.measuredWidth,t.measuredHeight)}return new fn}_doAfterMeasure(t,e,r,s,A){!t.printing&&this.model.designHeight>0&&(A.height=this.model.designHeight),!t.printing&&this.model.designWidth>0&&(A.width=this.model.designWidth),super._doAfterMeasure(t,e,r,s,A),t.printing||(this._isEmpty()?this.dom.style.background="":(this._setDesignContent(!0),this.dom.style.background="#ff880010",this.dom.style.border=t.reportView.focusedElement===this.getChild(0)?"1px dashed #000":"1px dashed #55000080"))}_layoutItem(t,e,r,s,A,i,n){s=(i-e.width)/2,A=(n-e.height)/2,e.move(s,A),e.setPrintStyles()}}const fa="http://www.w3.org/2000/svg";let _a=0;class ma extends v{constructor(t,e){super(),this._transforms=[],this._defs=t,this._element=e}_doDispose(){this.clear(),super._doDispose()}get doc(){return it(this._element)||document}get element(){return this._element}init(t,e){return this._defs=t,this._element=e,this}clear(){this._defs=null,this._element=null,this._transforms=null}save(){this._transforms.push(this._trans),this._trans=""}restore(){this._trans=this._transforms.pop()}translate(t,e){this._trans+="translate("+t+","+e+")"}rotate(t){this._trans+="rotate("+180*t/Math.PI+")"}rotateAt(t,e,r){this._trans+="rotate("+180*t/Math.PI+","+e+",)"}scale(t,e){this._trans+="scale("+t+","+e+")"}clipRect(t){this.clip(t.x,t.y,t.width,t.height)}clip(t,e,r,s){const A=this.doc,i=_a++,n=A.createElementNS(fa,"clipPath");n.setAttributeNS(null,"id","clip"+i);const o=A.createElementNS(fa,"rect");o.x.baseVal.value=t,o.y.baseVal.value=e,o.width.baseVal.value=r,o.height.baseVal.value=s,n.appendChild(o),this._defs.appendChild(n)}line(t,e,r,s,A){const i=this.doc.createElementNS(fa,"line");return this._element.appendChild(i),i.x1.baseVal.value=e,i.y1.baseVal.value=r,i.x2.baseVal.value=s,i.y2.baseVal.value=A,this.$_setStyles(i,t),i}sline(t,e,r,s,A){const i=this.doc.createElementNS(fa,"line");return this._element.appendChild(i),i.x1.baseVal.valueAsString=e,i.y1.baseVal.valueAsString=r,i.x2.baseVal.valueAsString=s,i.y2.baseVal.valueAsString=A,this.$_setStyles(i,t),i}lines(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),s=1;s<e;s++)r[s-1]=arguments[s];if(null==r||r.length<4)return;const A=this.doc.createElementNS(fa,"polyline"),i=[];i.push(r[0]+","+r[1]);for(let t=2;t<r.length;t+=2)i.push(r[t]+","+r[t+1]);A.setAttributeNS(null,"points",i.join(" ")),this.$_setStyles(A,t),this._element.appendChild(A)}polygon(t,e){if(null==e||e.length<4)return;const r=this.doc.createElementNS(fa,"polygon"),s=[];s.push(e[0]+","+e[1]);for(let t=2;t<e.length;t+=2)s.push(e[t]+","+e[t+1]);return this._trans&&r.setAttributeNS(null,"transform",this._trans),r.setAttributeNS(null,"points",s.join(" ")),this.$_setStyles(r,t),this._element.appendChild(r),r}quadratic(t,e,r,s,A,i,n){const o=this.doc.createElementNS(fa,"path");o.setAttributeNS(null,"d",["M",e,r,"Q",s,A,i,n].join(" ")),this.$_setStyles(o,t),this._element.appendChild(o)}squadratic(t,e,r,s,A,i,n){const o=this.doc.createElementNS(fa,"path");o.setAttributeNS(null,"d",["M",e+"%",r+"%","Q",s+"%",A+"%",i+"%",n+"%"].join(" ")),this.$_setStyles(o,t),this._element.appendChild(o)}curve(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),s=1;s<e;s++)r[s-1]=arguments[s];const A=this.$_getCurvedLinePath(r,0,r.length-1);if(A){const e=this.doc.createElementNS(fa,"path");e.setAttributeNS(null,"d",A.join(" ")),this.$_setStyles(e,t),this._element.appendChild(e)}}scurve(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),s=1;s<e;s++)r[s-1]=arguments[s];const A=this.$_getCurvedLinePath(r,0,r.length-1);if(A){const e=this.doc.createElementNS(fa,"path");for(let t=0;t<A.length;t++)"number"==typeof A[t]&&(A[t]=A[t]+"%");e.setAttributeNS(null,"d",A.join(" ")),this.$_setStyles(e,t),this._element.appendChild(e)}}curveRange(t,e,r,s,A){if(s&&s.length>1&&A&&A.length>1&&(t||e)){let i=this.$_getCurvedLinePath(s,0,s.length/2-1,!0);if(i){i.push("L",A[A.length-2],[A.length-1]);const n=this.$_getCurvedLinePath(A,A.length/2-1,0,!1);n&&(i=i.concat(n)),i.push("L",s[0],s[1]);const o=this.doc.createElementNS(fa,"path");o.setAttributeNS(null,"d",i.join(" ")),this.$_fillOrStroke(o,t,e,r),this._element.appendChild(o)}}}rect(t,e){const r=this.doc.createElementNS(fa,"rect");r.x.baseVal.value=e.x,r.y.baseVal.value=e.y,r.width.baseVal.value=e.width,r.height.baseVal.value=e.height,this.$_setStyles(r,t),this._element.appendChild(r)}srect(t,e){const r=this.doc.createElementNS(fa,"rect");r.x.baseVal.valueAsString=e.x+"%",r.y.baseVal.valueAsString=e.y+"%",r.width.baseVal.valueAsString=e.width+"%",r.height.baseVal.valueAsString=e.height+"%",this.$_setStyles(r,t),this._element.appendChild(r)}bounds(t,e,r,s,A){const i=this.doc.createElementNS(fa,"rect");i.x.baseVal.value=e,i.y.baseVal.value=A<0?r+A:r,i.width.baseVal.value=s,i.height.baseVal.value=Math.abs(A),this.$_setStyles(i,t),this._element.appendChild(i)}pbounds(t,e,r,s,A){const i=this.doc.createElementNS(fa,"rect");i.x.baseVal.valueAsString=e+"%",i.y.baseVal.valueAsString=(A<0?r+A:r)+"%",i.width.baseVal.valueAsString=s+"%",i.height.baseVal.valueAsString=Math.abs(A)+"%",this.$_setStyles(i,t),this._element.appendChild(i)}sbounds(t,e,r,s,A){const i=this.doc.createElementNS(fa,"rect");i.x.baseVal.valueAsString=e,i.y.baseVal.valueAsString=r,i.width.baseVal.valueAsString=s,i.height.baseVal.valueAsString=A,this.$_setStyles(i,t),this._element.appendChild(i)}circle(t,e,r,s){const A=this.doc.createElementNS(fa,"circle");A.cx.baseVal.value=e,A.cy.baseVal.value=r,A.r.baseVal.value=s,this.$_setStyles(A,t),this._element.appendChild(A)}scircle(t,e,r,s){const A=this.doc.createElementNS(fa,"circle");A.cx.baseVal.valueAsString=e,A.cy.baseVal.valueAsString=r,A.r.baseVal.valueAsString=s,this.$_setStyles(A,t),this._element.appendChild(A)}circleRect(t,e,r,s,A,i){const n=this.doc.createElementNS(fa,"circle"),o=r+A/2,a=s+i/2,h=Math.min(A,i)/2;n.cx.baseVal.value=o,n.cy.baseVal.value=a,n.r.baseVal.value=h,this.$_setStyles(n,t),this._element.appendChild(n)}scircleRect(t,e,r,s,A){const i=this.doc.createElementNS(fa,"circle"),n=e+s/2,o=r+A/2,a=Math.min(s,A)/2;i.cx.baseVal.valueAsString=n+"%",i.cy.baseVal.valueAsString=o+"%",i.r.baseVal.valueAsString=a+"%",this.$_setStyles(i,t),this._element.appendChild(i)}ellipse(t,e,r,s,A){const i=this.doc.createElementNS(fa,"ellipse");return i.cx.baseVal.value=e,i.cy.baseVal.value=r,i.rx.baseVal.value=s,i.ry.baseVal.value=A,this.$_setStyles(i,t),this._element.appendChild(i),i}sellipse(t,e,r,s,A){const i=this.doc.createElementNS(fa,"ellipse");i.cx.baseVal.valueAsString=e+"%",i.cy.baseVal.valueAsString=r+"%",i.rx.baseVal.valueAsString=s+"%",i.ry.baseVal.valueAsString=A+"%",this.$_setStyles(i,t),this._element.appendChild(i)}ellipseRect(t,e,r,s,A){const i=this.doc.createElementNS(fa,"ellipse"),n=s/2,o=A/2;return i.cx.baseVal.value=e+n,i.cy.baseVal.value=r+o,i.rx.baseVal.value=n,i.ry.baseVal.value=o,this.$_setStyles(i,t),this._element.appendChild(i),i}sellipseRect(t,e,r,s,A){const i=this.doc.createElementNS(fa,"ellipse"),n=s/2,o=A/2;i.cx.baseVal.valueAsString=e+n+"%",i.cy.baseVal.valueAsString=r+o+"%",i.rx.baseVal.valueAsString=n+"%",i.ry.baseVal.valueAsString=o+"%",this.$_setStyles(i,t),this._element.appendChild(i)}text(t,e,r,s,A,i,n,o,a){const h=this.doc.createElementNS(fa,"text");e=e||"Verdana",h.setAttributeNS(null,"y",o+""),h.setAttributeNS(null,"dy","top"),h.setAttributeNS(null,"x",n+""),h.setAttributeNS(null,"text-anchor",a),h.setAttributeNS(null,"font-family",e),h.setAttributeNS(null,"font-size",r+""),A&&h.setAttributeNS(null,"text-decoration",A),h[ot.TextProp]=i,this.$_setStyles(h,t),this._element.appendChild(h)}stext(t,e,r,s,A){const i=this.doc.createElementNS(fa,"text");i.setAttributeNS(null,"y",s+"%"),i.setAttributeNS(null,"dy","top"),i.setAttributeNS(null,"x",r+"%"),i[ot.TextProp]=e,this.$_setStyles(i,t),this._element.appendChild(i)}$_setStyles(t,e){"string"==typeof e?t.setAttribute("class",e):e&&ot.extend(t.style,e)}$_stroke(t,e,r){t.style.fill="none",t.style.stroke=e,isNaN(r)||(t.style.strokeWidth=r+"")}$_fill(t,e){t.style.fill=e}$_fillOrStroke(t,e,r,s){r&&(t.style.stroke=r,isNaN(s)||(t.style.strokeWidth=s+"")),t.style.fill=e||"none"}$_getCurvedLinePath(t,e,r){let s=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(t&&r!=e&&t.length/2>r){const A=[],i=e>r?-1:1;let n=e;if(s&&A.push("M",t[2*n],t[2*n+1]),2==Math.abs(r-e))return A.push("L",t[2*(n+i)],t[2*(n+i)+1]),A;const o=.25,a={x:0,y:0},h={x:0,y:0},l={x:0,y:0},c={x:t[2*(n+i)]-t[2*n],y:t[2*(n+i)+1]-t[2*n+1]};let u={x:0,y:0};const d={x:0,y:0},p={x:0,y:0},g={x:0,y:0};let f=Math.sqrt(c.x*c.x+c.y*c.y);c.x/=f,c.y/=f;let _=t[2*(n+i)]-t[2*n],m=t[2*n],w=t[2*n+1];for(n+=i;n!=r;n+=i){l.x=-c.x,l.y=-c.y,c.x=t[2*(n+i)]-t[2*n],c.y=t[2*(n+i)]-t[2*n+1],f=Math.sqrt(c.x*c.x+c.y*c.y),c.x/=f,c.y/=f,c.x<l.x?(u.x=l.x-c.x,u.y=l.y-c.y):(u.x=c.x-l.x,u.y=c.y-l.y);const r=Math.sqrt(u.x*u.x+u.y*u.y);u.x/=r,u.y/=r,l.y*c.y>=0&&(u={x:1,y:0}),a.x=-u.x*_*o,a.y=-u.y*_*o,n==i+e?A.push("Q",t[2*n]+a.x,t[2*n+1]+a.y,t[2*n],t[2*n+1]):(d.x=m+h.x,d.y=w+h.y,p.x=t[2*n]+a.x,p.y=t[2*n+1]+a.y,g.x=(d.x+p.x)/2,g.y=(d.y+p.y)/2,A.push("Q",d.x,d.y,g.x,g.y),A.push("Q",p.x,p.y,t[2*n],t[2*n+1])),_=t[2*(n+i)]-t[2*n],h.x=u.x*_*o,h.y=u.y*_*o,m=t[2*n],w=t[2*n+1]}return A.push("Q",m+h.x,w+h.y,t[2*n],t[2*n+1]),A}return null}}class wa extends v{constructor(t){super();const e=it(t),r=this._element=e.createElementNS(fa,"svg"),s=r.style,A=this._defs=e.createElementNS(fa,"defs");r.appendChild(A),s.background="",s.border="none",s.pointerEvents="none",t.appendChild(r),this._renderer=new ma(this._defs)}static createSVG(t,e,r){const s=it(t),A=s.createElementNS(fa,"svg");return A.appendChild(s.createElementNS(fa,"defs")),A.appendChild(s.createElementNS(fa,"g")),e&&A.setAttribute("class","rr-rating-shape"),ot.extend(A.style,{background:"",border:"none",pointerEvents:"none"}),r&&ot.extend(A.style,r),t.appendChild(A),A}static renderSVG(t,e,r){const s=e.lastElementChild,A=this._renderer.init(e.firstChild,s);ot.clearChildren(s),r.call(t,e,A,e.clientWidth,e.clientHeight),A.clear()}static setAttr(t,e,r){t.setAttribute(e,r)}static setStyle(t,e,r){t.style[e]=r}static prepareExport(t,e,r){t.attributes.viewBox||t.setAttribute("viewBox",[0,0,e,r].join(" "));const s=t.style;if(!s.fill||!s.stroke){const e=getComputedStyle(t);s.fill||(s.fill=e.fill),s.stroke||(s.stroke=e.stroke)}}_doDispose(){this._renderer=this._renderer.dispose(),this._element.parentElement.removeChild(this._element),this._element=this._defs=null,super._doDispose()}get element(){return this._element}render(t){this._clear(),t?t.call(this,this._renderer,this._element.clientWidth,this._element.clientHeight):this._doRender(this._renderer,this._element.clientWidth,this._element.clientHeight)}_clear(){this._element.childElementCount>1&&this._element.removeChild(this._element.lastElementChild);const t=it(this._element).createElementNS(fa,"g");this._element.appendChild(t),this._renderer._element=t}_doRender(t,e,r){}}wa._renderer=new ma;class Ba extends v{constructor(){super()}_doDispose(){super._doDispose()}get value(){return this._value}set value(t){if(t!=this._value){this._value=t;try{this._error=null,this._parse(t)}catch(t){this._error=t}}}get error(){return this._error}render(t,e){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];this._doRender(t,e,r)}}class Ca extends Ba{constructor(){super(),this.integralBar=!0,this.minBarWidth=1,this.maxBarWidth=0,this.barWidth=0}_doDispose(){super._doDispose()}_doRender(t,e,r){let s=this._getBarLength();if(s<1)return;let A=this.barWidth;A<=0&&(A=this.integralBar?Math.floor(e.width/s):e.width/s,A=Math.max(this.minBarWidth,A),this.maxBarWidth>0&&(A=Math.min(this.maxBarWidth,A))),s*=A,e.x+=(e.width-s)/2,this.integralBar&&(e.x=Math.floor(e.x)),this._drawBars(t,this.barStyle,r,e.x,e.y,A,e.height)}}const ya=[2171426,2236706,2236961,1184291,1184546,1249826,1188371,1188626,1253906,2232851,2233106,2298386,1122866,1188146,1188401,1126946,1192226,1192481,2241041,2232626,2232881,2175506,2240786,3219761,3215906,3281186,3281441,3219986,3285266,3285521,2171171,2171681,2302241,1119011,1249571,1250081,1123091,1253651,1254161,2167571,2298131,2298641,1122611,1123121,1253681,1126691,1127201,1257761,3223841,2167601,2298161,2175251,2175761,2175281,3215651,3216161,3346721,3219731,3220241,3350801,3227921,2233361,4395281,1118756,1119266,1184036,1184801,1315106,1315361,1122836,1123346,1188116,1188881,1319186,1319441,2363921,2232596,4272401,2363666,1261841,1118786,1184066,1184321,1131026,1196306,1196561,4264466,4329746,4330001,2171201,2179361,4268321,1118531,1119041,1249601,1130771,1131281,4264211,4264721,1126721,1130801,3215681,4264241,2167826,2167316,2167346,36901138],va=[103,104,105],Ea=[251658240,15728640,983040,61440,3840,240,15];class ba extends Ca{constructor(){super(),this.quietZoneWidth=10}_doDispose(){super._doDispose()}_parse(t){this._weights=[];let e=t?t.length:0;if(e<1)return;const r=this.$_detectType(t);2==r&&e%2==1&&(t="0"+t,e++);let s=va[r],A=ya[s],i=s;if(this._weights.push(A),2==r)for(let n=0;n<e;n+=2){let e=t.substr(n,2);s=parseInt(e),s=this.$_convert(r,s),A=ya[s],this._weights.push(A),i+=s*(n+1)}else for(let n=0;n<e;n++)s=t.charCodeAt(n),s=this.$_convert(r,s),A=ya[s],this._weights.push(A),i+=s*(n+1);i%=103,this._weights.push(ya[i]),this._weights.push(ya[106])}_getBarLength(){return this.quietZoneWidth+11*(this._weights.length-1)+13+this.quietZoneWidth}_drawBars(t,e,r,s,A,i,n){s+=10*i;const o=this._weights.length-1;let a;for(let h=0;h<o;h++){a=this._weights[h];for(let o=0;o<6;o++){let h=(a&Ea[o+1])>>4*(5-o);h*=i,o%2==0&&(r?(this.integralBar,t.sbounds(e,s+"",A+"%",h+"",n+"%")):(this.integralBar,t.bounds(e,s,A,h,n))),s+=h}}a=this._weights[o];for(let o=0;o<7;o++){let h=(a&Ea[o])>>4*(6-o);h*=i,o%2==0&&(r?(this.integralBar,t.sbounds(e,s+"",A+"%",h+"",n+"%")):(this.integralBar,t.bounds(e,s,A,h,n))),s+=h}}$_convert(t,e){switch(t){case 0:if(e>=0&&e<32)return e+64;if(e>=32&&e<96)return e-32;case 1:if(e>=32&&e<128)return e-32;case 2:if(e>=0&&e<=99)return e}throw new Error("Invalid code128 charactor: "+e)}$_detectType(t){let e=/^[0-9]+$/;return e.test(t)?2:(e=/[a-z]/,e.test(t)?1:0)}}const xa={0:"nnnwwnwnn",1:"wnnwnnnnw",2:"nnwwnnnnw",3:"wnwwnnnnn",4:"nnnwwnnnw",5:"wnnwwnnnn",6:"nnwwwnnnn",7:"nnnwnnwnw",8:"wnnwnnwnn",9:"nnwwnnwnn",A:"wnnnnwnnw",B:"nnwnnwnnw",C:"wnwnnwnnn",D:"nnnnwwnnw",E:"wnnnwwnnn",F:"nnwnwwnnn",G:"nnnnnwwnw",H:"wnnnnwwnn",I:"nnwnnwwnn",J:"nnnnwwwnn",K:"wnnnnnnww",L:"nnwnnnnww",M:"wnwnnnnwn",N:"nnnnwnnww",O:"wnnnwnnwn",P:"nnwnwnnwn",Q:"nnnnnnwww",R:"wnnnnnwwn",S:"nnwnnnwwn",T:"nnnnwnwwn",U:"wwnnnnnnw",V:"nwwnnnnnw",W:"wwwnnnnnn",X:"nwnnwnnnw",Y:"wwnnwnnnn",Z:"nwwnwnnnn","-":"nwnnnnwnw",".":"wwnnnnwnn"," ":"nwwnnnwnn",$:"nwnwnwnnn","/":"nwnwnnnwn","+":"nwnnnwnwn","%":"nnnwnwnwn","*":"nwnnwnwnn"};class Pa extends Ca{constructor(){super(),this._wideWidth=3}_doDispose(){super._doDispose()}_parse(t){if(this._codes=[],!t)return;const e=t.length;this._codes.push(xa["*"]);for(let r=0;r<e;r++){const e=t.charAt(r),s=xa[e];if(!s)throw new Error("Invalid Code39 character: "+e);this._codes.push(s)}this._codes.push(xa["*"])}_getBarLength(){const t=this._codes.length;return t*(3*this._wideWidth+6)+(t-1)}_drawBars(t,e,r,s,A,i,n){const o=this._codes.length;if(o>2)for(let a=0;a<o;a++){const h=this._codes[a];for(let o=0;o<9;o++){let a="n"==h.charAt(o)?1:this._wideWidth;a*=i,o%2==0&&(r?(this.integralBar,t.sbounds(e,s+"",A+"%",a+"",n+"%")):(this.integralBar,t.bounds(e,s,A,a,n))),s+=a}a<o-1&&(s+=i)}}}class Ia extends io{constructor(t,e){super(t,e,"barcodeItemView"),this.$_render=(t,e,r,s)=>{const A=this.$_getText(t,this.model);A&&(this._barcode.value=A,this._isTesting()||this._barcode.render(e,new x(0,0,r,100)))}}_doDispose(){super._doDispose()}_getCssSelector(){return"rr-barcode rr-item-element"}get debugLabel(){return""}_initDom(t,e){super._initDom(t,e),this._svg=wa.createSVG(e);const r=this._svg.style;r.left="0px",r.top="0px",r.width="100%",r.height="100%",this._svg.setAttribute("class","rr-barcode-bar")}_doMeasure(t,e,r,s){const A=this.model,i=this._svg;this._setModelSize(A,e,r,s,!0),this.$_prepareBarcode(A),wa.renderSVG(t,i,this.$_render);const n=e.offsetWidth,o=e.offsetHeight;return t.printing&&wa.prepareExport(this._svg,n,o),fn.create(n,o)}_setStyles(t,e,r){super._setStyles(t,e,r),"fill"in e&&(this._svg.style.fill=e.fill)}$_prepareBarcode(t){t.format===si.CODE39?this._barcode instanceof Pa||(this._barcode=new Pa):this._barcode instanceof ba||(this._barcode=new ba)}$_getText(t,e){let r="";return e.value?r=t.printing?this.getPrintValue(t,e):e.value:e.text&&(r=e.text),r&&e.convertText(r)}}var Sa="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Ta(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Fa(t){var e={exports:{}};return t(e,e.exports),e.exports}var Ra=Fa((function(t,e){self,t.exports=(()=>{var t={192:(t,e)=>{var r,s,A=function(){var t=function(t,e){var r=t,s=n[e],A=null,i=0,a=null,f=[],_={},w=function(t,e){A=function(t){for(var e=new Array(t),r=0;r<t;r+=1){e[r]=new Array(t);for(var s=0;s<t;s+=1)e[r][s]=null}return e}(i=4*r+17),B(0,0),B(i-7,0),B(0,i-7),y(),C(),E(t,e),r>=7&&v(t),null==a&&(a=x(r,s,f)),b(a,e)},B=function(t,e){for(var r=-1;r<=7;r+=1)if(!(t+r<=-1||i<=t+r))for(var s=-1;s<=7;s+=1)e+s<=-1||i<=e+s||(A[t+r][e+s]=0<=r&&r<=6&&(0==s||6==s)||0<=s&&s<=6&&(0==r||6==r)||2<=r&&r<=4&&2<=s&&s<=4)},C=function(){for(var t=8;t<i-8;t+=1)null==A[t][6]&&(A[t][6]=t%2==0);for(var e=8;e<i-8;e+=1)null==A[6][e]&&(A[6][e]=e%2==0)},y=function(){for(var t=o.getPatternPosition(r),e=0;e<t.length;e+=1)for(var s=0;s<t.length;s+=1){var i=t[e],n=t[s];if(null==A[i][n])for(var a=-2;a<=2;a+=1)for(var h=-2;h<=2;h+=1)A[i+a][n+h]=-2==a||2==a||-2==h||2==h||0==a&&0==h}},v=function(t){for(var e=o.getBCHTypeNumber(r),s=0;s<18;s+=1){var n=!t&&1==(e>>s&1);A[Math.floor(s/3)][s%3+i-8-3]=n}for(s=0;s<18;s+=1)n=!t&&1==(e>>s&1),A[s%3+i-8-3][Math.floor(s/3)]=n},E=function(t,e){for(var r=s<<3|e,n=o.getBCHTypeInfo(r),a=0;a<15;a+=1){var h=!t&&1==(n>>a&1);a<6?A[a][8]=h:a<8?A[a+1][8]=h:A[i-15+a][8]=h}for(a=0;a<15;a+=1)h=!t&&1==(n>>a&1),a<8?A[8][i-a-1]=h:a<9?A[8][15-a-1+1]=h:A[8][15-a-1]=h;A[i-8][8]=!t},b=function(t,e){for(var r=-1,s=i-1,n=7,a=0,h=o.getMaskFunction(e),l=i-1;l>0;l-=2)for(6==l&&(l-=1);;){for(var c=0;c<2;c+=1)if(null==A[s][l-c]){var u=!1;a<t.length&&(u=1==(t[a]>>>n&1)),h(s,l-c)&&(u=!u),A[s][l-c]=u,-1==(n-=1)&&(a+=1,n=7)}if((s+=r)<0||i<=s){s-=r,r=-r;break}}},x=function(t,e,r){for(var s=l.getRSBlocks(t,e),A=c(),i=0;i<r.length;i+=1){var n=r[i];A.put(n.getMode(),4),A.put(n.getLength(),o.getLengthInBits(n.getMode(),t)),n.write(A)}var a=0;for(i=0;i<s.length;i+=1)a+=s[i].dataCount;if(A.getLengthInBits()>8*a)throw"code length overflow. ("+A.getLengthInBits()+">"+8*a+")";for(A.getLengthInBits()+4<=8*a&&A.put(0,4);A.getLengthInBits()%8!=0;)A.putBit(!1);for(;!(A.getLengthInBits()>=8*a||(A.put(236,8),A.getLengthInBits()>=8*a));)A.put(17,8);return function(t,e){for(var r=0,s=0,A=0,i=new Array(e.length),n=new Array(e.length),a=0;a<e.length;a+=1){var l=e[a].dataCount,c=e[a].totalCount-l;s=Math.max(s,l),A=Math.max(A,c),i[a]=new Array(l);for(var u=0;u<i[a].length;u+=1)i[a][u]=255&t.getBuffer()[u+r];r+=l;var d=o.getErrorCorrectPolynomial(c),p=h(i[a],d.getLength()-1).mod(d);for(n[a]=new Array(d.getLength()-1),u=0;u<n[a].length;u+=1){var g=u+p.getLength()-n[a].length;n[a][u]=g>=0?p.getAt(g):0}}var f=0;for(u=0;u<e.length;u+=1)f+=e[u].totalCount;var _=new Array(f),m=0;for(u=0;u<s;u+=1)for(a=0;a<e.length;a+=1)u<i[a].length&&(_[m]=i[a][u],m+=1);for(u=0;u<A;u+=1)for(a=0;a<e.length;a+=1)u<n[a].length&&(_[m]=n[a][u],m+=1);return _}(A,s)};_.addData=function(t,e){var r=null;switch(e=e||"Byte"){case"Numeric":r=u(t);break;case"Alphanumeric":r=d(t);break;case"Byte":r=p(t);break;case"Kanji":r=g(t);break;default:throw"mode:"+e}f.push(r),a=null},_.isDark=function(t,e){if(t<0||i<=t||e<0||i<=e)throw t+","+e;return A[t][e]},_.getModuleCount=function(){return i},_.make=function(){if(r<1){for(var t=1;t<40;t++){for(var e=l.getRSBlocks(t,s),A=c(),i=0;i<f.length;i++){var n=f[i];A.put(n.getMode(),4),A.put(n.getLength(),o.getLengthInBits(n.getMode(),t)),n.write(A)}var a=0;for(i=0;i<e.length;i++)a+=e[i].dataCount;if(A.getLengthInBits()<=8*a)break}r=t}w(!1,function(){for(var t=0,e=0,r=0;r<8;r+=1){w(!0,r);var s=o.getLostPoint(_);(0==r||t>s)&&(t=s,e=r)}return e}())},_.createTableTag=function(t,e){t=t||2;var r="";r+='<table style="',r+=" border-width: 0px; border-style: none;",r+=" border-collapse: collapse;",r+=" padding: 0px; margin: "+(e=void 0===e?4*t:e)+"px;",r+='">',r+="<tbody>";for(var s=0;s<_.getModuleCount();s+=1){r+="<tr>";for(var A=0;A<_.getModuleCount();A+=1)r+='<td style="',r+=" border-width: 0px; border-style: none;",r+=" border-collapse: collapse;",r+=" padding: 0px; margin: 0px;",r+=" width: "+t+"px;",r+=" height: "+t+"px;",r+=" background-color: ",r+=_.isDark(s,A)?"#000000":"#ffffff",r+=";",r+='"/>';r+="</tr>"}return(r+="</tbody>")+"</table>"},_.createSvgTag=function(t,e,r,s){var A={};"object"==typeof arguments[0]&&(t=(A=arguments[0]).cellSize,e=A.margin,r=A.alt,s=A.title),t=t||2,e=void 0===e?4*t:e,(r="string"==typeof r?{text:r}:r||{}).text=r.text||null,r.id=r.text?r.id||"qrcode-description":null,(s="string"==typeof s?{text:s}:s||{}).text=s.text||null,s.id=s.text?s.id||"qrcode-title":null;var i,n,o,a,h=_.getModuleCount()*t+2*e,l="";for(a="l"+t+",0 0,"+t+" -"+t+",0 0,-"+t+"z ",l+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',l+=A.scalable?"":' width="'+h+'px" height="'+h+'px"',l+=' viewBox="0 0 '+h+" "+h+'" ',l+=' preserveAspectRatio="xMinYMin meet"',l+=s.text||r.text?' role="img" aria-labelledby="'+P([s.id,r.id].join(" ").trim())+'"':"",l+=">",l+=s.text?'<title id="'+P(s.id)+'">'+P(s.text)+"</title>":"",l+=r.text?'<description id="'+P(r.id)+'">'+P(r.text)+"</description>":"",l+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',l+='<path d="',n=0;n<_.getModuleCount();n+=1)for(o=n*t+e,i=0;i<_.getModuleCount();i+=1)_.isDark(n,i)&&(l+="M"+(i*t+e)+","+o+a);return(l+='" stroke="transparent" fill="black"/>')+"</svg>"},_.createDataURL=function(t,e){t=t||2,e=void 0===e?4*t:e;var r=_.getModuleCount()*t+2*e,s=e,A=r-e;return m(r,r,(function(e,r){if(s<=e&&e<A&&s<=r&&r<A){var i=Math.floor((e-s)/t),n=Math.floor((r-s)/t);return _.isDark(n,i)?0:1}return 1}))},_.createImgTag=function(t,e,r){t=t||2,e=void 0===e?4*t:e;var s=_.getModuleCount()*t+2*e,A="";return A+="<img",A+=' src="',A+=_.createDataURL(t,e),A+='"',A+=' width="',A+=s,A+='"',A+=' height="',A+=s,A+='"',r&&(A+=' alt="',A+=P(r),A+='"'),A+"/>"};var P=function(t){for(var e="",r=0;r<t.length;r+=1){var s=t.charAt(r);switch(s){case"<":e+="&lt;";break;case">":e+="&gt;";break;case"&":e+="&amp;";break;case'"':e+="&quot;";break;default:e+=s}}return e};return _.createASCII=function(t,e){if((t=t||1)<2)return function(t){t=void 0===t?2:t;var e,r,s,A,i,n=1*_.getModuleCount()+2*t,o=t,a=n-t,h={"██":"█","█ ":"▀"," █":"▄"," ":" "},l={"██":"▀","█ ":"▀"," █":" "," ":" "},c="";for(e=0;e<n;e+=2){for(s=Math.floor((e-o)/1),A=Math.floor((e+1-o)/1),r=0;r<n;r+=1)i="█",o<=r&&r<a&&o<=e&&e<a&&_.isDark(s,Math.floor((r-o)/1))&&(i=" "),o<=r&&r<a&&o<=e+1&&e+1<a&&_.isDark(A,Math.floor((r-o)/1))?i+=" ":i+="█",c+=t<1&&e+1>=a?l[i]:h[i];c+="\n"}return n%2&&t>0?c.substring(0,c.length-n-1)+Array(n+1).join("▀"):c.substring(0,c.length-1)}(e);t-=1,e=void 0===e?2*t:e;var r,s,A,i,n=_.getModuleCount()*t+2*e,o=e,a=n-e,h=Array(t+1).join("██"),l=Array(t+1).join(" "),c="",u="";for(r=0;r<n;r+=1){for(A=Math.floor((r-o)/t),u="",s=0;s<n;s+=1)i=1,o<=s&&s<a&&o<=r&&r<a&&_.isDark(A,Math.floor((s-o)/t))&&(i=0),u+=i?h:l;for(A=0;A<t;A+=1)c+=u+"\n"}return c.substring(0,c.length-1)},_.renderTo2dContext=function(t,e){e=e||2;for(var r=_.getModuleCount(),s=0;s<r;s++)for(var A=0;A<r;A++)t.fillStyle=_.isDark(s,A)?"black":"white",t.fillRect(s*e,A*e,e,e)},_};t.stringToBytes=(t.stringToBytesFuncs={default:function(t){for(var e=[],r=0;r<t.length;r+=1){var s=t.charCodeAt(r);e.push(255&s)}return e}}).default,t.createStringToBytes=function(t,e){var r=function(){for(var r=_(t),s=function(){var t=r.read();if(-1==t)throw"eof";return t},A=0,i={};;){var n=r.read();if(-1==n)break;var o=s(),a=s()<<8|s();i[String.fromCharCode(n<<8|o)]=a,A+=1}if(A!=e)throw A+" != "+e;return i}(),s="?".charCodeAt(0);return function(t){for(var e=[],A=0;A<t.length;A+=1){var i=t.charCodeAt(A);if(i<128)e.push(i);else{var n=r[t.charAt(A)];"number"==typeof n?(255&n)==n?e.push(n):(e.push(n>>>8),e.push(255&n)):e.push(s)}}return e}};var e,r,s,A,i,n={L:1,M:0,Q:3,H:2},o=(e=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],r=1335,s=7973,i=function(t){for(var e=0;0!=t;)e+=1,t>>>=1;return e},(A={}).getBCHTypeInfo=function(t){for(var e=t<<10;i(e)-i(r)>=0;)e^=r<<i(e)-i(r);return 21522^(t<<10|e)},A.getBCHTypeNumber=function(t){for(var e=t<<12;i(e)-i(s)>=0;)e^=s<<i(e)-i(s);return t<<12|e},A.getPatternPosition=function(t){return e[t-1]},A.getMaskFunction=function(t){switch(t){case 0:return function(t,e){return(t+e)%2==0};case 1:return function(t,e){return t%2==0};case 2:return function(t,e){return e%3==0};case 3:return function(t,e){return(t+e)%3==0};case 4:return function(t,e){return(Math.floor(t/2)+Math.floor(e/3))%2==0};case 5:return function(t,e){return t*e%2+t*e%3==0};case 6:return function(t,e){return(t*e%2+t*e%3)%2==0};case 7:return function(t,e){return(t*e%3+(t+e)%2)%2==0};default:throw"bad maskPattern:"+t}},A.getErrorCorrectPolynomial=function(t){for(var e=h([1],0),r=0;r<t;r+=1)e=e.multiply(h([1,a.gexp(r)],0));return e},A.getLengthInBits=function(t,e){if(1<=e&&e<10)switch(t){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+t}else if(e<27)switch(t){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+t}else{if(!(e<41))throw"type:"+e;switch(t){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+t}}},A.getLostPoint=function(t){for(var e=t.getModuleCount(),r=0,s=0;s<e;s+=1)for(var A=0;A<e;A+=1){for(var i=0,n=t.isDark(s,A),o=-1;o<=1;o+=1)if(!(s+o<0||e<=s+o))for(var a=-1;a<=1;a+=1)A+a<0||e<=A+a||0==o&&0==a||n==t.isDark(s+o,A+a)&&(i+=1);i>5&&(r+=3+i-5)}for(s=0;s<e-1;s+=1)for(A=0;A<e-1;A+=1){var h=0;t.isDark(s,A)&&(h+=1),t.isDark(s+1,A)&&(h+=1),t.isDark(s,A+1)&&(h+=1),t.isDark(s+1,A+1)&&(h+=1),0!=h&&4!=h||(r+=3)}for(s=0;s<e;s+=1)for(A=0;A<e-6;A+=1)t.isDark(s,A)&&!t.isDark(s,A+1)&&t.isDark(s,A+2)&&t.isDark(s,A+3)&&t.isDark(s,A+4)&&!t.isDark(s,A+5)&&t.isDark(s,A+6)&&(r+=40);for(A=0;A<e;A+=1)for(s=0;s<e-6;s+=1)t.isDark(s,A)&&!t.isDark(s+1,A)&&t.isDark(s+2,A)&&t.isDark(s+3,A)&&t.isDark(s+4,A)&&!t.isDark(s+5,A)&&t.isDark(s+6,A)&&(r+=40);var l=0;for(A=0;A<e;A+=1)for(s=0;s<e;s+=1)t.isDark(s,A)&&(l+=1);return r+Math.abs(100*l/e/e-50)/5*10},A),a=function(){for(var t=new Array(256),e=new Array(256),r=0;r<8;r+=1)t[r]=1<<r;for(r=8;r<256;r+=1)t[r]=t[r-4]^t[r-5]^t[r-6]^t[r-8];for(r=0;r<255;r+=1)e[t[r]]=r;return{glog:function(t){if(t<1)throw"glog("+t+")";return e[t]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return t[e]}}}();function h(t,e){if(void 0===t.length)throw t.length+"/"+e;var r=function(){for(var r=0;r<t.length&&0==t[r];)r+=1;for(var s=new Array(t.length-r+e),A=0;A<t.length-r;A+=1)s[A]=t[A+r];return s}(),s={getAt:function(t){return r[t]},getLength:function(){return r.length},multiply:function(t){for(var e=new Array(s.getLength()+t.getLength()-1),r=0;r<s.getLength();r+=1)for(var A=0;A<t.getLength();A+=1)e[r+A]^=a.gexp(a.glog(s.getAt(r))+a.glog(t.getAt(A)));return h(e,0)},mod:function(t){if(s.getLength()-t.getLength()<0)return s;for(var e=a.glog(s.getAt(0))-a.glog(t.getAt(0)),r=new Array(s.getLength()),A=0;A<s.getLength();A+=1)r[A]=s.getAt(A);for(A=0;A<t.getLength();A+=1)r[A]^=a.gexp(a.glog(t.getAt(A))+e);return h(r,0).mod(t)}};return s}var l=function(){var t=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],e=function(t,e){var r={};return r.totalCount=t,r.dataCount=e,r},r={getRSBlocks:function(r,s){var A=function(e,r){switch(r){case n.L:return t[4*(e-1)+0];case n.M:return t[4*(e-1)+1];case n.Q:return t[4*(e-1)+2];case n.H:return t[4*(e-1)+3];default:return}}(r,s);if(void 0===A)throw"bad rs block @ typeNumber:"+r+"/errorCorrectionLevel:"+s;for(var i=A.length/3,o=[],a=0;a<i;a+=1)for(var h=A[3*a+0],l=A[3*a+1],c=A[3*a+2],u=0;u<h;u+=1)o.push(e(l,c));return o}};return r}(),c=function(){var t=[],e=0,r={getBuffer:function(){return t},getAt:function(e){var r=Math.floor(e/8);return 1==(t[r]>>>7-e%8&1)},put:function(t,e){for(var s=0;s<e;s+=1)r.putBit(1==(t>>>e-s-1&1))},getLengthInBits:function(){return e},putBit:function(r){var s=Math.floor(e/8);t.length<=s&&t.push(0),r&&(t[s]|=128>>>e%8),e+=1}};return r},u=function(t){var e=t,r={getMode:function(){return 1},getLength:function(t){return e.length},write:function(t){for(var r=e,A=0;A+2<r.length;)t.put(s(r.substring(A,A+3)),10),A+=3;A<r.length&&(r.length-A==1?t.put(s(r.substring(A,A+1)),4):r.length-A==2&&t.put(s(r.substring(A,A+2)),7))}},s=function(t){for(var e=0,r=0;r<t.length;r+=1)e=10*e+A(t.charAt(r));return e},A=function(t){if("0"<=t&&t<="9")return t.charCodeAt(0)-"0".charCodeAt(0);throw"illegal char :"+t};return r},d=function(t){var e=t,r={getMode:function(){return 2},getLength:function(t){return e.length},write:function(t){for(var r=e,A=0;A+1<r.length;)t.put(45*s(r.charAt(A))+s(r.charAt(A+1)),11),A+=2;A<r.length&&t.put(s(r.charAt(A)),6)}},s=function(t){if("0"<=t&&t<="9")return t.charCodeAt(0)-"0".charCodeAt(0);if("A"<=t&&t<="Z")return t.charCodeAt(0)-"A".charCodeAt(0)+10;switch(t){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+t}};return r},p=function(e){var r=t.stringToBytes(e);return{getMode:function(){return 4},getLength:function(t){return r.length},write:function(t){for(var e=0;e<r.length;e+=1)t.put(r[e],8)}}},g=function(e){var r=t.stringToBytesFuncs.SJIS;if(!r)throw"sjis not supported.";!function(t,e){var s=r("友");if(2!=s.length||38726!=(s[0]<<8|s[1]))throw"sjis not supported."}();var s=r(e);return{getMode:function(){return 8},getLength:function(t){return~~(s.length/2)},write:function(t){for(var e=s,r=0;r+1<e.length;){var A=(255&e[r])<<8|255&e[r+1];if(33088<=A&&A<=40956)A-=33088;else{if(!(57408<=A&&A<=60351))throw"illegal char at "+(r+1)+"/"+A;A-=49472}A=192*(A>>>8&255)+(255&A),t.put(A,13),r+=2}if(r<e.length)throw"illegal char at "+(r+1)}}},f=function(){var t=[],e={writeByte:function(e){t.push(255&e)},writeShort:function(t){e.writeByte(t),e.writeByte(t>>>8)},writeBytes:function(t,r,s){r=r||0,s=s||t.length;for(var A=0;A<s;A+=1)e.writeByte(t[A+r])},writeString:function(t){for(var r=0;r<t.length;r+=1)e.writeByte(t.charCodeAt(r))},toByteArray:function(){return t},toString:function(){var e="";e+="[";for(var r=0;r<t.length;r+=1)r>0&&(e+=","),e+=t[r];return e+"]"}};return e},_=function(t){var e=t,r=0,s=0,A=0,i={read:function(){for(;A<8;){if(r>=e.length){if(0==A)return-1;throw"unexpected end of file./"+A}var t=e.charAt(r);if(r+=1,"="==t)return A=0,-1;t.match(/^\s$/)||(s=s<<6|n(t.charCodeAt(0)),A+=6)}var i=s>>>A-8&255;return A-=8,i}},n=function(t){if(65<=t&&t<=90)return t-65;if(97<=t&&t<=122)return t-97+26;if(48<=t&&t<=57)return t-48+52;if(43==t)return 62;if(47==t)return 63;throw"c:"+t};return i},m=function(t,e,r){for(var s=function(t,e){var r=t,s=e,A=new Array(t*e),i={setPixel:function(t,e,s){A[e*r+t]=s},write:function(t){t.writeString("GIF87a"),t.writeShort(r),t.writeShort(s),t.writeByte(128),t.writeByte(0),t.writeByte(0),t.writeByte(0),t.writeByte(0),t.writeByte(0),t.writeByte(255),t.writeByte(255),t.writeByte(255),t.writeString(","),t.writeShort(0),t.writeShort(0),t.writeShort(r),t.writeShort(s),t.writeByte(0);var e=n(2);t.writeByte(2);for(var A=0;e.length-A>255;)t.writeByte(255),t.writeBytes(e,A,255),A+=255;t.writeByte(e.length-A),t.writeBytes(e,A,e.length-A),t.writeByte(0),t.writeString(";")}},n=function(t){for(var e=1<<t,r=1+(1<<t),s=t+1,i=o(),n=0;n<e;n+=1)i.add(String.fromCharCode(n));i.add(String.fromCharCode(e)),i.add(String.fromCharCode(r));var a,h,l,c=f(),u=(a=c,h=0,l=0,{write:function(t,e){if(t>>>e!=0)throw"length over";for(;h+e>=8;)a.writeByte(255&(t<<h|l)),e-=8-h,t>>>=8-h,l=0,h=0;l|=t<<h,h+=e},flush:function(){h>0&&a.writeByte(l)}});u.write(e,s);var d=0,p=String.fromCharCode(A[d]);for(d+=1;d<A.length;){var g=String.fromCharCode(A[d]);d+=1,i.contains(p+g)?p+=g:(u.write(i.indexOf(p),s),i.size()<4095&&(i.size()==1<<s&&(s+=1),i.add(p+g)),p=g)}return u.write(i.indexOf(p),s),u.write(r,s),u.flush(),c.toByteArray()},o=function(){var t={},e=0,r={add:function(s){if(r.contains(s))throw"dup key:"+s;t[s]=e,e+=1},size:function(){return e},indexOf:function(e){return t[e]},contains:function(e){return void 0!==t[e]}};return r};return i}(t,e),A=0;A<e;A+=1)for(var i=0;i<t;i+=1)s.setPixel(i,A,r(i,A));var n=f();s.write(n);for(var o=function(){var t=0,e=0,r=0,s="",A={},i=function(t){s+=String.fromCharCode(n(63&t))},n=function(t){if(t<0);else{if(t<26)return 65+t;if(t<52)return t-26+97;if(t<62)return t-52+48;if(62==t)return 43;if(63==t)return 47}throw"n:"+t};return A.writeByte=function(s){for(t=t<<8|255&s,e+=8,r+=1;e>=6;)i(t>>>e-6),e-=6},A.flush=function(){if(e>0&&(i(t<<6-e),t=0,e=0),r%3!=0)for(var A=3-r%3,n=0;n<A;n+=1)s+="="},A.toString=function(){return s},A}(),a=n.toByteArray(),h=0;h<a.length;h+=1)o.writeByte(a[h]);return o.flush(),"data:image/gif;base64,"+o};return t}();A.stringToBytesFuncs["UTF-8"]=function(t){return function(t){for(var e=[],r=0;r<t.length;r++){var s=t.charCodeAt(r);s<128?e.push(s):s<2048?e.push(192|s>>6,128|63&s):s<55296||s>=57344?e.push(224|s>>12,128|s>>6&63,128|63&s):(r++,s=65536+((1023&s)<<10|1023&t.charCodeAt(r)),e.push(240|s>>18,128|s>>12&63,128|s>>6&63,128|63&s))}return e}(t)},void 0===(s="function"==typeof(r=function(){return A})?r.apply(e,[]):r)||(t.exports=s)},151:(t,e,r)=>{r.d(e,{default:()=>b});var s=function(){return(s=Object.assign||function(t){for(var e,r=1,s=arguments.length;r<s;r++)for(var A in e=arguments[r])Object.prototype.hasOwnProperty.call(e,A)&&(t[A]=e[A]);return t}).apply(this,arguments)},A=function(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;var s=Array(t),A=0;for(e=0;e<r;e++)for(var i=arguments[e],n=0,o=i.length;n<o;n++,A++)s[A]=i[n];return s},i=function(t){return!!t&&"object"==typeof t&&!Array.isArray(t)};function n(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];if(!e.length)return t;var o=e.shift();return void 0!==o&&i(t)&&i(o)?(t=s({},t),Object.keys(o).forEach((function(e){var r=t[e],s=o[e];Array.isArray(r)&&Array.isArray(s)?t[e]=s:i(r)&&i(s)?t[e]=n(Object.assign({},r),s):t[e]=s})),n.apply(void 0,A([t],e))):t}const o={L:.07,M:.15,Q:.25,H:.3};var a=function(){return(a=Object.assign||function(t){for(var e,r=1,s=arguments.length;r<s;r++)for(var A in e=arguments[r])Object.prototype.hasOwnProperty.call(e,A)&&(t[A]=e[A]);return t}).apply(this,arguments)};const h=function(){function t(t){var e=t.context,r=t.type;this._context=e,this._type=r}return t.prototype.draw=function(t,e,r,s){var A,i=this._context;switch(this._type){case"dots":A=this._drawDot;break;case"classy":A=this._drawClassy;break;case"classy-rounded":A=this._drawClassyRounded;break;case"rounded":A=this._drawRounded;break;case"extra-rounded":A=this._drawExtraRounded;break;default:A=this._drawSquare}A.call(this,{x:t,y:e,size:r,context:i,getNeighbor:s})},t.prototype._rotateFigure=function(t){var e=t.x,r=t.y,s=t.size,A=t.context,i=t.rotation,n=t.draw,o=e+s/2,a=r+s/2;A.translate(o,a),i&&A.rotate(i),n(),A.closePath(),i&&A.rotate(-i),A.translate(-o,-a)},t.prototype._basicDot=function(t){var e=t.size,r=t.context;this._rotateFigure(a(a({},t),{draw:function(){r.arc(0,0,e/2,0,2*Math.PI)}}))},t.prototype._basicSquare=function(t){var e=t.size,r=t.context;this._rotateFigure(a(a({},t),{draw:function(){r.rect(-e/2,-e/2,e,e)}}))},t.prototype._basicSideRounded=function(t){var e=t.size,r=t.context;this._rotateFigure(a(a({},t),{draw:function(){r.arc(0,0,e/2,-Math.PI/2,Math.PI/2),r.lineTo(-e/2,e/2),r.lineTo(-e/2,-e/2),r.lineTo(0,-e/2)}}))},t.prototype._basicCornerRounded=function(t){var e=t.size,r=t.context;this._rotateFigure(a(a({},t),{draw:function(){r.arc(0,0,e/2,-Math.PI/2,0),r.lineTo(e/2,e/2),r.lineTo(-e/2,e/2),r.lineTo(-e/2,-e/2),r.lineTo(0,-e/2)}}))},t.prototype._basicCornerExtraRounded=function(t){var e=t.size,r=t.context;this._rotateFigure(a(a({},t),{draw:function(){r.arc(-e/2,e/2,e,-Math.PI/2,0),r.lineTo(-e/2,e/2),r.lineTo(-e/2,-e/2)}}))},t.prototype._basicCornersRounded=function(t){var e=t.size,r=t.context;this._rotateFigure(a(a({},t),{draw:function(){r.arc(0,0,e/2,-Math.PI/2,0),r.lineTo(e/2,e/2),r.lineTo(0,e/2),r.arc(0,0,e/2,Math.PI/2,Math.PI),r.lineTo(-e/2,-e/2),r.lineTo(0,-e/2)}}))},t.prototype._basicCornersExtraRounded=function(t){var e=t.size,r=t.context;this._rotateFigure(a(a({},t),{draw:function(){r.arc(-e/2,e/2,e,-Math.PI/2,0),r.arc(e/2,-e/2,e,Math.PI/2,Math.PI)}}))},t.prototype._drawDot=function(t){var e=t.x,r=t.y,s=t.size,A=t.context;this._basicDot({x:e,y:r,size:s,context:A,rotation:0})},t.prototype._drawSquare=function(t){var e=t.x,r=t.y,s=t.size,A=t.context;this._basicSquare({x:e,y:r,size:s,context:A,rotation:0})},t.prototype._drawRounded=function(t){var e=t.x,r=t.y,s=t.size,A=t.context,i=t.getNeighbor,n=+i(-1,0),o=+i(1,0),a=+i(0,-1),h=+i(0,1),l=n+o+a+h;if(0!==l)if(l>2||n&&o||a&&h)this._basicSquare({x:e,y:r,size:s,context:A,rotation:0});else{if(2===l){var c=0;return n&&a?c=Math.PI/2:a&&o?c=Math.PI:o&&h&&(c=-Math.PI/2),void this._basicCornerRounded({x:e,y:r,size:s,context:A,rotation:c})}if(1===l)return c=0,a?c=Math.PI/2:o?c=Math.PI:h&&(c=-Math.PI/2),void this._basicSideRounded({x:e,y:r,size:s,context:A,rotation:c})}else this._basicDot({x:e,y:r,size:s,context:A,rotation:0})},t.prototype._drawExtraRounded=function(t){var e=t.x,r=t.y,s=t.size,A=t.context,i=t.getNeighbor,n=+i(-1,0),o=+i(1,0),a=+i(0,-1),h=+i(0,1),l=n+o+a+h;if(0!==l)if(l>2||n&&o||a&&h)this._basicSquare({x:e,y:r,size:s,context:A,rotation:0});else{if(2===l){var c=0;return n&&a?c=Math.PI/2:a&&o?c=Math.PI:o&&h&&(c=-Math.PI/2),void this._basicCornerExtraRounded({x:e,y:r,size:s,context:A,rotation:c})}if(1===l)return c=0,a?c=Math.PI/2:o?c=Math.PI:h&&(c=-Math.PI/2),void this._basicSideRounded({x:e,y:r,size:s,context:A,rotation:c})}else this._basicDot({x:e,y:r,size:s,context:A,rotation:0})},t.prototype._drawClassy=function(t){var e=t.x,r=t.y,s=t.size,A=t.context,i=t.getNeighbor,n=+i(-1,0),o=+i(1,0),a=+i(0,-1),h=+i(0,1);0!==n+o+a+h?n||a?o||h?this._basicSquare({x:e,y:r,size:s,context:A,rotation:0}):this._basicCornerRounded({x:e,y:r,size:s,context:A,rotation:Math.PI/2}):this._basicCornerRounded({x:e,y:r,size:s,context:A,rotation:-Math.PI/2}):this._basicCornersRounded({x:e,y:r,size:s,context:A,rotation:Math.PI/2})},t.prototype._drawClassyRounded=function(t){var e=t.x,r=t.y,s=t.size,A=t.context,i=t.getNeighbor,n=+i(-1,0),o=+i(1,0),a=+i(0,-1),h=+i(0,1);0!==n+o+a+h?n||a?o||h?this._basicSquare({x:e,y:r,size:s,context:A,rotation:0}):this._basicCornerExtraRounded({x:e,y:r,size:s,context:A,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:e,y:r,size:s,context:A,rotation:-Math.PI/2}):this._basicCornersRounded({x:e,y:r,size:s,context:A,rotation:Math.PI/2})},t}();var l=function(){return(l=Object.assign||function(t){for(var e,r=1,s=arguments.length;r<s;r++)for(var A in e=arguments[r])Object.prototype.hasOwnProperty.call(e,A)&&(t[A]=e[A]);return t}).apply(this,arguments)};const c=function(){function t(t){var e=t.context,r=t.type;this._context=e,this._type=r}return t.prototype.draw=function(t,e,r,s){var A,i=this._context;switch(this._type){case"square":A=this._drawSquare;break;case"extra-rounded":A=this._drawExtraRounded;break;default:A=this._drawDot}A.call(this,{x:t,y:e,size:r,context:i,rotation:s})},t.prototype._rotateFigure=function(t){var e=t.x,r=t.y,s=t.size,A=t.context,i=t.rotation,n=t.draw,o=e+s/2,a=r+s/2;A.translate(o,a),i&&A.rotate(i),n(),A.closePath(),i&&A.rotate(-i),A.translate(-o,-a)},t.prototype._basicDot=function(t){var e=t.size,r=t.context,s=e/7;this._rotateFigure(l(l({},t),{draw:function(){r.arc(0,0,e/2,0,2*Math.PI),r.arc(0,0,e/2-s,0,2*Math.PI)}}))},t.prototype._basicSquare=function(t){var e=t.size,r=t.context,s=e/7;this._rotateFigure(l(l({},t),{draw:function(){r.rect(-e/2,-e/2,e,e),r.rect(-e/2+s,-e/2+s,e-2*s,e-2*s)}}))},t.prototype._basicExtraRounded=function(t){var e=t.size,r=t.context,s=e/7;this._rotateFigure(l(l({},t),{draw:function(){r.arc(-s,-s,2.5*s,Math.PI,-Math.PI/2),r.lineTo(s,-3.5*s),r.arc(s,-s,2.5*s,-Math.PI/2,0),r.lineTo(3.5*s,-s),r.arc(s,s,2.5*s,0,Math.PI/2),r.lineTo(-s,3.5*s),r.arc(-s,s,2.5*s,Math.PI/2,Math.PI),r.lineTo(-3.5*s,-s),r.arc(-s,-s,1.5*s,Math.PI,-Math.PI/2),r.lineTo(s,-2.5*s),r.arc(s,-s,1.5*s,-Math.PI/2,0),r.lineTo(2.5*s,-s),r.arc(s,s,1.5*s,0,Math.PI/2),r.lineTo(-s,2.5*s),r.arc(-s,s,1.5*s,Math.PI/2,Math.PI),r.lineTo(-2.5*s,-s)}}))},t.prototype._drawDot=function(t){var e=t.x,r=t.y,s=t.size,A=t.context,i=t.rotation;this._basicDot({x:e,y:r,size:s,context:A,rotation:i})},t.prototype._drawSquare=function(t){var e=t.x,r=t.y,s=t.size,A=t.context,i=t.rotation;this._basicSquare({x:e,y:r,size:s,context:A,rotation:i})},t.prototype._drawExtraRounded=function(t){var e=t.x,r=t.y,s=t.size,A=t.context,i=t.rotation;this._basicExtraRounded({x:e,y:r,size:s,context:A,rotation:i})},t}();var u=function(){return(u=Object.assign||function(t){for(var e,r=1,s=arguments.length;r<s;r++)for(var A in e=arguments[r])Object.prototype.hasOwnProperty.call(e,A)&&(t[A]=e[A]);return t}).apply(this,arguments)};const d=function(){function t(t){var e=t.context,r=t.type;this._context=e,this._type=r}return t.prototype.draw=function(t,e,r,s){var A=this._context;("square"===this._type?this._drawSquare:this._drawDot).call(this,{x:t,y:e,size:r,context:A,rotation:s})},t.prototype._rotateFigure=function(t){var e=t.x,r=t.y,s=t.size,A=t.context,i=t.rotation,n=t.draw,o=e+s/2,a=r+s/2;A.translate(o,a),i&&A.rotate(i),n(),A.closePath(),i&&A.rotate(-i),A.translate(-o,-a)},t.prototype._basicDot=function(t){var e=t.size,r=t.context;this._rotateFigure(u(u({},t),{draw:function(){r.arc(0,0,e/2,0,2*Math.PI)}}))},t.prototype._basicSquare=function(t){var e=t.size,r=t.context;this._rotateFigure(u(u({},t),{draw:function(){r.rect(-e/2,-e/2,e,e)}}))},t.prototype._drawDot=function(t){var e=t.x,r=t.y,s=t.size,A=t.context,i=t.rotation;this._basicDot({x:e,y:r,size:s,context:A,rotation:i})},t.prototype._drawSquare=function(t){var e=t.x,r=t.y,s=t.size,A=t.context,i=t.rotation;this._basicSquare({x:e,y:r,size:s,context:A,rotation:i})},t}();var p=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],g=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];const f=function(){function t(t){this._canvas=document.createElement("canvas"),this._canvas.width=t.width,this._canvas.height=t.height,this._options=t}return Object.defineProperty(t.prototype,"context",{get:function(){return this._canvas.getContext("2d")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this._canvas.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this._canvas.height},enumerable:!1,configurable:!0}),t.prototype.getCanvas=function(){return this._canvas},t.prototype.clear=function(){var t=this.context;t&&t.clearRect(0,0,this._canvas.width,this._canvas.height)},t.prototype.drawQR=function(t){return e=this,r=void 0,A=function(){var e,r,s,A,i,n,a,h,l,c=this;return function(t,e){var r,s,A,i,n={label:0,sent:function(){if(1&A[0])throw A[1];return A[1]},trys:[],ops:[]};return i={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function o(i){return function(o){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,s&&(A=2&i[0]?s.return:i[0]?s.throw||((A=s.return)&&A.call(s),0):s.next)&&!(A=A.call(s,i[1])).done)return A;switch(s=0,A&&(i=[2&i[0],A.value]),i[0]){case 0:case 1:A=i;break;case 4:return n.label++,{value:i[1],done:!1};case 5:n.label++,s=i[1],i=[0];continue;case 7:i=n.ops.pop(),n.trys.pop();continue;default:if(!((A=(A=n.trys).length>0&&A[A.length-1])||6!==i[0]&&2!==i[0])){n=0;continue}if(3===i[0]&&(!A||i[1]>A[0]&&i[1]<A[3])){n.label=i[1];break}if(6===i[0]&&n.label<A[1]){n.label=A[1],A=i;break}if(A&&n.label<A[2]){n.label=A[2],n.ops.push(i);break}A[2]&&n.ops.pop(),n.trys.pop();continue}i=e.call(t,n)}catch(t){i=[6,t],s=0}finally{r=A=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,o])}}}(this,(function(u){switch(u.label){case 0:return e=t.getModuleCount(),r=Math.min(this._options.width,this._options.height)-2*this._options.margin,s=Math.floor(r/e),A={hideXDots:0,hideYDots:0,width:0,height:0},this._qr=t,this._options.image?[4,this.loadImage()]:[3,2];case 1:if(u.sent(),!this._image)return[2];i=this._options,n=i.imageOptions,a=i.qrOptions,h=n.imageSize*o[a.errorCorrectionLevel],l=Math.floor(h*e*e),A=function(t){var e=t.originalHeight,r=t.originalWidth,s=t.maxHiddenDots,A=t.maxHiddenAxisDots,i=t.dotSize,n={x:0,y:0},o={x:0,y:0};if(e<=0||r<=0||s<=0||i<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};var a=e/r;return n.x=Math.floor(Math.sqrt(s/a)),n.x<=0&&(n.x=1),A&&A<n.x&&(n.x=A),n.x%2==0&&n.x--,o.x=n.x*i,n.y=1+2*Math.ceil((n.x*a-1)/2),o.y=Math.round(o.x*a),(n.y*n.x>s||A&&A<n.y)&&(A&&A<n.y?(n.y=A,n.y%2==0&&n.x--):n.y-=2,o.y=n.y*i,n.x=1+2*Math.ceil((n.y/a-1)/2),o.x=Math.round(o.y/a)),{height:o.y,width:o.x,hideYDots:n.y,hideXDots:n.x}}({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:l,maxHiddenAxisDots:e-14,dotSize:s}),u.label=2;case 2:return this.clear(),this.drawBackground(),this.drawDots((function(t,r){var s,i,n,o,a,h;return!(c._options.imageOptions.hideBackgroundDots&&t>=(e-A.hideXDots)/2&&t<(e+A.hideXDots)/2&&r>=(e-A.hideYDots)/2&&r<(e+A.hideYDots)/2||(null===(s=p[t])||void 0===s?void 0:s[r])||(null===(i=p[t-e+7])||void 0===i?void 0:i[r])||(null===(n=p[t])||void 0===n?void 0:n[r-e+7])||(null===(o=g[t])||void 0===o?void 0:o[r])||(null===(a=g[t-e+7])||void 0===a?void 0:a[r])||(null===(h=g[t])||void 0===h?void 0:h[r-e+7]))})),this.drawCorners(),this._options.image&&this.drawImage({width:A.width,height:A.height,count:e,dotSize:s}),[2]}}))},new((s=void 0)||(s=Promise))((function(t,i){function n(t){try{a(A.next(t))}catch(t){i(t)}}function o(t){try{a(A.throw(t))}catch(t){i(t)}}function a(e){var r;e.done?t(e.value):(r=e.value,r instanceof s?r:new s((function(t){t(r)}))).then(n,o)}a((A=A.apply(e,r||[])).next())}));var e,r,s,A},t.prototype.drawBackground=function(){var t=this.context,e=this._options;if(t){if(e.backgroundOptions.gradient){var r=e.backgroundOptions.gradient,s=this._createGradient({context:t,options:r,additionalRotation:0,x:0,y:0,size:this._canvas.width>this._canvas.height?this._canvas.width:this._canvas.height});r.colorStops.forEach((function(t){var e=t.offset,r=t.color;s.addColorStop(e,r)})),t.fillStyle=s}else e.backgroundOptions.color&&(t.fillStyle=e.backgroundOptions.color);t.fillRect(0,0,this._canvas.width,this._canvas.height)}},t.prototype.drawDots=function(t){var e=this;if(!this._qr)throw"QR code is not defined";var r=this.context;if(!r)throw"QR code is not defined";var s=this._options,A=this._qr.getModuleCount();if(A>s.width||A>s.height)throw"The canvas is too small.";var i=Math.min(s.width,s.height)-2*s.margin,n=Math.floor(i/A),o=Math.floor((s.width-A*n)/2),a=Math.floor((s.height-A*n)/2),l=new h({context:r,type:s.dotsOptions.type});r.beginPath();for(var c=function(r){for(var s=function(s){return t&&!t(r,s)?"continue":u._qr.isDark(r,s)?void l.draw(o+r*n,a+s*n,n,(function(i,n){return!(r+i<0||s+n<0||r+i>=A||s+n>=A)&&!(t&&!t(r+i,s+n))&&!!e._qr&&e._qr.isDark(r+i,s+n)})):"continue"},i=0;i<A;i++)s(i)},u=this,d=0;d<A;d++)c(d);if(s.dotsOptions.gradient){var p=s.dotsOptions.gradient,g=this._createGradient({context:r,options:p,additionalRotation:0,x:o,y:a,size:A*n});p.colorStops.forEach((function(t){var e=t.offset,r=t.color;g.addColorStop(e,r)})),r.fillStyle=r.strokeStyle=g}else s.dotsOptions.color&&(r.fillStyle=r.strokeStyle=s.dotsOptions.color);r.fill("evenodd")},t.prototype.drawCorners=function(t){var e=this;if(!this._qr)throw"QR code is not defined";var r=this.context;if(!r)throw"QR code is not defined";var s=this._options,A=this._qr.getModuleCount(),i=Math.min(s.width,s.height)-2*s.margin,n=Math.floor(i/A),o=7*n,a=3*n,l=Math.floor((s.width-A*n)/2),u=Math.floor((s.height-A*n)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach((function(i){var f,_,m,w,B,C,y,v,E,b,x=i[0],P=i[1],I=i[2];if(!t||t(x,P)){var S=l+x*n*(A-7),T=u+P*n*(A-7);if(null===(f=s.cornersSquareOptions)||void 0===f?void 0:f.type){var F=new c({context:r,type:null===(_=s.cornersSquareOptions)||void 0===_?void 0:_.type});r.beginPath(),F.draw(S,T,o,I)}else{var R=new h({context:r,type:s.dotsOptions.type});r.beginPath();for(var O=function(t){for(var e=function(e){if(!(null===(m=p[t])||void 0===m?void 0:m[e]))return"continue";R.draw(S+t*n,T+e*n,n,(function(r,s){var A;return!!(null===(A=p[t+r])||void 0===A?void 0:A[e+s])}))},r=0;r<p[t].length;r++)e(r)},Q=0;Q<p.length;Q++)O(Q)}if(null===(w=s.cornersSquareOptions)||void 0===w?void 0:w.gradient){var D=s.cornersSquareOptions.gradient,L=e._createGradient({context:r,options:D,additionalRotation:I,x:S,y:T,size:o});D.colorStops.forEach((function(t){var e=t.offset,r=t.color;L.addColorStop(e,r)})),r.fillStyle=r.strokeStyle=L}else(null===(B=s.cornersSquareOptions)||void 0===B?void 0:B.color)&&(r.fillStyle=r.strokeStyle=s.cornersSquareOptions.color);if(r.fill("evenodd"),null===(C=s.cornersDotOptions)||void 0===C?void 0:C.type){var U=new d({context:r,type:null===(y=s.cornersDotOptions)||void 0===y?void 0:y.type});r.beginPath(),U.draw(S+2*n,T+2*n,a,I)}else{R=new h({context:r,type:s.dotsOptions.type}),r.beginPath();var H=function(t){for(var e=function(e){if(!(null===(v=g[t])||void 0===v?void 0:v[e]))return"continue";R.draw(S+t*n,T+e*n,n,(function(r,s){var A;return!!(null===(A=g[t+r])||void 0===A?void 0:A[e+s])}))},r=0;r<g[t].length;r++)e(r)};for(Q=0;Q<g.length;Q++)H(Q)}if(null===(E=s.cornersDotOptions)||void 0===E?void 0:E.gradient){D=s.cornersDotOptions.gradient;var N=e._createGradient({context:r,options:D,additionalRotation:I,x:S+2*n,y:T+2*n,size:a});D.colorStops.forEach((function(t){var e=t.offset,r=t.color;N.addColorStop(e,r)})),r.fillStyle=r.strokeStyle=N}else(null===(b=s.cornersDotOptions)||void 0===b?void 0:b.color)&&(r.fillStyle=r.strokeStyle=s.cornersDotOptions.color);r.fill("evenodd")}}))},t.prototype.loadImage=function(){var t=this;return new Promise((function(e,r){var s=t._options,A=new Image;if(!s.image)return r("Image is not defined");"string"==typeof s.imageOptions.crossOrigin&&(A.crossOrigin=s.imageOptions.crossOrigin),t._image=A,A.onload=function(){e()},A.src=s.image}))},t.prototype.drawImage=function(t){var e=t.width,r=t.height,s=t.count,A=t.dotSize,i=this.context;if(!i)throw"canvasContext is not defined";if(!this._image)throw"image is not defined";var n=this._options,o=Math.floor((n.width-s*A)/2),a=Math.floor((n.height-s*A)/2),h=o+n.imageOptions.margin+(s*A-e)/2,l=a+n.imageOptions.margin+(s*A-r)/2,c=e-2*n.imageOptions.margin,u=r-2*n.imageOptions.margin;i.drawImage(this._image,h,l,c<0?0:c,u<0?0:u)},t.prototype._createGradient=function(t){var e,r=t.context,s=t.options,A=t.additionalRotation,i=t.x,n=t.y,o=t.size;if("radial"===s.type)e=r.createRadialGradient(i+o/2,n+o/2,0,i+o/2,n+o/2,o/2);else{var a=((s.rotation||0)+A)%(2*Math.PI),h=(a+2*Math.PI)%(2*Math.PI),l=i+o/2,c=n+o/2,u=i+o/2,d=n+o/2;h>=0&&h<=.25*Math.PI||h>1.75*Math.PI&&h<=2*Math.PI?(l-=o/2,c-=o/2*Math.tan(a),u+=o/2,d+=o/2*Math.tan(a)):h>.25*Math.PI&&h<=.75*Math.PI?(c-=o/2,l-=o/2/Math.tan(a),d+=o/2,u+=o/2/Math.tan(a)):h>.75*Math.PI&&h<=1.25*Math.PI?(l+=o/2,c+=o/2*Math.tan(a),u-=o/2,d-=o/2*Math.tan(a)):h>1.25*Math.PI&&h<=1.75*Math.PI&&(c+=o/2,l+=o/2/Math.tan(a),d-=o/2,u-=o/2/Math.tan(a)),e=r.createLinearGradient(Math.round(l),Math.round(c),Math.round(u),Math.round(d))}return e},t}();for(var _={},m=0;m<=40;m++)_[m]=m;const w={width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:_[0],mode:void 0,errorCorrectionLevel:"Q"},imageOptions:{hideBackgroundDots:!0,imageSize:.4,crossOrigin:void 0,margin:0},dotsOptions:{type:"square",color:"#000"},backgroundOptions:{color:"#fff"}};var B=function(){return(B=Object.assign||function(t){for(var e,r=1,s=arguments.length;r<s;r++)for(var A in e=arguments[r])Object.prototype.hasOwnProperty.call(e,A)&&(t[A]=e[A]);return t}).apply(this,arguments)};function C(t){var e=B({},t);if(!e.colorStops||!e.colorStops.length)throw"Field 'colorStops' is required in gradient";return e.rotation?e.rotation=Number(e.rotation):e.rotation=0,e.colorStops=e.colorStops.map((function(t){return B(B({},t),{offset:Number(t.offset)})})),e}function y(t){var e=B({},t);return e.width=Number(e.width),e.height=Number(e.height),e.margin=Number(e.margin),e.imageOptions=B(B({},e.imageOptions),{hideBackgroundDots:Boolean(e.imageOptions.hideBackgroundDots),imageSize:Number(e.imageOptions.imageSize),margin:Number(e.imageOptions.margin)}),e.margin>Math.min(e.width,e.height)&&(e.margin=Math.min(e.width,e.height)),e.dotsOptions=B({},e.dotsOptions),e.dotsOptions.gradient&&(e.dotsOptions.gradient=C(e.dotsOptions.gradient)),e.cornersSquareOptions&&(e.cornersSquareOptions=B({},e.cornersSquareOptions),e.cornersSquareOptions.gradient&&(e.cornersSquareOptions.gradient=C(e.cornersSquareOptions.gradient))),e.cornersDotOptions&&(e.cornersDotOptions=B({},e.cornersDotOptions),e.cornersDotOptions.gradient&&(e.cornersDotOptions.gradient=C(e.cornersDotOptions.gradient))),e.backgroundOptions&&(e.backgroundOptions=B({},e.backgroundOptions),e.backgroundOptions.gradient&&(e.backgroundOptions.gradient=C(e.backgroundOptions.gradient))),e}var v=r(192),E=r.n(v);const b=function(){function t(t){this._options=t?y(n(w,t)):w,this.update()}return t._clearContainer=function(t){t&&(t.innerHTML="")},t.prototype.update=function(e){t._clearContainer(this._container),this._options=e?y(n(this._options,e)):this._options,this._options.data&&(this._qr=E()(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||function(t){switch(!0){case/^[0-9]*$/.test(t):return"Numeric";case/^[0-9A-Z $%*+\-./:]*$/.test(t):return"Alphanumeric";default:return"Byte"}}(this._options.data)),this._qr.make(),this._canvas=new f(this._options),this._drawingPromise=this._canvas.drawQR(this._qr),this.append(this._container))},t.prototype.append=function(t){if(t){if("function"!=typeof t.appendChild)throw"Container should be a single DOM node";this._canvas&&t.appendChild(this._canvas.getCanvas()),this._container=t}},t.prototype.download=function(t){var e=this;this._drawingPromise&&this._drawingPromise.then((function(){if(e._canvas){var r="png",s="qr";"string"==typeof t?(r=t,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):"object"==typeof t&&null!==t&&(t.name&&(s=t.name),t.extension&&(r=t.extension)),function(t,e){var r=document.createElement("a");r.download=e,r.href=t,document.body.appendChild(r),r.click(),document.body.removeChild(r)}(e._canvas.getCanvas().toDataURL("image/"+r),s+"."+r)}}))},t}()}},e={};function r(s){if(e[s])return e[s].exports;var A=e[s]={exports:{}};return t[s](A,A.exports,r),A.exports}return r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var s in e)r.o(e,s)&&!r.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r(151)})().default})),Oa=Ta(Ra);class Qa extends io{constructor(t,e){super(t,e,"qrcodeItemView")}_doDispose(){super._doDispose()}_getCssSelector(){return"rr-qrcode rr-item-element"}get guardLabel(){return"qrcode"}get debugLabel(){return"qrcode"}_doMeasure(t,e,r,s){const A=this.model;return this._setModelSize(A,e,r,s),this._isTesting()||this.$_render(A,e),fn.create(e.offsetWidth,e.offsetHeight)}isDom(t){return t.parentElement===this.dom||super.isDom(t)}$_render(t,e){const{offsetWidth:r,offsetHeight:s}=e,A=Li.QRCODE_MIN_SIZE;if(!(r<A||s<A))if(this._qrcode){const{width:t,height:e}=this._qrcode._options;r===t&&s===e||this._qrcode.update({width:r,height:s})}else this._qrcode=new Oa({width:r,height:s,data:t.text,qrOptions:{errorCorrectionLevel:t.errorCorrectionLevel}}),this._qrcode.append(e)}}class Da extends io{_getShape(t,e){const r=e.shapeCallback;let s=e.shape;if(e.value&&r){let A;A=t.printing?this.getPrintValue(t,e):e.value,s=r(t.getUserData(),e,A)||s}return s}_getDrawing(t,e){let r;return t&&(t=t.toLowerCase(),ki.isEllipse(t)?(r=this._ellipse?this._ellipse:this._ellipse=new ki,this._ellipse.circled=t===ki.CIRCLE):Vi.isLine(t)?(r=this._line?this._line:this._line=new Vi,this._line.shape=t):(r=this._polygon?this._polygon:this._polygon=new Mi(t),this._polygon.shape=t)),r.className=e,r}}class La extends Da{constructor(t,e){super(t,e,"shapeItemView"),this.$_render=(t,e,r,s)=>{const A=this._getShape(t,this.model);if(A){const t=this._getDrawing(A);if(t){const i=getComputedStyle(this._svg),n=parseFloat(i.strokeWidth)||0,o="star"!==A?1:0;this._isTesting()||t.drawAt(o,o,e,r-2*o,s-2*o,n)}}}}_doDispose(){super._doDispose()}prepareExport(){const t=this.dom;this._svg.setAttribute("viewBox",[0,0,t.offsetWidth,t.offsetHeight].join(" "))}_getCssSelector(){return"rr-shape rr-item-element"}get debugLabel(){return""}_initDom(t,e){super._initDom(t,e),this._svg=wa.createSVG(e,"rr-shape-shape",{position:"absolute",left:"0px",top:"0px",width:"100%",height:"100%"})}_setStyles(t,e,r){super._setStyles(t,e,r),zi.STYLE_PROPS.forEach((t=>{t in e&&(this._svg.style[t]=e[t])}))}_doMeasure(t,e,r,s){const A=this.model;this._setModelSize(A,e,r,s),wa.renderSVG(t,this._svg,this.$_render);const i=e.offsetWidth,n=e.offsetHeight;return t.printing&&wa.prepareExport(this._svg,i,n),fn.create(i,n)}}class Ua extends io{constructor(t,e){super(t,e,"svgItemView"),Ua.SVG||(Ua.SVG=t.createElement("div"))}_doDispose(){super._doDispose()}_getCssSelector(){return"rr-svg rr-item-element"}get debugLabel(){return""}_doMeasure(t,e,r,s){const A=this.model,i=A.svg&&t.assets.getSvg(A.svg),n=e.style;if(this._setModelSize(A,e,r,s),ot.isIE){const t=Ua.SVG;t.innerHTML=i.substring(i.indexOf("<svg"));const r=t.lastChild;r instanceof SVGSVGElement?(r.setAttribute("viewbox","0 0 "+r.getAttribute("width")+" "+r.getAttribute("height")),r.setAttribute("width","100%"),r.setAttribute("height","100%"),e.innerHTML=t.innerHTML,delete e.dataset.empty):(e.dataset.empty="true",e.innerHTML="<span></span>")}else i?(n.background="no-repeat center/contain url('"+i+"')",e.innerHTML="",delete e.dataset.empty):(e.dataset.empty="true",e.innerHTML="<span></span>"),t.printing&&(e._svg_=i);return fn.create(e.offsetWidth,e.offsetHeight)}}class Ha extends v{constructor(t,e){super(),Ha.Chartist||(Ha.Chartist=window.Chartist),this._container=t,this._model=e}_doDispose(){super._doDispose()}refreshChart(t,e,r){if(!Ha.Chartist)return;const s=this._model.theme?t.getChartist(this._model.theme):null,A={},i=s&&s.theme?ot.deepClone(s.theme):{},n=i.plugins=[],o={};i.width=e,i.height=r,i.chartPadding={top:20,right:0,bottom:30,left:10},this._buildXAxis(o.axisX={}),this._buildYAxis(o.axisY={}),n.push(Ha.Chartist.plugins.ctAxisTitle(o)),this._buildOptions(this._model,A,i),this._doRefreshChart(this._container,this._model.chart,A,i)}_buildOptions(t,e,r){}_buildXAxis(t){ot.extend(t,{axisTitle:"Time (mins)",axisClass:"ct-axis-title",offset:{x:0,y:40},textAnchor:"middle"})}_buildYAxis(t){ot.extend(t,{axisTitle:"Goals",axisClass:"ct-axis-title",offset:{x:0,y:-10},textAnchor:"middle",flipTitle:!1})}}class Na extends Ha{constructor(t,e){super(t,e)}_doDispose(){super._doDispose()}get chartType(){return Ji.BAR}_buildOptions(t,e,r){super._buildOptions(t,e,r);const s=t.chart,A=s.labels,i=s.values;e.labels=A,e.series=[i],isNaN(s.lowValue)||(r.low=s.lowValue),isNaN(s.highValue)||(r.high=s.highValue);let n=r.axisX=r.axisX||{};isNaN(s.xAxisOffset)||(n.offset=s.xAxisOffset),n=r.axisY=r.axisY||{},isNaN(s.yAxisOffset)||(n.offset=s.yAxisOffset)}}class Ma extends Na{constructor(t,e){super(t,e)}_doDispose(){super._doDispose()}get chartType(){return Ji.LINE}_buildOptions(t,e,r){super._buildOptions(t,e,r);const s=t.chart;r.showPoint=s.showPoint,r.lineSmooth=s.curved}_doRefreshChart(t,e,r,s){Ha.Chartist.Line(t,r,s).on("draw",(function(t){}))}}class ka extends Ha{constructor(t,e){super(t,e)}_doDispose(){super._doDispose()}get chartType(){return Ji.PIE}_buildOptions(t,e,r){super._buildOptions(t,e,r);const s=t.chart,A=s.labels,i=s.values;e.labels=A,e.series=i}_doRefreshChart(t,e,r,s){Ha.Chartist.Pie(t,r,s).on("draw",(function(t){}))}}class Va extends Na{constructor(t,e){super(t,e)}_doDispose(){super._doDispose()}get chartType(){return Ji.BAR}_doRefreshChart(t,e,r,s){Ha.Chartist.Bar(t,r,s).on("draw",(function(t){const e=t.element._node.style;"bar"==t.type&&(e.strokeWidth="30px")}))}}class Ga extends io{constructor(t,e){super(t,e,"chartItemView")}_doDispose(){super._doDispose()}_getCssSelector(){return"rr-chart rr-item-element"}get debugLabel(){return"Chart"}_initDom(t,e){super._initDom(t,e);const r=this._chartDiv=t.createElement("div");r.className="rr-chart-wrapper",e.appendChild(r)}_doMeasure(t,e,r,s){const A=this.model,i=e.style;return t.printing||(e.style.border="1px solid rgba(55, 55, 55, 0.1)"),this.$_prepareWrapper(A,this._chartDiv),this._setModelSize(A,e,r,s),i.overflow="hidden",new fn(e.offsetWidth,e.offsetHeight)}_doLayoutContent(t){this._wrapper&&this.$_layoutWrapper(t,this._wrapper)}$_createWrapper(t,e){switch(e.chartType){case Ji.LINE:return new Ma(t,e);case Ji.PIE:return new ka(t,e);case Ji.BAR:default:return new Va(t,e)}}$_prepareWrapper(t,e){this._wrapper&&t.chartType==this._wrapper.chartType||(this._wrapper=this.$_createWrapper(e,t))}$_layoutWrapper(t,e){e.refreshChart(t.assets,this.width,this.height)}}class Ka extends v{constructor(t,e){super(),Ka.Highcharts||(Ka.Highcharts=window.Highcharts),Ka.Highcharts&&Ka.Highcharts.setOptions(Ka.hichart_options),this._container=t,this._model=e}_doDispose(){super._doDispose()}refreshChart(t,e,r){if(!Ka.Highcharts)return;const s=t.assets,A=this._model,i=A.theme?s.getHighchart(A.theme):null,n=i&&i.theme?ot.deepClone(i.theme):{};n.chart={inverted:A.inverted,styledMode:!1,backgroundColor:null},n.credits={enabled:!1},n.title={enabled:A.title.visible,text:A.title.visible?A.title.text:"",style:ot.extend({},A.title.styles)},n.plotOptions=n.plotOptions||{},this._buildConfig(t,A,n);const o=Ka.Highcharts.chart(this._container,n);this._doRefreshChart(o,A,n)}_buildConfig(t,e,r){this.$_buildXAxis(t,e.xAxis,r.xAxis=r.xAxis||{}),this.$_buildYAxis(e.yAxis,r.yAxis=r.yAxis||{}),this.$_buildLegend(e.legend,r.legend=r.legend||{});const s=r.series=[];for(let r=0;r<e.series.count;r++){const A=e.series.get(r),i={};A.getWrapper(i),i.visible=A.visible&&(t.printing||A.designVisible),i.data=A.getValues(t.printing,t.dp),s.push(i)}}_doRefreshChart(t,e,r){}$_buildXAxis(t,e,r){r.categories=e.getCategories(t.printing,t.dp),r.title||(r.title={}),r.title.enabled=e.title.visible,r.title.text=e.title.text,r.title.style=ot.extend({},e.title.styles)}$_buildYAxis(t,e){isNaN(t.min)||(e.min=t.min),isNaN(t.max)||(e.min=t.max),e.title||(e.title={}),e.title.enabled=t.title.visible,e.title.text=t.title.text,e.title.style=ot.extend({},t.title.styles)}$_buildLegend(t,e){e.enabled=t.visible,e.align=t.align,e.verticalAlign=t.verticalAlign,e.layout=t.layout}}Ka.hichart_options={plotOptions:{series:{animation:!1,enableMouseTracking:!1}}};class Wa extends io{constructor(t,e){super(t,e,"hichartItemView")}_doDispose(){super._doDispose()}_getCssSelector(){return"rr-hichart rr-item-element"}get debugLabel(){return"Hichart"}_initDom(t,e){super._initDom(t,e);const r=this._chartDiv=t.createElement("div");r.className="rr-hichart-wrapper",e.appendChild(r)}_doMeasure(t,e,r,s){const A=this.model,i=e.style;return t.printing||(e.style.border="1px solid rgba(55, 55, 55, 0.1)"),this.$_prepareWrapper(A,this._chartDiv),this._setModelSize(A,e,r,s),i.overflow="hidden",new fn(e.offsetWidth,e.offsetHeight)}_doLayoutContent(t){this._wrapper&&(this._chartDiv.style.width=this.width+"px",this._chartDiv.style.height=this.height+"px",this._isTesting()||this.$_layoutWrapper(t,this._wrapper))}isDom(t){return this.containsDom(t)||super.isDom(t)}$_createWrapper(t,e){return new Ka(t,e)}$_prepareWrapper(t,e){this._wrapper||(this._wrapper=this.$_createWrapper(e,t))}$_layoutWrapper(t,e){e.refreshChart(t,this.width,this.height)}}class za extends io{constructor(t,e){super(t,e,"TemplateItemView")}_doDispose(){super._doDispose()}}class Xa extends ko{constructor(t,e){super(t,e,"SummaryItemView")}_doDispose(){super._doDispose()}_getCssSelector(){return"rr-summary rr-item-element"}get guardLabel(){return"summary"}get editable(){return!1}_getPrintText(t,e){this._error=null;try{const r=e.expression&&t.bandSummaryRuntime;let s=r?e.getSummary(r):this.getPrintValue(t,e);return this._getText(e,s)}catch(t){return this._error=t,console.error(t),"<<ERROR>>"}}_getDesignText(t,e){let r="";return t.expression?r="["+t.expression+"]":t.value&&(r=e?t.value:"["+t.value+"]"),r||"[summary]"}_doMeasure(t,e,r,s){const A=super._doMeasure(t,e,r,s);return e.dataset.error=this._error?"1":"0",this._error&&(e.title=this._error),A}}class Ja extends io{constructor(t,e){super(t,e,"barItemView")}_doDispose(){super._doDispose()}_getCssSelector(){return"rr-bar rr-item-element"}get debugLabel(){return""}_initDom(t,e){super._initDom(t,e),this._bar=t.createElement("span"),this._bar.className="rr-bar-bar",ot.extend(this._bar.style,{position:"absolute",textAlign:"center",color:"gray"}),e.appendChild(this._bar)}_doMeasure(t,e,r,s){const A=this.model,i=100*((t.printing?this.getPrintValue(t,A,A.position):A.position)-A.minimum)/(A.maximum-A.minimum);return i<=0&&!t.printing?(ot.extend(this._bar.style,{width:"100%",height:"",top:"50%",transform:"translateY(-50%)"}),this._bar.textContent="[ BAR ]",this._bar.dataset.design=""):(ot.extend(this._bar.style,{width:i+"%",height:"100%",top:"",transform:""}),this._bar.textContent="",delete this._bar.dataset.design),t.printing&&(this._bar.dataset._m_=e.dataset._m_),fn.create(e.offsetWidth,e.offsetHeight)}_setStyles(t,e,r){super._setStyles(t,e,r),"barColor"in e&&(this._bar.style.backgroundColor=e.barColor)}isDom(t){return t===this._bar||super.isDom(t)}}class Ya extends Da{constructor(t,e){super(t,e,"ratingItemView"),this.$_render=(t,e,r,s)=>{const A=this.model,i=this._getShape(t,A);if(i){const n="star"!==i?1:0,o=this._getDrawing(i,Ya.SVG_CLASS);if(o){const i=A.shapeCount,a=Math.min(r/i,s),h=t.printing?this.getPrintValue(t,A):A.designValue,l=ot.toNumber(A.minimum,0),c=ot.toNumber(A.maximum,i),u=Math.min(i,Math.round((h-l)*i/(c-l))),d=0,p=(r-a*i)/2,g=a-2*n,f=s-2*n;for(let t=0;t<u;t++){const r=p+t*a+n,s=d+n;o.drawAt(r,s,e,g,f)}for(let t=u;t<i;t++){const r=p+t*a+n,s=d+n,A=o.drawAt(r,s,e,g,f,0,Ya.BACK_CLASS);this._backFill&&wa.setStyle(A,"fill",this._backFill),this._backStroke&&wa.setStyle(A,"stroke",this._backStroke)}}}}}_doDispose(){super._doDispose()}_getCssSelector(){return"rr-rating rr-item-element"}get debugLabel(){return""}_initDom(t,e){super._initDom(t,e);this._svg=wa.createSVG(e,"rr-rating-shape",{position:"absolute",left:"0px",top:"0px",width:"100%",height:"100%"})}_doMeasure(t,e,r,s){this._setModelSize(this.model,e,r,s),wa.renderSVG(t,this._svg,this.$_render);const A=e.offsetWidth,i=e.offsetHeight;return t.printing&&wa.prepareExport(this._svg,A,i),fn.create(A,i)}_setStyles(t,e,r){super._setStyles(t,e,r),["fill","stroke"].forEach((t=>{t in e&&(this._svg.style[t]=e[t])})),this._backFill=e.backFill,this._backStroke=e.backStroke}}Ya.SVG_CLASS="rr-rating-shape-svg",Ya.BACK_CLASS="rr-rating-shape-back";class $a extends lt{constructor(t){super(t,"emptyView"),this._error=""}get error(){return this._error}set error(t){this._error=t}layoutContent(t){const e=this._errorView,r=t.loadError;if(this.error=r){e.style.visibility="",e.textContent=r;const t=Math.round((this.height-e.offsetHeight)/2);e.style.top=t+"px",e.style.width=this.width+"px"}else e.style.visibility="hidden"}_getCssSelector(){return"rr-empty"}_initDom(t,e){super._initDom(t,e);const r=t.createElement("span"),s=r.style;s.position="absolute",s.left="20px",s.top="20px",r.className="rr-empty-view rr-empty-message",r.textContent="Report model is not set.",e.appendChild(r);const A=t.createElement("span"),i=A.style;i.position="absolute",i.left="20px",i.bottom="10px",A.className="rr-empty-view rr-empty-bottom",A.textContent="RealReport v1.0",e.appendChild(A);const n=this._errorView=t.createElement("span");n.style.position="absolute",n.className="rr-empty-view rr-empty-error",e.appendChild(n)}}class ja extends lt{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];super(t,"reportView"),this._loadError="",this._nameMap={},this._modelDirty=!1,this._editable=e,this.addChild(this._pageView=new Ro(t,r)),r||this.addChild(this._emptyView=this._createEmptyView(t))}_doDispose(){super._doDispose()}addImage(t){this._images[t]=1}imageLoaded(t){delete this._images[t]}imagesAllLoaded(){return ot.isEmpty(this._images)}get editable(){return this._editable}get model(){return this._model}set model(t){t!==this._model&&(this._model&&this._model.removeListener(this),this._model=t,this._pageView.$_setModel(t&&t.page),this._nameMap={},this._model&&this._model.addListener(this),this._modelDirty=!0,this.invalidateLayout())}get pageView(){return this._pageView}get loadError(){return this._loadError}set loadError(t){this._loadError=t}get zoom(){return 100}getBoxPaddings(t){const e=this._boxMeasurer.style,r=t.styles;if(e.padding="0",e.paddingLeft="0",e.paddingTop="0",r)for(let t in r)"p"==t.charAt(0)&&"a"==t.charAt(1)&&(e[t]=r[t]);e.margin="0",e.border="none";const s=this._boxMeasurer.offsetWidth,A=this._boxMeasurer.offsetHeight,i=this._boxInner.offsetLeft-this._boxMeasurer.offsetLeft,n=this._boxInner.offsetTop-this._boxMeasurer.offsetTop;return{left:i,top:n,right:s-i-1,bottom:A-n-1}}findElement(t){let e=this._nameMap[t];return e||(e=this._pageView.findElement(t),e&&(this._nameMap[t]=e),e)}findElementOf(t){return this._pageView.findElementOf(t)}getElementOf(t){return this._pageView.getElementOf(t)}getItemBoundingRect(t){const e=ot.getBoundingClientRect2(t._dom),r=ot.getBoundingClientRect2(this._pageView._dom),s=t.offsetSize,A=100/this.zoom;return new x(e.left*A-r.left*A-2,e.top*A-r.top*A-2,s.width,s.height)}_getCssSelector(){return"rr-report-view"}_initDom(t,e){super._initDom(t,e),this._boxMeasurer=t.createElement("div"),this._boxMeasurer.className="box-measurer";let r=this._boxMeasurer.style;r.display="inline-block",r.position="abolute",r.left="0",r.top="0",r.visibility="hidden",r.pointerEvents="none",this._boxInner=t.createElement("div"),this._boxInner.className="box-measurer-inner",r=this._boxInner.style,r.width="1px",r.height="1px",this._boxMeasurer.appendChild(this._boxInner),e.appendChild(this._boxMeasurer)}_createEmptyView(t){return new $a(t)}_layoutPageBorders(t,e){}$_layout(t,e){let r=e.clone();const s=this._model&&this._model.paper;if(!s)return fn.create(r.x,r.y);t.reportView=this,this._pageView.visible=!!this._model,this._emptyView.visible=!this._pageView.visible;try{if(this._pageView.visible){this._nameMap={},this._model.prepareLayout(),r=s.getContentRect(r.move(0,0));const A=this._pageView.measure(t,r.clone());this._pageView.layout(t,r.clone()),this._pageView.setRect(r),this._layoutPageBorders(e,r);const i=fn.create(e.width,e.height);return A.height>r.height&&(i.height+=A.height-r.height),A.width>r.width&&(i.width+=A.width-r.width),i}return this._emptyView.setRect(r),this._emptyView.layoutContent&&this._emptyView.layoutContent(this),fn.create(r.x,r.y)}finally{this._modelDirty=!1,this._afterLayout(t)}}_afterLayout(t){}$_afterRender(t){t&&t.reportView&&this._pageView.visible&&(this._pageView.layoutFloating(t),this._pageView.afterRender(t))}$_createElement(t){return ja.ViewCreators[t.constructor.$_ctor](this.doc,t)}$_preparePrint(t){const e=this._model&&this._model.paper;this._nameMap={},this._model.preparePrint(t),this._model.prepareLayout();const r=e.getClientRect();this._pageView.setRect(r),this.setPrintStyles(),this._images={}}$_endPrint(t){ot.detach(this._boxMeasurer)}_modelChanged(){this._modelDirty=!0}onReportReset(t){this._modelChanged(),this.invalidateLayout()}onReportPaperChanged(t){this._modelChanged(),this.invalidateLayout()}onReportItemAdded(t,e,r,s){this._modelChanged(),this.invalidateLayout()}onReportItemRemoved(t,e,r){this._modelChanged(),this.invalidateLayout()}onReportItemsRemoved(t,e){this._modelChanged(),this.invalidateLayout()}onReportItemChanged(t,e,r,s,A){this._modelChanged(),this.invalidateLayout()}onReportCommandStackChanged(t,e){}}ja.PAGE_HEAD="rr-page-head",ja.BACK_HEAD="rr-back-head",ja.FRONT_HEAD="rr-front-head",ja.ViewCreators={TextItem:(t,e)=>new Vo(t,e),SummaryItem:(t,e)=>new Xa(t,e),ImageItem:(t,e)=>new Go(t,e),CheckItem:(t,e)=>new Ko(t,e),SimpleBand:(t,e)=>new ea(t,e),SimpleBandRowGroupHeader:(t,e)=>new Zo(t,e),SimpleBandRowGroupFooter:(t,e)=>new qo(t,e),TableBand:(t,e)=>new pa(t,e),TableBandRowGroupHeader:(t,e)=>new ca(t,e),TableBandRowGroupFooter:(t,e)=>new ua(t,e),RowBoxContainer:(t,e)=>new yo(t,e),ColumnBoxContainer:(t,e)=>new vo(t,e),DiagonalBoxContainer:(t,e)=>new Eo(t,e),ListContainer:(t,e)=>new zo(t,e),TableContainer:(t,e)=>new Jo(t,e),SpaceItem:(t,e)=>new Bo(t,e),FloatingContainer:(t,e)=>new ga(t,e),StackContainer:(t,e)=>new po(t,e),ShapeItem:(t,e)=>new La(t,e),BarItem:(t,e)=>new Ja(t,e),RatingItem:(t,e)=>new Ya(t,e),BarcodeItem:(t,e)=>new Ia(t,e),QrcodeItem:(t,e)=>new Qa(t,e),SvgItem:(t,e)=>new Ua(t,e),TemplateItem:(t,e)=>new za(t,e),ChartItem:(t,e)=>new Ga(t,e),HichartItem:(t,e)=>new Wa(t,e)};class Za extends ht{_initDom(t,e){super._initDom(t,e),e.className="rr-print-error",ot.extend(e.style,{display:"flex",alignItems:"center",width:"90%",height:"90%",background:"rgb(238, 238, 238, 0.95)",border:"2px dashed red",paddingTop:"8px",paddingLeft:"12px",zIndex:10}),e.appendChild(this._title=t.createElement("div")),ot.extend(this._title.style,{color:"#333",fontWeight:"bold",fontSize:"1.3em",marginBottom:"8px",textDecoration:"underline"}),this._title.innerHTML="Print Error",e.appendChild(this._span=t.createElement("div")),ot.extend(this._span.style,{color:"#333"}),this.visible=!1}setError(t){this._span.innerHTML=t}}class qa extends bt{constructor(t){super(t),this._pageGap=20,this._zoom=1,this._align=P.CENTER,this._styles={},this.traceMode=!1,this._preview=!1,this._errorView=new Za(this.doc),this._containerDiv.appendChild(this._errorView.dom)}_doDispose(){super._doDispose()}get pageCount(){return this._pages.length}get page(){const t=this._pages,e=this.scrollTop;for(let r=0;r<t.length;r++){const s=t[r].page.offsetTop,A=s+t[r].page.offsetHeight;if(s>=e&&s<e+this.scrollHeight||A>=e&&A<e+this.scrollHeight)return r}return t.length}set page(t){t=Math.max(0,Math.min(this._pages.length-1,t));this._pages[t].page.scrollIntoView({behavior:"smooth"})}get zoom(){return this._zoom}set zoom(t){var e;(t=Math.max(.1,ot.toNumber(t)))!==this._zoom&&(this._zoom=t,this.$_resetPreviewer(),null===(e=this.onZoomed)||void 0===e||e.call(this,this._zoom))}get pages(){var t;return null===(t=this._pages)||void 0===t?void 0:t.slice(0)}print(t,e,r){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";ot.isArray(t)?this.printAll(t,e,r,s):this.printSingle(t,e,r,s)}printSingle(t,e,r){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";if(t instanceof Jn){try{this._previewId=s,(this._preview=r)&&(this._indicator=this.$_createIndicator(this.doc),this._containerDiv.appendChild(this._indicator)),this._reportView&&this.removeElement(this._reportView),this.addElement(this._reportView=new ja(this.doc,!1,!0));const A=this._context=new Xe(!0),i=this._reportView,n=t.info.paper.getClientRect();i.model=t,A.dp=e,A.designDp=t.designData,A.assets=t.assets,A.reportView=i,A.pageWidth=n.width,A.pageHeight=n.height,A.preparePrint()}catch(t){const e=this.$_getPreviewer(s);return e&&(e.style.display="none"),ot.remove(this._indicator),void this.$_showError(null,t)}r?this._isTesting?(this.$_print(this.doc,this._context,!0,s),ot.remove(this._indicator)):setTimeout((()=>{this.$_print(this.doc,this._context,!0,s),ot.remove(this._indicator)}),0):(this.$_print(this.doc,this._context,!1,s),ot.remove(this._indicator))}}printAll(t,e,r){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";if(!t||0===t.length)return;const A=t.length;if(1!==A){try{this._previewId=s,(this._preview=r)&&(this._indicator=this.$_createIndicator(this.doc),this._containerDiv.appendChild(this._indicator)),this._reportViews&&this._reportViews.forEach((t=>this.removeElement(t))),this._reportViews=[],this._contexts=[];for(let t=0;t<A;t++){const t=new Xe(!0),e=new ja(this.doc,!1,!0);this._contexts.push(t),this.addElement(e),this._reportViews.push(e),t.reportView=e}t.forEach(((t,r)=>{const s=this._contexts[r],A=this._reportViews[r],i=t.info.paper.getClientRect();A.model=t,s.dp=e,s.designDp=t.designData,s.assets=t.assets,s.pageWidth=i.width,s.pageHeight=i.height,s.preparePrint()}))}catch(t){const e=this.$_getPreviewer(s);return e&&(e.style.display="none"),ot.remove(this._indicator),void this.$_showError(null,t)}r?this._isTesting?(this.$_print2(this.doc,this._contexts,!0,s),ot.remove(this._indicator)):setTimeout((()=>{this.$_print2(this.doc,this._contexts,!0,s),ot.remove(this._indicator)}),0):(this.$_print2(this.doc,this._contexts,!1,s),ot.remove(this._indicator))}else this.printSingle(t[0],e,r,s)}isAllRendered(){return!!this.$_getContainer().getElementsByClassName(qa.CONFIRM_CLASS)}getPrintHtml(){const t=this.$_getPreviewer(this._previewId),e=t?parseFloat(t.style.left):0,r=this.zoom;try{return this.zoom=1,t&&(t.style.left="0px"),this.$_getContainer().innerHTML}finally{this.zoom=r,t&&(t.style.left=e+"px")}}setStyles(t){this._styles=t,this.$_resetPreviewer()}fitToWidth(){const t=this.$_getContainer().offsetWidth,e=this.$_getPreviewer(this._previewId).offsetWidth;this.zoom=t/e}fitToHeight(){const t=this._pages.length,e=this.$_getContainer().offsetHeight,r=(this.$_getPreviewer(this._previewId).offsetHeight-this._pageGap*(t-1))/t;this.zoom=e/r}fitToPage(){const t=this._pages.length,e=this.$_getContainer().offsetWidth,r=this.$_getPreviewer(this._previewId).offsetWidth,s=this.$_getContainer().offsetHeight,A=(this.$_getPreviewer(this._previewId).offsetHeight-this._pageGap*(t-1))/t;this.zoom=Math.min(e/r,s/A)}get printing(){return!0}_doPrepareContainer(t){super._doPrepareContainer(t),t.classList.add("rr-report-root"),t.classList.add(qa.CLASS_NAME)}_render(t){}_doResized(){if(this._preview){const t=this.$_getPreviewer(this._previewId);t&&t.parentElement&&this.$_resetPreviewer()}}$_showError(t,e){if(this._errorView.visible=!0,this._errorView.setError('<span class="rr-print-error-title">'+(e.message||e)+"</span><br/><br/>"+ot.getErrorStack(e)),ot.detach(t),this.traceMode)throw e}$_createIndicator(t){const e=this._containerDiv.getBoundingClientRect(),r=this.doc.createElement("div");return r.className="rr-print-indicator",ot.extend(r.style,{position:"absolute",width:e.width+"px",height:e.height+"px",top:"0px",zIndex:1e3}),r}$_print(t,e,r,s){const A=+new Date,i=t.getElementById(qa.PREVIEW_CLASS+s);i&&(ot.detach(i),this._containerDiv.appendChild(this._containerDom)),this._errorView.visible=!1;const n=e.reportView,o=n.pageView;let a;e.designDp&&e.designDp.preparePrint(e),e.dp&&e.dp.preparePrint(e),n.$_preparePrint(e);try{a=o.print(t,e,0)}catch(t){return console.error(t),void this.$_showError(i,t)}finally{n.$_endPrint(e)}ot.detach(this._containerDom);const h=t.createElement("div");r&&(h.id=qa.PREVIEW_CLASS+s),h.className="rr-report-root"+(r?" "+qa.PREVIEW_CLASS:""),h.style.setProperty("position","absolute","important"),h.style.setProperty("transform-origin","top left","important"),this._containerDiv.appendChild(h),e.container=h,this.$_buildOutput(t,r,n.model,0,a,h),this.$_markRendered(t,h),this._pages=a,this.$_resetPreviewer(),console.log("Printed in "+(+new Date-A)+"ms.")}$_print2(t,e,r,s){const A=+new Date,i=t.getElementById(qa.PREVIEW_CLASS+s);i&&(ot.detach(i),this._containerDiv.appendChild(this._containerDom));const n=[];this._errorView.visible=!1;for(let r=0;r<e.length;r++){const s=e[r],A=s.reportView,o=A.pageView;s.designDp&&s.designDp.preparePrint(s),s.dp&&s.dp.preparePrint(s),A.$_preparePrint(s);try{const e=o.print(t,s,0);n.push(e)}catch(t){return console.error(t),void this.$_showError(i,t)}finally{A.$_endPrint(s)}}ot.detach(this._containerDom);const o=t.createElement("div");r&&(o.id=qa.PREVIEW_CLASS+s),o.className="rr-report-root"+(r?" "+qa.PREVIEW_CLASS:""),o.style.setProperty("position","absolute","important"),o.style.setProperty("transform-origin","top left","important"),this._containerDiv.appendChild(o);let a=0;e.forEach(((e,s)=>{const A=n[s];e.container=o,this.$_buildOutput(t,r,e.report,a,A,o),a+=A.length})),this.$_markRendered(t,o),this._pages=n.reduce(((t,e)=>t.concat(e)),[]),this.$_resetPreviewer(),console.log("Printed in "+(+new Date-A)+"ms.")}$_getContainer(){return this._containerDiv}$_getPreviewer(t){return this.doc.getElementById(qa.PREVIEW_CLASS+(t||this._previewId))}$_resetPreviewer(){if(this._preview){const t=this.$_getPreviewer(this._previewId),e=this.$_getContainer().getBoundingClientRect(),r=this._zoom;ot.extend(t.style,this._styles),t.style.transform=1==r?"":"scale("+r+")";const s=t.getBoundingClientRect().width||e.width;let A=0;switch(this._align){case P.LEFT:break;case P.RIGHT:A=e.width-s;break;case P.CENTER:default:A=Math.round((e.width-s)/2)}t.style.left=Math.max(0,A)+"px"}}$_buildOutput(t,e,r,s,A,i){const n=r.page.pageHeader,o=r.page.pageFooter,a=r.page.reportFooter,h=r.info.paper,l=h.getClientRect().height,c=[],u=[];for(let r=0,s=A.length;r<s;r++){const d=r,p=A[r],g=p.contents,f=t.createElement("div"),_=t.createElement("div");f.className="rr-print-div2",_.className="rr-print-div3",e&&(f.className="rr-print-page rr-page-break page"+d,f.dataset.page=d+"",h.applyPreviewExtents(f.style),h.applyPreviewClient(_.style)),_.style.position="absolute",f.appendChild(_),u.push(_),p.page=f;let m=p.background;m&&_.appendChild(m),m=p.pageHeader;let w=0+ot.toNumber(n.spaceTop);m.style.top=w+"px",_.appendChild(m),w+=m.$_h,m=p.pageFooter;const B=l-m.$_h-ot.toNumber(o.spaceBottom);m.style.top=B+"px",_.appendChild(m);const C=[];for(let t=0,e=g.length;t<e;t++)if(m=g[t],m.$_anc)c.push(m),C.push(t);else{const A=m.$_h;r===s-1&&t===e-1&&A>0&&a.alignToBottom&&_o.isFooter(m)&&(w=B-A),m.style.top=w+"px",w+=isNaN(A)?m.offsetHeight:A,_.appendChild(m)}for(let t=C.length-1;t>=0;t--)g.splice(C[t],1);if(i.appendChild(f),m=p.foreground,m&&_.appendChild(m),e){const e=t.createElement("div");e.className="rr-print-space",e.style.height=this._pageGap+"px",i.appendChild(e)}}if(c.length>0){const t=[];for(let e of c){const r=e.$_anc;for(let s=0;s<u.length;s++){const i=u[s];if(i.contains(r)){t.push(i),A[s].contents.push(e);break}}}this.$_layoutFloatings(t,c)}}$_markRendered(t,e){const r=t.createElement("div");r.className=qa.CONFIRM_CLASS,ot.extend(r.style,{position:"abolute",top:e.offsetHeight-1+"px",left:"0px",width:"1px",height:"1px",background:"#ffffff01"}),e.appendChild(r)}$_layoutFloatings(t,e){e.forEach(((e,r)=>{const s=e.$_anc,A=e.$anp;let i=s.offsetLeft,n=s.offsetTop,o=s.offsetParent;const a=t[r];for(;o instanceof HTMLElement&&o!==a;)i+=o.offsetLeft,n+=o.offsetTop,o=o.offsetParent;switch(a.appendChild(e),A){case ys.INNER_LEFT:n-=(e.offsetHeight-s.offsetHeight)/2;break;case ys.LEFT:i-=e.offsetWidth,n-=(e.offsetHeight-s.offsetHeight)/2;break;case ys.INNER_RIGHT:i+=s.offsetWidth-e.offsetWidth,n-=(e.offsetHeight-s.offsetHeight)/2;break;case ys.RIGHT:i+=s.offsetWidth,n-=(e.offsetHeight-s.offsetHeight)/2;break;case ys.INNER_TOP:i-=(e.offsetWidth-s.offsetWidth)/2;break;case ys.TOP:i-=(e.offsetWidth-s.offsetWidth)/2,n-=e.offsetHeight;break;case ys.INNER_BOTTOM:i-=(e.offsetWidth-s.offsetWidth)/2,n+=s.offsetHeight-e.offsetHeight;break;case ys.BOTTOM:i-=(e.offsetWidth-s.offsetWidth)/2,n+=s.offsetHeight;break;case ys.CENTER:default:i-=(e.offsetWidth-s.offsetWidth)/2,n-=(e.offsetHeight-s.offsetHeight)/2}e.style.left=i+"px",e.style.top=n+"px"}))}}qa.CLASS_NAME="rr-report-container",qa.PREVIEW_CLASS="rr-report-preview",qa.CONFIRM_CLASS="$_rr_rendered_";class th extends v{constructor(){super(),this._dataMap={}}_doDispose(){this._dataMap=null,this._contextData=null,super._doDispose()}preparePrint(t){this._contextData=new Me(t);for(let e in this._dataMap){const r=this._dataMap[e];r instanceof Ne&&r.preparePrint(t,!1)}}getAll(){const t=[];for(let e in this._dataMap)t.push(this._dataMap[e]);return t}get(t){return this._dataMap[t]}getContextValue(t){return this._contextData.getValue(t)}getValue(t,e){if(t){const r=t.indexOf("::"),s=r>=0?t.substring(0,r):t,A=this._dataMap[s];if(A){if(t=r>=0?t.substr(r+2):null,!(A instanceof Ke))return A.getValue(t);if(e>=0)return A.getRowValue(e,t)}}}getValueAt(t,e,r){const s=this._dataMap[t];if(s)return s instanceof Ke?s.getRowValue(r,e):s.getValue(e)}getFieldValues(t,e){const r=this._dataMap[t];if(r)return r instanceof Ke?r.getFieldValues(e):[r.getValue(e)]}clear(){return this._dataMap={},this._contextData=null,this}register(t,e){if(e&&(t=t||e.name)){if(this._dataMap[t])throw new Error("Data is already exists: "+t);this._dataMap[t]=e}return this}load(t){if(t){for(let e in t){const r=t[e];if(r&&r.hasOwnProperty("values")){const t=r.values;let s=r.type;switch(s||(ot.isArray(t)?t.length>0&&(s=ot.isObject(t[0])?"band":"array"):ot.isObject(t)&&(s="simple")),s){case"array":this.register(e,new ze(e,null,t));break;case"band":this.register(e,new We(e,null,t));break;default:this.register(e,new ke(e,t))}}}return this}}}var eh=function(t,e){return eh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},eh(t,e)};function rh(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}eh(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var sh=function(){return sh=Object.assign||function(t){for(var e,r=1,s=arguments.length;r<s;r++)for(var A in e=arguments[r])Object.prototype.hasOwnProperty.call(e,A)&&(t[A]=e[A]);return t},sh.apply(this,arguments)};function Ah(t,e,r,s){return new(r||(r=Promise))((function(A,i){function n(t){try{a(s.next(t))}catch(t){i(t)}}function o(t){try{a(s.throw(t))}catch(t){i(t)}}function a(t){var e;t.done?A(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(n,o)}a((s=s.apply(t,e||[])).next())}))}function ih(t,e){var r,s,A,i,n={label:0,sent:function(){if(1&A[0])throw A[1];return A[1]},trys:[],ops:[]};return i={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function o(i){return function(o){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,s&&(A=2&i[0]?s.return:i[0]?s.throw||((A=s.return)&&A.call(s),0):s.next)&&!(A=A.call(s,i[1])).done)return A;switch(s=0,A&&(i=[2&i[0],A.value]),i[0]){case 0:case 1:A=i;break;case 4:return n.label++,{value:i[1],done:!1};case 5:n.label++,s=i[1],i=[0];continue;case 7:i=n.ops.pop(),n.trys.pop();continue;default:if(!(A=n.trys,(A=A.length>0&&A[A.length-1])||6!==i[0]&&2!==i[0])){n=0;continue}if(3===i[0]&&(!A||i[1]>A[0]&&i[1]<A[3])){n.label=i[1];break}if(6===i[0]&&n.label<A[1]){n.label=A[1],A=i;break}if(A&&n.label<A[2]){n.label=A[2],n.ops.push(i);break}A[2]&&n.ops.pop(),n.trys.pop();continue}i=e.call(t,n)}catch(t){i=[6,t],s=0}finally{r=A=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,o])}}}function nh(t,e,r){if(r||2===arguments.length)for(var s,A=0,i=e.length;A<i;A++)!s&&A in e||(s||(s=Array.prototype.slice.call(e,0,A)),s[A]=e[A]);return t.concat(s||e)}for(var oh=function(){function t(t,e,r,s){this.left=t,this.top=e,this.width=r,this.height=s}return t.prototype.add=function(e,r,s,A){return new t(this.left+e,this.top+r,this.width+s,this.height+A)},t.fromClientRect=function(e,r){return new t(r.left+e.windowBounds.left,r.top+e.windowBounds.top,r.width,r.height)},t.fromDOMRectList=function(e,r){var s=r[0];return s?new t(s.x+e.windowBounds.left,s.y+e.windowBounds.top,s.width,s.height):t.EMPTY},t.EMPTY=new t(0,0,0,0),t}(),ah=function(t,e){return oh.fromClientRect(t,e.getBoundingClientRect())},hh=function(t){for(var e=[],r=0,s=t.length;r<s;){var A=t.charCodeAt(r++);if(A>=55296&&A<=56319&&r<s){var i=t.charCodeAt(r++);56320==(64512&i)?e.push(((1023&A)<<10)+(1023&i)+65536):(e.push(A),r--)}else e.push(A)}return e},lh=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var r=t.length;if(!r)return"";for(var s=[],A=-1,i="";++A<r;){var n=t[A];n<=65535?s.push(n):(n-=65536,s.push(55296+(n>>10),n%1024+56320)),(A+1===r||s.length>16384)&&(i+=String.fromCharCode.apply(String,s),s.length=0)}return i},ch="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",uh="undefined"==typeof Uint8Array?[]:new Uint8Array(256),dh=0;dh<ch.length;dh++)uh[ch.charCodeAt(dh)]=dh;var ph=function(t,e,r){return t.slice?t.slice(e,r):new Uint16Array(Array.prototype.slice.call(t,e,r))},gh=function(){function t(t,e,r,s,A,i){this.initialValue=t,this.errorValue=e,this.highStart=r,this.highValueIndex=s,this.index=A,this.data=i}return t.prototype.get=function(t){var e;if(t>=0){if(t<55296||t>56319&&t<=65535)return e=((e=this.index[t>>5])<<2)+(31&t),this.data[e];if(t<=65535)return e=((e=this.index[2048+(t-55296>>5)])<<2)+(31&t),this.data[e];if(t<this.highStart)return e=2080+(t>>11),e=this.index[e],e+=t>>5&63,e=((e=this.index[e])<<2)+(31&t),this.data[e];if(t<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),fh=10,_h=13,mh=15,wh=17,Bh=18,Ch=19,yh=20,vh=21,Eh=22,bh=24,xh=25,Ph=26,Ih=27,Sh=28,Th=30,Fh=32,Rh=33,Oh=34,Qh=35,Dh=37,Lh=38,Uh=39,Hh=40,Nh=42,Mh=[9001,65288],kh="×",Vh="÷",Gh=function(t){var e,r,s,A=function(t){var e,r,s,A,i,n=.75*t.length,o=t.length,a=0;"="===t[t.length-1]&&(n--,"="===t[t.length-2]&&n--);var h="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(n):new Array(n),l=Array.isArray(h)?h:new Uint8Array(h);for(e=0;e<o;e+=4)r=uh[t.charCodeAt(e)],s=uh[t.charCodeAt(e+1)],A=uh[t.charCodeAt(e+2)],i=uh[t.charCodeAt(e+3)],l[a++]=r<<2|s>>4,l[a++]=(15&s)<<4|A>>2,l[a++]=(3&A)<<6|63&i;return h}(t),i=Array.isArray(A)?function(t){for(var e=t.length,r=[],s=0;s<e;s+=4)r.push(t[s+3]<<24|t[s+2]<<16|t[s+1]<<8|t[s]);return r}(A):new Uint32Array(A),n=Array.isArray(A)?function(t){for(var e=t.length,r=[],s=0;s<e;s+=2)r.push(t[s+1]<<8|t[s]);return r}(A):new Uint16Array(A),o=ph(n,12,i[4]/2),a=2===i[5]?ph(n,(24+i[4])/2):(e=i,r=Math.ceil((24+i[4])/4),e.slice?e.slice(r,s):new Uint32Array(Array.prototype.slice.call(e,r,s)));return new gh(i[0],i[1],i[2],i[3],o,a)}("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=="),Kh=[Th,36],Wh=[1,2,3,5],zh=[fh,8],Xh=[Ih,Ph],Jh=Wh.concat(zh),Yh=[Lh,Uh,Hh,Oh,Qh],$h=[mh,_h],jh=function(t,e,r,s){var A=s[r];if(Array.isArray(t)?-1!==t.indexOf(A):t===A)for(var i=r;i<=s.length;){if((a=s[++i])===e)return!0;if(a!==fh)break}if(A===fh)for(i=r;i>0;){var n=s[--i];if(Array.isArray(t)?-1!==t.indexOf(n):t===n)for(var o=r;o<=s.length;){var a;if((a=s[++o])===e)return!0;if(a!==fh)break}if(n!==fh)break}return!1},Zh=function(t,e){for(var r=t;r>=0;){var s=e[r];if(s!==fh)return s;r--}return 0},qh=function(t,e,r,s,A){if(0===r[s])return kh;var i=s-1;if(Array.isArray(A)&&!0===A[i])return kh;var n=i-1,o=i+1,a=e[i],h=n>=0?e[n]:0,l=e[o];if(2===a&&3===l)return kh;if(-1!==Wh.indexOf(a))return"!";if(-1!==Wh.indexOf(l))return kh;if(-1!==zh.indexOf(l))return kh;if(8===Zh(i,e))return Vh;if(11===Gh.get(t[i]))return kh;if((a===Fh||a===Rh)&&11===Gh.get(t[o]))return kh;if(7===a||7===l)return kh;if(9===a)return kh;if(-1===[fh,_h,mh].indexOf(a)&&9===l)return kh;if(-1!==[wh,Bh,Ch,bh,Sh].indexOf(l))return kh;if(Zh(i,e)===Eh)return kh;if(jh(23,Eh,i,e))return kh;if(jh([wh,Bh],vh,i,e))return kh;if(jh(12,12,i,e))return kh;if(a===fh)return Vh;if(23===a||23===l)return kh;if(16===l||16===a)return Vh;if(-1!==[_h,mh,vh].indexOf(l)||14===a)return kh;if(36===h&&-1!==$h.indexOf(a))return kh;if(a===Sh&&36===l)return kh;if(l===yh)return kh;if(-1!==Kh.indexOf(l)&&a===xh||-1!==Kh.indexOf(a)&&l===xh)return kh;if(a===Ih&&-1!==[Dh,Fh,Rh].indexOf(l)||-1!==[Dh,Fh,Rh].indexOf(a)&&l===Ph)return kh;if(-1!==Kh.indexOf(a)&&-1!==Xh.indexOf(l)||-1!==Xh.indexOf(a)&&-1!==Kh.indexOf(l))return kh;if(-1!==[Ih,Ph].indexOf(a)&&(l===xh||-1!==[Eh,mh].indexOf(l)&&e[o+1]===xh)||-1!==[Eh,mh].indexOf(a)&&l===xh||a===xh&&-1!==[xh,Sh,bh].indexOf(l))return kh;if(-1!==[xh,Sh,bh,wh,Bh].indexOf(l))for(var c=i;c>=0;){if((u=e[c])===xh)return kh;if(-1===[Sh,bh].indexOf(u))break;c--}if(-1!==[Ih,Ph].indexOf(l))for(c=-1!==[wh,Bh].indexOf(a)?n:i;c>=0;){var u;if((u=e[c])===xh)return kh;if(-1===[Sh,bh].indexOf(u))break;c--}if(Lh===a&&-1!==[Lh,Uh,Oh,Qh].indexOf(l)||-1!==[Uh,Oh].indexOf(a)&&-1!==[Uh,Hh].indexOf(l)||-1!==[Hh,Qh].indexOf(a)&&l===Hh)return kh;if(-1!==Yh.indexOf(a)&&-1!==[yh,Ph].indexOf(l)||-1!==Yh.indexOf(l)&&a===Ih)return kh;if(-1!==Kh.indexOf(a)&&-1!==Kh.indexOf(l))return kh;if(a===bh&&-1!==Kh.indexOf(l))return kh;if(-1!==Kh.concat(xh).indexOf(a)&&l===Eh&&-1===Mh.indexOf(t[o])||-1!==Kh.concat(xh).indexOf(l)&&a===Bh)return kh;if(41===a&&41===l){for(var d=r[i],p=1;d>0&&41===e[--d];)p++;if(p%2!=0)return kh}return a===Fh&&l===Rh?kh:Vh},tl=function(t,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var r=function(t,e){void 0===e&&(e="strict");var r=[],s=[],A=[];return t.forEach((function(t,i){var n=Gh.get(t);if(n>50?(A.push(!0),n-=50):A.push(!1),-1!==["normal","auto","loose"].indexOf(e)&&-1!==[8208,8211,12316,12448].indexOf(t))return s.push(i),r.push(16);if(4===n||11===n){if(0===i)return s.push(i),r.push(Th);var o=r[i-1];return-1===Jh.indexOf(o)?(s.push(s[i-1]),r.push(o)):(s.push(i),r.push(Th))}return s.push(i),31===n?r.push("strict"===e?vh:Dh):n===Nh||29===n?r.push(Th):43===n?t>=131072&&t<=196605||t>=196608&&t<=262141?r.push(Dh):r.push(Th):void r.push(n)})),[s,r,A]}(t,e.lineBreak),s=r[0],A=r[1],i=r[2];"break-all"!==e.wordBreak&&"break-word"!==e.wordBreak||(A=A.map((function(t){return-1!==[xh,Th,Nh].indexOf(t)?Dh:t})));var n="keep-all"===e.wordBreak?i.map((function(e,r){return e&&t[r]>=19968&&t[r]<=40959})):void 0;return[s,A,n]},el=function(){function t(t,e,r,s){this.codePoints=t,this.required="!"===e,this.start=r,this.end=s}return t.prototype.slice=function(){return lh.apply(void 0,this.codePoints.slice(this.start,this.end))},t}(),rl=45,sl=43,Al=-1,il=function(t){return t>=48&&t<=57},nl=function(t){return il(t)||t>=65&&t<=70||t>=97&&t<=102},ol=function(t){return 10===t||9===t||32===t},al=function(t){return function(t){return function(t){return t>=97&&t<=122}(t)||function(t){return t>=65&&t<=90}(t)}(t)||function(t){return t>=128}(t)||95===t},hl=function(t){return al(t)||il(t)||t===rl},ll=function(t){return t>=0&&t<=8||11===t||t>=14&&t<=31||127===t},cl=function(t,e){return 92===t&&10!==e},ul=function(t,e,r){return t===rl?al(e)||cl(e,r):!!al(t)||!(92!==t||!cl(t,e))},dl=function(t,e,r){return t===sl||t===rl?!!il(e)||46===e&&il(r):il(46===t?e:t)},pl=function(t){var e=0,r=1;t[e]!==sl&&t[e]!==rl||(t[e]===rl&&(r=-1),e++);for(var s=[];il(t[e]);)s.push(t[e++]);var A=s.length?parseInt(lh.apply(void 0,s),10):0;46===t[e]&&e++;for(var i=[];il(t[e]);)i.push(t[e++]);var n=i.length,o=n?parseInt(lh.apply(void 0,i),10):0;69!==t[e]&&101!==t[e]||e++;var a=1;t[e]!==sl&&t[e]!==rl||(t[e]===rl&&(a=-1),e++);for(var h=[];il(t[e]);)h.push(t[e++]);var l=h.length?parseInt(lh.apply(void 0,h),10):0;return r*(A+o*Math.pow(10,-n))*Math.pow(10,a*l)},gl={type:2},fl={type:3},_l={type:4},ml={type:13},wl={type:8},Bl={type:21},Cl={type:9},yl={type:10},vl={type:11},El={type:12},bl={type:14},xl={type:23},Pl={type:1},Il={type:25},Sl={type:24},Tl={type:26},Fl={type:27},Rl={type:28},Ol={type:29},Ql={type:31},Dl={type:32},Ll=function(){function t(){this._value=[]}return t.prototype.write=function(t){this._value=this._value.concat(hh(t))},t.prototype.read=function(){for(var t=[],e=this.consumeToken();e!==Dl;)t.push(e),e=this.consumeToken();return t},t.prototype.consumeToken=function(){var t=this.consumeCodePoint();switch(t){case 34:return this.consumeStringToken(34);case 35:var e=this.peekCodePoint(0),r=this.peekCodePoint(1),s=this.peekCodePoint(2);if(hl(e)||cl(r,s)){var A=ul(e,r,s)?2:1;return{type:5,value:this.consumeName(),flags:A}}break;case 36:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),ml;break;case 39:return this.consumeStringToken(39);case 40:return gl;case 41:return fl;case 42:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),bl;break;case sl:if(dl(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case 44:return _l;case rl:var i=t,n=this.peekCodePoint(0),o=this.peekCodePoint(1);if(dl(i,n,o))return this.reconsumeCodePoint(t),this.consumeNumericToken();if(ul(i,n,o))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();if(n===rl&&62===o)return this.consumeCodePoint(),this.consumeCodePoint(),Sl;break;case 46:if(dl(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case 47:if(42===this.peekCodePoint(0))for(this.consumeCodePoint();;){var a=this.consumeCodePoint();if(42===a&&47===(a=this.consumeCodePoint()))return this.consumeToken();if(a===Al)return this.consumeToken()}break;case 58:return Tl;case 59:return Fl;case 60:if(33===this.peekCodePoint(0)&&this.peekCodePoint(1)===rl&&this.peekCodePoint(2)===rl)return this.consumeCodePoint(),this.consumeCodePoint(),Il;break;case 64:var h=this.peekCodePoint(0),l=this.peekCodePoint(1),c=this.peekCodePoint(2);if(ul(h,l,c))return{type:7,value:this.consumeName()};break;case 91:return Rl;case 92:if(cl(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();break;case 93:return Ol;case 61:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),wl;break;case 123:return vl;case 125:return El;case 117:case 85:var u=this.peekCodePoint(0),d=this.peekCodePoint(1);return u!==sl||!nl(d)&&63!==d||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(t),this.consumeIdentLikeToken();case 124:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Cl;if(124===this.peekCodePoint(0))return this.consumeCodePoint(),Bl;break;case 126:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),yl;break;case Al:return Dl}return ol(t)?(this.consumeWhiteSpace(),Ql):il(t)?(this.reconsumeCodePoint(t),this.consumeNumericToken()):al(t)?(this.reconsumeCodePoint(t),this.consumeIdentLikeToken()):{type:6,value:lh(t)}},t.prototype.consumeCodePoint=function(){var t=this._value.shift();return void 0===t?-1:t},t.prototype.reconsumeCodePoint=function(t){this._value.unshift(t)},t.prototype.peekCodePoint=function(t){return t>=this._value.length?-1:this._value[t]},t.prototype.consumeUnicodeRangeToken=function(){for(var t=[],e=this.consumeCodePoint();nl(e)&&t.length<6;)t.push(e),e=this.consumeCodePoint();for(var r=!1;63===e&&t.length<6;)t.push(e),e=this.consumeCodePoint(),r=!0;if(r)return{type:30,start:parseInt(lh.apply(void 0,t.map((function(t){return 63===t?48:t}))),16),end:parseInt(lh.apply(void 0,t.map((function(t){return 63===t?70:t}))),16)};var s=parseInt(lh.apply(void 0,t),16);if(this.peekCodePoint(0)===rl&&nl(this.peekCodePoint(1))){this.consumeCodePoint(),e=this.consumeCodePoint();for(var A=[];nl(e)&&A.length<6;)A.push(e),e=this.consumeCodePoint();return{type:30,start:s,end:parseInt(lh.apply(void 0,A),16)}}return{type:30,start:s,end:s}},t.prototype.consumeIdentLikeToken=function(){var t=this.consumeName();return"url"===t.toLowerCase()&&40===this.peekCodePoint(0)?(this.consumeCodePoint(),this.consumeUrlToken()):40===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:19,value:t}):{type:20,value:t}},t.prototype.consumeUrlToken=function(){var t=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Al)return{type:22,value:""};var e=this.peekCodePoint(0);if(39===e||34===e){var r=this.consumeStringToken(this.consumeCodePoint());return 0===r.type&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Al||41===this.peekCodePoint(0))?(this.consumeCodePoint(),{type:22,value:r.value}):(this.consumeBadUrlRemnants(),xl)}for(;;){var s=this.consumeCodePoint();if(s===Al||41===s)return{type:22,value:lh.apply(void 0,t)};if(ol(s))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Al||41===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:22,value:lh.apply(void 0,t)}):(this.consumeBadUrlRemnants(),xl);if(34===s||39===s||40===s||ll(s))return this.consumeBadUrlRemnants(),xl;if(92===s){if(!cl(s,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),xl;t.push(this.consumeEscapedCodePoint())}else t.push(s)}},t.prototype.consumeWhiteSpace=function(){for(;ol(this.peekCodePoint(0));)this.consumeCodePoint()},t.prototype.consumeBadUrlRemnants=function(){for(;;){var t=this.consumeCodePoint();if(41===t||t===Al)return;cl(t,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},t.prototype.consumeStringSlice=function(t){for(var e="";t>0;){var r=Math.min(6e4,t);e+=lh.apply(void 0,this._value.splice(0,r)),t-=r}return this._value.shift(),e},t.prototype.consumeStringToken=function(t){for(var e="",r=0;;){var s=this._value[r];if(s===Al||void 0===s||s===t)return{type:0,value:e+=this.consumeStringSlice(r)};if(10===s)return this._value.splice(0,r),Pl;if(92===s){var A=this._value[r+1];A!==Al&&void 0!==A&&(10===A?(e+=this.consumeStringSlice(r),r=-1,this._value.shift()):cl(s,A)&&(e+=this.consumeStringSlice(r),e+=lh(this.consumeEscapedCodePoint()),r=-1))}r++}},t.prototype.consumeNumber=function(){var t=[],e=4,r=this.peekCodePoint(0);for(r!==sl&&r!==rl||t.push(this.consumeCodePoint());il(this.peekCodePoint(0));)t.push(this.consumeCodePoint());r=this.peekCodePoint(0);var s=this.peekCodePoint(1);if(46===r&&il(s))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),e=8;il(this.peekCodePoint(0));)t.push(this.consumeCodePoint());r=this.peekCodePoint(0),s=this.peekCodePoint(1);var A=this.peekCodePoint(2);if((69===r||101===r)&&((s===sl||s===rl)&&il(A)||il(s)))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),e=8;il(this.peekCodePoint(0));)t.push(this.consumeCodePoint());return[pl(t),e]},t.prototype.consumeNumericToken=function(){var t=this.consumeNumber(),e=t[0],r=t[1],s=this.peekCodePoint(0),A=this.peekCodePoint(1),i=this.peekCodePoint(2);return ul(s,A,i)?{type:15,number:e,flags:r,unit:this.consumeName()}:37===s?(this.consumeCodePoint(),{type:16,number:e,flags:r}):{type:17,number:e,flags:r}},t.prototype.consumeEscapedCodePoint=function(){var t=this.consumeCodePoint();if(nl(t)){for(var e=lh(t);nl(this.peekCodePoint(0))&&e.length<6;)e+=lh(this.consumeCodePoint());ol(this.peekCodePoint(0))&&this.consumeCodePoint();var r=parseInt(e,16);return 0===r||function(t){return t>=55296&&t<=57343}(r)||r>1114111?65533:r}return t===Al?65533:t},t.prototype.consumeName=function(){for(var t="";;){var e=this.consumeCodePoint();if(hl(e))t+=lh(e);else{if(!cl(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),t;t+=lh(this.consumeEscapedCodePoint())}}},t}(),Ul=function(){function t(t){this._tokens=t}return t.create=function(e){var r=new Ll;return r.write(e),new t(r.read())},t.parseValue=function(e){return t.create(e).parseComponentValue()},t.parseValues=function(e){return t.create(e).parseComponentValues()},t.prototype.parseComponentValue=function(){for(var t=this.consumeToken();31===t.type;)t=this.consumeToken();if(32===t.type)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(t);var e=this.consumeComponentValue();do{t=this.consumeToken()}while(31===t.type);if(32===t.type)return e;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},t.prototype.parseComponentValues=function(){for(var t=[];;){var e=this.consumeComponentValue();if(32===e.type)return t;t.push(e),t.push()}},t.prototype.consumeComponentValue=function(){var t=this.consumeToken();switch(t.type){case 11:case 28:case 2:return this.consumeSimpleBlock(t.type);case 19:return this.consumeFunction(t)}return t},t.prototype.consumeSimpleBlock=function(t){for(var e={type:t,values:[]},r=this.consumeToken();;){if(32===r.type||zl(r,t))return e;this.reconsumeToken(r),e.values.push(this.consumeComponentValue()),r=this.consumeToken()}},t.prototype.consumeFunction=function(t){for(var e={name:t.value,values:[],type:18};;){var r=this.consumeToken();if(32===r.type||3===r.type)return e;this.reconsumeToken(r),e.values.push(this.consumeComponentValue())}},t.prototype.consumeToken=function(){var t=this._tokens.shift();return void 0===t?Dl:t},t.prototype.reconsumeToken=function(t){this._tokens.unshift(t)},t}(),Hl=function(t){return 15===t.type},Nl=function(t){return 17===t.type},Ml=function(t){return 20===t.type},kl=function(t){return 0===t.type},Vl=function(t,e){return Ml(t)&&t.value===e},Gl=function(t){return 31!==t.type},Kl=function(t){return 31!==t.type&&4!==t.type},Wl=function(t){var e=[],r=[];return t.forEach((function(t){if(4===t.type){if(0===r.length)throw new Error("Error parsing function args, zero tokens for arg");return e.push(r),void(r=[])}31!==t.type&&r.push(t)})),r.length&&e.push(r),e},zl=function(t,e){return 11===e&&12===t.type||(28===e&&29===t.type||2===e&&3===t.type)},Xl=function(t){return 17===t.type||15===t.type},Jl=function(t){return 16===t.type||Xl(t)},Yl=function(t){return t.length>1?[t[0],t[1]]:[t[0]]},$l={type:17,number:0,flags:4},jl={type:16,number:50,flags:4},Zl={type:16,number:100,flags:4},ql=function(t,e,r){var s=t[0],A=t[1];return[tc(s,e),tc(void 0!==A?A:s,r)]},tc=function(t,e){if(16===t.type)return t.number/100*e;if(Hl(t))switch(t.unit){case"rem":case"em":return 16*t.number;default:return t.number}return t.number},ec="grad",rc="turn",sc=function(t,e){if(15===e.type)switch(e.unit){case"deg":return Math.PI*e.number/180;case ec:return Math.PI/200*e.number;case"rad":return e.number;case rc:return 2*Math.PI*e.number}throw new Error("Unsupported angle type")},Ac=function(t){return 15===t.type&&("deg"===t.unit||t.unit===ec||"rad"===t.unit||t.unit===rc)},ic=function(t){switch(t.filter(Ml).map((function(t){return t.value})).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[$l,$l];case"to top":case"bottom":return nc(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[$l,Zl];case"to right":case"left":return nc(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Zl,Zl];case"to bottom":case"top":return nc(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Zl,$l];case"to left":case"right":return nc(270)}return 0},nc=function(t){return Math.PI*t/180},oc=function(t,e){if(18===e.type){var r=fc[e.name];if(void 0===r)throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return r(t,e.values)}if(5===e.type){if(3===e.value.length){var s=e.value.substring(0,1),A=e.value.substring(1,2),i=e.value.substring(2,3);return lc(parseInt(s+s,16),parseInt(A+A,16),parseInt(i+i,16),1)}if(4===e.value.length){s=e.value.substring(0,1),A=e.value.substring(1,2),i=e.value.substring(2,3);var n=e.value.substring(3,4);return lc(parseInt(s+s,16),parseInt(A+A,16),parseInt(i+i,16),parseInt(n+n,16)/255)}if(6===e.value.length){s=e.value.substring(0,2),A=e.value.substring(2,4),i=e.value.substring(4,6);return lc(parseInt(s,16),parseInt(A,16),parseInt(i,16),1)}if(8===e.value.length){s=e.value.substring(0,2),A=e.value.substring(2,4),i=e.value.substring(4,6),n=e.value.substring(6,8);return lc(parseInt(s,16),parseInt(A,16),parseInt(i,16),parseInt(n,16)/255)}}if(20===e.type){var o=mc[e.value.toUpperCase()];if(void 0!==o)return o}return mc.TRANSPARENT},ac=function(t){return 0==(255&t)},hc=function(t){var e=255&t,r=255&t>>8,s=255&t>>16,A=255&t>>24;return e<255?"rgba("+A+","+s+","+r+","+e/255+")":"rgb("+A+","+s+","+r+")"},lc=function(t,e,r,s){return(t<<24|e<<16|r<<8|Math.round(255*s)<<0)>>>0},cc=function(t,e){if(17===t.type)return t.number;if(16===t.type){var r=3===e?1:255;return 3===e?t.number/100*r:Math.round(t.number/100*r)}return 0},uc=function(t,e){var r=e.filter(Kl);if(3===r.length){var s=r.map(cc),A=s[0],i=s[1],n=s[2];return lc(A,i,n,1)}if(4===r.length){var o=r.map(cc),a=(A=o[0],i=o[1],n=o[2],o[3]);return lc(A,i,n,a)}return 0};function dc(t,e,r){return r<0&&(r+=1),r>=1&&(r-=1),r<1/6?(e-t)*r*6+t:r<.5?e:r<2/3?6*(e-t)*(2/3-r)+t:t}var pc,gc=function(t,e){var r=e.filter(Kl),s=r[0],A=r[1],i=r[2],n=r[3],o=(17===s.type?nc(s.number):sc(t,s))/(2*Math.PI),a=Jl(A)?A.number/100:0,h=Jl(i)?i.number/100:0,l=void 0!==n&&Jl(n)?tc(n,1):1;if(0===a)return lc(255*h,255*h,255*h,1);var c=h<=.5?h*(a+1):h+a-h*a,u=2*h-c,d=dc(u,c,o+1/3),p=dc(u,c,o),g=dc(u,c,o-1/3);return lc(255*d,255*p,255*g,l)},fc={hsl:gc,hsla:gc,rgb:uc,rgba:uc},_c=function(t,e){return oc(t,Ul.create(e).parseComponentValue())},mc={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};!function(t){t[t.BORDER_BOX=0]="BORDER_BOX",t[t.PADDING_BOX=1]="PADDING_BOX",t[t.CONTENT_BOX=2]="CONTENT_BOX"}(pc||(pc={}));var wc,Bc={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(t,e){return e.map((function(t){if(Ml(t))switch(t.value){case"padding-box":return pc.PADDING_BOX;case"content-box":return pc.CONTENT_BOX}return pc.BORDER_BOX}))}},Cc={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},yc=function(t,e){var r=oc(t,e[0]),s=e[1];return s&&Jl(s)?{color:r,stop:s}:{color:r,stop:null}},vc=function(t,e){var r=t[0],s=t[t.length-1];null===r.stop&&(r.stop=$l),null===s.stop&&(s.stop=Zl);for(var A=[],i=0,n=0;n<t.length;n++){var o=t[n].stop;if(null!==o){var a=tc(o,e);a>i?A.push(a):A.push(i),i=a}else A.push(null)}var h=null;for(n=0;n<A.length;n++){var l=A[n];if(null===l)null===h&&(h=n);else if(null!==h){for(var c=n-h,u=(l-A[h-1])/(c+1),d=1;d<=c;d++)A[h+d-1]=u*d;h=null}}return t.map((function(t,r){return{color:t.color,stop:Math.max(Math.min(1,A[r]/e),0)}}))},Ec=function(t,e,r){var s="number"==typeof t?t:function(t,e,r){var s=e/2,A=r/2,i=tc(t[0],e)-s,n=A-tc(t[1],r);return(Math.atan2(n,i)+2*Math.PI)%(2*Math.PI)}(t,e,r),A=Math.abs(e*Math.sin(s))+Math.abs(r*Math.cos(s)),i=e/2,n=r/2,o=A/2,a=Math.sin(s-Math.PI/2)*o,h=Math.cos(s-Math.PI/2)*o;return[A,i-h,i+h,n-a,n+a]},bc=function(t,e){return Math.sqrt(t*t+e*e)},xc=function(t,e,r,s,A){return[[0,0],[0,e],[t,0],[t,e]].reduce((function(t,e){var i=e[0],n=e[1],o=bc(r-i,s-n);return(A?o<t.optimumDistance:o>t.optimumDistance)?{optimumCorner:e,optimumDistance:o}:t}),{optimumDistance:A?1/0:-1/0,optimumCorner:null}).optimumCorner},Pc=function(t,e){var r=nc(180),s=[];return Wl(e).forEach((function(e,A){if(0===A){var i=e[0];if(20===i.type&&-1!==["top","left","right","bottom"].indexOf(i.value))return void(r=ic(e));if(Ac(i))return void(r=(sc(t,i)+nc(270))%nc(360))}var n=yc(t,e);s.push(n)})),{angle:r,stops:s,type:wc.LINEAR_GRADIENT}},Ic="closest-side",Sc="farthest-side",Tc="closest-corner",Fc="farthest-corner",Rc="circle",Oc="ellipse",Qc="cover",Dc="contain",Lc=function(t,e){var r=Uc.CIRCLE,s=Hc.FARTHEST_CORNER,A=[],i=[];return Wl(e).forEach((function(e,n){var o=!0;if(0===n?o=e.reduce((function(t,e){if(Ml(e))switch(e.value){case"center":return i.push(jl),!1;case"top":case"left":return i.push($l),!1;case"right":case"bottom":return i.push(Zl),!1}else if(Jl(e)||Xl(e))return i.push(e),!1;return t}),o):1===n&&(o=e.reduce((function(t,e){if(Ml(e))switch(e.value){case Rc:return r=Uc.CIRCLE,!1;case Oc:return r=Uc.ELLIPSE,!1;case Dc:case Ic:return s=Hc.CLOSEST_SIDE,!1;case Sc:return s=Hc.FARTHEST_SIDE,!1;case Tc:return s=Hc.CLOSEST_CORNER,!1;case Qc:case Fc:return s=Hc.FARTHEST_CORNER,!1}else if(Xl(e)||Jl(e))return Array.isArray(s)||(s=[]),s.push(e),!1;return t}),o)),o){var a=yc(t,e);A.push(a)}})),{size:s,shape:r,stops:A,position:i,type:wc.RADIAL_GRADIENT}};!function(t){t[t.URL=0]="URL",t[t.LINEAR_GRADIENT=1]="LINEAR_GRADIENT",t[t.RADIAL_GRADIENT=2]="RADIAL_GRADIENT"}(wc||(wc={}));var Uc,Hc;!function(t){t[t.CIRCLE=0]="CIRCLE",t[t.ELLIPSE=1]="ELLIPSE"}(Uc||(Uc={})),function(t){t[t.CLOSEST_SIDE=0]="CLOSEST_SIDE",t[t.FARTHEST_SIDE=1]="FARTHEST_SIDE",t[t.CLOSEST_CORNER=2]="CLOSEST_CORNER",t[t.FARTHEST_CORNER=3]="FARTHEST_CORNER"}(Hc||(Hc={}));var Nc=function(t,e){if(22===e.type){var r={url:e.value,type:wc.URL};return t.cache.addImage(e.value),r}if(18===e.type){var s=kc[e.name];if(void 0===s)throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return s(t,e.values)}throw new Error("Unsupported image type "+e.type)};var Mc,kc={"linear-gradient":function(t,e){var r=nc(180),s=[];return Wl(e).forEach((function(e,A){if(0===A){var i=e[0];if(20===i.type&&"to"===i.value)return void(r=ic(e));if(Ac(i))return void(r=sc(t,i))}var n=yc(t,e);s.push(n)})),{angle:r,stops:s,type:wc.LINEAR_GRADIENT}},"-moz-linear-gradient":Pc,"-ms-linear-gradient":Pc,"-o-linear-gradient":Pc,"-webkit-linear-gradient":Pc,"radial-gradient":function(t,e){var r=Uc.CIRCLE,s=Hc.FARTHEST_CORNER,A=[],i=[];return Wl(e).forEach((function(e,n){var o=!0;if(0===n){var a=!1;o=e.reduce((function(t,e){if(a)if(Ml(e))switch(e.value){case"center":return i.push(jl),t;case"top":case"left":return i.push($l),t;case"right":case"bottom":return i.push(Zl),t}else(Jl(e)||Xl(e))&&i.push(e);else if(Ml(e))switch(e.value){case Rc:return r=Uc.CIRCLE,!1;case Oc:return r=Uc.ELLIPSE,!1;case"at":return a=!0,!1;case Ic:return s=Hc.CLOSEST_SIDE,!1;case Qc:case Sc:return s=Hc.FARTHEST_SIDE,!1;case Dc:case Tc:return s=Hc.CLOSEST_CORNER,!1;case Fc:return s=Hc.FARTHEST_CORNER,!1}else if(Xl(e)||Jl(e))return Array.isArray(s)||(s=[]),s.push(e),!1;return t}),o)}if(o){var h=yc(t,e);A.push(h)}})),{size:s,shape:r,stops:A,position:i,type:wc.RADIAL_GRADIENT}},"-moz-radial-gradient":Lc,"-ms-radial-gradient":Lc,"-o-radial-gradient":Lc,"-webkit-radial-gradient":Lc,"-webkit-gradient":function(t,e){var r=nc(180),s=[],A=wc.LINEAR_GRADIENT,i=Uc.CIRCLE,n=Hc.FARTHEST_CORNER;return Wl(e).forEach((function(e,r){var i=e[0];if(0===r){if(Ml(i)&&"linear"===i.value)return void(A=wc.LINEAR_GRADIENT);if(Ml(i)&&"radial"===i.value)return void(A=wc.RADIAL_GRADIENT)}if(18===i.type)if("from"===i.name){var n=oc(t,i.values[0]);s.push({stop:$l,color:n})}else if("to"===i.name){n=oc(t,i.values[0]);s.push({stop:Zl,color:n})}else if("color-stop"===i.name){var o=i.values.filter(Kl);if(2===o.length){n=oc(t,o[1]);var a=o[0];Nl(a)&&s.push({stop:{type:16,number:100*a.number,flags:a.flags},color:n})}}})),A===wc.LINEAR_GRADIENT?{angle:(r+nc(180))%nc(360),stops:s,type:A}:{size:n,shape:i,stops:s,position:[],type:A}}},Vc={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(t,e){if(0===e.length)return[];var r=e[0];return 20===r.type&&"none"===r.value?[]:e.filter((function(t){return Kl(t)&&function(t){return!(20===t.type&&"none"===t.value||18===t.type&&!kc[t.name])}(t)})).map((function(e){return Nc(t,e)}))}},Gc={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(t,e){return e.map((function(t){if(Ml(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},Kc={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(t,e){return Wl(e).map((function(t){return t.filter(Jl)})).map(Yl)}};!function(t){t[t.REPEAT=0]="REPEAT",t[t.NO_REPEAT=1]="NO_REPEAT",t[t.REPEAT_X=2]="REPEAT_X",t[t.REPEAT_Y=3]="REPEAT_Y"}(Mc||(Mc={}));var Wc,zc={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(t,e){return Wl(e).map((function(t){return t.filter(Ml).map((function(t){return t.value})).join(" ")})).map(Xc)}},Xc=function(t){switch(t){case"no-repeat":return Mc.NO_REPEAT;case"repeat-x":case"repeat no-repeat":return Mc.REPEAT_X;case"repeat-y":case"no-repeat repeat":return Mc.REPEAT_Y;default:return Mc.REPEAT}};!function(t){t.AUTO="auto",t.CONTAIN="contain",t.COVER="cover"}(Wc||(Wc={}));var Jc,Yc={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(t,e){return Wl(e).map((function(t){return t.filter($c)}))}},$c=function(t){return Ml(t)||Jl(t)},jc=function(t){return{name:"border-"+t+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Zc=jc("top"),qc=jc("right"),tu=jc("bottom"),eu=jc("left"),ru=function(t){return{name:"border-radius-"+t,initialValue:"0 0",prefix:!1,type:1,parse:function(t,e){return Yl(e.filter(Jl))}}},su=ru("top-left"),Au=ru("top-right"),iu=ru("bottom-right"),nu=ru("bottom-left");!function(t){t[t.NONE=0]="NONE",t[t.SOLID=1]="SOLID",t[t.DASHED=2]="DASHED",t[t.DOTTED=3]="DOTTED",t[t.DOUBLE=4]="DOUBLE"}(Jc||(Jc={}));var ou,au=function(t){return{name:"border-"+t+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(t,e){switch(e){case"none":return Jc.NONE;case"dashed":return Jc.DASHED;case"dotted":return Jc.DOTTED;case"double":return Jc.DOUBLE}return Jc.SOLID}}},hu=au("top"),lu=au("right"),cu=au("bottom"),uu=au("left"),du=function(t){return{name:"border-"+t+"-width",initialValue:"0",type:0,prefix:!1,parse:function(t,e){return Hl(e)?e.number:0}}},pu=du("top"),gu=du("right"),fu=du("bottom"),_u=du("left"),mu={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},wu={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(t,e){return"rtl"===e?1:0}},Bu={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(t,e){return e.filter(Ml).reduce((function(t,e){return t|Cu(e.value)}),0)}},Cu=function(t){switch(t){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};!function(t){t[t.NONE=0]="NONE",t[t.LEFT=1]="LEFT",t[t.RIGHT=2]="RIGHT",t[t.INLINE_START=3]="INLINE_START",t[t.INLINE_END=4]="INLINE_END"}(ou||(ou={}));var yu,vu={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"left":return ou.LEFT;case"right":return ou.RIGHT;case"inline-start":return ou.INLINE_START;case"inline-end":return ou.INLINE_END}return ou.NONE}},Eu={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(t,e){return 20===e.type&&"normal"===e.value?0:17===e.type||15===e.type?e.number:0}};!function(t){t.NORMAL="normal",t.STRICT="strict"}(yu||(yu={}));var bu,xu={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){return"strict"===e?yu.STRICT:yu.NORMAL}},Pu={name:"line-height",initialValue:"normal",prefix:!1,type:4},Iu=function(t,e){return Ml(t)&&"normal"===t.value?1.2*e:17===t.type?e*t.number:Jl(t)?tc(t,e):e},Su={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(t,e){return 20===e.type&&"none"===e.value?null:Nc(t,e)}};!function(t){t[t.INSIDE=0]="INSIDE",t[t.OUTSIDE=1]="OUTSIDE"}(bu||(bu={}));var Tu,Fu={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(t,e){return"inside"===e?bu.INSIDE:bu.OUTSIDE}};!function(t){t[t.NONE=-1]="NONE",t[t.DISC=0]="DISC",t[t.CIRCLE=1]="CIRCLE",t[t.SQUARE=2]="SQUARE",t[t.DECIMAL=3]="DECIMAL",t[t.CJK_DECIMAL=4]="CJK_DECIMAL",t[t.DECIMAL_LEADING_ZERO=5]="DECIMAL_LEADING_ZERO",t[t.LOWER_ROMAN=6]="LOWER_ROMAN",t[t.UPPER_ROMAN=7]="UPPER_ROMAN",t[t.LOWER_GREEK=8]="LOWER_GREEK",t[t.LOWER_ALPHA=9]="LOWER_ALPHA",t[t.UPPER_ALPHA=10]="UPPER_ALPHA",t[t.ARABIC_INDIC=11]="ARABIC_INDIC",t[t.ARMENIAN=12]="ARMENIAN",t[t.BENGALI=13]="BENGALI",t[t.CAMBODIAN=14]="CAMBODIAN",t[t.CJK_EARTHLY_BRANCH=15]="CJK_EARTHLY_BRANCH",t[t.CJK_HEAVENLY_STEM=16]="CJK_HEAVENLY_STEM",t[t.CJK_IDEOGRAPHIC=17]="CJK_IDEOGRAPHIC",t[t.DEVANAGARI=18]="DEVANAGARI",t[t.ETHIOPIC_NUMERIC=19]="ETHIOPIC_NUMERIC",t[t.GEORGIAN=20]="GEORGIAN",t[t.GUJARATI=21]="GUJARATI",t[t.GURMUKHI=22]="GURMUKHI",t[t.HEBREW=22]="HEBREW",t[t.HIRAGANA=23]="HIRAGANA",t[t.HIRAGANA_IROHA=24]="HIRAGANA_IROHA",t[t.JAPANESE_FORMAL=25]="JAPANESE_FORMAL",t[t.JAPANESE_INFORMAL=26]="JAPANESE_INFORMAL",t[t.KANNADA=27]="KANNADA",t[t.KATAKANA=28]="KATAKANA",t[t.KATAKANA_IROHA=29]="KATAKANA_IROHA",t[t.KHMER=30]="KHMER",t[t.KOREAN_HANGUL_FORMAL=31]="KOREAN_HANGUL_FORMAL",t[t.KOREAN_HANJA_FORMAL=32]="KOREAN_HANJA_FORMAL",t[t.KOREAN_HANJA_INFORMAL=33]="KOREAN_HANJA_INFORMAL",t[t.LAO=34]="LAO",t[t.LOWER_ARMENIAN=35]="LOWER_ARMENIAN",t[t.MALAYALAM=36]="MALAYALAM",t[t.MONGOLIAN=37]="MONGOLIAN",t[t.MYANMAR=38]="MYANMAR",t[t.ORIYA=39]="ORIYA",t[t.PERSIAN=40]="PERSIAN",t[t.SIMP_CHINESE_FORMAL=41]="SIMP_CHINESE_FORMAL",t[t.SIMP_CHINESE_INFORMAL=42]="SIMP_CHINESE_INFORMAL",t[t.TAMIL=43]="TAMIL",t[t.TELUGU=44]="TELUGU",t[t.THAI=45]="THAI",t[t.TIBETAN=46]="TIBETAN",t[t.TRAD_CHINESE_FORMAL=47]="TRAD_CHINESE_FORMAL",t[t.TRAD_CHINESE_INFORMAL=48]="TRAD_CHINESE_INFORMAL",t[t.UPPER_ARMENIAN=49]="UPPER_ARMENIAN",t[t.DISCLOSURE_OPEN=50]="DISCLOSURE_OPEN",t[t.DISCLOSURE_CLOSED=51]="DISCLOSURE_CLOSED"}(Tu||(Tu={}));var Ru,Ou={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"disc":return Tu.DISC;case"circle":return Tu.CIRCLE;case"square":return Tu.SQUARE;case"decimal":return Tu.DECIMAL;case"cjk-decimal":return Tu.CJK_DECIMAL;case"decimal-leading-zero":return Tu.DECIMAL_LEADING_ZERO;case"lower-roman":return Tu.LOWER_ROMAN;case"upper-roman":return Tu.UPPER_ROMAN;case"lower-greek":return Tu.LOWER_GREEK;case"lower-alpha":return Tu.LOWER_ALPHA;case"upper-alpha":return Tu.UPPER_ALPHA;case"arabic-indic":return Tu.ARABIC_INDIC;case"armenian":return Tu.ARMENIAN;case"bengali":return Tu.BENGALI;case"cambodian":return Tu.CAMBODIAN;case"cjk-earthly-branch":return Tu.CJK_EARTHLY_BRANCH;case"cjk-heavenly-stem":return Tu.CJK_HEAVENLY_STEM;case"cjk-ideographic":return Tu.CJK_IDEOGRAPHIC;case"devanagari":return Tu.DEVANAGARI;case"ethiopic-numeric":return Tu.ETHIOPIC_NUMERIC;case"georgian":return Tu.GEORGIAN;case"gujarati":return Tu.GUJARATI;case"gurmukhi":return Tu.GURMUKHI;case"hebrew":return Tu.HEBREW;case"hiragana":return Tu.HIRAGANA;case"hiragana-iroha":return Tu.HIRAGANA_IROHA;case"japanese-formal":return Tu.JAPANESE_FORMAL;case"japanese-informal":return Tu.JAPANESE_INFORMAL;case"kannada":return Tu.KANNADA;case"katakana":return Tu.KATAKANA;case"katakana-iroha":return Tu.KATAKANA_IROHA;case"khmer":return Tu.KHMER;case"korean-hangul-formal":return Tu.KOREAN_HANGUL_FORMAL;case"korean-hanja-formal":return Tu.KOREAN_HANJA_FORMAL;case"korean-hanja-informal":return Tu.KOREAN_HANJA_INFORMAL;case"lao":return Tu.LAO;case"lower-armenian":return Tu.LOWER_ARMENIAN;case"malayalam":return Tu.MALAYALAM;case"mongolian":return Tu.MONGOLIAN;case"myanmar":return Tu.MYANMAR;case"oriya":return Tu.ORIYA;case"persian":return Tu.PERSIAN;case"simp-chinese-formal":return Tu.SIMP_CHINESE_FORMAL;case"simp-chinese-informal":return Tu.SIMP_CHINESE_INFORMAL;case"tamil":return Tu.TAMIL;case"telugu":return Tu.TELUGU;case"thai":return Tu.THAI;case"tibetan":return Tu.TIBETAN;case"trad-chinese-formal":return Tu.TRAD_CHINESE_FORMAL;case"trad-chinese-informal":return Tu.TRAD_CHINESE_INFORMAL;case"upper-armenian":return Tu.UPPER_ARMENIAN;case"disclosure-open":return Tu.DISCLOSURE_OPEN;case"disclosure-closed":return Tu.DISCLOSURE_CLOSED;default:return Tu.NONE}}},Qu=function(t){return{name:"margin-"+t,initialValue:"0",prefix:!1,type:4}},Du=Qu("top"),Lu=Qu("right"),Uu=Qu("bottom"),Hu=Qu("left");!function(t){t[t.VISIBLE=0]="VISIBLE",t[t.HIDDEN=1]="HIDDEN",t[t.SCROLL=2]="SCROLL",t[t.CLIP=3]="CLIP",t[t.AUTO=4]="AUTO"}(Ru||(Ru={}));var Nu,Mu={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(t,e){return e.filter(Ml).map((function(t){switch(t.value){case"hidden":return Ru.HIDDEN;case"scroll":return Ru.SCROLL;case"clip":return Ru.CLIP;case"auto":return Ru.AUTO;default:return Ru.VISIBLE}}))}},ku={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){return"break-word"===e?"break-word":"normal"}},Vu=function(t){return{name:"padding-"+t,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Gu=Vu("top"),Ku=Vu("right"),Wu=Vu("bottom"),zu=Vu("left");!function(t){t[t.LEFT=0]="LEFT",t[t.CENTER=1]="CENTER",t[t.RIGHT=2]="RIGHT"}(Nu||(Nu={}));var Xu,Ju={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(t,e){switch(e){case"right":return Nu.RIGHT;case"center":case"justify":return Nu.CENTER;default:return Nu.LEFT}}};!function(t){t[t.STATIC=0]="STATIC",t[t.RELATIVE=1]="RELATIVE",t[t.ABSOLUTE=2]="ABSOLUTE",t[t.FIXED=3]="FIXED",t[t.STICKY=4]="STICKY"}(Xu||(Xu={}));var Yu,$u={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(t,e){switch(e){case"relative":return Xu.RELATIVE;case"absolute":return Xu.ABSOLUTE;case"fixed":return Xu.FIXED;case"sticky":return Xu.STICKY}return Xu.STATIC}},ju={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return 1===e.length&&Vl(e[0],"none")?[]:Wl(e).map((function(e){for(var r={color:mc.TRANSPARENT,offsetX:$l,offsetY:$l,blur:$l},s=0,A=0;A<e.length;A++){var i=e[A];Xl(i)?(0===s?r.offsetX=i:1===s?r.offsetY=i:r.blur=i,s++):r.color=oc(t,i)}return r}))}};!function(t){t[t.NONE=0]="NONE",t[t.LOWERCASE=1]="LOWERCASE",t[t.UPPERCASE=2]="UPPERCASE",t[t.CAPITALIZE=3]="CAPITALIZE"}(Yu||(Yu={}));var Zu,qu={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"uppercase":return Yu.UPPERCASE;case"lowercase":return Yu.LOWERCASE;case"capitalize":return Yu.CAPITALIZE}return Yu.NONE}},td={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(t,e){if(20===e.type&&"none"===e.value)return null;if(18===e.type){var r=ed[e.name];if(void 0===r)throw new Error('Attempting to parse an unsupported transform function "'+e.name+'"');return r(e.values)}return null}},ed={matrix:function(t){var e=t.filter((function(t){return 17===t.type})).map((function(t){return t.number}));return 6===e.length?e:null},matrix3d:function(t){var e=t.filter((function(t){return 17===t.type})).map((function(t){return t.number})),r=e[0],s=e[1],A=e[4],i=e[5],n=e[12],o=e[13];return 16===e.length?[r,s,A,i,n,o]:null}},rd={type:16,number:50,flags:4},sd=[rd,rd],Ad={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(t,e){var r=e.filter(Jl);return 2!==r.length?sd:[r[0],r[1]]}};!function(t){t[t.VISIBLE=0]="VISIBLE",t[t.HIDDEN=1]="HIDDEN",t[t.COLLAPSE=2]="COLLAPSE"}(Zu||(Zu={}));var id,nd={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"hidden":return Zu.HIDDEN;case"collapse":return Zu.COLLAPSE;default:return Zu.VISIBLE}}};!function(t){t.NORMAL="normal",t.BREAK_ALL="break-all",t.KEEP_ALL="keep-all"}(id||(id={}));var od,ad={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"break-all":return id.BREAK_ALL;case"keep-all":return id.KEEP_ALL;default:return id.NORMAL}}},hd={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(t,e){if(20===e.type)return{auto:!0,order:0};if(Nl(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},ld=function(t,e){if(15===e.type)switch(e.unit.toLowerCase()){case"s":return 1e3*e.number;case"ms":return e.number}throw new Error("Unsupported time type")},cd={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(t,e){return Nl(e)?e.number:1}},ud={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},dd={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(t,e){return e.filter(Ml).map((function(t){switch(t.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0})).filter((function(t){return 0!==t}))}},pd={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(t,e){var r=[],s=[];return e.forEach((function(t){switch(t.type){case 20:case 0:r.push(t.value);break;case 17:r.push(t.number.toString());break;case 4:s.push(r.join(" ")),r.length=0}})),r.length&&s.push(r.join(" ")),s.map((function(t){return-1===t.indexOf(" ")?t:"'"+t+"'"}))}},gd={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},fd={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(t,e){return Nl(e)?e.number:Ml(e)&&"bold"===e.value?700:400}},_d={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return e.filter(Ml).map((function(t){return t.value}))}};!function(t){t.NORMAL="normal",t.ITALIC="italic",t.OBLIQUE="oblique"}(od||(od={}));var md,wd={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"oblique":return od.OBLIQUE;case"italic":return od.ITALIC;default:return od.NORMAL}}},Bd=function(t,e){return 0!=(t&e)},Cd={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(t,e){if(0===e.length)return[];var r=e[0];return 20===r.type&&"none"===r.value?[]:e}},yd={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(0===e.length)return null;var r=e[0];if(20===r.type&&"none"===r.value)return null;for(var s=[],A=e.filter(Gl),i=0;i<A.length;i++){var n=A[i],o=A[i+1];if(20===n.type){var a=o&&Nl(o)?o.number:1;s.push({counter:n.value,increment:a})}}return s}},vd={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(0===e.length)return[];for(var r=[],s=e.filter(Gl),A=0;A<s.length;A++){var i=s[A],n=s[A+1];if(Ml(i)&&"none"!==i.value){var o=n&&Nl(n)?n.number:0;r.push({counter:i.value,reset:o})}}return r}},Ed={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(t,e){return e.filter(Hl).map((function(e){return ld(t,e)}))}},bd={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(0===e.length)return null;var r=e[0];if(20===r.type&&"none"===r.value)return null;var s=[],A=e.filter(kl);if(A.length%2!=0)return null;for(var i=0;i<A.length;i+=2){var n=A[i].value,o=A[i+1].value;s.push({open:n,close:o})}return s}},xd=function(t,e,r){if(!t)return"";var s=t[Math.min(e,t.length-1)];return s?r?s.open:s.close:""},Pd={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return 1===e.length&&Vl(e[0],"none")?[]:Wl(e).map((function(e){for(var r={color:255,offsetX:$l,offsetY:$l,blur:$l,spread:$l,inset:!1},s=0,A=0;A<e.length;A++){var i=e[A];Vl(i,"inset")?r.inset=!0:Xl(i)?(0===s?r.offsetX=i:1===s?r.offsetY=i:2===s?r.blur=i:r.spread=i,s++):r.color=oc(t,i)}return r}))}};!function(t){t[t.FILL=0]="FILL",t[t.STROKE=1]="STROKE",t[t.MARKERS=2]="MARKERS"}(md||(md={}));for(var Id={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(t,e){var r=[md.FILL,md.STROKE,md.MARKERS],s=[];return e.filter(Ml).forEach((function(t){switch(t.value){case"stroke":s.push(md.STROKE);break;case"fill":s.push(md.FILL);break;case"markers":s.push(md.MARKERS)}})),r.forEach((function(t){-1===s.indexOf(t)&&s.push(t)})),s}},Sd={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},Td={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(t,e){return Hl(e)?e.number:0}},Fd=function(){function t(t,e){var r,s;this.animationDuration=Qd(t,Ed,e.animationDuration),this.backgroundClip=Qd(t,Bc,e.backgroundClip),this.backgroundColor=Qd(t,Cc,e.backgroundColor),this.backgroundImage=Qd(t,Vc,e.backgroundImage),this.backgroundOrigin=Qd(t,Gc,e.backgroundOrigin),this.backgroundPosition=Qd(t,Kc,e.backgroundPosition),this.backgroundRepeat=Qd(t,zc,e.backgroundRepeat),this.backgroundSize=Qd(t,Yc,e.backgroundSize),this.borderTopColor=Qd(t,Zc,e.borderTopColor),this.borderRightColor=Qd(t,qc,e.borderRightColor),this.borderBottomColor=Qd(t,tu,e.borderBottomColor),this.borderLeftColor=Qd(t,eu,e.borderLeftColor),this.borderTopLeftRadius=Qd(t,su,e.borderTopLeftRadius),this.borderTopRightRadius=Qd(t,Au,e.borderTopRightRadius),this.borderBottomRightRadius=Qd(t,iu,e.borderBottomRightRadius),this.borderBottomLeftRadius=Qd(t,nu,e.borderBottomLeftRadius),this.borderTopStyle=Qd(t,hu,e.borderTopStyle),this.borderRightStyle=Qd(t,lu,e.borderRightStyle),this.borderBottomStyle=Qd(t,cu,e.borderBottomStyle),this.borderLeftStyle=Qd(t,uu,e.borderLeftStyle),this.borderTopWidth=Qd(t,pu,e.borderTopWidth),this.borderRightWidth=Qd(t,gu,e.borderRightWidth),this.borderBottomWidth=Qd(t,fu,e.borderBottomWidth),this.borderLeftWidth=Qd(t,_u,e.borderLeftWidth),this.boxShadow=Qd(t,Pd,e.boxShadow),this.color=Qd(t,mu,e.color),this.direction=Qd(t,wu,e.direction),this.display=Qd(t,Bu,e.display),this.float=Qd(t,vu,e.cssFloat),this.fontFamily=Qd(t,pd,e.fontFamily),this.fontSize=Qd(t,gd,e.fontSize),this.fontStyle=Qd(t,wd,e.fontStyle),this.fontVariant=Qd(t,_d,e.fontVariant),this.fontWeight=Qd(t,fd,e.fontWeight),this.letterSpacing=Qd(t,Eu,e.letterSpacing),this.lineBreak=Qd(t,xu,e.lineBreak),this.lineHeight=Qd(t,Pu,e.lineHeight),this.listStyleImage=Qd(t,Su,e.listStyleImage),this.listStylePosition=Qd(t,Fu,e.listStylePosition),this.listStyleType=Qd(t,Ou,e.listStyleType),this.marginTop=Qd(t,Du,e.marginTop),this.marginRight=Qd(t,Lu,e.marginRight),this.marginBottom=Qd(t,Uu,e.marginBottom),this.marginLeft=Qd(t,Hu,e.marginLeft),this.opacity=Qd(t,cd,e.opacity);var A=Qd(t,Mu,e.overflow);this.overflowX=A[0],this.overflowY=A[A.length>1?1:0],this.overflowWrap=Qd(t,ku,e.overflowWrap),this.paddingTop=Qd(t,Gu,e.paddingTop),this.paddingRight=Qd(t,Ku,e.paddingRight),this.paddingBottom=Qd(t,Wu,e.paddingBottom),this.paddingLeft=Qd(t,zu,e.paddingLeft),this.paintOrder=Qd(t,Id,e.paintOrder),this.position=Qd(t,$u,e.position),this.textAlign=Qd(t,Ju,e.textAlign),this.textDecorationColor=Qd(t,ud,null!==(r=e.textDecorationColor)&&void 0!==r?r:e.color),this.textDecorationLine=Qd(t,dd,null!==(s=e.textDecorationLine)&&void 0!==s?s:e.textDecoration),this.textShadow=Qd(t,ju,e.textShadow),this.textTransform=Qd(t,qu,e.textTransform),this.transform=Qd(t,td,e.transform),this.transformOrigin=Qd(t,Ad,e.transformOrigin),this.visibility=Qd(t,nd,e.visibility),this.webkitTextStrokeColor=Qd(t,Sd,e.webkitTextStrokeColor),this.webkitTextStrokeWidth=Qd(t,Td,e.webkitTextStrokeWidth),this.wordBreak=Qd(t,ad,e.wordBreak),this.zIndex=Qd(t,hd,e.zIndex)}return t.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===Zu.VISIBLE},t.prototype.isTransparent=function(){return ac(this.backgroundColor)},t.prototype.isTransformed=function(){return null!==this.transform},t.prototype.isPositioned=function(){return this.position!==Xu.STATIC},t.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},t.prototype.isFloating=function(){return this.float!==ou.NONE},t.prototype.isInlineLevel=function(){return Bd(this.display,4)||Bd(this.display,33554432)||Bd(this.display,268435456)||Bd(this.display,536870912)||Bd(this.display,67108864)||Bd(this.display,134217728)},t}(),Rd=function(t,e){this.content=Qd(t,Cd,e.content),this.quotes=Qd(t,bd,e.quotes)},Od=function(t,e){this.counterIncrement=Qd(t,yd,e.counterIncrement),this.counterReset=Qd(t,vd,e.counterReset)},Qd=function(t,e,r){var s=new Ll,A=null!=r?r.toString():e.initialValue;s.write(A);var i=new Ul(s.read());switch(e.type){case 2:var n=i.parseComponentValue();return e.parse(t,Ml(n)?n.value:e.initialValue);case 0:return e.parse(t,i.parseComponentValue());case 1:return e.parse(t,i.parseComponentValues());case 4:return i.parseComponentValue();case 3:switch(e.format){case"angle":return sc(t,i.parseComponentValue());case"color":return oc(t,i.parseComponentValue());case"image":return Nc(t,i.parseComponentValue());case"length":var o=i.parseComponentValue();return Xl(o)?o:$l;case"length-percentage":var a=i.parseComponentValue();return Jl(a)?a:$l;case"time":return ld(t,i.parseComponentValue())}}},Dd=function(t,e){var r=function(t){switch(t.getAttribute("data-html2canvas-debug")){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}}(t);return 1===r||e===r},Ld=function(t,e){this.context=t,this.textNodes=[],this.elements=[],this.flags=0,Dd(e,3),this.styles=new Fd(t,window.getComputedStyle(e,null)),kp(e)&&(this.styles.animationDuration.some((function(t){return t>0}))&&(e.style.animationDuration="0s"),null!==this.styles.transform&&(e.style.transform="none")),this.bounds=ah(this.context,e),Dd(e,4)&&(this.flags|=16)},Ud="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Hd="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Nd=0;Nd<Ud.length;Nd++)Hd[Ud.charCodeAt(Nd)]=Nd;for(var Md=function(t,e,r){return t.slice?t.slice(e,r):new Uint16Array(Array.prototype.slice.call(t,e,r))},kd=function(){function t(t,e,r,s,A,i){this.initialValue=t,this.errorValue=e,this.highStart=r,this.highValueIndex=s,this.index=A,this.data=i}return t.prototype.get=function(t){var e;if(t>=0){if(t<55296||t>56319&&t<=65535)return e=((e=this.index[t>>5])<<2)+(31&t),this.data[e];if(t<=65535)return e=((e=this.index[2048+(t-55296>>5)])<<2)+(31&t),this.data[e];if(t<this.highStart)return e=2080+(t>>11),e=this.index[e],e+=t>>5&63,e=((e=this.index[e])<<2)+(31&t),this.data[e];if(t<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),Vd="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Gd="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Kd=0;Kd<Vd.length;Kd++)Gd[Vd.charCodeAt(Kd)]=Kd;var Wd,zd=8,Xd=9,Jd=11,Yd=12,$d=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var r=t.length;if(!r)return"";for(var s=[],A=-1,i="";++A<r;){var n=t[A];n<=65535?s.push(n):(n-=65536,s.push(55296+(n>>10),n%1024+56320)),(A+1===r||s.length>16384)&&(i+=String.fromCharCode.apply(String,s),s.length=0)}return i},jd=function(t,e){var r,s,A,i=function(t){var e,r,s,A,i,n=.75*t.length,o=t.length,a=0;"="===t[t.length-1]&&(n--,"="===t[t.length-2]&&n--);var h="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(n):new Array(n),l=Array.isArray(h)?h:new Uint8Array(h);for(e=0;e<o;e+=4)r=Hd[t.charCodeAt(e)],s=Hd[t.charCodeAt(e+1)],A=Hd[t.charCodeAt(e+2)],i=Hd[t.charCodeAt(e+3)],l[a++]=r<<2|s>>4,l[a++]=(15&s)<<4|A>>2,l[a++]=(3&A)<<6|63&i;return h}(t),n=Array.isArray(i)?function(t){for(var e=t.length,r=[],s=0;s<e;s+=4)r.push(t[s+3]<<24|t[s+2]<<16|t[s+1]<<8|t[s]);return r}(i):new Uint32Array(i),o=Array.isArray(i)?function(t){for(var e=t.length,r=[],s=0;s<e;s+=2)r.push(t[s+1]<<8|t[s]);return r}(i):new Uint16Array(i),a=Md(o,12,n[4]/2),h=2===n[5]?Md(o,(24+n[4])/2):(r=n,s=Math.ceil((24+n[4])/4),r.slice?r.slice(s,A):new Uint32Array(Array.prototype.slice.call(r,s,A)));return new kd(n[0],n[1],n[2],n[3],a,h)}("AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA="),Zd="×",qd=function(t){return jd.get(t)},tp=function(t,e,r){var s=r-2,A=e[s],i=e[r-1],n=e[r];if(2===i&&3===n)return Zd;if(2===i||3===i||4===i)return"÷";if(2===n||3===n||4===n)return"÷";if(i===zd&&-1!==[zd,Xd,Jd,Yd].indexOf(n))return Zd;if(!(i!==Jd&&i!==Xd||n!==Xd&&10!==n))return Zd;if((i===Yd||10===i)&&10===n)return Zd;if(13===n||5===n)return Zd;if(7===n)return Zd;if(1===i)return Zd;if(13===i&&14===n){for(;5===A;)A=e[--s];if(14===A)return Zd}if(15===i&&15===n){for(var o=0;15===A;)o++,A=e[--s];if(o%2==0)return Zd}return"÷"},ep=function(t){var e=function(t){for(var e=[],r=0,s=t.length;r<s;){var A=t.charCodeAt(r++);if(A>=55296&&A<=56319&&r<s){var i=t.charCodeAt(r++);56320==(64512&i)?e.push(((1023&A)<<10)+(1023&i)+65536):(e.push(A),r--)}else e.push(A)}return e}(t),r=e.length,s=0,A=0,i=e.map(qd);return{next:function(){if(s>=r)return{done:!0,value:null};for(var t=Zd;s<r&&(t=tp(0,i,++s))===Zd;);if(t!==Zd||s===r){var n=$d.apply(null,e.slice(A,s));return A=s,{value:n,done:!1}}return{done:!0,value:null}}}},rp=function(t){for(var e,r=ep(t),s=[];!(e=r.next()).done;)e.value&&s.push(e.value.slice());return s},sp=function(t){return 0===t[0]&&255===t[1]&&0===t[2]&&255===t[3]},Ap=function(t,e,r,s,A){var i="http://www.w3.org/2000/svg",n=document.createElementNS(i,"svg"),o=document.createElementNS(i,"foreignObject");return n.setAttributeNS(null,"width",t.toString()),n.setAttributeNS(null,"height",e.toString()),o.setAttributeNS(null,"width","100%"),o.setAttributeNS(null,"height","100%"),o.setAttributeNS(null,"x",r.toString()),o.setAttributeNS(null,"y",s.toString()),o.setAttributeNS(null,"externalResourcesRequired","true"),n.appendChild(o),o.appendChild(A),n},ip=function(t){return new Promise((function(e,r){var s=new Image;s.onload=function(){return e(s)},s.onerror=r,s.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(t))}))},np={get SUPPORT_RANGE_BOUNDS(){var t=function(t){if(t.createRange){var e=t.createRange();if(e.getBoundingClientRect){var r=t.createElement("boundtest");r.style.height="123px",r.style.display="block",t.body.appendChild(r),e.selectNode(r);var s=e.getBoundingClientRect(),A=Math.round(s.height);if(t.body.removeChild(r),123===A)return!0}}return!1}(document);return Object.defineProperty(np,"SUPPORT_RANGE_BOUNDS",{value:t}),t},get SUPPORT_WORD_BREAKING(){var t=np.SUPPORT_RANGE_BOUNDS&&function(t){var e=t.createElement("boundtest");e.style.width="50px",e.style.display="block",e.style.fontSize="12px",e.style.letterSpacing="0px",e.style.wordSpacing="0px",t.body.appendChild(e);var r=t.createRange();e.innerHTML="function"==typeof"".repeat?"&#128104;".repeat(10):"";var s=e.firstChild,A=hh(s.data).map((function(t){return lh(t)})),i=0,n={},o=A.every((function(t,e){r.setStart(s,i),r.setEnd(s,i+t.length);var A=r.getBoundingClientRect();i+=t.length;var o=A.x>n.x||A.y>n.y;return n=A,0===e||o}));return t.body.removeChild(e),o}(document);return Object.defineProperty(np,"SUPPORT_WORD_BREAKING",{value:t}),t},get SUPPORT_SVG_DRAWING(){var t=function(t){var e=new Image,r=t.createElement("canvas"),s=r.getContext("2d");if(!s)return!1;e.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{s.drawImage(e,0,0),r.toDataURL()}catch(t){return!1}return!0}(document);return Object.defineProperty(np,"SUPPORT_SVG_DRAWING",{value:t}),t},get SUPPORT_FOREIGNOBJECT_DRAWING(){var t="function"==typeof Array.from&&"function"==typeof window.fetch?function(t){var e=t.createElement("canvas"),r=100;e.width=r,e.height=r;var s=e.getContext("2d");if(!s)return Promise.reject(!1);s.fillStyle="rgb(0, 255, 0)",s.fillRect(0,0,r,r);var A=new Image,i=e.toDataURL();A.src=i;var n=Ap(r,r,0,0,A);return s.fillStyle="red",s.fillRect(0,0,r,r),ip(n).then((function(e){s.drawImage(e,0,0);var A=s.getImageData(0,0,r,r).data;s.fillStyle="red",s.fillRect(0,0,r,r);var n=t.createElement("div");return n.style.backgroundImage="url("+i+")",n.style.height="100px",sp(A)?ip(Ap(r,r,0,0,n)):Promise.reject(!1)})).then((function(t){return s.drawImage(t,0,0),sp(s.getImageData(0,0,r,r).data)})).catch((function(){return!1}))}(document):Promise.resolve(!1);return Object.defineProperty(np,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:t}),t},get SUPPORT_CORS_IMAGES(){var t=void 0!==(new Image).crossOrigin;return Object.defineProperty(np,"SUPPORT_CORS_IMAGES",{value:t}),t},get SUPPORT_RESPONSE_TYPE(){var t="string"==typeof(new XMLHttpRequest).responseType;return Object.defineProperty(np,"SUPPORT_RESPONSE_TYPE",{value:t}),t},get SUPPORT_CORS_XHR(){var t="withCredentials"in new XMLHttpRequest;return Object.defineProperty(np,"SUPPORT_CORS_XHR",{value:t}),t}},op=function(t,e){this.text=t,this.bounds=e},ap=function(t,e){var r=e.ownerDocument;if(r){var s=r.createElement("html2canvaswrapper");s.appendChild(e.cloneNode(!0));var A=e.parentNode;if(A){A.replaceChild(s,e);var i=ah(t,s);return s.firstChild&&A.replaceChild(s.firstChild,s),i}}return oh.EMPTY},hp=function(t,e,r){var s=t.ownerDocument;if(!s)throw new Error("Node has no owner document");var A=s.createRange();return A.setStart(t,e),A.setEnd(t,e+r),A},lp=function(t,e,r,s){return oh.fromClientRect(t,hp(e,r,s).getBoundingClientRect())},cp=function(t,e){return 0!==e.letterSpacing?rp(t):dp(t,e)},up=[32,160,4961,65792,65793,4153,4241],dp=function(t,e){for(var r,s=function(t,e){var r=hh(t),s=tl(r,e),A=s[0],i=s[1],n=s[2],o=r.length,a=0,h=0;return{next:function(){if(h>=o)return{done:!0,value:null};for(var t=kh;h<o&&(t=qh(r,i,A,++h,n))===kh;);if(t!==kh||h===o){var e=new el(r,t,a,h);return a=h,{value:e,done:!1}}return{done:!0,value:null}}}}(t,{lineBreak:e.lineBreak,wordBreak:"break-word"===e.overflowWrap?"break-word":e.wordBreak}),A=[],i=function(){if(r.value){var t=r.value.slice(),e=hh(t),s="";e.forEach((function(t){-1===up.indexOf(t)?s+=lh(t):(s.length&&A.push(s),A.push(lh(t)),s="")})),s.length&&A.push(s)}};!(r=s.next()).done;)i();return A},pp=function(t,e,r){this.text=gp(e.data,r.textTransform),this.textBounds=function(t,e,r,s){var A=cp(e,r),i=[],n=0;return A.forEach((function(e){if(r.textDecorationLine.length||e.trim().length>0)if(np.SUPPORT_RANGE_BOUNDS)np.SUPPORT_WORD_BREAKING?i.push(new op(e,lp(t,s,n,e.length))):i.push(new op(e,oh.fromDOMRectList(t,hp(s,n,e.length).getClientRects())));else{var A=s.splitText(e.length);i.push(new op(e,ap(t,s))),s=A}else np.SUPPORT_RANGE_BOUNDS||(s=s.splitText(e.length));n+=e.length})),i}(t,this.text,r,e)},gp=function(t,e){switch(e){case Yu.LOWERCASE:return t.toLowerCase();case Yu.CAPITALIZE:return t.replace(fp,_p);case Yu.UPPERCASE:return t.toUpperCase();default:return t}},fp=/(^|\s|:|-|\(|\))([a-z])/g,_p=function(t,e,r){return t.length>0?e+r.toUpperCase():t},mp=function(t){function e(e,r){var s=t.call(this,e,r)||this;return s.src=r.currentSrc||r.src,s.intrinsicWidth=r.naturalWidth,s.intrinsicHeight=r.naturalHeight,s.context.cache.addImage(s.src),s}return rh(e,t),e}(Ld),wp=function(t){function e(e,r){var s=t.call(this,e,r)||this;return s.canvas=r,s.intrinsicWidth=r.width,s.intrinsicHeight=r.height,s}return rh(e,t),e}(Ld),Bp=function(t){function e(e,r){var s=t.call(this,e,r)||this,A=new XMLSerializer,i=ah(e,r);return r.setAttribute("width",i.width+"px"),r.setAttribute("height",i.height+"px"),s.svg="data:image/svg+xml,"+encodeURIComponent(A.serializeToString(r)),s.intrinsicWidth=r.width.baseVal.value,s.intrinsicHeight=r.height.baseVal.value,s.context.cache.addImage(s.svg),s}return rh(e,t),e}(Ld),Cp=function(t){function e(e,r){var s=t.call(this,e,r)||this;return s.value=r.value,s}return rh(e,t),e}(Ld),yp=function(t){function e(e,r){var s=t.call(this,e,r)||this;return s.start=r.start,s.reversed="boolean"==typeof r.reversed&&!0===r.reversed,s}return rh(e,t),e}(Ld),vp=[{type:15,flags:0,unit:"px",number:3}],Ep=[{type:16,flags:0,number:50}],bp="checkbox",xp="radio",Pp="password",Ip=707406591,Sp=function(t){function e(e,r){var s,A,i,n=t.call(this,e,r)||this;switch(n.type=r.type.toLowerCase(),n.checked=r.checked,n.value=0===(A=(s=r).type===Pp?new Array(s.value.length+1).join("•"):s.value).length?s.placeholder||"":A,n.type!==bp&&n.type!==xp||(n.styles.backgroundColor=3739148031,n.styles.borderTopColor=n.styles.borderRightColor=n.styles.borderBottomColor=n.styles.borderLeftColor=2779096575,n.styles.borderTopWidth=n.styles.borderRightWidth=n.styles.borderBottomWidth=n.styles.borderLeftWidth=1,n.styles.borderTopStyle=n.styles.borderRightStyle=n.styles.borderBottomStyle=n.styles.borderLeftStyle=Jc.SOLID,n.styles.backgroundClip=[pc.BORDER_BOX],n.styles.backgroundOrigin=[0],n.bounds=(i=n.bounds).width>i.height?new oh(i.left+(i.width-i.height)/2,i.top,i.height,i.height):i.width<i.height?new oh(i.left,i.top+(i.height-i.width)/2,i.width,i.width):i),n.type){case bp:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=vp;break;case xp:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=Ep}return n}return rh(e,t),e}(Ld),Tp=function(t){function e(e,r){var s=t.call(this,e,r)||this,A=r.options[r.selectedIndex||0];return s.value=A&&A.text||"",s}return rh(e,t),e}(Ld),Fp=function(t){function e(e,r){var s=t.call(this,e,r)||this;return s.value=r.value,s}return rh(e,t),e}(Ld),Rp=function(t){function e(e,r){var s=t.call(this,e,r)||this;s.src=r.src,s.width=parseInt(r.width,10)||0,s.height=parseInt(r.height,10)||0,s.backgroundColor=s.styles.backgroundColor;try{if(r.contentWindow&&r.contentWindow.document&&r.contentWindow.document.documentElement){s.tree=Lp(e,r.contentWindow.document.documentElement);var A=r.contentWindow.document.documentElement?_c(e,getComputedStyle(r.contentWindow.document.documentElement).backgroundColor):mc.TRANSPARENT,i=r.contentWindow.document.body?_c(e,getComputedStyle(r.contentWindow.document.body).backgroundColor):mc.TRANSPARENT;s.backgroundColor=ac(A)?ac(i)?s.styles.backgroundColor:i:A}}catch(t){}return s}return rh(e,t),e}(Ld),Op=["OL","UL","MENU"],Qp=function(t,e,r,s){for(var A=e.firstChild,i=void 0;A;A=i)if(i=A.nextSibling,Np(A)&&A.data.trim().length>0)r.textNodes.push(new pp(t,A,r.styles));else if(Mp(A))if(eg(A)&&A.assignedNodes)A.assignedNodes().forEach((function(e){return Qp(t,e,r,s)}));else{var n=Dp(t,A);n.styles.isVisible()&&(Up(A,n,s)?n.flags|=4:Hp(n.styles)&&(n.flags|=2),-1!==Op.indexOf(A.tagName)&&(n.flags|=8),r.elements.push(n),A.shadowRoot?Qp(t,A.shadowRoot,n,s):qp(A)||zp(A)||tg(A)||Qp(t,A,n,s))}},Dp=function(t,e){return Yp(e)?new mp(t,e):Jp(e)?new wp(t,e):zp(e)?new Bp(t,e):Gp(e)?new Cp(t,e):Kp(e)?new yp(t,e):Wp(e)?new Sp(t,e):tg(e)?new Tp(t,e):qp(e)?new Fp(t,e):$p(e)?new Rp(t,e):new Ld(t,e)},Lp=function(t,e){var r=Dp(t,e);return r.flags|=4,Qp(t,e,r,r),r},Up=function(t,e,r){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||Xp(t)&&r.styles.isTransparent()},Hp=function(t){return t.isPositioned()||t.isFloating()},Np=function(t){return t.nodeType===Node.TEXT_NODE},Mp=function(t){return t.nodeType===Node.ELEMENT_NODE},kp=function(t){return Mp(t)&&void 0!==t.style&&!Vp(t)},Vp=function(t){return"object"==typeof t.className},Gp=function(t){return"LI"===t.tagName},Kp=function(t){return"OL"===t.tagName},Wp=function(t){return"INPUT"===t.tagName},zp=function(t){return"svg"===t.tagName},Xp=function(t){return"BODY"===t.tagName},Jp=function(t){return"CANVAS"===t.tagName},Yp=function(t){return"IMG"===t.tagName},$p=function(t){return"IFRAME"===t.tagName},jp=function(t){return"STYLE"===t.tagName},Zp=function(t){return"SCRIPT"===t.tagName},qp=function(t){return"TEXTAREA"===t.tagName},tg=function(t){return"SELECT"===t.tagName},eg=function(t){return"SLOT"===t.tagName},rg=function(){function t(){this.counters={}}return t.prototype.getCounterValue=function(t){var e=this.counters[t];return e&&e.length?e[e.length-1]:1},t.prototype.getCounterValues=function(t){var e=this.counters[t];return e||[]},t.prototype.pop=function(t){var e=this;t.forEach((function(t){return e.counters[t].pop()}))},t.prototype.parse=function(t){var e=this,r=t.counterIncrement,s=t.counterReset,A=!0;null!==r&&r.forEach((function(t){var r=e.counters[t.counter];r&&0!==t.increment&&(A=!1,r.length||r.push(1),r[Math.max(0,r.length-1)]+=t.increment)}));var i=[];return A&&s.forEach((function(t){var r=e.counters[t.counter];i.push(t.counter),r||(r=e.counters[t.counter]=[]),r.push(t.reset)})),i},t}(),sg={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"]},Ag={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:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},ig={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:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},ng={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:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},og=function(t,e,r,s,A,i){return t<e||t>r?fg(t,A,i.length>0):s.integers.reduce((function(e,r,A){for(;t>=r;)t-=r,e+=s.values[A];return e}),"")+i},ag=function(t,e,r,s){var A="";do{r||t--,A=s(t)+A,t/=e}while(t*e>=e);return A},hg=function(t,e,r,s,A){var i=r-e+1;return(t<0?"-":"")+(ag(Math.abs(t),i,s,(function(t){return lh(Math.floor(t%i)+e)}))+A)},lg=function(t,e,r){void 0===r&&(r=". ");var s=e.length;return ag(Math.abs(t),s,!1,(function(t){return e[Math.floor(t%s)]}))+r},cg=function(t,e,r,s,A,i){if(t<-9999||t>9999)return fg(t,Tu.CJK_DECIMAL,A.length>0);var n=Math.abs(t),o=A;if(0===n)return e[0]+o;for(var a=0;n>0&&a<=4;a++){var h=n%10;0===h&&Bd(i,1)&&""!==o?o=e[h]+o:h>1||1===h&&0===a||1===h&&1===a&&Bd(i,2)||1===h&&1===a&&Bd(i,4)&&t>100||1===h&&a>1&&Bd(i,8)?o=e[h]+(a>0?r[a-1]:"")+o:1===h&&a>0&&(o=r[a-1]+o),n=Math.floor(n/10)}return(t<0?s:"")+o},ug="十百千萬",dg="拾佰仟萬",pg="マイナス",gg="마이너스",fg=function(t,e,r){var s=r?". ":"",A=r?"、":"",i=r?", ":"",n=r?" ":"";switch(e){case Tu.DISC:return"•"+n;case Tu.CIRCLE:return"◦"+n;case Tu.SQUARE:return"◾"+n;case Tu.DECIMAL_LEADING_ZERO:var o=hg(t,48,57,!0,s);return o.length<4?"0"+o:o;case Tu.CJK_DECIMAL:return lg(t,"〇一二三四五六七八九",A);case Tu.LOWER_ROMAN:return og(t,1,3999,sg,Tu.DECIMAL,s).toLowerCase();case Tu.UPPER_ROMAN:return og(t,1,3999,sg,Tu.DECIMAL,s);case Tu.LOWER_GREEK:return hg(t,945,969,!1,s);case Tu.LOWER_ALPHA:return hg(t,97,122,!1,s);case Tu.UPPER_ALPHA:return hg(t,65,90,!1,s);case Tu.ARABIC_INDIC:return hg(t,1632,1641,!0,s);case Tu.ARMENIAN:case Tu.UPPER_ARMENIAN:return og(t,1,9999,Ag,Tu.DECIMAL,s);case Tu.LOWER_ARMENIAN:return og(t,1,9999,Ag,Tu.DECIMAL,s).toLowerCase();case Tu.BENGALI:return hg(t,2534,2543,!0,s);case Tu.CAMBODIAN:case Tu.KHMER:return hg(t,6112,6121,!0,s);case Tu.CJK_EARTHLY_BRANCH:return lg(t,"子丑寅卯辰巳午未申酉戌亥",A);case Tu.CJK_HEAVENLY_STEM:return lg(t,"甲乙丙丁戊己庚辛壬癸",A);case Tu.CJK_IDEOGRAPHIC:case Tu.TRAD_CHINESE_INFORMAL:return cg(t,"零一二三四五六七八九",ug,"負",A,14);case Tu.TRAD_CHINESE_FORMAL:return cg(t,"零壹貳參肆伍陸柒捌玖",dg,"負",A,15);case Tu.SIMP_CHINESE_INFORMAL:return cg(t,"零一二三四五六七八九",ug,"负",A,14);case Tu.SIMP_CHINESE_FORMAL:return cg(t,"零壹贰叁肆伍陆柒捌玖",dg,"负",A,15);case Tu.JAPANESE_INFORMAL:return cg(t,"〇一二三四五六七八九","十百千万",pg,A,0);case Tu.JAPANESE_FORMAL:return cg(t,"零壱弐参四伍六七八九","拾百千万",pg,A,7);case Tu.KOREAN_HANGUL_FORMAL:return cg(t,"영일이삼사오육칠팔구","십백천만",gg,i,7);case Tu.KOREAN_HANJA_INFORMAL:return cg(t,"零一二三四五六七八九","十百千萬",gg,i,0);case Tu.KOREAN_HANJA_FORMAL:return cg(t,"零壹貳參四五六七八九","拾百千",gg,i,7);case Tu.DEVANAGARI:return hg(t,2406,2415,!0,s);case Tu.GEORGIAN:return og(t,1,19999,ng,Tu.DECIMAL,s);case Tu.GUJARATI:return hg(t,2790,2799,!0,s);case Tu.GURMUKHI:return hg(t,2662,2671,!0,s);case Tu.HEBREW:return og(t,1,10999,ig,Tu.DECIMAL,s);case Tu.HIRAGANA:return lg(t,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case Tu.HIRAGANA_IROHA:return lg(t,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case Tu.KANNADA:return hg(t,3302,3311,!0,s);case Tu.KATAKANA:return lg(t,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",A);case Tu.KATAKANA_IROHA:return lg(t,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",A);case Tu.LAO:return hg(t,3792,3801,!0,s);case Tu.MONGOLIAN:return hg(t,6160,6169,!0,s);case Tu.MYANMAR:return hg(t,4160,4169,!0,s);case Tu.ORIYA:return hg(t,2918,2927,!0,s);case Tu.PERSIAN:return hg(t,1776,1785,!0,s);case Tu.TAMIL:return hg(t,3046,3055,!0,s);case Tu.TELUGU:return hg(t,3174,3183,!0,s);case Tu.THAI:return hg(t,3664,3673,!0,s);case Tu.TIBETAN:return hg(t,3872,3881,!0,s);case Tu.DECIMAL:default:return hg(t,48,57,!0,s)}},_g="data-html2canvas-ignore",mg=function(){function t(t,e,r){if(this.context=t,this.options=r,this.scrolledElements=[],this.referenceElement=e,this.counters=new rg,this.quoteDepth=0,!e.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(e.ownerDocument.documentElement)}return t.prototype.toIFrame=function(t,e){var r=this,s=Bg(t,e);if(!s.contentWindow)return Promise.reject("Unable to find iframe window");var A=t.defaultView.pageXOffset,i=t.defaultView.pageYOffset,n=s.contentWindow,o=n.document,a=vg(s).then((function(){return Ah(r,void 0,void 0,(function(){var t,r;return ih(this,(function(A){switch(A.label){case 0:return this.scrolledElements.forEach(Ig),n&&(n.scrollTo(e.left,e.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||n.scrollY===e.top&&n.scrollX===e.left||(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(n.scrollX-e.left,n.scrollY-e.top,0,0))),t=this.options.onclone,void 0===(r=this.clonedReferenceElement)?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:o.fonts&&o.fonts.ready?[4,o.fonts.ready]:[3,2];case 1:A.sent(),A.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,yg(o)]:[3,4];case 3:A.sent(),A.label=4;case 4:return"function"==typeof t?[2,Promise.resolve().then((function(){return t(o,r)})).then((function(){return s}))]:[2,s]}}))}))}));return o.open(),o.write(xg(document.doctype)+"<html></html>"),Pg(this.referenceElement.ownerDocument,A,i),o.replaceChild(o.adoptNode(this.documentElement),o.documentElement),o.close(),a},t.prototype.createElementClone=function(t){if(Dd(t,2),Jp(t))return this.createCanvasClone(t);if(jp(t))return this.createStyleClone(t);var e=t.cloneNode(!1);return Yp(e)&&(Yp(t)&&t.currentSrc&&t.currentSrc!==t.src&&(e.src=t.currentSrc,e.srcset=""),"lazy"===e.loading&&(e.loading="eager")),e},t.prototype.createStyleClone=function(t){try{var e=t.sheet;if(e&&e.cssRules){var r=[].slice.call(e.cssRules,0).reduce((function(t,e){return e&&"string"==typeof e.cssText?t+e.cssText:t}),""),s=t.cloneNode(!1);return s.textContent=r,s}}catch(t){if(this.context.logger.error("Unable to access cssRules property",t),"SecurityError"!==t.name)throw t}return t.cloneNode(!1)},t.prototype.createCanvasClone=function(t){var e;if(this.options.inlineImages&&t.ownerDocument){var r=t.ownerDocument.createElement("img");try{return r.src=t.toDataURL(),r}catch(e){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",t)}}var s=t.cloneNode(!1);try{s.width=t.width,s.height=t.height;var A=t.getContext("2d"),i=s.getContext("2d");if(i)if(!this.options.allowTaint&&A)i.putImageData(A.getImageData(0,0,t.width,t.height),0,0);else{var n=null!==(e=t.getContext("webgl2"))&&void 0!==e?e:t.getContext("webgl");if(n){var o=n.getContextAttributes();!1===(null==o?void 0:o.preserveDrawingBuffer)&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",t)}i.drawImage(t,0,0)}return s}catch(e){this.context.logger.info("Unable to clone canvas as it is tainted",t)}return s},t.prototype.cloneNode=function(t){if(Np(t))return document.createTextNode(t.data);if(!t.ownerDocument)return t.cloneNode(!1);var e=t.ownerDocument.defaultView;if(e&&Mp(t)&&(kp(t)||Vp(t))){var r=this.createElementClone(t);r.style.transitionProperty="none";var s=e.getComputedStyle(t),A=e.getComputedStyle(t,":before"),i=e.getComputedStyle(t,":after");this.referenceElement===t&&kp(r)&&(this.clonedReferenceElement=r),Xp(r)&&Rg(r);for(var n=this.counters.parse(new Od(this.context,s)),o=this.resolvePseudoContent(t,r,A,Wd.BEFORE),a=t.firstChild;a;a=a.nextSibling)Mp(a)&&(Zp(a)||a.hasAttribute(_g)||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(a))||this.options.copyStyles&&Mp(a)&&jp(a)||r.appendChild(this.cloneNode(a));o&&r.insertBefore(o,r.firstChild);var h=this.resolvePseudoContent(t,r,i,Wd.AFTER);return h&&r.appendChild(h),this.counters.pop(n),s&&(this.options.copyStyles||Vp(t))&&!$p(t)&&bg(s,r),0===t.scrollTop&&0===t.scrollLeft||this.scrolledElements.push([r,t.scrollLeft,t.scrollTop]),(qp(t)||tg(t))&&(qp(r)||tg(r))&&(r.value=t.value),r}return t.cloneNode(!1)},t.prototype.resolvePseudoContent=function(t,e,r,s){var A=this;if(r){var i=r.content,n=e.ownerDocument;if(n&&i&&"none"!==i&&"-moz-alt-content"!==i&&"none"!==r.display){this.counters.parse(new Od(this.context,r));var o=new Rd(this.context,r),a=n.createElement("html2canvaspseudoelement");bg(r,a),o.content.forEach((function(e){if(0===e.type)a.appendChild(n.createTextNode(e.value));else if(22===e.type){var r=n.createElement("img");r.src=e.value,r.style.opacity="1",a.appendChild(r)}else if(18===e.type){if("attr"===e.name){var s=e.values.filter(Ml);s.length&&a.appendChild(n.createTextNode(t.getAttribute(s[0].value)||""))}else if("counter"===e.name){var i=e.values.filter(Kl),h=i[0],l=i[1];if(h&&Ml(h)){var c=A.counters.getCounterValue(h.value),u=l&&Ml(l)?Ou.parse(A.context,l.value):Tu.DECIMAL;a.appendChild(n.createTextNode(fg(c,u,!1)))}}else if("counters"===e.name){var d=e.values.filter(Kl),p=(h=d[0],d[1]);l=d[2];if(h&&Ml(h)){var g=A.counters.getCounterValues(h.value),f=l&&Ml(l)?Ou.parse(A.context,l.value):Tu.DECIMAL,_=p&&0===p.type?p.value:"",m=g.map((function(t){return fg(t,f,!1)})).join(_);a.appendChild(n.createTextNode(m))}}}else if(20===e.type)switch(e.value){case"open-quote":a.appendChild(n.createTextNode(xd(o.quotes,A.quoteDepth++,!0)));break;case"close-quote":a.appendChild(n.createTextNode(xd(o.quotes,--A.quoteDepth,!1)));break;default:a.appendChild(n.createTextNode(e.value))}})),a.className=Sg+" "+Tg;var h=s===Wd.BEFORE?" "+Sg:" "+Tg;return Vp(e)?e.className.baseValue+=h:e.className+=h,a}}},t.destroy=function(t){return!!t.parentNode&&(t.parentNode.removeChild(t),!0)},t}();!function(t){t[t.BEFORE=0]="BEFORE",t[t.AFTER=1]="AFTER"}(Wd||(Wd={}));var wg,Bg=function(t,e){var r=t.createElement("iframe");return r.className="html2canvas-container",r.style.visibility="hidden",r.style.position="fixed",r.style.left="-10000px",r.style.top="0px",r.style.border="0",r.width=e.width.toString(),r.height=e.height.toString(),r.scrolling="no",r.setAttribute(_g,"true"),t.body.appendChild(r),r},Cg=function(t){return new Promise((function(e){t.complete?e():t.src?(t.onload=e,t.onerror=e):e()}))},yg=function(t){return Promise.all([].slice.call(t.images,0).map(Cg))},vg=function(t){return new Promise((function(e,r){var s=t.contentWindow;if(!s)return r("No window assigned for iframe");var A=s.document;s.onload=t.onload=function(){s.onload=t.onload=null;var r=setInterval((function(){A.body.childNodes.length>0&&"complete"===A.readyState&&(clearInterval(r),e(t))}),50)}}))},Eg=["all","d","content"],bg=function(t,e){for(var r=t.length-1;r>=0;r--){var s=t.item(r);-1===Eg.indexOf(s)&&e.style.setProperty(s,t.getPropertyValue(s))}return e},xg=function(t){var e="";return t&&(e+="<!DOCTYPE ",t.name&&(e+=t.name),t.internalSubset&&(e+=t.internalSubset),t.publicId&&(e+='"'+t.publicId+'"'),t.systemId&&(e+='"'+t.systemId+'"'),e+=">"),e},Pg=function(t,e,r){t&&t.defaultView&&(e!==t.defaultView.pageXOffset||r!==t.defaultView.pageYOffset)&&t.defaultView.scrollTo(e,r)},Ig=function(t){var e=t[0],r=t[1],s=t[2];e.scrollLeft=r,e.scrollTop=s},Sg="___html2canvas___pseudoelement_before",Tg="___html2canvas___pseudoelement_after",Fg='{\n content: "" !important;\n display: none !important;\n}',Rg=function(t){Og(t,"."+Sg+":before"+Fg+"\n ."+Tg+":after"+Fg)},Og=function(t,e){var r=t.ownerDocument;if(r){var s=r.createElement("style");s.textContent=e,t.appendChild(s)}},Qg=function(){function t(){}return t.getOrigin=function(e){var r=t._link;return r?(r.href=e,r.href=r.href,r.protocol+r.hostname+r.port):"about:blank"},t.isSameOrigin=function(e){return t.getOrigin(e)===t._origin},t.setContext=function(e){t._link=e.document.createElement("a"),t._origin=t.getOrigin(e.location.href)},t._origin="about:blank",t}(),Dg=function(){function t(t,e){this.context=t,this._options=e,this._cache={}}return t.prototype.addImage=function(t){var e=Promise.resolve();return this.has(t)?e:Vg(t)||Ng(t)?((this._cache[t]=this.loadImage(t)).catch((function(){})),e):e},t.prototype.match=function(t){return this._cache[t]},t.prototype.loadImage=function(t){return Ah(this,void 0,void 0,(function(){var e,r,s,A,i=this;return ih(this,(function(n){switch(n.label){case 0:return e=Qg.isSameOrigin(t),r=!Mg(t)&&!0===this._options.useCORS&&np.SUPPORT_CORS_IMAGES&&!e,s=!Mg(t)&&!e&&!Vg(t)&&"string"==typeof this._options.proxy&&np.SUPPORT_CORS_XHR&&!r,e||!1!==this._options.allowTaint||Mg(t)||Vg(t)||s||r?(A=t,s?[4,this.proxy(A)]:[3,2]):[2];case 1:A=n.sent(),n.label=2;case 2:return this.context.logger.debug("Added image "+t.substring(0,256)),[4,new Promise((function(t,e){var s=new Image;s.onload=function(){return t(s)},s.onerror=e,(kg(A)||r)&&(s.crossOrigin="anonymous"),s.src=A,!0===s.complete&&setTimeout((function(){return t(s)}),500),i._options.imageTimeout>0&&setTimeout((function(){return e("Timed out ("+i._options.imageTimeout+"ms) loading image")}),i._options.imageTimeout)}))];case 3:return[2,n.sent()]}}))}))},t.prototype.has=function(t){return void 0!==this._cache[t]},t.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},t.prototype.proxy=function(t){var e=this,r=this._options.proxy;if(!r)throw new Error("No proxy defined");var s=t.substring(0,256);return new Promise((function(A,i){var n=np.SUPPORT_RESPONSE_TYPE?"blob":"text",o=new XMLHttpRequest;o.onload=function(){if(200===o.status)if("text"===n)A(o.response);else{var t=new FileReader;t.addEventListener("load",(function(){return A(t.result)}),!1),t.addEventListener("error",(function(t){return i(t)}),!1),t.readAsDataURL(o.response)}else i("Failed to proxy resource "+s+" with status code "+o.status)},o.onerror=i;var a=r.indexOf("?")>-1?"&":"?";if(o.open("GET",""+r+a+"url="+encodeURIComponent(t)+"&responseType="+n),"text"!==n&&o instanceof XMLHttpRequest&&(o.responseType=n),e._options.imageTimeout){var h=e._options.imageTimeout;o.timeout=h,o.ontimeout=function(){return i("Timed out ("+h+"ms) proxying "+s)}}o.send()}))},t}(),Lg=/^data:image\/svg\+xml/i,Ug=/^data:image\/.*;base64,/i,Hg=/^data:image\/.*/i,Ng=function(t){return np.SUPPORT_SVG_DRAWING||!Gg(t)},Mg=function(t){return Hg.test(t)},kg=function(t){return Ug.test(t)},Vg=function(t){return"blob"===t.substr(0,4)},Gg=function(t){return"svg"===t.substr(-3).toLowerCase()||Lg.test(t)};!function(t){t[t.VECTOR=0]="VECTOR",t[t.BEZIER_CURVE=1]="BEZIER_CURVE"}(wg||(wg={}));var Kg,Wg=function(t,e){return t.length===e.length&&t.some((function(t,r){return t===e[r]}))},zg=function(){function t(t,e){this.type=wg.VECTOR,this.x=t,this.y=e}return t.prototype.add=function(e,r){return new t(this.x+e,this.y+r)},t}(),Xg=function(t,e,r){return new zg(t.x+(e.x-t.x)*r,t.y+(e.y-t.y)*r)},Jg=function(){function t(t,e,r,s){this.type=wg.BEZIER_CURVE,this.start=t,this.startControl=e,this.endControl=r,this.end=s}return t.prototype.subdivide=function(e,r){var s=Xg(this.start,this.startControl,e),A=Xg(this.startControl,this.endControl,e),i=Xg(this.endControl,this.end,e),n=Xg(s,A,e),o=Xg(A,i,e),a=Xg(n,o,e);return r?new t(this.start,s,n,a):new t(a,o,i,this.end)},t.prototype.add=function(e,r){return new t(this.start.add(e,r),this.startControl.add(e,r),this.endControl.add(e,r),this.end.add(e,r))},t.prototype.reverse=function(){return new t(this.end,this.endControl,this.startControl,this.start)},t}(),Yg=function(t){return t.type===wg.BEZIER_CURVE},$g=function(t){var e=t.styles,r=t.bounds,s=ql(e.borderTopLeftRadius,r.width,r.height),A=s[0],i=s[1],n=ql(e.borderTopRightRadius,r.width,r.height),o=n[0],a=n[1],h=ql(e.borderBottomRightRadius,r.width,r.height),l=h[0],c=h[1],u=ql(e.borderBottomLeftRadius,r.width,r.height),d=u[0],p=u[1],g=[];g.push((A+o)/r.width),g.push((d+l)/r.width),g.push((i+p)/r.height),g.push((a+c)/r.height);var f=Math.max.apply(Math,g);f>1&&(A/=f,i/=f,o/=f,a/=f,l/=f,c/=f,d/=f,p/=f);var _=r.width-o,m=r.height-c,w=r.width-l,B=r.height-p,C=e.borderTopWidth,y=e.borderRightWidth,v=e.borderBottomWidth,E=e.borderLeftWidth,b=tc(e.paddingTop,t.bounds.width),x=tc(e.paddingRight,t.bounds.width),P=tc(e.paddingBottom,t.bounds.width),I=tc(e.paddingLeft,t.bounds.width);this.topLeftBorderDoubleOuterBox=A>0||i>0?jg(r.left+E/3,r.top+C/3,A-E/3,i-C/3,Kg.TOP_LEFT):new zg(r.left+E/3,r.top+C/3),this.topRightBorderDoubleOuterBox=A>0||i>0?jg(r.left+_,r.top+C/3,o-y/3,a-C/3,Kg.TOP_RIGHT):new zg(r.left+r.width-y/3,r.top+C/3),this.bottomRightBorderDoubleOuterBox=l>0||c>0?jg(r.left+w,r.top+m,l-y/3,c-v/3,Kg.BOTTOM_RIGHT):new zg(r.left+r.width-y/3,r.top+r.height-v/3),this.bottomLeftBorderDoubleOuterBox=d>0||p>0?jg(r.left+E/3,r.top+B,d-E/3,p-v/3,Kg.BOTTOM_LEFT):new zg(r.left+E/3,r.top+r.height-v/3),this.topLeftBorderDoubleInnerBox=A>0||i>0?jg(r.left+2*E/3,r.top+2*C/3,A-2*E/3,i-2*C/3,Kg.TOP_LEFT):new zg(r.left+2*E/3,r.top+2*C/3),this.topRightBorderDoubleInnerBox=A>0||i>0?jg(r.left+_,r.top+2*C/3,o-2*y/3,a-2*C/3,Kg.TOP_RIGHT):new zg(r.left+r.width-2*y/3,r.top+2*C/3),this.bottomRightBorderDoubleInnerBox=l>0||c>0?jg(r.left+w,r.top+m,l-2*y/3,c-2*v/3,Kg.BOTTOM_RIGHT):new zg(r.left+r.width-2*y/3,r.top+r.height-2*v/3),this.bottomLeftBorderDoubleInnerBox=d>0||p>0?jg(r.left+2*E/3,r.top+B,d-2*E/3,p-2*v/3,Kg.BOTTOM_LEFT):new zg(r.left+2*E/3,r.top+r.height-2*v/3),this.topLeftBorderStroke=A>0||i>0?jg(r.left+E/2,r.top+C/2,A-E/2,i-C/2,Kg.TOP_LEFT):new zg(r.left+E/2,r.top+C/2),this.topRightBorderStroke=A>0||i>0?jg(r.left+_,r.top+C/2,o-y/2,a-C/2,Kg.TOP_RIGHT):new zg(r.left+r.width-y/2,r.top+C/2),this.bottomRightBorderStroke=l>0||c>0?jg(r.left+w,r.top+m,l-y/2,c-v/2,Kg.BOTTOM_RIGHT):new zg(r.left+r.width-y/2,r.top+r.height-v/2),this.bottomLeftBorderStroke=d>0||p>0?jg(r.left+E/2,r.top+B,d-E/2,p-v/2,Kg.BOTTOM_LEFT):new zg(r.left+E/2,r.top+r.height-v/2),this.topLeftBorderBox=A>0||i>0?jg(r.left,r.top,A,i,Kg.TOP_LEFT):new zg(r.left,r.top),this.topRightBorderBox=o>0||a>0?jg(r.left+_,r.top,o,a,Kg.TOP_RIGHT):new zg(r.left+r.width,r.top),this.bottomRightBorderBox=l>0||c>0?jg(r.left+w,r.top+m,l,c,Kg.BOTTOM_RIGHT):new zg(r.left+r.width,r.top+r.height),this.bottomLeftBorderBox=d>0||p>0?jg(r.left,r.top+B,d,p,Kg.BOTTOM_LEFT):new zg(r.left,r.top+r.height),this.topLeftPaddingBox=A>0||i>0?jg(r.left+E,r.top+C,Math.max(0,A-E),Math.max(0,i-C),Kg.TOP_LEFT):new zg(r.left+E,r.top+C),this.topRightPaddingBox=o>0||a>0?jg(r.left+Math.min(_,r.width-y),r.top+C,_>r.width+y?0:Math.max(0,o-y),Math.max(0,a-C),Kg.TOP_RIGHT):new zg(r.left+r.width-y,r.top+C),this.bottomRightPaddingBox=l>0||c>0?jg(r.left+Math.min(w,r.width-E),r.top+Math.min(m,r.height-v),Math.max(0,l-y),Math.max(0,c-v),Kg.BOTTOM_RIGHT):new zg(r.left+r.width-y,r.top+r.height-v),this.bottomLeftPaddingBox=d>0||p>0?jg(r.left+E,r.top+Math.min(B,r.height-v),Math.max(0,d-E),Math.max(0,p-v),Kg.BOTTOM_LEFT):new zg(r.left+E,r.top+r.height-v),this.topLeftContentBox=A>0||i>0?jg(r.left+E+I,r.top+C+b,Math.max(0,A-(E+I)),Math.max(0,i-(C+b)),Kg.TOP_LEFT):new zg(r.left+E+I,r.top+C+b),this.topRightContentBox=o>0||a>0?jg(r.left+Math.min(_,r.width+E+I),r.top+C+b,_>r.width+E+I?0:o-E+I,a-(C+b),Kg.TOP_RIGHT):new zg(r.left+r.width-(y+x),r.top+C+b),this.bottomRightContentBox=l>0||c>0?jg(r.left+Math.min(w,r.width-(E+I)),r.top+Math.min(m,r.height+C+b),Math.max(0,l-(y+x)),c-(v+P),Kg.BOTTOM_RIGHT):new zg(r.left+r.width-(y+x),r.top+r.height-(v+P)),this.bottomLeftContentBox=d>0||p>0?jg(r.left+E+I,r.top+B,Math.max(0,d-(E+I)),p-(v+P),Kg.BOTTOM_LEFT):new zg(r.left+E+I,r.top+r.height-(v+P))};!function(t){t[t.TOP_LEFT=0]="TOP_LEFT",t[t.TOP_RIGHT=1]="TOP_RIGHT",t[t.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",t[t.BOTTOM_LEFT=3]="BOTTOM_LEFT"}(Kg||(Kg={}));var jg=function(t,e,r,s,A){var i=(Math.sqrt(2)-1)/3*4,n=r*i,o=s*i,a=t+r,h=e+s;switch(A){case Kg.TOP_LEFT:return new Jg(new zg(t,h),new zg(t,h-o),new zg(a-n,e),new zg(a,e));case Kg.TOP_RIGHT:return new Jg(new zg(t,e),new zg(t+n,e),new zg(a,h-o),new zg(a,h));case Kg.BOTTOM_RIGHT:return new Jg(new zg(a,e),new zg(a,e+o),new zg(t+n,h),new zg(t,h));case Kg.BOTTOM_LEFT:default:return new Jg(new zg(a,h),new zg(a-n,h),new zg(t,e+o),new zg(t,e))}},Zg=function(t){return[t.topLeftBorderBox,t.topRightBorderBox,t.bottomRightBorderBox,t.bottomLeftBorderBox]},qg=function(t){return[t.topLeftPaddingBox,t.topRightPaddingBox,t.bottomRightPaddingBox,t.bottomLeftPaddingBox]},tf=function(t,e,r){this.offsetX=t,this.offsetY=e,this.matrix=r,this.type=0,this.target=6},ef=function(t,e){this.path=t,this.target=e,this.type=1},rf=function(t){this.opacity=t,this.type=2,this.target=6},sf=function(t){return 1===t.type},Af=function(t){this.element=t,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]},nf=function(){function t(t,e){if(this.container=t,this.parent=e,this.effects=[],this.curves=new $g(this.container),this.container.styles.opacity<1&&this.effects.push(new rf(this.container.styles.opacity)),null!==this.container.styles.transform){var r=this.container.bounds.left+this.container.styles.transformOrigin[0].number,s=this.container.bounds.top+this.container.styles.transformOrigin[1].number,A=this.container.styles.transform;this.effects.push(new tf(r,s,A))}if(this.container.styles.overflowX!==Ru.VISIBLE){var i=Zg(this.curves),n=qg(this.curves);Wg(i,n)?this.effects.push(new ef(i,6)):(this.effects.push(new ef(i,2)),this.effects.push(new ef(n,4)))}}return t.prototype.getEffects=function(t){for(var e=-1===[Xu.ABSOLUTE,Xu.FIXED].indexOf(this.container.styles.position),r=this.parent,s=this.effects.slice(0);r;){var A=r.effects.filter((function(t){return!sf(t)}));if(e||r.container.styles.position!==Xu.STATIC||!r.parent){if(s.unshift.apply(s,A),e=-1===[Xu.ABSOLUTE,Xu.FIXED].indexOf(r.container.styles.position),r.container.styles.overflowX!==Ru.VISIBLE){var i=Zg(r.curves),n=qg(r.curves);Wg(i,n)||s.unshift(new ef(n,6))}}else s.unshift.apply(s,A);r=r.parent}return s.filter((function(e){return Bd(e.target,t)}))},t}(),of=function(t,e,r,s){t.container.elements.forEach((function(A){var i=Bd(A.flags,4),n=Bd(A.flags,2),o=new nf(A,t);Bd(A.styles.display,2048)&&s.push(o);var a=Bd(A.flags,8)?[]:s;if(i||n){var h=i||A.styles.isPositioned()?r:e,l=new Af(o);if(A.styles.isPositioned()||A.styles.opacity<1||A.styles.isTransformed()){var c=A.styles.zIndex.order;if(c<0){var u=0;h.negativeZIndex.some((function(t,e){return c>t.element.container.styles.zIndex.order?(u=e,!1):u>0})),h.negativeZIndex.splice(u,0,l)}else if(c>0){var d=0;h.positiveZIndex.some((function(t,e){return c>=t.element.container.styles.zIndex.order?(d=e+1,!1):d>0})),h.positiveZIndex.splice(d,0,l)}else h.zeroOrAutoZIndexOrTransformedOrOpacity.push(l)}else A.styles.isFloating()?h.nonPositionedFloats.push(l):h.nonPositionedInlineLevel.push(l);of(o,l,i?l:r,a)}else A.styles.isInlineLevel()?e.inlineLevel.push(o):e.nonInlineLevel.push(o),of(o,e,r,a);Bd(A.flags,8)&&af(A,a)}))},af=function(t,e){for(var r=t instanceof yp?t.start:1,s=t instanceof yp&&t.reversed,A=0;A<e.length;A++){var i=e[A];i.container instanceof Cp&&"number"==typeof i.container.value&&0!==i.container.value&&(r=i.container.value),i.listValue=fg(r,i.container.styles.listStyleType,!0),r+=s?-1:1}},hf=function(t,e){switch(e){case 0:return cf(t.topLeftBorderBox,t.topLeftPaddingBox,t.topRightBorderBox,t.topRightPaddingBox);case 1:return cf(t.topRightBorderBox,t.topRightPaddingBox,t.bottomRightBorderBox,t.bottomRightPaddingBox);case 2:return cf(t.bottomRightBorderBox,t.bottomRightPaddingBox,t.bottomLeftBorderBox,t.bottomLeftPaddingBox);default:return cf(t.bottomLeftBorderBox,t.bottomLeftPaddingBox,t.topLeftBorderBox,t.topLeftPaddingBox)}},lf=function(t,e){var r=[];return Yg(t)?r.push(t.subdivide(.5,!1)):r.push(t),Yg(e)?r.push(e.subdivide(.5,!0)):r.push(e),r},cf=function(t,e,r,s){var A=[];return Yg(t)?A.push(t.subdivide(.5,!1)):A.push(t),Yg(r)?A.push(r.subdivide(.5,!0)):A.push(r),Yg(s)?A.push(s.subdivide(.5,!0).reverse()):A.push(s),Yg(e)?A.push(e.subdivide(.5,!1).reverse()):A.push(e),A},uf=function(t){var e=t.bounds,r=t.styles;return e.add(r.borderLeftWidth,r.borderTopWidth,-(r.borderRightWidth+r.borderLeftWidth),-(r.borderTopWidth+r.borderBottomWidth))},df=function(t){var e=t.styles,r=t.bounds,s=tc(e.paddingLeft,r.width),A=tc(e.paddingRight,r.width),i=tc(e.paddingTop,r.width),n=tc(e.paddingBottom,r.width);return r.add(s+e.borderLeftWidth,i+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+s+A),-(e.borderTopWidth+e.borderBottomWidth+i+n))},pf=function(t,e,r){var s=function(t,e){return 0===t?e.bounds:2===t?df(e):uf(e)}(mf(t.styles.backgroundOrigin,e),t),A=function(t,e){return t===pc.BORDER_BOX?e.bounds:t===pc.CONTENT_BOX?df(e):uf(e)}(mf(t.styles.backgroundClip,e),t),i=_f(mf(t.styles.backgroundSize,e),r,s),n=i[0],o=i[1],a=ql(mf(t.styles.backgroundPosition,e),s.width-n,s.height-o);return[wf(mf(t.styles.backgroundRepeat,e),a,i,s,A),Math.round(s.left+a[0]),Math.round(s.top+a[1]),n,o]},gf=function(t){return Ml(t)&&t.value===Wc.AUTO},ff=function(t){return"number"==typeof t},_f=function(t,e,r){var s=e[0],A=e[1],i=e[2],n=t[0],o=t[1];if(!n)return[0,0];if(Jl(n)&&o&&Jl(o))return[tc(n,r.width),tc(o,r.height)];var a=ff(i);if(Ml(n)&&(n.value===Wc.CONTAIN||n.value===Wc.COVER))return ff(i)?r.width/r.height<i!=(n.value===Wc.COVER)?[r.width,r.width/i]:[r.height*i,r.height]:[r.width,r.height];var h=ff(s),l=ff(A),c=h||l;if(gf(n)&&(!o||gf(o)))return h&&l?[s,A]:a||c?c&&a?[h?s:A*i,l?A:s/i]:[h?s:r.width,l?A:r.height]:[r.width,r.height];if(a){var u=0,d=0;return Jl(n)?u=tc(n,r.width):Jl(o)&&(d=tc(o,r.height)),gf(n)?u=d*i:o&&!gf(o)||(d=u/i),[u,d]}var p=null,g=null;if(Jl(n)?p=tc(n,r.width):o&&Jl(o)&&(g=tc(o,r.height)),null===p||o&&!gf(o)||(g=h&&l?p/s*A:r.height),null!==g&&gf(n)&&(p=h&&l?g/A*s:r.width),null!==p&&null!==g)return[p,g];throw new Error("Unable to calculate background-size for element")},mf=function(t,e){var r=t[e];return void 0===r?t[0]:r},wf=function(t,e,r,s,A){var i=e[0],n=e[1],o=r[0],a=r[1];switch(t){case Mc.REPEAT_X:return[new zg(Math.round(s.left),Math.round(s.top+n)),new zg(Math.round(s.left+s.width),Math.round(s.top+n)),new zg(Math.round(s.left+s.width),Math.round(a+s.top+n)),new zg(Math.round(s.left),Math.round(a+s.top+n))];case Mc.REPEAT_Y:return[new zg(Math.round(s.left+i),Math.round(s.top)),new zg(Math.round(s.left+i+o),Math.round(s.top)),new zg(Math.round(s.left+i+o),Math.round(s.height+s.top)),new zg(Math.round(s.left+i),Math.round(s.height+s.top))];case Mc.NO_REPEAT:return[new zg(Math.round(s.left+i),Math.round(s.top+n)),new zg(Math.round(s.left+i+o),Math.round(s.top+n)),new zg(Math.round(s.left+i+o),Math.round(s.top+n+a)),new zg(Math.round(s.left+i),Math.round(s.top+n+a))];default:return[new zg(Math.round(A.left),Math.round(A.top)),new zg(Math.round(A.left+A.width),Math.round(A.top)),new zg(Math.round(A.left+A.width),Math.round(A.height+A.top)),new zg(Math.round(A.left),Math.round(A.height+A.top))]}},Bf="Hidden Text",Cf=function(){function t(t){this._data={},this._document=t}return t.prototype.parseMetrics=function(t,e){var r=this._document.createElement("div"),s=this._document.createElement("img"),A=this._document.createElement("span"),i=this._document.body;r.style.visibility="hidden",r.style.fontFamily=t,r.style.fontSize=e,r.style.margin="0",r.style.padding="0",i.appendChild(r),s.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",s.width=1,s.height=1,s.style.margin="0",s.style.padding="0",s.style.verticalAlign="baseline",A.style.fontFamily=t,A.style.fontSize=e,A.style.margin="0",A.style.padding="0",A.appendChild(this._document.createTextNode(Bf)),r.appendChild(A),r.appendChild(s);var n=s.offsetTop-A.offsetTop+2;r.removeChild(A),r.appendChild(this._document.createTextNode(Bf)),r.style.lineHeight="normal",s.style.verticalAlign="super";var o=s.offsetTop-r.offsetTop+2;return i.removeChild(r),{baseline:n,middle:o}},t.prototype.getMetrics=function(t,e){var r=t+" "+e;return void 0===this._data[r]&&(this._data[r]=this.parseMetrics(t,e)),this._data[r]},t}(),yf=function(t,e){this.context=t,this.options=e},vf=function(t){function e(e,r){var s=t.call(this,e,r)||this;return s._activeEffects=[],s.canvas=r.canvas?r.canvas:document.createElement("canvas"),s.ctx=s.canvas.getContext("2d"),r.canvas||(s.canvas.width=Math.floor(r.width*r.scale),s.canvas.height=Math.floor(r.height*r.scale),s.canvas.style.width=r.width+"px",s.canvas.style.height=r.height+"px"),s.fontMetrics=new Cf(document),s.ctx.scale(s.options.scale,s.options.scale),s.ctx.translate(-r.x,-r.y),s.ctx.textBaseline="bottom",s._activeEffects=[],s.context.logger.debug("Canvas renderer initialized ("+r.width+"x"+r.height+") with scale "+r.scale),s}return rh(e,t),e.prototype.applyEffects=function(t){for(var e=this;this._activeEffects.length;)this.popEffect();t.forEach((function(t){return e.applyEffect(t)}))},e.prototype.applyEffect=function(t){this.ctx.save(),function(t){return 2===t.type}(t)&&(this.ctx.globalAlpha=t.opacity),function(t){return 0===t.type}(t)&&(this.ctx.translate(t.offsetX,t.offsetY),this.ctx.transform(t.matrix[0],t.matrix[1],t.matrix[2],t.matrix[3],t.matrix[4],t.matrix[5]),this.ctx.translate(-t.offsetX,-t.offsetY)),sf(t)&&(this.path(t.path),this.ctx.clip()),this._activeEffects.push(t)},e.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},e.prototype.renderStack=function(t){return Ah(this,void 0,void 0,(function(){return ih(this,(function(e){switch(e.label){case 0:return t.element.container.styles.isVisible()?[4,this.renderStackContent(t)]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))},e.prototype.renderNode=function(t){return Ah(this,void 0,void 0,(function(){return ih(this,(function(e){switch(e.label){case 0:return Bd(t.container.flags,16),t.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(t)]:[3,3];case 1:return e.sent(),[4,this.renderNodeContent(t)];case 2:e.sent(),e.label=3;case 3:return[2]}}))}))},e.prototype.renderTextWithLetterSpacing=function(t,e,r){var s=this;0===e?this.ctx.fillText(t.text,t.bounds.left,t.bounds.top+r):rp(t.text).reduce((function(e,A){return s.ctx.fillText(A,e,t.bounds.top+r),e+s.ctx.measureText(A).width}),t.bounds.left)},e.prototype.createFontStyle=function(t){var e=t.fontVariant.filter((function(t){return"normal"===t||"small-caps"===t})).join(""),r=t.fontFamily.join(", "),s=Hl(t.fontSize)?""+t.fontSize.number+t.fontSize.unit:t.fontSize.number+"px";return[[t.fontStyle,e,t.fontWeight,s,r].join(" "),r,s]},e.prototype.renderTextNode=function(t,e){return Ah(this,void 0,void 0,(function(){var r,s,A,i,n,o,a,h,l=this;return ih(this,(function(c){return r=this.createFontStyle(e),s=r[0],A=r[1],i=r[2],this.ctx.font=s,this.ctx.direction=1===e.direction?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",n=this.fontMetrics.getMetrics(A,i),o=n.baseline,a=n.middle,h=e.paintOrder,t.textBounds.forEach((function(t){h.forEach((function(r){switch(r){case md.FILL:l.ctx.fillStyle=hc(e.color),l.renderTextWithLetterSpacing(t,e.letterSpacing,o);var s=e.textShadow;s.length&&t.text.trim().length&&(s.slice(0).reverse().forEach((function(r){l.ctx.shadowColor=hc(r.color),l.ctx.shadowOffsetX=r.offsetX.number*l.options.scale,l.ctx.shadowOffsetY=r.offsetY.number*l.options.scale,l.ctx.shadowBlur=r.blur.number,l.renderTextWithLetterSpacing(t,e.letterSpacing,o)})),l.ctx.shadowColor="",l.ctx.shadowOffsetX=0,l.ctx.shadowOffsetY=0,l.ctx.shadowBlur=0),e.textDecorationLine.length&&(l.ctx.fillStyle=hc(e.textDecorationColor||e.color),e.textDecorationLine.forEach((function(e){switch(e){case 1:l.ctx.fillRect(t.bounds.left,Math.round(t.bounds.top+o),t.bounds.width,1);break;case 2:l.ctx.fillRect(t.bounds.left,Math.round(t.bounds.top),t.bounds.width,1);break;case 3:l.ctx.fillRect(t.bounds.left,Math.ceil(t.bounds.top+a),t.bounds.width,1)}})));break;case md.STROKE:e.webkitTextStrokeWidth&&t.text.trim().length&&(l.ctx.strokeStyle=hc(e.webkitTextStrokeColor),l.ctx.lineWidth=e.webkitTextStrokeWidth,l.ctx.lineJoin=window.chrome?"miter":"round",l.ctx.strokeText(t.text,t.bounds.left,t.bounds.top+o)),l.ctx.strokeStyle="",l.ctx.lineWidth=0,l.ctx.lineJoin="miter"}}))})),[2]}))}))},e.prototype.renderReplacedElement=function(t,e,r){if(r&&t.intrinsicWidth>0&&t.intrinsicHeight>0){var s=df(t),A=qg(e);this.path(A),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(r,0,0,t.intrinsicWidth,t.intrinsicHeight,s.left,s.top,s.width,s.height),this.ctx.restore()}},e.prototype.renderNodeContent=function(t){return Ah(this,void 0,void 0,(function(){var r,s,A,i,n,o,a,h,l,c,u,d,p,g,f,_,m,w;return ih(this,(function(B){switch(B.label){case 0:this.applyEffects(t.getEffects(4)),r=t.container,s=t.curves,A=r.styles,i=0,n=r.textNodes,B.label=1;case 1:return i<n.length?(o=n[i],[4,this.renderTextNode(o,A)]):[3,4];case 2:B.sent(),B.label=3;case 3:return i++,[3,1];case 4:if(!(r instanceof mp))return[3,8];B.label=5;case 5:return B.trys.push([5,7,,8]),[4,this.context.cache.match(r.src)];case 6:return f=B.sent(),this.renderReplacedElement(r,s,f),[3,8];case 7:return B.sent(),this.context.logger.error("Error loading image "+r.src),[3,8];case 8:if(r instanceof wp&&this.renderReplacedElement(r,s,r.canvas),!(r instanceof Bp))return[3,12];B.label=9;case 9:return B.trys.push([9,11,,12]),[4,this.context.cache.match(r.svg)];case 10:return f=B.sent(),this.renderReplacedElement(r,s,f),[3,12];case 11:return B.sent(),this.context.logger.error("Error loading svg "+r.svg.substring(0,255)),[3,12];case 12:return r instanceof Rp&&r.tree?[4,new e(this.context,{scale:this.options.scale,backgroundColor:r.backgroundColor,x:0,y:0,width:r.width,height:r.height}).render(r.tree)]:[3,14];case 13:a=B.sent(),r.width&&r.height&&this.ctx.drawImage(a,0,0,r.width,r.height,r.bounds.left,r.bounds.top,r.bounds.width,r.bounds.height),B.label=14;case 14:if(r instanceof Sp&&(h=Math.min(r.bounds.width,r.bounds.height),r.type===bp?r.checked&&(this.ctx.save(),this.path([new zg(r.bounds.left+.39363*h,r.bounds.top+.79*h),new zg(r.bounds.left+.16*h,r.bounds.top+.5549*h),new zg(r.bounds.left+.27347*h,r.bounds.top+.44071*h),new zg(r.bounds.left+.39694*h,r.bounds.top+.5649*h),new zg(r.bounds.left+.72983*h,r.bounds.top+.23*h),new zg(r.bounds.left+.84*h,r.bounds.top+.34085*h),new zg(r.bounds.left+.39363*h,r.bounds.top+.79*h)]),this.ctx.fillStyle=hc(Ip),this.ctx.fill(),this.ctx.restore()):r.type===xp&&r.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(r.bounds.left+h/2,r.bounds.top+h/2,h/4,0,2*Math.PI,!0),this.ctx.fillStyle=hc(Ip),this.ctx.fill(),this.ctx.restore())),Ef(r)&&r.value.length){switch(l=this.createFontStyle(A),m=l[0],c=l[1],u=this.fontMetrics.getMetrics(m,c).baseline,this.ctx.font=m,this.ctx.fillStyle=hc(A.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=xf(r.styles.textAlign),w=df(r),d=0,r.styles.textAlign){case Nu.CENTER:d+=w.width/2;break;case Nu.RIGHT:d+=w.width}p=w.add(d,0,0,-w.height/2+1),this.ctx.save(),this.path([new zg(w.left,w.top),new zg(w.left+w.width,w.top),new zg(w.left+w.width,w.top+w.height),new zg(w.left,w.top+w.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new op(r.value,p),A.letterSpacing,u),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Bd(r.styles.display,2048))return[3,20];if(null===r.styles.listStyleImage)return[3,19];if((g=r.styles.listStyleImage).type!==wc.URL)return[3,18];f=void 0,_=g.url,B.label=15;case 15:return B.trys.push([15,17,,18]),[4,this.context.cache.match(_)];case 16:return f=B.sent(),this.ctx.drawImage(f,r.bounds.left-(f.width+10),r.bounds.top),[3,18];case 17:return B.sent(),this.context.logger.error("Error loading list-style-image "+_),[3,18];case 18:return[3,20];case 19:t.listValue&&r.styles.listStyleType!==Tu.NONE&&(m=this.createFontStyle(A)[0],this.ctx.font=m,this.ctx.fillStyle=hc(A.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",w=new oh(r.bounds.left,r.bounds.top+tc(r.styles.paddingTop,r.bounds.width),r.bounds.width,Iu(A.lineHeight,A.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new op(t.listValue,w),A.letterSpacing,Iu(A.lineHeight,A.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),B.label=20;case 20:return[2]}}))}))},e.prototype.renderStackContent=function(t){return Ah(this,void 0,void 0,(function(){var e,r,s,A,i,n,o,a,h,l,c,u,d,p,g;return ih(this,(function(f){switch(f.label){case 0:return Bd(t.element.container.flags,16),[4,this.renderNodeBackgroundAndBorders(t.element)];case 1:f.sent(),e=0,r=t.negativeZIndex,f.label=2;case 2:return e<r.length?(g=r[e],[4,this.renderStack(g)]):[3,5];case 3:f.sent(),f.label=4;case 4:return e++,[3,2];case 5:return[4,this.renderNodeContent(t.element)];case 6:f.sent(),s=0,A=t.nonInlineLevel,f.label=7;case 7:return s<A.length?(g=A[s],[4,this.renderNode(g)]):[3,10];case 8:f.sent(),f.label=9;case 9:return s++,[3,7];case 10:i=0,n=t.nonPositionedFloats,f.label=11;case 11:return i<n.length?(g=n[i],[4,this.renderStack(g)]):[3,14];case 12:f.sent(),f.label=13;case 13:return i++,[3,11];case 14:o=0,a=t.nonPositionedInlineLevel,f.label=15;case 15:return o<a.length?(g=a[o],[4,this.renderStack(g)]):[3,18];case 16:f.sent(),f.label=17;case 17:return o++,[3,15];case 18:h=0,l=t.inlineLevel,f.label=19;case 19:return h<l.length?(g=l[h],[4,this.renderNode(g)]):[3,22];case 20:f.sent(),f.label=21;case 21:return h++,[3,19];case 22:c=0,u=t.zeroOrAutoZIndexOrTransformedOrOpacity,f.label=23;case 23:return c<u.length?(g=u[c],[4,this.renderStack(g)]):[3,26];case 24:f.sent(),f.label=25;case 25:return c++,[3,23];case 26:d=0,p=t.positiveZIndex,f.label=27;case 27:return d<p.length?(g=p[d],[4,this.renderStack(g)]):[3,30];case 28:f.sent(),f.label=29;case 29:return d++,[3,27];case 30:return[2]}}))}))},e.prototype.mask=function(t){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(t.slice(0).reverse()),this.ctx.closePath()},e.prototype.path=function(t){this.ctx.beginPath(),this.formatPath(t),this.ctx.closePath()},e.prototype.formatPath=function(t){var e=this;t.forEach((function(t,r){var s=Yg(t)?t.start:t;0===r?e.ctx.moveTo(s.x,s.y):e.ctx.lineTo(s.x,s.y),Yg(t)&&e.ctx.bezierCurveTo(t.startControl.x,t.startControl.y,t.endControl.x,t.endControl.y,t.end.x,t.end.y)}))},e.prototype.renderRepeat=function(t,e,r,s){this.path(t),this.ctx.fillStyle=e,this.ctx.translate(r,s),this.ctx.fill(),this.ctx.translate(-r,-s)},e.prototype.resizeImage=function(t,e,r){var s;if(t.width===e&&t.height===r)return t;var A=(null!==(s=this.canvas.ownerDocument)&&void 0!==s?s:document).createElement("canvas");return A.width=Math.max(1,e),A.height=Math.max(1,r),A.getContext("2d").drawImage(t,0,0,t.width,t.height,0,0,e,r),A},e.prototype.renderBackgroundImage=function(t){return Ah(this,void 0,void 0,(function(){var e,r,s,A,i,n;return ih(this,(function(o){switch(o.label){case 0:e=t.styles.backgroundImage.length-1,r=function(r){var A,i,n,o,a,h,l,c,u,d,p,g,f,_,m,w,B,C,y,v,E,b,x,P,I,S,T,F,R,O,Q;return ih(this,(function(D){switch(D.label){case 0:if(r.type!==wc.URL)return[3,5];A=void 0,i=r.url,D.label=1;case 1:return D.trys.push([1,3,,4]),[4,s.context.cache.match(i)];case 2:return A=D.sent(),[3,4];case 3:return D.sent(),s.context.logger.error("Error loading background-image "+i),[3,4];case 4:return A&&(n=pf(t,e,[A.width,A.height,A.width/A.height]),w=n[0],b=n[1],x=n[2],y=n[3],v=n[4],_=s.ctx.createPattern(s.resizeImage(A,y,v),"repeat"),s.renderRepeat(w,_,b,x)),[3,6];case 5:r.type===wc.LINEAR_GRADIENT?(o=pf(t,e,[null,null,null]),w=o[0],b=o[1],x=o[2],y=o[3],v=o[4],a=Ec(r.angle,y,v),h=a[0],l=a[1],c=a[2],u=a[3],d=a[4],(p=document.createElement("canvas")).width=y,p.height=v,g=p.getContext("2d"),f=g.createLinearGradient(l,u,c,d),vc(r.stops,h).forEach((function(t){return f.addColorStop(t.stop,hc(t.color))})),g.fillStyle=f,g.fillRect(0,0,y,v),y>0&&v>0&&(_=s.ctx.createPattern(p,"repeat"),s.renderRepeat(w,_,b,x))):function(t){return t.type===wc.RADIAL_GRADIENT}(r)&&(m=pf(t,e,[null,null,null]),w=m[0],B=m[1],C=m[2],y=m[3],v=m[4],E=0===r.position.length?[jl]:r.position,b=tc(E[0],y),x=tc(E[E.length-1],v),P=function(t,e,r,s,A){var i=0,n=0;switch(t.size){case Hc.CLOSEST_SIDE:t.shape===Uc.CIRCLE?i=n=Math.min(Math.abs(e),Math.abs(e-s),Math.abs(r),Math.abs(r-A)):t.shape===Uc.ELLIPSE&&(i=Math.min(Math.abs(e),Math.abs(e-s)),n=Math.min(Math.abs(r),Math.abs(r-A)));break;case Hc.CLOSEST_CORNER:if(t.shape===Uc.CIRCLE)i=n=Math.min(bc(e,r),bc(e,r-A),bc(e-s,r),bc(e-s,r-A));else if(t.shape===Uc.ELLIPSE){var o=Math.min(Math.abs(r),Math.abs(r-A))/Math.min(Math.abs(e),Math.abs(e-s)),a=xc(s,A,e,r,!0),h=a[0],l=a[1];n=o*(i=bc(h-e,(l-r)/o))}break;case Hc.FARTHEST_SIDE:t.shape===Uc.CIRCLE?i=n=Math.max(Math.abs(e),Math.abs(e-s),Math.abs(r),Math.abs(r-A)):t.shape===Uc.ELLIPSE&&(i=Math.max(Math.abs(e),Math.abs(e-s)),n=Math.max(Math.abs(r),Math.abs(r-A)));break;case Hc.FARTHEST_CORNER:if(t.shape===Uc.CIRCLE)i=n=Math.max(bc(e,r),bc(e,r-A),bc(e-s,r),bc(e-s,r-A));else if(t.shape===Uc.ELLIPSE){o=Math.max(Math.abs(r),Math.abs(r-A))/Math.max(Math.abs(e),Math.abs(e-s));var c=xc(s,A,e,r,!1);h=c[0],l=c[1],n=o*(i=bc(h-e,(l-r)/o))}}return Array.isArray(t.size)&&(i=tc(t.size[0],s),n=2===t.size.length?tc(t.size[1],A):i),[i,n]}(r,b,x,y,v),I=P[0],S=P[1],I>0&&S>0&&(T=s.ctx.createRadialGradient(B+b,C+x,0,B+b,C+x,I),vc(r.stops,2*I).forEach((function(t){return T.addColorStop(t.stop,hc(t.color))})),s.path(w),s.ctx.fillStyle=T,I!==S?(F=t.bounds.left+.5*t.bounds.width,R=t.bounds.top+.5*t.bounds.height,Q=1/(O=S/I),s.ctx.save(),s.ctx.translate(F,R),s.ctx.transform(1,0,0,O,0,0),s.ctx.translate(-F,-R),s.ctx.fillRect(B,Q*(C-R)+R,y,v*Q),s.ctx.restore()):s.ctx.fill())),D.label=6;case 6:return e--,[2]}}))},s=this,A=0,i=t.styles.backgroundImage.slice(0).reverse(),o.label=1;case 1:return A<i.length?(n=i[A],[5,r(n)]):[3,4];case 2:o.sent(),o.label=3;case 3:return A++,[3,1];case 4:return[2]}}))}))},e.prototype.renderSolidBorder=function(t,e,r){return Ah(this,void 0,void 0,(function(){return ih(this,(function(s){return this.path(hf(r,e)),this.ctx.fillStyle=hc(t),this.ctx.fill(),[2]}))}))},e.prototype.renderDoubleBorder=function(t,e,r,s){return Ah(this,void 0,void 0,(function(){var A,i;return ih(this,(function(n){switch(n.label){case 0:return e<3?[4,this.renderSolidBorder(t,r,s)]:[3,2];case 1:return n.sent(),[2];case 2:return A=function(t,e){switch(e){case 0:return cf(t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox,t.topRightBorderBox,t.topRightBorderDoubleOuterBox);case 1:return cf(t.topRightBorderBox,t.topRightBorderDoubleOuterBox,t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox);case 2:return cf(t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox,t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox);default:return cf(t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox,t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox)}}(s,r),this.path(A),this.ctx.fillStyle=hc(t),this.ctx.fill(),i=function(t,e){switch(e){case 0:return cf(t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox,t.topRightBorderDoubleInnerBox,t.topRightPaddingBox);case 1:return cf(t.topRightBorderDoubleInnerBox,t.topRightPaddingBox,t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox);case 2:return cf(t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox,t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox);default:return cf(t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox,t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox)}}(s,r),this.path(i),this.ctx.fill(),[2]}}))}))},e.prototype.renderNodeBackgroundAndBorders=function(t){return Ah(this,void 0,void 0,(function(){var e,r,s,A,i,n,o,a,h=this;return ih(this,(function(l){switch(l.label){case 0:return this.applyEffects(t.getEffects(2)),e=t.container.styles,r=!ac(e.backgroundColor)||e.backgroundImage.length,s=[{style:e.borderTopStyle,color:e.borderTopColor,width:e.borderTopWidth},{style:e.borderRightStyle,color:e.borderRightColor,width:e.borderRightWidth},{style:e.borderBottomStyle,color:e.borderBottomColor,width:e.borderBottomWidth},{style:e.borderLeftStyle,color:e.borderLeftColor,width:e.borderLeftWidth}],A=bf(mf(e.backgroundClip,0),t.curves),r||e.boxShadow.length?(this.ctx.save(),this.path(A),this.ctx.clip(),ac(e.backgroundColor)||(this.ctx.fillStyle=hc(e.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(t.container)]):[3,2];case 1:l.sent(),this.ctx.restore(),e.boxShadow.slice(0).reverse().forEach((function(e){h.ctx.save();var r,s,A,i,n,o=Zg(t.curves),a=e.inset?0:1e4,l=(r=o,s=-a+(e.inset?1:-1)*e.spread.number,A=(e.inset?1:-1)*e.spread.number,i=e.spread.number*(e.inset?-2:2),n=e.spread.number*(e.inset?-2:2),r.map((function(t,e){switch(e){case 0:return t.add(s,A);case 1:return t.add(s+i,A);case 2:return t.add(s+i,A+n);case 3:return t.add(s,A+n)}return t})));e.inset?(h.path(o),h.ctx.clip(),h.mask(l)):(h.mask(o),h.ctx.clip(),h.path(l)),h.ctx.shadowOffsetX=e.offsetX.number+a,h.ctx.shadowOffsetY=e.offsetY.number,h.ctx.shadowColor=hc(e.color),h.ctx.shadowBlur=e.blur.number,h.ctx.fillStyle=e.inset?hc(e.color):"rgba(0,0,0,1)",h.ctx.fill(),h.ctx.restore()})),l.label=2;case 2:i=0,n=0,o=s,l.label=3;case 3:return n<o.length?(a=o[n]).style!==Jc.NONE&&!ac(a.color)&&a.width>0?a.style!==Jc.DASHED?[3,5]:[4,this.renderDashedDottedBorder(a.color,a.width,i,t.curves,Jc.DASHED)]:[3,11]:[3,13];case 4:return l.sent(),[3,11];case 5:return a.style!==Jc.DOTTED?[3,7]:[4,this.renderDashedDottedBorder(a.color,a.width,i,t.curves,Jc.DOTTED)];case 6:return l.sent(),[3,11];case 7:return a.style!==Jc.DOUBLE?[3,9]:[4,this.renderDoubleBorder(a.color,a.width,i,t.curves)];case 8:return l.sent(),[3,11];case 9:return[4,this.renderSolidBorder(a.color,i,t.curves)];case 10:l.sent(),l.label=11;case 11:i++,l.label=12;case 12:return n++,[3,3];case 13:return[2]}}))}))},e.prototype.renderDashedDottedBorder=function(t,e,r,s,A){return Ah(this,void 0,void 0,(function(){var i,n,o,a,h,l,c,u,d,p,g,f,_,m,w,B;return ih(this,(function(C){return this.ctx.save(),i=function(t,e){switch(e){case 0:return lf(t.topLeftBorderStroke,t.topRightBorderStroke);case 1:return lf(t.topRightBorderStroke,t.bottomRightBorderStroke);case 2:return lf(t.bottomRightBorderStroke,t.bottomLeftBorderStroke);default:return lf(t.bottomLeftBorderStroke,t.topLeftBorderStroke)}}(s,r),n=hf(s,r),A===Jc.DASHED&&(this.path(n),this.ctx.clip()),Yg(n[0])?(o=n[0].start.x,a=n[0].start.y):(o=n[0].x,a=n[0].y),Yg(n[1])?(h=n[1].end.x,l=n[1].end.y):(h=n[1].x,l=n[1].y),c=0===r||2===r?Math.abs(o-h):Math.abs(a-l),this.ctx.beginPath(),A===Jc.DOTTED?this.formatPath(i):this.formatPath(n.slice(0,2)),u=e<3?3*e:2*e,d=e<3?2*e:e,A===Jc.DOTTED&&(u=e,d=e),p=!0,c<=2*u?p=!1:c<=2*u+d?(u*=g=c/(2*u+d),d*=g):(f=Math.floor((c+d)/(u+d)),_=(c-f*u)/(f-1),d=(m=(c-(f+1)*u)/f)<=0||Math.abs(d-_)<Math.abs(d-m)?_:m),p&&(A===Jc.DOTTED?this.ctx.setLineDash([0,u+d]):this.ctx.setLineDash([u,d])),A===Jc.DOTTED?(this.ctx.lineCap="round",this.ctx.lineWidth=e):this.ctx.lineWidth=2*e+1.1,this.ctx.strokeStyle=hc(t),this.ctx.stroke(),this.ctx.setLineDash([]),A===Jc.DASHED&&(Yg(n[0])&&(w=n[3],B=n[0],this.ctx.beginPath(),this.formatPath([new zg(w.end.x,w.end.y),new zg(B.start.x,B.start.y)]),this.ctx.stroke()),Yg(n[1])&&(w=n[1],B=n[2],this.ctx.beginPath(),this.formatPath([new zg(w.end.x,w.end.y),new zg(B.start.x,B.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]}))}))},e.prototype.render=function(t){return Ah(this,void 0,void 0,(function(){var e;return ih(this,(function(r){switch(r.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=hc(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),s=new nf(t,null),A=new Af(s),of(s,A,A,i=[]),af(s.container,i),e=A,[4,this.renderStack(e)];case 1:return r.sent(),this.applyEffects([]),[2,this.canvas]}var s,A,i}))}))},e}(yf),Ef=function(t){return t instanceof Fp||(t instanceof Tp||t instanceof Sp&&t.type!==xp&&t.type!==bp)},bf=function(t,e){switch(t){case pc.BORDER_BOX:return Zg(e);case pc.CONTENT_BOX:return function(t){return[t.topLeftContentBox,t.topRightContentBox,t.bottomRightContentBox,t.bottomLeftContentBox]}(e);case pc.PADDING_BOX:default:return qg(e)}},xf=function(t){switch(t){case Nu.CENTER:return"center";case Nu.RIGHT:return"right";case Nu.LEFT:default:return"left"}},Pf=function(t){function e(e,r){var s=t.call(this,e,r)||this;return s.canvas=r.canvas?r.canvas:document.createElement("canvas"),s.ctx=s.canvas.getContext("2d"),s.options=r,s.canvas.width=Math.floor(r.width*r.scale),s.canvas.height=Math.floor(r.height*r.scale),s.canvas.style.width=r.width+"px",s.canvas.style.height=r.height+"px",s.ctx.scale(s.options.scale,s.options.scale),s.ctx.translate(-r.x,-r.y),s.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+r.width+"x"+r.height+" at "+r.x+","+r.y+") with scale "+r.scale),s}return rh(e,t),e.prototype.render=function(t){return Ah(this,void 0,void 0,(function(){var e,r;return ih(this,(function(s){switch(s.label){case 0:return e=Ap(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,t),[4,If(e)];case 1:return r=s.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=hc(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(r,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}}))}))},e}(yf),If=function(t){return new Promise((function(e,r){var s=new Image;s.onload=function(){e(s)},s.onerror=r,s.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(t))}))},Sf=function(){function t(t){var e=t.id,r=t.enabled;this.id=e,this.enabled=r,this.start=Date.now()}return t.prototype.debug=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.debug?console.debug.apply(console,nh([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},t.prototype.getTime=function(){return Date.now()-this.start},t.prototype.info=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.enabled&&"undefined"!=typeof window&&window.console&&"function"==typeof console.info&&console.info.apply(console,nh([this.id,this.getTime()+"ms"],t))},t.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.warn?console.warn.apply(console,nh([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},t.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.error?console.error.apply(console,nh([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},t.instances={},t}(),Tf=function(){function t(e,r){var s;this.windowBounds=r,this.instanceName="#"+t.instanceCount++,this.logger=new Sf({id:this.instanceName,enabled:e.logging}),this.cache=null!==(s=e.cache)&&void 0!==s?s:new Dg(this,e)}return t.instanceCount=1,t}(),Ff=function(t,e){return void 0===e&&(e={}),Rf(t,e)};"undefined"!=typeof window&&Qg.setContext(window);var Rf=function(t,e){return Ah(void 0,void 0,void 0,(function(){var r,s,A,i,n,o,a,h,l,c,u,d,p,g,f,_,m,w,B,C,y,v,E,b,x,P,I,S,T,F,R,O,Q,D,L,U,H,N;return ih(this,(function(M){switch(M.label){case 0:if(!t||"object"!=typeof t)return[2,Promise.reject("Invalid element provided as first argument")];if(!(r=t.ownerDocument))throw new Error("Element is not attached to a Document");if(!(s=r.defaultView))throw new Error("Document is not attached to a Window");return A={allowTaint:null!==(v=e.allowTaint)&&void 0!==v&&v,imageTimeout:null!==(E=e.imageTimeout)&&void 0!==E?E:15e3,proxy:e.proxy,useCORS:null!==(b=e.useCORS)&&void 0!==b&&b},i=sh({logging:null===(x=e.logging)||void 0===x||x,cache:e.cache},A),n={windowWidth:null!==(P=e.windowWidth)&&void 0!==P?P:s.innerWidth,windowHeight:null!==(I=e.windowHeight)&&void 0!==I?I:s.innerHeight,scrollX:null!==(S=e.scrollX)&&void 0!==S?S:s.pageXOffset,scrollY:null!==(T=e.scrollY)&&void 0!==T?T:s.pageYOffset},o=new oh(n.scrollX,n.scrollY,n.windowWidth,n.windowHeight),a=new Tf(i,o),h=null!==(F=e.foreignObjectRendering)&&void 0!==F&&F,l={allowTaint:null!==(R=e.allowTaint)&&void 0!==R&&R,onclone:e.onclone,ignoreElements:e.ignoreElements,inlineImages:h,copyStyles:h},a.logger.debug("Starting document clone with size "+o.width+"x"+o.height+" scrolled to "+-o.left+","+-o.top),c=new mg(a,t,l),(u=c.clonedReferenceElement)?[4,c.toIFrame(r,o)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return d=M.sent(),p=Xp(u)||"HTML"===u.tagName?function(t){var e=t.body,r=t.documentElement;if(!e||!r)throw new Error("Unable to get document size");var s=Math.max(Math.max(e.scrollWidth,r.scrollWidth),Math.max(e.offsetWidth,r.offsetWidth),Math.max(e.clientWidth,r.clientWidth)),A=Math.max(Math.max(e.scrollHeight,r.scrollHeight),Math.max(e.offsetHeight,r.offsetHeight),Math.max(e.clientHeight,r.clientHeight));return new oh(0,0,s,A)}(u.ownerDocument):ah(a,u),g=p.width,f=p.height,_=p.left,m=p.top,w=Of(a,u,e.backgroundColor),B={canvas:e.canvas,backgroundColor:w,scale:null!==(Q=null!==(O=e.scale)&&void 0!==O?O:s.devicePixelRatio)&&void 0!==Q?Q:1,x:(null!==(D=e.x)&&void 0!==D?D:0)+_,y:(null!==(L=e.y)&&void 0!==L?L:0)+m,width:null!==(U=e.width)&&void 0!==U?U:Math.ceil(g),height:null!==(H=e.height)&&void 0!==H?H:Math.ceil(f)},h?(a.logger.debug("Document cloned, using foreign object rendering"),[4,new Pf(a,B).render(u)]):[3,3];case 2:return C=M.sent(),[3,5];case 3:return a.logger.debug("Document cloned, element located at "+_+","+m+" with size "+g+"x"+f+" using computed rendering"),a.logger.debug("Starting DOM parsing"),y=Lp(a,u),w===y.styles.backgroundColor&&(y.styles.backgroundColor=mc.TRANSPARENT),a.logger.debug("Starting renderer for element at "+B.x+","+B.y+" with size "+B.width+"x"+B.height),[4,new vf(a,B).render(y)];case 4:C=M.sent(),M.label=5;case 5:return(null===(N=e.removeContainer)||void 0===N||N)&&(mg.destroy(d)||a.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),a.logger.debug("Finished rendering"),[2,C]}}))}))},Of=function(t,e,r){var s=e.ownerDocument,A=s.documentElement?_c(t,getComputedStyle(s.documentElement).backgroundColor):mc.TRANSPARENT,i=s.body?_c(t,getComputedStyle(s.body).backgroundColor):mc.TRANSPARENT,n="string"==typeof r?_c(t,r):null===r?mc.TRANSPARENT:4294967295;return e===s.documentElement?ac(A)?ac(i)?n:i:A:n},Qf=Uint8Array,Df=Uint16Array,Lf=Uint32Array,Uf=new Qf([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]),Hf=new Qf([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]),Nf=new Qf([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Mf=function(t,e){for(var r=new Df(31),s=0;s<31;++s)r[s]=e+=1<<t[s-1];var A=new Lf(r[30]);for(s=1;s<30;++s)for(var i=r[s];i<r[s+1];++i)A[i]=i-r[s]<<5|s;return[r,A]},kf=Mf(Uf,2),Vf=kf[0],Gf=kf[1];Vf[28]=258,Gf[258]=28;for(var Kf=Mf(Hf,0)[1],Wf=new Df(32768),zf=0;zf<32768;++zf){var Xf=(43690&zf)>>>1|(21845&zf)<<1;Xf=(61680&(Xf=(52428&Xf)>>>2|(13107&Xf)<<2))>>>4|(3855&Xf)<<4,Wf[zf]=((65280&Xf)>>>8|(255&Xf)<<8)>>>1}var Jf=function(t,e,r){for(var s=t.length,A=0,i=new Df(e);A<s;++A)++i[t[A]-1];var n,o=new Df(e);for(A=0;A<e;++A)o[A]=o[A-1]+i[A-1]<<1;if(r){n=new Df(1<<e);var a=15-e;for(A=0;A<s;++A)if(t[A])for(var h=A<<4|t[A],l=e-t[A],c=o[t[A]-1]++<<l,u=c|(1<<l)-1;c<=u;++c)n[Wf[c]>>>a]=h}else for(n=new Df(s),A=0;A<s;++A)t[A]&&(n[A]=Wf[o[t[A]-1]++]>>>15-t[A]);return n},Yf=new Qf(288);for(zf=0;zf<144;++zf)Yf[zf]=8;for(zf=144;zf<256;++zf)Yf[zf]=9;for(zf=256;zf<280;++zf)Yf[zf]=7;for(zf=280;zf<288;++zf)Yf[zf]=8;var $f=new Qf(32);for(zf=0;zf<32;++zf)$f[zf]=5;var jf=Jf(Yf,9,0),Zf=Jf($f,5,0),qf=function(t){return(t+7)/8|0},t_=function(t,e,r){(null==e||e<0)&&(e=0),(null==r||r>t.length)&&(r=t.length);var s=new(t instanceof Df?Df:t instanceof Lf?Lf:Qf)(r-e);return s.set(t.subarray(e,r)),s},e_=["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"],r_=function(t,e,r){var s=new Error(e||e_[t]);if(s.code=t,Error.captureStackTrace&&Error.captureStackTrace(s,r_),!r)throw s;return s},s_=function(t,e,r){r<<=7&e;var s=e/8|0;t[s]|=r,t[s+1]|=r>>>8},A_=function(t,e,r){r<<=7&e;var s=e/8|0;t[s]|=r,t[s+1]|=r>>>8,t[s+2]|=r>>>16},i_=function(t,e){for(var r=[],s=0;s<t.length;++s)t[s]&&r.push({s:s,f:t[s]});var A=r.length,i=r.slice();if(!A)return[u_,0];if(1==A){var n=new Qf(r[0].s+1);return n[r[0].s]=1,[n,1]}r.sort((function(t,e){return t.f-e.f})),r.push({s:-1,f:25001});var o=r[0],a=r[1],h=0,l=1,c=2;for(r[0]={s:-1,f:o.f+a.f,l:o,r:a};l!=A-1;)o=r[r[h].f<r[c].f?h++:c++],a=r[h!=l&&r[h].f<r[c].f?h++:c++],r[l++]={s:-1,f:o.f+a.f,l:o,r:a};var u=i[0].s;for(s=1;s<A;++s)i[s].s>u&&(u=i[s].s);var d=new Df(u+1),p=n_(r[l-1],d,0);if(p>e){s=0;var g=0,f=p-e,_=1<<f;for(i.sort((function(t,e){return d[e.s]-d[t.s]||t.f-e.f}));s<A;++s){var m=i[s].s;if(!(d[m]>e))break;g+=_-(1<<p-d[m]),d[m]=e}for(g>>>=f;g>0;){var w=i[s].s;d[w]<e?g-=1<<e-d[w]++-1:++s}for(;s>=0&&g;--s){var B=i[s].s;d[B]==e&&(--d[B],++g)}p=e}return[new Qf(d),p]},n_=function(t,e,r){return-1==t.s?Math.max(n_(t.l,e,r+1),n_(t.r,e,r+1)):e[t.s]=r},o_=function(t){for(var e=t.length;e&&!t[--e];);for(var r=new Df(++e),s=0,A=t[0],i=1,n=function(t){r[s++]=t},o=1;o<=e;++o)if(t[o]==A&&o!=e)++i;else{if(!A&&i>2){for(;i>138;i-=138)n(32754);i>2&&(n(i>10?i-11<<5|28690:i-3<<5|12305),i=0)}else if(i>3){for(n(A),--i;i>6;i-=6)n(8304);i>2&&(n(i-3<<5|8208),i=0)}for(;i--;)n(A);i=1,A=t[o]}return[r.subarray(0,s),e]},a_=function(t,e){for(var r=0,s=0;s<e.length;++s)r+=t[s]*e[s];return r},h_=function(t,e,r){var s=r.length,A=qf(e+2);t[A]=255&s,t[A+1]=s>>>8,t[A+2]=255^t[A],t[A+3]=255^t[A+1];for(var i=0;i<s;++i)t[A+i+4]=r[i];return 8*(A+4+s)},l_=function(t,e,r,s,A,i,n,o,a,h,l){s_(e,l++,r),++A[256];for(var c=i_(A,15),u=c[0],d=c[1],p=i_(i,15),g=p[0],f=p[1],_=o_(u),m=_[0],w=_[1],B=o_(g),C=B[0],y=B[1],v=new Df(19),E=0;E<m.length;++E)v[31&m[E]]++;for(E=0;E<C.length;++E)v[31&C[E]]++;for(var b=i_(v,7),x=b[0],P=b[1],I=19;I>4&&!x[Nf[I-1]];--I);var S,T,F,R,O=h+5<<3,Q=a_(A,Yf)+a_(i,$f)+n,D=a_(A,u)+a_(i,g)+n+14+3*I+a_(v,x)+(2*v[16]+3*v[17]+7*v[18]);if(O<=Q&&O<=D)return h_(e,l,t.subarray(a,a+h));if(s_(e,l,1+(D<Q)),l+=2,D<Q){S=Jf(u,d,0),T=u,F=Jf(g,f,0),R=g;var L=Jf(x,P,0);s_(e,l,w-257),s_(e,l+5,y-1),s_(e,l+10,I-4),l+=14;for(E=0;E<I;++E)s_(e,l+3*E,x[Nf[E]]);l+=3*I;for(var U=[m,C],H=0;H<2;++H){var N=U[H];for(E=0;E<N.length;++E){var M=31&N[E];s_(e,l,L[M]),l+=x[M],M>15&&(s_(e,l,N[E]>>>5&127),l+=N[E]>>>12)}}}else S=jf,T=Yf,F=Zf,R=$f;for(E=0;E<o;++E)if(s[E]>255){M=s[E]>>>18&31;A_(e,l,S[M+257]),l+=T[M+257],M>7&&(s_(e,l,s[E]>>>23&31),l+=Uf[M]);var k=31&s[E];A_(e,l,F[k]),l+=R[k],k>3&&(A_(e,l,s[E]>>>5&8191),l+=Hf[k])}else A_(e,l,S[s[E]]),l+=T[s[E]];return A_(e,l,S[256]),l+T[256]},c_=new Lf([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),u_=new Qf(0),d_=function(){for(var t=new Int32Array(256),e=0;e<256;++e){for(var r=e,s=9;--s;)r=(1&r&&-306674912)^r>>>1;t[e]=r}return t}(),p_=function(){var t=-1;return{p:function(e){for(var r=t,s=0;s<e.length;++s)r=d_[255&r^e[s]]^r>>>8;t=r},d:function(){return~t}}},g_=function(t,e,r,s,A){return function(t,e,r,s,A,i){var n=t.length,o=new Qf(s+n+5*(1+Math.ceil(n/7e3))+A),a=o.subarray(s,o.length-A),h=0;if(!e||n<8)for(var l=0;l<=n;l+=65535){var c=l+65535;c<n?h=h_(a,h,t.subarray(l,c)):(a[l]=i,h=h_(a,h,t.subarray(l,n)))}else{for(var u=c_[e-1],d=u>>>13,p=8191&u,g=(1<<r)-1,f=new Df(32768),_=new Df(g+1),m=Math.ceil(r/3),w=2*m,B=function(e){return(t[e]^t[e+1]<<m^t[e+2]<<w)&g},C=new Lf(25e3),y=new Df(288),v=new Df(32),E=0,b=0,x=(l=0,0),P=0,I=0;l<n;++l){var S=B(l),T=32767&l,F=_[S];if(f[T]=F,_[S]=T,P<=l){var R=n-l;if((E>7e3||x>24576)&&R>423){h=l_(t,a,0,C,y,v,b,x,I,l-I,h),x=E=b=0,I=l;for(var O=0;O<286;++O)y[O]=0;for(O=0;O<30;++O)v[O]=0}var Q=2,D=0,L=p,U=T-F&32767;if(R>2&&S==B(l-U))for(var H=Math.min(d,R)-1,N=Math.min(32767,l),M=Math.min(258,R);U<=N&&--L&&T!=F;){if(t[l+Q]==t[l+Q-U]){for(var k=0;k<M&&t[l+k]==t[l+k-U];++k);if(k>Q){if(Q=k,D=U,k>H)break;var V=Math.min(U,k-2),G=0;for(O=0;O<V;++O){var K=l-U+O+32768&32767,W=K-f[K]+32768&32767;W>G&&(G=W,F=K)}}}U+=(T=F)-(F=f[T])+32768&32767}if(D){C[x++]=268435456|Gf[Q]<<18|Kf[D];var z=31&Gf[Q],X=31&Kf[D];b+=Uf[z]+Hf[X],++y[257+z],++v[X],P=l+Q,++E}else C[x++]=t[l],++y[t[l]]}}h=l_(t,a,i,C,y,v,b,x,I,l-I,h),!i&&7&h&&(h=h_(a,h+1,u_))}return t_(o,0,s+qf(h)+A)}(t,null==e.level?6:e.level,null==e.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):12+e.mem,r,s,!A)},f_=function(t,e){var r={};for(var s in t)r[s]=t[s];for(var s in e)r[s]=e[s];return r},__=function(t,e,r){for(;r;++e)t[e]=r,r>>>=8};function m_(t,e){return g_(t,e||{},0,0)}var w_=function(t,e,r,s){for(var A in t){var i=t[A],n=e+A;i instanceof Qf?r[n]=[i,s]:Array.isArray(i)?r[n]=[i[0],f_(s,i[1])]:w_(i,n+"/",r,s)}},B_="undefined"!=typeof TextEncoder&&new TextEncoder,C_="undefined"!=typeof TextDecoder&&new TextDecoder;try{C_.decode(u_,{stream:!0})}catch(t){}function y_(t,e){if(e){for(var r=new Qf(t.length),s=0;s<t.length;++s)r[s]=t.charCodeAt(s);return r}if(B_)return B_.encode(t);var A=t.length,i=new Qf(t.length+(t.length>>1)),n=0,o=function(t){i[n++]=t};for(s=0;s<A;++s){if(n+5>i.length){var a=new Qf(n+8+(A-s<<1));a.set(i),i=a}var h=t.charCodeAt(s);h<128||e?o(h):h<2048?(o(192|h>>6),o(128|63&h)):h>55295&&h<57344?(o(240|(h=65536+(1047552&h)|1023&t.charCodeAt(++s))>>18),o(128|h>>12&63),o(128|h>>6&63),o(128|63&h)):(o(224|h>>12),o(128|h>>6&63),o(128|63&h))}return t_(i,0,n)}var v_=function(t){var e=0;if(t)for(var r in t){var s=t[r].length;s>65535&&r_(9),e+=s+4}return e},E_=function(t,e,r,s,A,i,n,o){var a=s.length,h=r.extra,l=o&&o.length,c=v_(h);__(t,e,null!=n?33639248:67324752),e+=4,null!=n&&(t[e++]=20,t[e++]=r.os),t[e]=20,e+=2,t[e++]=r.flag<<1|(null==i&&8),t[e++]=A&&8,t[e++]=255&r.compression,t[e++]=r.compression>>8;var u=new Date(null==r.mtime?Date.now():r.mtime),d=u.getFullYear()-1980;if((d<0||d>119)&&r_(10),__(t,e,d<<25|u.getMonth()+1<<21|u.getDate()<<16|u.getHours()<<11|u.getMinutes()<<5|u.getSeconds()>>>1),e+=4,null!=i&&(__(t,e,r.crc),__(t,e+4,i),__(t,e+8,r.size)),__(t,e+12,a),__(t,e+14,c),e+=16,null!=n&&(__(t,e,l),__(t,e+6,r.attrs),__(t,e+10,n),e+=14),t.set(s,e),e+=a,c)for(var p in h){var g=h[p],f=g.length;__(t,e,+p),__(t,e+2,f),t.set(g,e+4),e+=4+f}return l&&(t.set(o,e),e+=l),e};function b_(t,e){e||(e={});var r={},s=[];w_(t,"",r,e);var A=0,i=0;for(var n in r){var o=r[n],a=o[0],h=o[1],l=0==h.level?0:8,c=(v=y_(n)).length,u=h.comment,d=u&&y_(u),p=d&&d.length,g=v_(h.extra);c>65535&&r_(11);var f=l?m_(a,h):a,_=f.length,m=p_();m.p(a),s.push(f_(h,{size:a.length,crc:m.d(),c:f,f:v,m:d,u:c!=n.length||d&&u.length!=p,o:A,compression:l})),A+=30+c+g+_,i+=76+2*(c+g)+(p||0)+_}for(var w=new Qf(i+22),B=A,C=i-A,y=0;y<s.length;++y){var v=s[y];E_(w,v.o,v,v.f,v.u,v.c.length);var E=30+v.f.length+v_(v.extra);w.set(v.c,v.o+E),E_(w,A,v,v.f,v.u,v.c.length,v.o,v.m),A+=16+E+(v.m?v.m.length:0)}return function(t,e,r,s,A){__(t,e,101010256),__(t,e+8,r),__(t,e+10,r),__(t,e+12,s),__(t,e+16,A)}(w,A,s.length,C,B),w}var x_=Fa((function(t,e){t.exports=function t(e,r,s){var A,i,n=window,o="application/octet-stream",a=s||o,h=e,l=!r&&!s&&h,c=document.createElement("a"),u=function(t){return String(t)},d=n.Blob||n.MozBlob||n.WebKitBlob||u,p=r||"download";if(d=d.call?d.bind(n):Blob,"true"===String(this)&&(a=(h=[h,a])[0],h=h[1]),l&&l.length<2048&&(p=l.split("/").pop().split("?")[0],c.href=l,-1!==c.href.indexOf(l))){var g=new XMLHttpRequest;return g.open("GET",l,!0),g.responseType="blob",g.onload=function(e){t(e.target.response,p,o)},setTimeout((function(){g.send()}),0),g}if(/^data:([\w+-]+\/[\w+.-]+)?[,;]/.test(h)){if(!(h.length>2096103.424&&d!==u))return navigator.msSaveBlob?navigator.msSaveBlob(w(h),p):B(h);a=(h=w(h)).type||o}else if(/([\x80-\xff])/.test(h)){for(var f=0,_=new Uint8Array(h.length),m=_.length;f<m;++f)_[f]=h.charCodeAt(f);h=new d([_],{type:a})}function w(t){for(var e=t.split(/[:;,]/),r=e[1],s=("base64"==e[2]?atob:decodeURIComponent)(e.pop()),A=s.length,i=0,n=new Uint8Array(A);i<A;++i)n[i]=s.charCodeAt(i);return new d([n],{type:r})}function B(t,e){if("download"in c)return c.href=t,c.setAttribute("download",p),c.className="download-js-link",c.innerHTML="downloading...",c.style.display="none",document.body.appendChild(c),setTimeout((function(){c.click(),document.body.removeChild(c),!0===e&&setTimeout((function(){n.URL.revokeObjectURL(c.href)}),250)}),66),!0;if(/(Version)\/(\d+)\.(\d+)(?:\.(\d+))?.*Safari\//.test(navigator.userAgent))return/^data:/.test(t)&&(t="data:"+t.replace(/^data:([\w\/\-\+]+)/,o)),window.open(t)||confirm("Displaying New Document\n\nUse Save As... to download, then click back to return to this page.")&&(location.href=t),!0;var r=document.createElement("iframe");document.body.appendChild(r),!e&&/^data:/.test(t)&&(t="data:"+t.replace(/^data:([\w\/\-\+]+)/,o)),r.src=t,setTimeout((function(){document.body.removeChild(r)}),333)}if(A=h instanceof d?h:new d([h],{type:a}),navigator.msSaveBlob)return navigator.msSaveBlob(A,p);if(n.URL)B(n.URL.createObjectURL(A),!0);else{if("string"==typeof A||A.constructor===u)try{return B("data:"+a+";base64,"+n.btoa(A))}catch(t){return B("data:"+a+","+encodeURIComponent(A))}(i=new FileReader).onload=function(t){B(this.result)},i.readAsDataURL(A)}return!0}})),P_=Fa((function(t,e){t.exports=function(){function t(t){var e=typeof t;return null!==t&&("object"===e||"function"===e)}function e(t){return"function"==typeof t}var r=void 0;r=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)};var s=r,A=0,i=void 0,n=void 0,o=function(t,e){B[A]=t,B[A+1]=e,2===(A+=2)&&(n?n(C):v())};function a(t){n=t}function h(t){o=t}var l="undefined"!=typeof window?window:void 0,c=l||{},u=c.MutationObserver||c.WebKitMutationObserver,d="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),p="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function g(){return function(){return process.nextTick(C)}}function f(){return void 0!==i?function(){i(C)}:w()}function _(){var t=0,e=new u(C),r=document.createTextNode("");return e.observe(r,{characterData:!0}),function(){r.data=t=++t%2}}function m(){var t=new MessageChannel;return t.port1.onmessage=C,function(){return t.port2.postMessage(0)}}function w(){var t=setTimeout;return function(){return t(C,1)}}var B=new Array(1e3);function C(){for(var t=0;t<A;t+=2)(0,B[t])(B[t+1]),B[t]=void 0,B[t+1]=void 0;A=0}function y(){try{var t=Function("return this")().require("vertx");return i=t.runOnLoop||t.runOnContext,f()}catch(t){return w()}}var v=void 0;function E(t,e){var r=this,s=new this.constructor(P);void 0===s[x]&&X(s);var A=r._state;if(A){var i=arguments[A-1];o((function(){return G(A,s,i,r._result)}))}else k(r,s,t,e);return s}function b(t){var e=this;if(t&&"object"==typeof t&&t.constructor===e)return t;var r=new e(P);return U(r,t),r}v=d?g():u?_():p?m():void 0===l?y():w();var x=Math.random().toString(36).substring(2);function P(){}var I=void 0,S=1,T=2;function F(){return new TypeError("You cannot resolve a promise with itself")}function R(){return new TypeError("A promises callback cannot return that same promise.")}function O(t,e,r,s){try{t.call(e,r,s)}catch(t){return t}}function Q(t,e,r){o((function(t){var s=!1,A=O(r,e,(function(r){s||(s=!0,e!==r?U(t,r):N(t,r))}),(function(e){s||(s=!0,M(t,e))}));!s&&A&&(s=!0,M(t,A))}),t)}function D(t,e){e._state===S?N(t,e._result):e._state===T?M(t,e._result):k(e,void 0,(function(e){return U(t,e)}),(function(e){return M(t,e)}))}function L(t,r,s){r.constructor===t.constructor&&s===E&&r.constructor.resolve===b?D(t,r):void 0===s?N(t,r):e(s)?Q(t,r,s):N(t,r)}function U(e,r){if(e===r)M(e,F());else if(t(r)){var s=void 0;try{s=r.then}catch(t){return void M(e,t)}L(e,r,s)}else N(e,r)}function H(t){t._onerror&&t._onerror(t._result),V(t)}function N(t,e){t._state===I&&(t._result=e,t._state=S,0!==t._subscribers.length&&o(V,t))}function M(t,e){t._state===I&&(t._state=T,t._result=e,o(H,t))}function k(t,e,r,s){var A=t._subscribers,i=A.length;t._onerror=null,A[i]=e,A[i+S]=r,A[i+T]=s,0===i&&t._state&&o(V,t)}function V(t){var e=t._subscribers,r=t._state;if(0!==e.length){for(var s=void 0,A=void 0,i=t._result,n=0;n<e.length;n+=3)s=e[n],A=e[n+r],s?G(r,s,A,i):A(i);t._subscribers.length=0}}function G(t,r,s,A){var i=e(s),n=void 0,o=void 0,a=!0;if(i){try{n=s(A)}catch(t){a=!1,o=t}if(r===n)return void M(r,R())}else n=A;r._state!==I||(i&&a?U(r,n):!1===a?M(r,o):t===S?N(r,n):t===T&&M(r,n))}function K(t,e){try{e((function(e){U(t,e)}),(function(e){M(t,e)}))}catch(e){M(t,e)}}var W=0;function z(){return W++}function X(t){t[x]=W++,t._state=void 0,t._result=void 0,t._subscribers=[]}function J(){return new Error("Array Methods must be provided an Array")}var Y=function(){function t(t,e){this._instanceConstructor=t,this.promise=new t(P),this.promise[x]||X(this.promise),s(e)?(this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?N(this.promise,this._result):(this.length=this.length||0,this._enumerate(e),0===this._remaining&&N(this.promise,this._result))):M(this.promise,J())}return t.prototype._enumerate=function(t){for(var e=0;this._state===I&&e<t.length;e++)this._eachEntry(t[e],e)},t.prototype._eachEntry=function(t,e){var r=this._instanceConstructor,s=r.resolve;if(s===b){var A=void 0,i=void 0,n=!1;try{A=t.then}catch(t){n=!0,i=t}if(A===E&&t._state!==I)this._settledAt(t._state,e,t._result);else if("function"!=typeof A)this._remaining--,this._result[e]=t;else if(r===et){var o=new r(P);n?M(o,i):L(o,t,A),this._willSettleAt(o,e)}else this._willSettleAt(new r((function(e){return e(t)})),e)}else this._willSettleAt(s(t),e)},t.prototype._settledAt=function(t,e,r){var s=this.promise;s._state===I&&(this._remaining--,t===T?M(s,r):this._result[e]=r),0===this._remaining&&N(s,this._result)},t.prototype._willSettleAt=function(t,e){var r=this;k(t,void 0,(function(t){return r._settledAt(S,e,t)}),(function(t){return r._settledAt(T,e,t)}))},t}();function $(t){return new Y(this,t).promise}function j(t){var e=this;return s(t)?new e((function(r,s){for(var A=t.length,i=0;i<A;i++)e.resolve(t[i]).then(r,s)})):new e((function(t,e){return e(new TypeError("You must pass an array to race."))}))}function Z(t){var e=new this(P);return M(e,t),e}function q(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function tt(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var et=function(){function t(e){this[x]=z(),this._result=this._state=void 0,this._subscribers=[],P!==e&&("function"!=typeof e&&q(),this instanceof t?K(this,e):tt())}return t.prototype.catch=function(t){return this.then(null,t)},t.prototype.finally=function(t){var r=this,s=r.constructor;return e(t)?r.then((function(e){return s.resolve(t()).then((function(){return e}))}),(function(e){return s.resolve(t()).then((function(){throw e}))})):r.then(t,t)},t}();function rt(){var t=void 0;if(void 0!==Sa)t=Sa;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(t){throw new Error("polyfill failed because global object is unavailable in this environment")}var e=t.Promise;if(e){var r=null;try{r=Object.prototype.toString.call(e.resolve())}catch(t){}if("[object Promise]"===r&&!e.cast)return}t.Promise=et}return et.prototype.then=E,et.all=$,et.race=j,et.resolve=b,et.reject=Z,et._setScheduler=a,et._setAsap=h,et._asap=o,et.polyfill=rt,et.Promise=et,et}()}));const I_=[12,1,-1,9,1,-2,10,1,-2,11,1,-2,12,0,-2],S_=function(t,e,r){return{codeLen:t,code:e,runLength:r}},T_=function(t){const e=[];for(let r=0,s=t.length;r<s;r+=3)e.push({codeLen:t[r],code:t[r+1],runLength:t[r+2]});return e},F_=[T_([8,53,0,6,7,1,4,7,2,4,8,3,4,11,4,4,12,5,4,14,6,4,15,7,5,19,8,5,20,9,5,7,10,5,8,11,6,8,12,6,3,13,6,52,14,6,53,15,6,42,16,6,43,17,7,39,18,7,12,19,7,8,20,7,23,21,7,3,22,7,4,23,7,40,24,7,43,25,7,19,26,7,36,27,7,24,28,8,2,29,8,3,30,8,26,31,8,27,32,8,18,33,8,19,34,8,20,35,8,21,36,8,22,37,8,23,38,8,40,39,8,41,40,8,42,41,8,43,42,8,44,43,8,45,44,8,4,45,8,5,46,8,10,47,8,11,48,8,82,49,8,83,50,8,84,51,8,85,52,8,36,53,8,37,54,8,88,55,8,89,56,8,90,57,8,91,58,8,74,59,8,75,60,8,50,61,8,51,62,8,52,63]),T_([10,55,0,3,2,1,2,3,2,2,2,3,3,3,4,4,3,5,4,2,6,5,3,7,6,5,8,6,4,9,7,4,10,7,5,11,7,7,12,8,4,13,8,7,14,9,24,15,10,23,16,10,24,17,10,8,18,11,103,19,11,104,20,11,108,21,11,55,22,11,40,23,11,23,24,11,24,25,12,202,26,12,203,27,12,204,28,12,205,29,12,104,30,12,105,31,12,106,32,12,107,33,12,210,34,12,211,35,12,212,36,12,213,37,12,214,38,12,215,39,12,108,40,12,109,41,12,218,42,12,219,43,12,84,44,12,85,45,12,86,46,12,87,47,12,100,48,12,101,49,12,82,50,12,83,51,12,36,52,12,55,53,12,56,54,12,39,55,12,40,56,12,88,57,12,89,58,12,43,59,12,44,60,12,90,61,12,102,62,12,103,63])],R_=[T_([5,27,64,5,18,128,6,23,192,7,55,256,8,54,320,8,55,384,8,100,448,8,101,512,8,104,576,8,103,640,9,204,704,9,205,768,9,210,832,9,211,896,9,212,960,9,213,1024,9,214,1088,9,215,1152,9,216,1216,9,217,1280,9,218,1344,9,219,1408,9,152,1472,9,153,1536,9,154,1600,6,24,1664,9,155,1728,11,8,1792,11,12,1856,11,13,1920,12,18,1984,12,19,2048,12,20,2112,12,21,2176,12,22,2240,12,23,2304,12,28,2368,12,29,2432,12,30,2496,12,31,2560]),T_([10,15,64,12,200,128,12,201,192,12,91,256,12,51,320,12,52,384,12,53,448,13,108,512,13,109,576,13,74,640,13,75,704,13,76,768,13,77,832,13,114,896,13,115,960,13,116,1024,13,117,1088,13,118,1152,13,119,1216,13,82,1280,13,83,1344,13,84,1408,13,85,1472,13,90,1536,13,91,1600,13,100,1664,13,101,1728,11,8,1792,11,12,1856,11,13,1920,12,18,1984,12,19,2048,12,20,2112,12,21,2176,12,22,2240,12,23,2304,12,28,2368,12,29,2432,12,30,2496,12,31,2560])],O_=T_(I_),Q_=S_(4,1,0),D_=S_(3,1,0),L_=T_([7,3,0,6,3,0,3,3,0,1,1,0,3,2,0,6,2,0,7,2,0]);var U_;!function(t){t.GROUP_3="g3",t.GROUP_3_2D="g3-2d",t.GROUP_4="g4"}(U_||(U_={}));const H_=[128,64,32,16,8,4,2,1],N_=[240,15];class M_{constructor(t,e){if(1!==t&&4!==t&&8!==t)throw new Error("Invalid bps: "+t);this._bps=t,this._pixels=e,this._bytes=this.bytesOfPixels(e),this._dv=new DataView(new ArrayBuffer(this._bytes))}get byteLength(){return this._bytes}bytesOfPixels(t){return(t*this._bps+7)/8|0}prepare(t,e){for(let r=0;r<this._bytes;r++)this._dv.setUint8(r,t[e+r]);return this}clear(){for(let t=0;t<this._bytes;t++)this._dv.setUint8(t,0);return this}getRow(t){return new Uint8Array(this._dv.buffer.slice(0,this.bytesOfPixels(t)))}getByte(t){return this._dv.getUint8(t)}getBytes(t){return new Uint8Array(this._dv.buffer.slice(0,t))}getPixel(t){const e=t*this._bps,r=e/8|0,s=e%8,A=this._dv.getUint8(r);return 1===this._bps?A&H_[s]:4===this._bps?A&N_[s]:A}getBit(t){const e=t/8|0,r=t%8;return this._dv.getUint8(e)&H_[r]?1:0}setBits(t,e,r){const s=r-1;let A=t/8|0,i=t%8,n=0;for(;n<r;)try{let t=this._dv.getUint8(A);for(;i<8&&n<r;){t&=255&~(1<<7-i),t|=(e&1<<s-n?1:0)<<7-i,n++,i++}this._dv.setUint8(A,t),A++,i=0}catch(t){}}setString(t,e){const r=e.length;let s=0;for(let t=0;t<r;t++){s+=("0"===e.charAt(t)?0:1)<<r-1-t}this.setBits(t,s,r)}getBits(t,e){const r=e-1;let s=t/8|0,A=t%8,i=0,n=0;for(;n<e;){const t=this._dv.getUint8(s);for(;A<8&&n<e;){i|=(t&H_[A]?1:0)<<r-n,n++,A++}s++,A=0}return i}getSpan(t){const e=this._dv.byteLength;let r=t/8|0,s=t%8,A=this._dv.getUint8(r);const i=A&H_[s++]?1:0;let n=1;for(;r<e;){for(;s<8;){if((A&H_[s++]?1:0)!==i)return n;n++}r++,s=0,r<e&&(A=this._dv.getUint8(r))}return n}toString(){let t="";for(let e=0,r=this._dv.byteLength;e<r;e++){const r=this._dv.getUint8(e);for(let e=0;e<8;e++){t+=r&1<<7-e?1:0}}return t}}class k_{constructor(){}static encodePixcels(t,e){return e.scheme===U_.GROUP_4?(console.log("TIFF G4 Encode",e.scheme),(new G_).encode(t,e)):(console.log("TIFF G3 Encode",e.scheme),(new V_).encode(t,e))}encode(t,e){return this._wPixels=e.columns,this._doEncode(t,e)}_encodeLine1D(t,e,r,s){let A=0,i=0,n=0,o=0;const a=O_[0];if(e.setBits(i,a.code,a.codeLen),i+=a.codeLen,s&&(e.setBits(i,1,1),i+=1),1===t.getBit(0)){const t=F_[0][0];e.setBits(i,t.code,t.codeLen),i+=t.codeLen,n=1}for(;A<r;){const r=t.getSpan(A);if(r<64){const t=F_[n][r];e.setBits(i,t.code,t.codeLen),i+=t.codeLen,o+=t.runLength}else if(r<2624){const t=R_[n][(r-64)/64|0];e.setBits(i,t.code,t.codeLen),i+=t.codeLen,o+=t.runLength;const s=F_[n][r%64];e.setBits(i,s.code,s.codeLen),i+=s.codeLen,o+=s.runLength}A+=r,n=1-n}return o!==r&&console.log(o),i}$_findDiff(t,e,r){let s=e;for(;s<this._wPixels;s++)if(t.getBit(s)!==r)return s;return s}$_setSpan(t,e,r,s){let A=0;if(r<64){const i=F_[s][r];t.setBits(e,i.code,i.codeLen),A+=i.codeLen}else if(r<2624){const i=R_[s][(r-64)/64|0];t.setBits(e,i.code,i.codeLen),e+=i.codeLen,A+=i.codeLen;const n=F_[s][r%64];t.setBits(e,n.code,n.codeLen),A+=n.codeLen}return A}_encodeLine2D(t,e,r,s){let A=0,i=0!==e.getBit(0)?0:this.$_findDiff(e,0,0),n=0!==t.getBit(0)?0:this.$_findDiff(t,0,0),o=0;for(;;){const a=n<s?this.$_findDiff(t,n,t.getBit(n)):s;if(a>=i){const t=n-i;if(t>=-3&&t<=3){const e=L_[t+3];r.setBits(o,e.code,e.codeLen),o+=e.codeLen,A=i}else{const t=i<s?this.$_findDiff(e,i,e.getBit(i)):s;r.setBits(o,D_.code,D_.codeLen),o+=D_.codeLen,A+i===0||0===e.getBit(A)?(o+=this.$_setSpan(r,o,i-A,0),o+=this.$_setSpan(r,o,t-i,1)):(o+=this.$_setSpan(r,o,i-A,1),o+=this.$_setSpan(r,o,t-i,0)),A=t}}else r.setBits(o,Q_.code,Q_.codeLen),o+=Q_.codeLen,A=a;if(A>=s)break;const h=e.getBit(A);i=this.$_findDiff(e,A,h),n=this.$_findDiff(t,A,1-h),n=this.$_findDiff(t,n,h)}return o}}class V_ extends k_{_doEncode(t,e){const r=e.columns,s=e.height;return e.scheme===U_.GROUP_3?this.$_encode1D(t,r,s):this.$_encode2D(t,r,s)}$_encode1D(t,e,r){const s=[],A=[],i=new M_(1,e),n=i.byteLength,o=new M_(1,4*e);for(let a=0;a<r;a++){const r=this._encodeLine1D(i.prepare(t,n*a),o.clear(),e,!1),h=o.bytesOfPixels(r);s.push(h),A.push(o.getBytes(h))}const a=A.map((t=>t.length)).reduce(((t,e)=>t+e),0),h=new Uint8Array(new ArrayBuffer(a));for(let t=0,e=0;t<r;t++)h.set(A[t],e),e+=s[t];return{counts:s,rows:h}}$_encode2D(t,e,r){const s=[],A=[],i=new M_(1,e),n=i.byteLength,o=new M_(1,4*e);for(let a=0;a<r;a++){const r=this._encodeLine1D(i.prepare(t,n*a),o.clear(),e,!0),h=o.bytesOfPixels(r);s.push(h),A.push(o.getBytes(h))}const a=A.map((t=>t.length)).reduce(((t,e)=>t+e),0),h=new Uint8Array(new ArrayBuffer(a));for(let t=0,e=0;t<r;t++)h.set(A[t],e),e+=s[t];return{counts:s,rows:h}}}class G_ extends k_{_doEncode(t,e){const r=e.columns,s=e.height,A=[],i=[];let n=new M_(1,r).clear();const o=new M_(1,r),a=o.byteLength,h=new M_(1,4*r);for(let e=0;e<s;e++){const s=this._encodeLine2D(n,o.prepare(t,a*e),h.clear(),r),l=h.bytesOfPixels(s);A.push(l),i.push(h.getBytes(l))}const l=i.map((t=>t.length)).reduce(((t,e)=>t+e),0),c=new Uint8Array(new ArrayBuffer(l));for(let t=0,e=0;t<s;t++)c.set(i[t],e),e+=A[t];return{counts:A,rows:c}}}const K_=500;class W_{constructor(){this._curr=0}encode(t,e){const r=8+K_*t.length+t.map((t=>ot.toEven(8*t.encoded.counts.length+t.encoded.rows.length))).reduce(((t,e)=>t+e),0),s=new ArrayBuffer(r),A=this._dv=new DataView(s);return this.$_writeHeader(A),t.forEach(((t,r,s)=>this.$_writeIFD(t,e,r,s.length))),s}seek(t){this._curr=t}skip(t){this._curr+=t}set16(t){this._dv.setInt16(this._curr,t),this._curr+=2}setU16(t){this._dv.setUint16(this._curr,t),this._curr+=2}set32(t){this._dv.setInt32(this._curr,t),this._curr+=4}setU32(t){this._dv.setUint32(this._curr,t),this._curr+=4}setStr(t){for(let e=0,r=t.length;e<r;e++)this._dv.setUint8(this._curr++,255&t.charCodeAt(e));1&this._curr&&this._curr++}strLen(t){return ot.toEven(t.length)}dateStr(t){function e(t){return t<10?"0"+t:String(t)}return t.getFullYear()+":"+e(t.getMonth()+1)+":"+e(t.getDate())+" "+e(t.getHours())+":"+e(t.getMinutes())+":"+e(t.getSeconds())}$_writeHeader(t){this.set16(19789),this.set16(42),this.set32(8)}$_writeIFD(t,e,r,s){const A=r===s-1,i=t.width,n=t.height,o=e.encoding===U_.GROUP_3_2D||e.encoding===U_.GROUP_3?3:4,a=this._curr,h=t.encoded.counts,l=h.length,c=t.encoded.rows,u=A?0:ot.toEven(a+K_+8*h.length+c.length);this._entryCount=0,this._pointer=0,this._pointers=[],this.skip(2),this.$_addVal(256,3,1,i),this.$_addVal(257,3,1,n),this.$_addVal(259,3,1,o),this.$_addVal(262,3,1,0),this.$_addVal(266,3,1,1),this.$_addVal(273,4,l,a+K_+4*l),this.$_addVal(277,3,1,1),this.$_addVal(278,3,1,1),this.$_addVal(279,4,l,a+K_),this.$_addOff(282,5,1,8),this.$_addOff(283,5,1,8),this.$_addVal(292,4,1,1),this.$_addVal(296,3,1,2),this.set32(u),this.set32(e.dpi||204),this.set32(1),this.set32(e.dpi||196),this.set32(1);let d=a+2+12*this._entryCount+4;this._pointers.forEach((t=>{const e=this._dv.getUint32(t);this._dv.setUint32(t,d+e)}));const p=this._curr;this.seek(a),this.setU16(this._entryCount),this.seek(p),this.seek(a+K_);for(let t=0;t<l;t++)this.setU32(h[t]);for(let t=0,e=this._curr+4*l;t<l;t++)this.setU32(e),e+=h[t];this._curr;new Uint8Array(this._dv.buffer).set(t.encoded.rows,this._curr),A||this.seek(u)}$_addVal(t,e,r,s){this.set16(t),this.set16(e),this.set32(r),3===e&&1===r?(this.set16(s),this.set16(0)):this.set32(s),this._entryCount++}$_addOff(t,e,r,s){this.set16(t),this.set16(e),this.set32(r),this._pointers.push(this._curr),this.set32(this._pointer),this._pointer+=s,this._entryCount++}}class z_{constructor(){}encode(t,e){e.encoding=e.encoding||U_.GROUP_4;const r=this.$_getImages(t,e.encoding),s=(new W_).encode(r,e);return[new Uint8Array(s)]}$_getImages(t,e){const r=[];return t.forEach(((t,s)=>{const A=t.width,i=t.height,n=t.getContext("2d").getImageData(0,0,A,i).data,o=n.length,a=Math.floor((A+7)/8)*i,h=new Uint8Array(a),l=new DataView(h.buffer);let c=0,u=0;for(;c<o;){let t=0;for(;u<a&&c<o&&t<A;){let e=0;for(let r=0;r<8&&c<o&&t<A;r++,t++)if(n[c+3]>0){const t=n[c++],s=n[c++],A=n[c++];c++,e+=(255===t&&255===s&&255===A?0:1)<<7-r}else c+=4;l.setUint8(u++,e)}}h.length;const d=+new Date,p=k_.encodePixcels(h,{scheme:e,width:32*t.width,height:t.height,columns:t.width});console.log("Encoded",+new Date-d,"ms."),r.push({index:s,width:t.width,height:t.height,imageData:h,length:ot.toEven(a),encoded:p})})),r}}function X_(t){return~~t}var J_=256,Y_=1024,$_=1<<18;var j_=function(t,e){var r,s,A,i,n;function o(t,e,s,A,i){r[e][0]-=t*(r[e][0]-s)/Y_,r[e][1]-=t*(r[e][1]-A)/Y_,r[e][2]-=t*(r[e][2]-i)/Y_}function a(t,e,s,A,i){for(var o,a,h=Math.abs(e-t),l=Math.min(e+t,J_),c=e+1,u=e-1,d=1;c<l||u>h;)a=n[d++],c<l&&((o=r[c++])[0]-=a*(o[0]-s)/$_,o[1]-=a*(o[1]-A)/$_,o[2]-=a*(o[2]-i)/$_),u>h&&((o=r[u--])[0]-=a*(o[0]-s)/$_,o[1]-=a*(o[1]-A)/$_,o[2]-=a*(o[2]-i)/$_)}function h(t,e,s){var n,o,a,h,l,c=~(1<<31),u=c,d=-1,p=d;for(n=0;n<32;n++)o=r[n],(a=Math.abs(o[0]-t)+Math.abs(o[1]-e)+Math.abs(o[2]-s))<c&&(c=a,d=n),(h=a-(A[n]>>12))<u&&(u=h,p=n),l=i[n]>>10,i[n]-=l,A[n]+=l<<10;return i[d]+=64,A[d]-=65536,p}this.buildColormap=function(){!function(){var t,e;for(r=[],s=[],A=[],i=[],n=[],t=0;t<J_;t++)e=(t<<12)/J_,r[t]=[e,e,e],i[t]=256,A[t]=0}(),function(){var r,s,A,i,l,c,u=t.length,d=X_(30+(e-1)/3),p=X_(u/(3*e)),g=X_(p/100),f=Y_,_=2048,m=_>>6;for(m<=1&&(m=0),r=0;r<m;r++)n[r]=X_(f*(256*(m*m-r*r)/(m*m)));u<1509?(e=1,s=3):s=u%499!=0?1497:u%491!=0?1473:u%487!=0?1461:1509;var w=0;for(r=0;r<p;)if(o(f,c=h(A=(255&t[w])<<4,i=(255&t[w+1])<<4,l=(255&t[w+2])<<4),A,i,l),0!==m&&a(m,c,A,i,l),(w+=s)>=u&&(w-=u),0===g&&(g=1),++r%g==0)for(f-=f/d,(m=(_-=_/30)>>6)<=1&&(m=0),c=0;c<m;c++)n[c]=~~(f*(256*(m*m-c*c)/(m*m)))}(),function(){for(var t=0;t<J_;t++)r[t][0]>>=4,r[t][1]>>=4,r[t][2]>>=4,r[t][3]=t}(),function(){var t,e,A,i,n,o,a=0,h=0;for(t=0;t<J_;t++){for(n=t,o=(A=r[t])[1],e=t+1;e<J_;e++)(i=r[e])[1]<o&&(n=e,o=i[1]);if(i=r[n],t!=n&&(e=i[0],i[0]=A[0],A[0]=e,e=i[1],i[1]=A[1],A[1]=e,e=i[2],i[2]=A[2],A[2]=e,e=i[3],i[3]=A[3],A[3]=e),o!=a){for(s[a]=h+t>>1,e=a+1;e<o;e++)s[e]=t;a=o,h=t}}for(s[a]=h+255>>1,e=a+1;e<256;e++)s[e]=255}()},this.getColormap=function(){for(var t=[],e=[],s=0;s<J_;s++)e[r[s][3]]=s;for(var A=0,i=0;i<J_;i++){var n=e[i];t[A++]=r[n][0],t[A++]=r[n][1],t[A++]=r[n][2]}return t},this.lookupRGB=function(t,e,A){for(var i,n,o,a=1e3,h=-1,l=s[e],c=l-1;l<J_||c>=0;)l<J_&&((o=(n=r[l])[1]-e)>=a?l=J_:(l++,o<0&&(o=-o),(i=n[0]-t)<0&&(i=-i),(o+=i)<a&&((i=n[2]-A)<0&&(i=-i),(o+=i)<a&&(a=o,h=n[3])))),c>=0&&((o=e-(n=r[c])[1])>=a?c=-1:(c--,o<0&&(o=-o),(i=n[0]-t)<0&&(i=-i),(o+=i)<a&&((i=n[2]-A)<0&&(i=-i),(o+=i)<a&&(a=o,h=n[3]))));return h}},Z_=256,q_=1024,tm=1<<18;var em=function(t,e){var r,s,A,i,n;function o(t,e,s,A,i){r[e][0]-=t*(r[e][0]-s)/q_,r[e][1]-=t*(r[e][1]-A)/q_,r[e][2]-=t*(r[e][2]-i)/q_}function a(t,e,s,A,i){for(var o,a,h=Math.abs(e-t),l=Math.min(e+t,Z_),c=e+1,u=e-1,d=1;c<l||u>h;)a=n[d++],c<l&&((o=r[c++])[0]-=a*(o[0]-s)/tm,o[1]-=a*(o[1]-A)/tm,o[2]-=a*(o[2]-i)/tm),u>h&&((o=r[u--])[0]-=a*(o[0]-s)/tm,o[1]-=a*(o[1]-A)/tm,o[2]-=a*(o[2]-i)/tm)}function h(t,e,s){var n,o,a,h,l,c=~(1<<31),u=c,d=-1,p=d;for(n=0;n<Z_;n++)o=r[n],(a=Math.abs(o[0]-t)+Math.abs(o[1]-e)+Math.abs(o[2]-s))<c&&(c=a,d=n),(h=a-(A[n]>>12))<u&&(u=h,p=n),l=i[n]>>10,i[n]-=l,A[n]+=l<<10;return i[d]+=64,A[d]-=65536,p}this.buildColormap=function(){!function(){var t,e;for(r=[],s=new Int32Array(256),A=new Int32Array(Z_),i=new Int32Array(Z_),n=new Int32Array(32),t=0;t<Z_;t++)e=(t<<12)/Z_,r[t]=new Float64Array([e,e,e,0]),i[t]=256,A[t]=0}(),function(){var r,s,A,i,l,c,u=t.length,d=30+(e-1)/3,p=u/(3*e),g=~~(p/100),f=q_,_=2048,m=_>>6;for(m<=1&&(m=0),r=0;r<m;r++)n[r]=f*(256*(m*m-r*r)/(m*m));u<1509?(e=1,s=3):s=u%499!=0?1497:u%491!=0?1473:u%487!=0?1461:1509;var w=0;for(r=0;r<p;)if(o(f,c=h(A=(255&t[w])<<4,i=(255&t[w+1])<<4,l=(255&t[w+2])<<4),A,i,l),0!==m&&a(m,c,A,i,l),(w+=s)>=u&&(w-=u),0===g&&(g=1),++r%g==0)for(f-=f/d,(m=(_-=_/30)>>6)<=1&&(m=0),c=0;c<m;c++)n[c]=f*(256*(m*m-c*c)/(m*m))}(),function(){for(var t=0;t<Z_;t++)r[t][0]>>=4,r[t][1]>>=4,r[t][2]>>=4,r[t][3]=t}(),function(){var t,e,A,i,n,o,a=0,h=0;for(t=0;t<Z_;t++){for(n=t,o=(A=r[t])[1],e=t+1;e<Z_;e++)(i=r[e])[1]<o&&(n=e,o=i[1]);if(i=r[n],t!=n&&(e=i[0],i[0]=A[0],A[0]=e,e=i[1],i[1]=A[1],A[1]=e,e=i[2],i[2]=A[2],A[2]=e,e=i[3],i[3]=A[3],A[3]=e),o!=a){for(s[a]=h+t>>1,e=a+1;e<o;e++)s[e]=t;a=o,h=t}}for(s[a]=h+255>>1,e=a+1;e<256;e++)s[e]=255}()},this.getColormap=function(){for(var t=[],e=[],s=0;s<Z_;s++)e[r[s][3]]=s;for(var A=0,i=0;i<Z_;i++){var n=e[i];t[A++]=r[n][0],t[A++]=r[n][1],t[A++]=r[n][2]}return t},this.lookupRGB=function(t,e,A){for(var i,n,o,a=1e3,h=-1,l=s[e],c=l-1;l<Z_||c>=0;)l<Z_&&((o=(n=r[l])[1]-e)>=a?l=Z_:(l++,o<0&&(o=-o),(i=n[0]-t)<0&&(i=-i),(o+=i)<a&&((i=n[2]-A)<0&&(i=-i),(o+=i)<a&&(a=o,h=n[3])))),c>=0&&((o=e-(n=r[c])[1])>=a?c=-1:(c--,o<0&&(o=-o),(i=n[0]-t)<0&&(i=-i),(o+=i)<a&&((i=n[2]-A)<0&&(i=-i),(o+=i)<a&&(a=o,h=n[3]))));return h}},rm=5003,sm=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535];var Am=function(t,e,r,s){var A,i,n,o,a,h,l,c,u,d=Math.max(2,s),p=new Uint8Array(256),g=new Int32Array(rm),f=new Int32Array(rm),_=0,m=0,w=!1;function B(t,e){p[i++]=t,i>=254&&v(e)}function C(t){y(rm),m=c+2,w=!0,x(c,t)}function y(t){for(var e=0;e<t;++e)g[e]=-1}function v(t){i>0&&(t.writeByte(i),t.writeBytes(p,0,i),i=0)}function E(t){return(1<<t)-1}function b(){return 0===o?-1:(--o,255&r[a++])}function x(t,e){for(A&=sm[_],_>0?A|=t<<_:A=t,_+=h;_>=8;)B(255&A,e),A>>=8,_-=8;if((m>n||w)&&(w?(n=E(h=l),w=!1):(++h,n=12==h?4096:E(h))),t==u){for(;_>0;)B(255&A,e),A>>=8,_-=8;v(e)}}this.encode=function(r){r.writeByte(d),o=t*e,a=0,function(t,e){var r,s,A,o,a,d,p;for(w=!1,n=E(h=l=t),u=1+(c=1<<t-1),m=c+2,i=0,o=b(),p=0,r=rm;r<65536;r*=2)++p;p=8-p,y(d=rm),x(c,e);t:for(;-1!=(s=b());)if(r=(s<<12)+o,g[A=s<<p^o]!==r){if(g[A]>=0){a=d-A,0===A&&(a=1);do{if((A-=a)<0&&(A+=d),g[A]===r){o=f[A];continue t}}while(g[A]>=0)}x(o,e),o=s,m<4096?(f[A]=m++,g[A]=r):C(e)}else o=f[A];x(o,e),x(u,e)}(d+1,r),r.writeByte(0)}};function im(){this.page=-1,this.pages=[],this.newPage()}im.pageSize=4096,im.charMap={};for(var nm=0;nm<256;nm++)im.charMap[nm]=String.fromCharCode(nm);function om(t,e){this.width=~~t,this.height=~~e,this.transparent=null,this.transIndex=0,this.repeat=-1,this.delay=0,this.image=null,this.pixels=null,this.indexedPixels=null,this.colorDepth=null,this.colorTab=null,this.neuQuant=null,this.usedEntry=new Array,this.palSize=7,this.dispose=-1,this.firstFrame=!0,this.sample=10,this.dither=!1,this.globalPalette=!1,this.out=new im}im.prototype.newPage=function(){this.pages[++this.page]=new Uint8Array(im.pageSize),this.cursor=0},im.prototype.getData=function(){for(var t="",e=0;e<this.pages.length;e++)for(var r=0;r<im.pageSize;r++)t+=im.charMap[this.pages[e][r]];return t},im.prototype.writeByte=function(t){this.cursor>=im.pageSize&&this.newPage(),this.pages[this.page][this.cursor++]=t},im.prototype.writeUTFBytes=function(t){for(var e=t.length,r=0;r<e;r++)this.writeByte(t.charCodeAt(r))},im.prototype.writeBytes=function(t,e,r){for(var s=r||t.length,A=e||0;A<s;A++)this.writeByte(t[A])},om.prototype.setDelay=function(t){this.delay=Math.round(t/10)},om.prototype.setFrameRate=function(t){this.delay=Math.round(100/t)},om.prototype.setDispose=function(t){t>=0&&(this.dispose=t)},om.prototype.setRepeat=function(t){this.repeat=t},om.prototype.setTransparent=function(t){this.transparent=t},om.prototype.addFrame=function(t){this.image=t,this.colorTab=this.globalPalette&&this.globalPalette.slice?this.globalPalette:null,this.getImagePixels();let e=+new Date;this.analyzePixels(),console.log("analyzed",+new Date-e,"ms"),!0===this.globalPalette&&(this.globalPalette=this.colorTab),this.firstFrame&&(this.writeLSD(),this.writePalette(),this.repeat>=0&&this.writeNetscapeExt()),this.writeGraphicCtrlExt(),this.writeImageDesc(),this.firstFrame||this.globalPalette||this.writePalette(),e=+new Date,this.writePixels(),console.log("encoded",+new Date-e,"ms"),this.firstFrame=!1},om.prototype.finish=function(){this.out.writeByte(59)},om.prototype.setQuality=function(t){t<1&&(t=1),this.sample=t},om.prototype.setDither=function(t){!0===t&&(t="FloydSteinberg"),this.dither=t},om.prototype.setGlobalPalette=function(t){this.globalPalette=t},om.prototype.getGlobalPalette=function(){return this.globalPalette&&this.globalPalette.slice&&this.globalPalette.slice(0)||this.globalPalette},om.prototype.writeHeader=function(){this.out.writeUTFBytes("GIF89a")},om.prototype.analyzePixels=function(){this.colorTab||(this.neuQuant=new j_(this.pixels,this.sample),this.neuQuant.buildColormap(),this.colorTab=this.neuQuant.getColormap()),this.dither?this.ditherPixels(this.dither.replace("-serpentine",""),null!==this.dither.match(/-serpentine/)):this.indexPixels(),this.pixels=null,this.colorDepth=8,this.palSize=7,null!==this.transparent&&(this.transIndex=this.findClosest(this.transparent,!0))},om.prototype.indexPixels=function(t){var e=this.pixels.length/3;this.indexedPixels=new Uint8Array(e);for(var r=0,s=0;s<e;s++){var A=this.findClosestRGB(255&this.pixels[r++],255&this.pixels[r++],255&this.pixels[r++]);this.usedEntry[A]=!0,this.indexedPixels[s]=A}},om.prototype.ditherPixels=function(t,e){var r={FalseFloydSteinberg:[[3/8,1,0],[3/8,0,1],[2/8,1,1]],FloydSteinberg:[[7/16,1,0],[3/16,-1,1],[5/16,0,1],[1/16,1,1]],Stucki:[[8/42,1,0],[4/42,2,0],[2/42,-2,1],[4/42,-1,1],[8/42,0,1],[4/42,1,1],[2/42,2,1],[1/42,-2,2],[2/42,-1,2],[4/42,0,2],[2/42,1,2],[1/42,2,2]],Atkinson:[[1/8,1,0],[1/8,2,0],[1/8,-1,1],[1/8,0,1],[1/8,1,1],[1/8,0,2]]};if(!t||!r[t])throw"Unknown dithering kernel: "+t;var s=r[t],A=0,i=this.height,n=this.width,o=this.pixels,a=e?-1:1;this.indexedPixels=new Uint8Array(this.pixels.length/3);for(var h=0;h<i;h++){e&&(a*=-1);for(var l=1==a?0:n-1,c=1==a?n:0;l!==c;l+=a){var u=3*(A=h*n+l),d=o[u],p=o[u+1],g=o[u+2];u=this.findClosestRGB(d,p,g),this.usedEntry[u]=!0,this.indexedPixels[A]=u,u*=3;for(var f=d-this.colorTab[u],_=p-this.colorTab[u+1],m=g-this.colorTab[u+2],w=1==a?0:s.length-1,B=1==a?s.length:0;w!==B;w+=a){var C=s[w][1],y=s[w][2];if(C+l>=0&&C+l<n&&y+h>=0&&y+h<i){var v=s[w][0];u=A+C+y*n,o[u*=3]=Math.max(0,Math.min(255,o[u]+f*v)),o[u+1]=Math.max(0,Math.min(255,o[u+1]+_*v)),o[u+2]=Math.max(0,Math.min(255,o[u+2]+m*v))}}}}},om.prototype.findClosest=function(t,e){return this.findClosestRGB((16711680&t)>>16,(65280&t)>>8,255&t,e)},om.prototype.findClosestRGB=function(t,e,r,s){if(null===this.colorTab)return-1;if(this.neuQuant&&!s)return this.neuQuant.lookupRGB(t,e,r);for(var A=0,i=16777216,n=this.colorTab.length,o=0,a=0;o<n;a++){var h=t-(255&this.colorTab[o++]),l=e-(255&this.colorTab[o++]),c=r-(255&this.colorTab[o++]),u=h*h+l*l+c*c;(!s||this.usedEntry[a])&&u<i&&(i=u,A=a)}return A},om.prototype.getImagePixels=function(){var t=this.width,e=this.height;this.pixels=new Uint8Array(t*e*3);for(var r=this.image,s=0,A=0,i=0;i<e;i++)for(var n=0;n<t;n++)this.pixels[A++]=r[s++],this.pixels[A++]=r[s++],this.pixels[A++]=r[s++],s++},om.prototype.writeGraphicCtrlExt=function(){var t,e;this.out.writeByte(33),this.out.writeByte(249),this.out.writeByte(4),null===this.transparent?(t=0,e=0):(t=1,e=2),this.dispose>=0&&(e=7&dispose),e<<=2,this.out.writeByte(0|e|t),this.writeShort(this.delay),this.out.writeByte(this.transIndex),this.out.writeByte(0)},om.prototype.writeImageDesc=function(){this.out.writeByte(44),this.writeShort(0),this.writeShort(0),this.writeShort(this.width),this.writeShort(this.height),this.firstFrame||this.globalPalette?this.out.writeByte(0):this.out.writeByte(128|this.palSize)},om.prototype.writeLSD=function(){this.writeShort(this.width),this.writeShort(this.height),this.out.writeByte(240|this.palSize),this.out.writeByte(0),this.out.writeByte(0)},om.prototype.writeNetscapeExt=function(){this.out.writeByte(33),this.out.writeByte(255),this.out.writeByte(11),this.out.writeUTFBytes("NETSCAPE2.0"),this.out.writeByte(3),this.out.writeByte(1),this.writeShort(this.repeat),this.out.writeByte(0)},om.prototype.writePalette=function(){this.out.writeBytes(this.colorTab);for(var t=768-this.colorTab.length,e=0;e<t;e++)this.out.writeByte(0)},om.prototype.writeShort=function(t){this.out.writeByte(255&t),this.out.writeByte(t>>8&255)},om.prototype.writePixels=function(){new Am(this.width,this.height,this.indexedPixels,this.colorDepth).encode(this.out)},om.prototype.stream=function(){return this.out};var am={NeuQuant:j_,TypedNeuQuant:em,GIFEncoder:om,LZWEncoder:Am};class hm extends v{constructor(){super()}_doDispose(){super._doDispose()}export(t,e,r,s){function A(t,e){s?s(t,e):x_(t,e)}console.log("export to image",r);const i=r.type||"png",n=r.fileName||"realreport",o=(r.zipName||"realreport")+".zip";if("tiff"===i||"tif"===i){const t=[],s=[];for(let r=0;r<e.length;r++){const A=e[r].page,i={onclone:t=>{const e=t.body.getElementsByClassName("rr-print-page");for(let t of e)t.style.boxShadow="unset";const r=t.body.getElementsByClassName("rr-group-element");for(let t of r){const e=getComputedStyle(t).backgroundColor;e&&"rgba(0, 0, 0, 0)"!==e&&"rgba(0,0,0,0)"!==e&&(t.style.backgroundColor="#fff",t.style.backgroundImage="url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='7'%3E%3Crect x='3.5' y='3.5' width='0.5' height='0.5' fill='%23000'/%3E%3C/svg%3E\")")}}},n=function(e,r){return new P_.Promise(((s,A)=>{Ff(r,i).then((r=>{t.push(r),s(e)}))}))}(r,A);s.push(n)}P_.Promise.all(s).then((()=>{const e=(new z_).encode(t,r.tiff||{}),s={};e.forEach(((t,e)=>{s[n+"."+i]=[t,{}]}));A(b_(s),o)})).catch((t=>{console.error(t),alert(t)}))}else if("gif"===i){const t={},r=[],s={onclone:t=>{const e=t.body.getElementsByClassName("rr-print-page");for(let t of e)t.style.boxShadow="unset"}};for(let A=0;A<e.length;A++){const o=function(r,A){return new P_.Promise(((o,a)=>{Ff(A,s).then((s=>{const A=s.getContext("2d").getImageData(0,0,s.width,s.height).data,a=new am.GIFEncoder(s.width,s.height);a.writeHeader(),a.addFrame(A),a.finish();const h=a.out,l=h.pages;let c=0;for(let t=0;t<l.length-1;t++)c+=l[t].length;c+=h.cursor;const u=new Uint8Array(c);l[l.length-1]=l[l.length-1].subarray(0,h.cursor);for(let t=0,e=0;t<l.length;t++)u.set(l[t],e),e+=l[t].length;const d=n+(e.length>1?r+1:"");t[d+"."+i]=[u,{}],o(r)}))}))}(A,e[A].page);r.push(o)}P_.Promise.all(r).then((()=>{A(b_(t),o)}))}else{const t={png:"",jpg:"image/jpeg",jpeg:"image/jpeg"},r={},s=[],a={onclone:t=>{const e=t.body.getElementsByClassName("rr-print-page");for(let t of e)t.style.boxShadow="unset"}};for(let A=0;A<e.length;A++){const o=function(s,A){return new P_.Promise(((o,h)=>{Ff(A,a).then((A=>{const a=A.toDataURL(t[i]),h=ot.dataUriToBinary(a),l=n+(e.length>1?s+1:"");r[l+"."+i]=[h,{}],o(s)}))}))}(A,e[A].page);s.push(o)}P_.Promise.all(s).then((()=>{A(b_(r),o)}))}}}var lm=Fa((function(t,e){t.exports=(()=>{var t={742:(t,e)=>{e.byteLength=function(t){var e=a(t),r=e[0],s=e[1];return 3*(r+s)/4-s},e.toByteArray=function(t){var e,r,i=a(t),n=i[0],o=i[1],h=new A(function(t,e,r){return 3*(e+r)/4-r}(0,n,o)),l=0,c=o>0?n-4:n;for(r=0;r<c;r+=4)e=s[t.charCodeAt(r)]<<18|s[t.charCodeAt(r+1)]<<12|s[t.charCodeAt(r+2)]<<6|s[t.charCodeAt(r+3)],h[l++]=e>>16&255,h[l++]=e>>8&255,h[l++]=255&e;return 2===o&&(e=s[t.charCodeAt(r)]<<2|s[t.charCodeAt(r+1)]>>4,h[l++]=255&e),1===o&&(e=s[t.charCodeAt(r)]<<10|s[t.charCodeAt(r+1)]<<4|s[t.charCodeAt(r+2)]>>2,h[l++]=e>>8&255,h[l++]=255&e),h},e.fromByteArray=function(t){for(var e,s=t.length,A=s%3,i=[],n=16383,o=0,a=s-A;o<a;o+=n)i.push(h(t,o,o+n>a?a:o+n));return 1===A?(e=t[s-1],i.push(r[e>>2]+r[e<<4&63]+"==")):2===A&&(e=(t[s-2]<<8)+t[s-1],i.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),i.join("")};for(var r=[],s=[],A="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=0,o=i.length;n<o;++n)r[n]=i[n],s[i.charCodeAt(n)]=n;function a(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function h(t,e,s){for(var A,i,n=[],o=e;o<s;o+=3)A=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(255&t[o+2]),n.push(r[(i=A)>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return n.join("")}s["-".charCodeAt(0)]=62,s["_".charCodeAt(0)]=63},764:(t,e,r)=>{const s=r(742),A=r(645),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=a,e.SlowBuffer=function(t){return+t!=t&&(t=0),a.alloc(+t)},e.INSPECT_MAX_BYTES=50;const n=2147483647;function o(t){if(t>n)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,a.prototype),e}function a(t,e,r){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return c(t)}return h(t,e,r)}function h(t,e,r){if("string"==typeof t)return function(t,e){if("string"==typeof e&&""!==e||(e="utf8"),!a.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const r=0|g(t,e);let s=o(r);const A=s.write(t,e);return A!==r&&(s=s.slice(0,A)),s}(t,e);if(ArrayBuffer.isView(t))return function(t){if(Y(t,Uint8Array)){const e=new Uint8Array(t);return d(e.buffer,e.byteOffset,e.byteLength)}return u(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(Y(t,ArrayBuffer)||t&&Y(t.buffer,ArrayBuffer))return d(t,e,r);if("undefined"!=typeof SharedArrayBuffer&&(Y(t,SharedArrayBuffer)||t&&Y(t.buffer,SharedArrayBuffer)))return d(t,e,r);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');const s=t.valueOf&&t.valueOf();if(null!=s&&s!==t)return a.from(s,e,r);const A=function(t){if(a.isBuffer(t)){const e=0|p(t.length),r=o(e);return 0===r.length||t.copy(r,0,0,e),r}return void 0!==t.length?"number"!=typeof t.length||$(t.length)?o(0):u(t):"Buffer"===t.type&&Array.isArray(t.data)?u(t.data):void 0}(t);if(A)return A;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return a.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function l(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function c(t){return l(t),o(t<0?0:0|p(t))}function u(t){const e=t.length<0?0:0|p(t.length),r=o(e);for(let s=0;s<e;s+=1)r[s]=255&t[s];return r}function d(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');let s;return s=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r),Object.setPrototypeOf(s,a.prototype),s}function p(t){if(t>=n)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n.toString(16)+" bytes");return 0|t}function g(t,e){if(a.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||Y(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const r=t.length,s=arguments.length>2&&!0===arguments[2];if(!s&&0===r)return 0;let A=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return z(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return X(t).length;default:if(A)return s?-1:z(t).length;e=(""+e).toLowerCase(),A=!0}}function f(t,e,r){let s=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return T(this,e,r);case"utf8":case"utf-8":return x(this,e,r);case"ascii":return I(this,e,r);case"latin1":case"binary":return S(this,e,r);case"base64":return b(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,e,r);default:if(s)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),s=!0}}function _(t,e,r){const s=t[e];t[e]=t[r],t[r]=s}function m(t,e,r,s,A){if(0===t.length)return-1;if("string"==typeof r?(s=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),$(r=+r)&&(r=A?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(A)return-1;r=t.length-1}else if(r<0){if(!A)return-1;r=0}if("string"==typeof e&&(e=a.from(e,s)),a.isBuffer(e))return 0===e.length?-1:w(t,e,r,s,A);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?A?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):w(t,[e],r,s,A);throw new TypeError("val must be string, number or Buffer")}function w(t,e,r,s,A){let i,n=1,o=t.length,a=e.length;if(void 0!==s&&("ucs2"===(s=String(s).toLowerCase())||"ucs-2"===s||"utf16le"===s||"utf-16le"===s)){if(t.length<2||e.length<2)return-1;n=2,o/=2,a/=2,r/=2}function h(t,e){return 1===n?t[e]:t.readUInt16BE(e*n)}if(A){let s=-1;for(i=r;i<o;i++)if(h(t,i)===h(e,-1===s?0:i-s)){if(-1===s&&(s=i),i-s+1===a)return s*n}else-1!==s&&(i-=i-s),s=-1}else for(r+a>o&&(r=o-a),i=r;i>=0;i--){let r=!0;for(let s=0;s<a;s++)if(h(t,i+s)!==h(e,s)){r=!1;break}if(r)return i}return-1}function B(t,e,r,s){r=Number(r)||0;const A=t.length-r;s?(s=Number(s))>A&&(s=A):s=A;const i=e.length;let n;for(s>i/2&&(s=i/2),n=0;n<s;++n){const s=parseInt(e.substr(2*n,2),16);if($(s))return n;t[r+n]=s}return n}function C(t,e,r,s){return J(z(e,t.length-r),t,r,s)}function y(t,e,r,s){return J(function(t){const e=[];for(let r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,s)}function v(t,e,r,s){return J(X(e),t,r,s)}function E(t,e,r,s){return J(function(t,e){let r,s,A;const i=[];for(let n=0;n<t.length&&!((e-=2)<0);++n)r=t.charCodeAt(n),s=r>>8,A=r%256,i.push(A),i.push(s);return i}(e,t.length-r),t,r,s)}function b(t,e,r){return 0===e&&r===t.length?s.fromByteArray(t):s.fromByteArray(t.slice(e,r))}function x(t,e,r){r=Math.min(t.length,r);const s=[];let A=e;for(;A<r;){const e=t[A];let i=null,n=e>239?4:e>223?3:e>191?2:1;if(A+n<=r){let r,s,o,a;switch(n){case 1:e<128&&(i=e);break;case 2:r=t[A+1],128==(192&r)&&(a=(31&e)<<6|63&r,a>127&&(i=a));break;case 3:r=t[A+1],s=t[A+2],128==(192&r)&&128==(192&s)&&(a=(15&e)<<12|(63&r)<<6|63&s,a>2047&&(a<55296||a>57343)&&(i=a));break;case 4:r=t[A+1],s=t[A+2],o=t[A+3],128==(192&r)&&128==(192&s)&&128==(192&o)&&(a=(15&e)<<18|(63&r)<<12|(63&s)<<6|63&o,a>65535&&a<1114112&&(i=a))}}null===i?(i=65533,n=1):i>65535&&(i-=65536,s.push(i>>>10&1023|55296),i=56320|1023&i),s.push(i),A+=n}return function(t){const e=t.length;if(e<=P)return String.fromCharCode.apply(String,t);let r="",s=0;for(;s<e;)r+=String.fromCharCode.apply(String,t.slice(s,s+=P));return r}(s)}e.kMaxLength=n,a.TYPED_ARRAY_SUPPORT=function(){try{const t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),a.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||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."),Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(t,e,r){return h(t,e,r)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(t,e,r){return function(t,e,r){return l(t),t<=0?o(t):void 0!==e?"string"==typeof r?o(t).fill(e,r):o(t).fill(e):o(t)}(t,e,r)},a.allocUnsafe=function(t){return c(t)},a.allocUnsafeSlow=function(t){return c(t)},a.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==a.prototype},a.compare=function(t,e){if(Y(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),Y(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(t)||!a.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;let r=t.length,s=e.length;for(let A=0,i=Math.min(r,s);A<i;++A)if(t[A]!==e[A]){r=t[A],s=e[A];break}return r<s?-1:s<r?1:0},a.isEncoding=function(t){switch(String(t).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}},a.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return a.alloc(0);let r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;const s=a.allocUnsafe(e);let A=0;for(r=0;r<t.length;++r){let e=t[r];if(Y(e,Uint8Array))A+e.length>s.length?(a.isBuffer(e)||(e=a.from(e)),e.copy(s,A)):Uint8Array.prototype.set.call(s,e,A);else{if(!a.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(s,A)}A+=e.length}return s},a.byteLength=g,a.prototype._isBuffer=!0,a.prototype.swap16=function(){const t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;e<t;e+=2)_(this,e,e+1);return this},a.prototype.swap32=function(){const t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let e=0;e<t;e+=4)_(this,e,e+3),_(this,e+1,e+2);return this},a.prototype.swap64=function(){const t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let e=0;e<t;e+=8)_(this,e,e+7),_(this,e+1,e+6),_(this,e+2,e+5),_(this,e+3,e+4);return this},a.prototype.toString=function(){const t=this.length;return 0===t?"":0===arguments.length?x(this,0,t):f.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(t){if(!a.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===a.compare(this,t)},a.prototype.inspect=function(){let t="";const r=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},i&&(a.prototype[i]=a.prototype.inspect),a.prototype.compare=function(t,e,r,s,A){if(Y(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===s&&(s=0),void 0===A&&(A=this.length),e<0||r>t.length||s<0||A>this.length)throw new RangeError("out of range index");if(s>=A&&e>=r)return 0;if(s>=A)return-1;if(e>=r)return 1;if(this===t)return 0;let i=(A>>>=0)-(s>>>=0),n=(r>>>=0)-(e>>>=0);const o=Math.min(i,n),h=this.slice(s,A),l=t.slice(e,r);for(let t=0;t<o;++t)if(h[t]!==l[t]){i=h[t],n=l[t];break}return i<n?-1:n<i?1:0},a.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},a.prototype.indexOf=function(t,e,r){return m(this,t,e,r,!0)},a.prototype.lastIndexOf=function(t,e,r){return m(this,t,e,r,!1)},a.prototype.write=function(t,e,r,s){if(void 0===e)s="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)s=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(r)?(r>>>=0,void 0===s&&(s="utf8")):(s=r,r=void 0)}const A=this.length-e;if((void 0===r||r>A)&&(r=A),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");s||(s="utf8");let i=!1;for(;;)switch(s){case"hex":return B(this,t,e,r);case"utf8":case"utf-8":return C(this,t,e,r);case"ascii":case"latin1":case"binary":return y(this,t,e,r);case"base64":return v(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,t,e,r);default:if(i)throw new TypeError("Unknown encoding: "+s);s=(""+s).toLowerCase(),i=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const P=4096;function I(t,e,r){let s="";r=Math.min(t.length,r);for(let A=e;A<r;++A)s+=String.fromCharCode(127&t[A]);return s}function S(t,e,r){let s="";r=Math.min(t.length,r);for(let A=e;A<r;++A)s+=String.fromCharCode(t[A]);return s}function T(t,e,r){const s=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>s)&&(r=s);let A="";for(let s=e;s<r;++s)A+=j[t[s]];return A}function F(t,e,r){const s=t.slice(e,r);let A="";for(let t=0;t<s.length-1;t+=2)A+=String.fromCharCode(s[t]+256*s[t+1]);return A}function R(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function O(t,e,r,s,A,i){if(!a.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>A||e<i)throw new RangeError('"value" argument is out of bounds');if(r+s>t.length)throw new RangeError("Index out of range")}function Q(t,e,r,s,A){V(e,s,A,t,r,7);let i=Number(e&BigInt(4294967295));t[r++]=i,i>>=8,t[r++]=i,i>>=8,t[r++]=i,i>>=8,t[r++]=i;let n=Number(e>>BigInt(32)&BigInt(4294967295));return t[r++]=n,n>>=8,t[r++]=n,n>>=8,t[r++]=n,n>>=8,t[r++]=n,r}function D(t,e,r,s,A){V(e,s,A,t,r,7);let i=Number(e&BigInt(4294967295));t[r+7]=i,i>>=8,t[r+6]=i,i>>=8,t[r+5]=i,i>>=8,t[r+4]=i;let n=Number(e>>BigInt(32)&BigInt(4294967295));return t[r+3]=n,n>>=8,t[r+2]=n,n>>=8,t[r+1]=n,n>>=8,t[r]=n,r+8}function L(t,e,r,s,A,i){if(r+s>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function U(t,e,r,s,i){return e=+e,r>>>=0,i||L(t,0,r,4),A.write(t,e,r,s,23,4),r+4}function H(t,e,r,s,i){return e=+e,r>>>=0,i||L(t,0,r,8),A.write(t,e,r,s,52,8),r+8}a.prototype.slice=function(t,e){const r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);const s=this.subarray(t,e);return Object.setPrototypeOf(s,a.prototype),s},a.prototype.readUintLE=a.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||R(t,e,this.length);let s=this[t],A=1,i=0;for(;++i<e&&(A*=256);)s+=this[t+i]*A;return s},a.prototype.readUintBE=a.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||R(t,e,this.length);let s=this[t+--e],A=1;for(;e>0&&(A*=256);)s+=this[t+--e]*A;return s},a.prototype.readUint8=a.prototype.readUInt8=function(t,e){return t>>>=0,e||R(t,1,this.length),this[t]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(t,e){return t>>>=0,e||R(t,2,this.length),this[t]|this[t+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(t,e){return t>>>=0,e||R(t,2,this.length),this[t]<<8|this[t+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(t,e){return t>>>=0,e||R(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(t,e){return t>>>=0,e||R(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},a.prototype.readBigUInt64LE=Z((function(t){G(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||K(t,this.length-8);const s=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,A=this[++t]+256*this[++t]+65536*this[++t]+r*2**24;return BigInt(s)+(BigInt(A)<<BigInt(32))})),a.prototype.readBigUInt64BE=Z((function(t){G(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||K(t,this.length-8);const s=e*2**24+65536*this[++t]+256*this[++t]+this[++t],A=this[++t]*2**24+65536*this[++t]+256*this[++t]+r;return(BigInt(s)<<BigInt(32))+BigInt(A)})),a.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||R(t,e,this.length);let s=this[t],A=1,i=0;for(;++i<e&&(A*=256);)s+=this[t+i]*A;return A*=128,s>=A&&(s-=Math.pow(2,8*e)),s},a.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||R(t,e,this.length);let s=e,A=1,i=this[t+--s];for(;s>0&&(A*=256);)i+=this[t+--s]*A;return A*=128,i>=A&&(i-=Math.pow(2,8*e)),i},a.prototype.readInt8=function(t,e){return t>>>=0,e||R(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},a.prototype.readInt16LE=function(t,e){t>>>=0,e||R(t,2,this.length);const r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},a.prototype.readInt16BE=function(t,e){t>>>=0,e||R(t,2,this.length);const r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},a.prototype.readInt32LE=function(t,e){return t>>>=0,e||R(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},a.prototype.readInt32BE=function(t,e){return t>>>=0,e||R(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},a.prototype.readBigInt64LE=Z((function(t){G(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||K(t,this.length-8);const s=this[t+4]+256*this[t+5]+65536*this[t+6]+(r<<24);return(BigInt(s)<<BigInt(32))+BigInt(e+256*this[++t]+65536*this[++t]+this[++t]*2**24)})),a.prototype.readBigInt64BE=Z((function(t){G(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||K(t,this.length-8);const s=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(s)<<BigInt(32))+BigInt(this[++t]*2**24+65536*this[++t]+256*this[++t]+r)})),a.prototype.readFloatLE=function(t,e){return t>>>=0,e||R(t,4,this.length),A.read(this,t,!0,23,4)},a.prototype.readFloatBE=function(t,e){return t>>>=0,e||R(t,4,this.length),A.read(this,t,!1,23,4)},a.prototype.readDoubleLE=function(t,e){return t>>>=0,e||R(t,8,this.length),A.read(this,t,!0,52,8)},a.prototype.readDoubleBE=function(t,e){return t>>>=0,e||R(t,8,this.length),A.read(this,t,!1,52,8)},a.prototype.writeUintLE=a.prototype.writeUIntLE=function(t,e,r,s){t=+t,e>>>=0,r>>>=0,s||O(this,t,e,r,Math.pow(2,8*r)-1,0);let A=1,i=0;for(this[e]=255&t;++i<r&&(A*=256);)this[e+i]=t/A&255;return e+r},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(t,e,r,s){t=+t,e>>>=0,r>>>=0,s||O(this,t,e,r,Math.pow(2,8*r)-1,0);let A=r-1,i=1;for(this[e+A]=255&t;--A>=0&&(i*=256);)this[e+A]=t/i&255;return e+r},a.prototype.writeUint8=a.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||O(this,t,e,1,255,0),this[e]=255&t,e+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||O(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||O(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||O(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||O(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},a.prototype.writeBigUInt64LE=Z((function(t){return Q(this,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),a.prototype.writeBigUInt64BE=Z((function(t){return D(this,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),a.prototype.writeIntLE=function(t,e,r,s){if(t=+t,e>>>=0,!s){const s=Math.pow(2,8*r-1);O(this,t,e,r,s-1,-s)}let A=0,i=1,n=0;for(this[e]=255&t;++A<r&&(i*=256);)t<0&&0===n&&0!==this[e+A-1]&&(n=1),this[e+A]=(t/i>>0)-n&255;return e+r},a.prototype.writeIntBE=function(t,e,r,s){if(t=+t,e>>>=0,!s){const s=Math.pow(2,8*r-1);O(this,t,e,r,s-1,-s)}let A=r-1,i=1,n=0;for(this[e+A]=255&t;--A>=0&&(i*=256);)t<0&&0===n&&0!==this[e+A+1]&&(n=1),this[e+A]=(t/i>>0)-n&255;return e+r},a.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||O(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},a.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||O(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},a.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||O(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},a.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||O(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},a.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||O(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},a.prototype.writeBigInt64LE=Z((function(t){return Q(this,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),a.prototype.writeBigInt64BE=Z((function(t){return D(this,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),a.prototype.writeFloatLE=function(t,e,r){return U(this,t,e,!0,r)},a.prototype.writeFloatBE=function(t,e,r){return U(this,t,e,!1,r)},a.prototype.writeDoubleLE=function(t,e,r){return H(this,t,e,!0,r)},a.prototype.writeDoubleBE=function(t,e,r){return H(this,t,e,!1,r)},a.prototype.copy=function(t,e,r,s){if(!a.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),s||0===s||(s=this.length),e>=t.length&&(e=t.length),e||(e=0),s>0&&s<r&&(s=r),s===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(s<0)throw new RangeError("sourceEnd out of bounds");s>this.length&&(s=this.length),t.length-e<s-r&&(s=t.length-e+r);const A=s-r;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,r,s):Uint8Array.prototype.set.call(t,this.subarray(r,s),e),A},a.prototype.fill=function(t,e,r,s){if("string"==typeof t){if("string"==typeof e?(s=e,e=0,r=this.length):"string"==typeof r&&(s=r,r=this.length),void 0!==s&&"string"!=typeof s)throw new TypeError("encoding must be a string");if("string"==typeof s&&!a.isEncoding(s))throw new TypeError("Unknown encoding: "+s);if(1===t.length){const e=t.charCodeAt(0);("utf8"===s&&e<128||"latin1"===s)&&(t=e)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;let A;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(A=e;A<r;++A)this[A]=t;else{const i=a.isBuffer(t)?t:a.from(t,s),n=i.length;if(0===n)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(A=0;A<r-e;++A)this[A+e]=i[A%n]}return this};const N={};function M(t,e,r){N[t]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name="".concat(this.name," [").concat(t,"]"),delete this.name}get code(){return t}set code(t){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:t,writable:!0})}toString(){return"".concat(this.name," [").concat(t,"]: ").concat(this.message)}}}function k(t){let e="",r=t.length;const s="-"===t[0]?1:0;for(;r>=s+4;r-=3)e="_".concat(t.slice(r-3,r)).concat(e);return"".concat(t.slice(0,r)).concat(e)}function V(t,e,r,s,A,i){if(t>r||t<e){const s="bigint"==typeof e?"n":"";let A;throw A=i>3?0===e||e===BigInt(0)?">= 0".concat(s," and < 2").concat(s," ** ").concat(8*(i+1)).concat(s):">= -(2".concat(s," ** ").concat(8*(i+1)-1).concat(s,") and < 2 ** ").concat(8*(i+1)-1).concat(s):">= ".concat(e).concat(s," and <= ").concat(r).concat(s),new N.ERR_OUT_OF_RANGE("value",A,t)}!function(t,e,r){G(e,"offset"),void 0!==t[e]&&void 0!==t[e+r]||K(e,t.length-(r+1))}(s,A,i)}function G(t,e){if("number"!=typeof t)throw new N.ERR_INVALID_ARG_TYPE(e,"number",t)}function K(t,e,r){if(Math.floor(t)!==t)throw G(t,r),new N.ERR_OUT_OF_RANGE(r||"offset","an integer",t);if(e<0)throw new N.ERR_BUFFER_OUT_OF_BOUNDS;throw new N.ERR_OUT_OF_RANGE(r||"offset",">= ".concat(r?1:0," and <= ").concat(e),t)}M("ERR_BUFFER_OUT_OF_BOUNDS",(function(t){return t?"".concat(t," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"}),RangeError),M("ERR_INVALID_ARG_TYPE",(function(t,e){return'The "'.concat(t,'" argument must be of type number. Received type ').concat(typeof e)}),TypeError),M("ERR_OUT_OF_RANGE",(function(t,e,r){let s='The value of "'.concat(t,'" is out of range.'),A=r;return Number.isInteger(r)&&Math.abs(r)>2**32?A=k(String(r)):"bigint"==typeof r&&(A=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(A=k(A)),A+="n"),s+=" It must be ".concat(e,". Received ").concat(A),s}),RangeError);const W=/[^+/0-9A-Za-z-_]/g;function z(t,e){let r;e=e||1/0;const s=t.length;let A=null;const i=[];for(let n=0;n<s;++n){if(r=t.charCodeAt(n),r>55295&&r<57344){if(!A){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(n+1===s){(e-=3)>-1&&i.push(239,191,189);continue}A=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),A=r;continue}r=65536+(A-55296<<10|r-56320)}else A&&(e-=3)>-1&&i.push(239,191,189);if(A=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function X(t){return s.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(W,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function J(t,e,r,s){let A;for(A=0;A<s&&!(A+r>=e.length||A>=t.length);++A)e[A+r]=t[A];return A}function Y(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function $(t){return t!=t}const j=function(){const t="0123456789abcdef",e=new Array(256);for(let r=0;r<16;++r){const s=16*r;for(let A=0;A<16;++A)e[s+A]=t[r]+t[A]}return e}();function Z(t){return"undefined"==typeof BigInt?q:t}function q(){throw new Error("BigInt not supported")}},187:t=>{var e,r="object"==typeof Reflect?Reflect:null,s=r&&"function"==typeof r.apply?r.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)};e=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var A=Number.isNaN||function(t){return t!=t};function i(){i.init.call(this)}t.exports=i,t.exports.once=function(t,e){return new Promise((function(r,s){function A(r){t.removeListener(e,i),s(r)}function i(){"function"==typeof t.removeListener&&t.removeListener("error",A),r([].slice.call(arguments))}g(t,e,i,{once:!0}),"error"!==e&&function(t,e,r){"function"==typeof t.on&&g(t,"error",e,{once:!0})}(t,A)}))},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var n=10;function o(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function a(t){return void 0===t._maxListeners?i.defaultMaxListeners:t._maxListeners}function h(t,e,r,s){var A,i,n,h;if(o(r),void 0===(i=t._events)?(i=t._events=Object.create(null),t._eventsCount=0):(void 0!==i.newListener&&(t.emit("newListener",e,r.listener?r.listener:r),i=t._events),n=i[e]),void 0===n)n=i[e]=r,++t._eventsCount;else if("function"==typeof n?n=i[e]=s?[r,n]:[n,r]:s?n.unshift(r):n.push(r),(A=a(t))>0&&n.length>A&&!n.warned){n.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+n.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=t,l.type=e,l.count=n.length,h=l,console&&console.warn&&console.warn(h)}return t}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function c(t,e,r){var s={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},A=l.bind(s);return A.listener=r,s.wrapFn=A,A}function u(t,e,r){var s=t._events;if(void 0===s)return[];var A=s[e];return void 0===A?[]:"function"==typeof A?r?[A.listener||A]:[A]:r?function(t){for(var e=new Array(t.length),r=0;r<e.length;++r)e[r]=t[r].listener||t[r];return e}(A):p(A,A.length)}function d(t){var e=this._events;if(void 0!==e){var r=e[t];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function p(t,e){for(var r=new Array(e),s=0;s<e;++s)r[s]=t[s];return r}function g(t,e,r,s){if("function"==typeof t.on)s.once?t.once(e,r):t.on(e,r);else{if("function"!=typeof t.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t);t.addEventListener(e,(function A(i){s.once&&t.removeEventListener(e,A),r(i)}))}}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return n},set:function(t){if("number"!=typeof t||t<0||A(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");n=t}}),i.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||A(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},i.prototype.getMaxListeners=function(){return a(this)},i.prototype.emit=function(t){for(var e=[],r=1;r<arguments.length;r++)e.push(arguments[r]);var A="error"===t,i=this._events;if(void 0!==i)A=A&&void 0===i.error;else if(!A)return!1;if(A){var n;if(e.length>0&&(n=e[0]),n instanceof Error)throw n;var o=new Error("Unhandled error."+(n?" ("+n.message+")":""));throw o.context=n,o}var a=i[t];if(void 0===a)return!1;if("function"==typeof a)s(a,this,e);else{var h=a.length,l=p(a,h);for(r=0;r<h;++r)s(l[r],this,e)}return!0},i.prototype.addListener=function(t,e){return h(this,t,e,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(t,e){return h(this,t,e,!0)},i.prototype.once=function(t,e){return o(e),this.on(t,c(this,t,e)),this},i.prototype.prependOnceListener=function(t,e){return o(e),this.prependListener(t,c(this,t,e)),this},i.prototype.removeListener=function(t,e){var r,s,A,i,n;if(o(e),void 0===(s=this._events))return this;if(void 0===(r=s[t]))return this;if(r===e||r.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete s[t],s.removeListener&&this.emit("removeListener",t,r.listener||e));else if("function"!=typeof r){for(A=-1,i=r.length-1;i>=0;i--)if(r[i]===e||r[i].listener===e){n=r[i].listener,A=i;break}if(A<0)return this;0===A?r.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(r,A),1===r.length&&(s[t]=r[0]),void 0!==s.removeListener&&this.emit("removeListener",t,n||e)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(t){var e,r,s;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[t]),this;if(0===arguments.length){var A,i=Object.keys(r);for(s=0;s<i.length;++s)"removeListener"!==(A=i[s])&&this.removeAllListeners(A);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=r[t]))this.removeListener(t,e);else if(void 0!==e)for(s=e.length-1;s>=0;s--)this.removeListener(t,e[s]);return this},i.prototype.listeners=function(t){return u(this,t,!0)},i.prototype.rawListeners=function(t){return u(this,t,!1)},i.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):d.call(t,e)},i.prototype.listenerCount=d,i.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},645:(t,e)=>{e.read=function(t,e,r,s,A){var i,n,o=8*A-s-1,a=(1<<o)-1,h=a>>1,l=-7,c=r?A-1:0,u=r?-1:1,d=t[e+c];for(c+=u,i=d&(1<<-l)-1,d>>=-l,l+=o;l>0;i=256*i+t[e+c],c+=u,l-=8);for(n=i&(1<<-l)-1,i>>=-l,l+=s;l>0;n=256*n+t[e+c],c+=u,l-=8);if(0===i)i=1-h;else{if(i===a)return n?NaN:1/0*(d?-1:1);n+=Math.pow(2,s),i-=h}return(d?-1:1)*n*Math.pow(2,i-s)},e.write=function(t,e,r,s,A,i){var n,o,a,h=8*i-A-1,l=(1<<h)-1,c=l>>1,u=23===A?Math.pow(2,-24)-Math.pow(2,-77):0,d=s?0:i-1,p=s?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(o=isNaN(e)?1:0,n=l):(n=Math.floor(Math.log(e)/Math.LN2),e*(a=Math.pow(2,-n))<1&&(n--,a*=2),(e+=n+c>=1?u/a:u*Math.pow(2,1-c))*a>=2&&(n++,a/=2),n+c>=l?(o=0,n=l):n+c>=1?(o=(e*a-1)*Math.pow(2,A),n+=c):(o=e*Math.pow(2,c-1)*Math.pow(2,A),n=0));A>=8;t[r+d]=255&o,d+=p,o/=256,A-=8);for(n=n<<A|o,h+=A;h>0;t[r+d]=255&n,d+=p,n/=256,h-=8);t[r+d-p]|=128*g}},717:t=>{"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},733:(t,e,r)=>{t.exports=function t(e,r,s){function A(n,o){if(!r[n]){if(!e[n]){if(i)return i(n,!0);var a=new Error("Cannot find module '"+n+"'");throw a.code="MODULE_NOT_FOUND",a}var h=r[n]={exports:{}};e[n][0].call(h.exports,(function(t){return A(e[n][1][t]||t)}),h,h.exports,t,e,r,s)}return r[n].exports}for(var i=void 0,n=0;n<s.length;n++)A(s[n]);return A}({1:[function(t,e,r){var s=t("./utils"),A=t("./support"),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.encode=function(t){for(var e,r,A,n,o,a,h,l=[],c=0,u=t.length,d=u,p="string"!==s.getTypeOf(t);c<t.length;)d=u-c,A=p?(e=t[c++],r=c<u?t[c++]:0,c<u?t[c++]:0):(e=t.charCodeAt(c++),r=c<u?t.charCodeAt(c++):0,c<u?t.charCodeAt(c++):0),n=e>>2,o=(3&e)<<4|r>>4,a=1<d?(15&r)<<2|A>>6:64,h=2<d?63&A:64,l.push(i.charAt(n)+i.charAt(o)+i.charAt(a)+i.charAt(h));return l.join("")},r.decode=function(t){var e,r,s,n,o,a,h=0,l=0,c="data:";if(t.substr(0,c.length)===c)throw new Error("Invalid base64 input, it looks like a data url.");var u,d=3*(t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"")).length/4;if(t.charAt(t.length-1)===i.charAt(64)&&d--,t.charAt(t.length-2)===i.charAt(64)&&d--,d%1!=0)throw new Error("Invalid base64 input, bad content length.");for(u=A.uint8array?new Uint8Array(0|d):new Array(0|d);h<t.length;)e=i.indexOf(t.charAt(h++))<<2|(n=i.indexOf(t.charAt(h++)))>>4,r=(15&n)<<4|(o=i.indexOf(t.charAt(h++)))>>2,s=(3&o)<<6|(a=i.indexOf(t.charAt(h++))),u[l++]=e,64!==o&&(u[l++]=r),64!==a&&(u[l++]=s);return u}},{"./support":30,"./utils":32}],2:[function(t,e,r){var s=t("./external"),A=t("./stream/DataWorker"),i=t("./stream/Crc32Probe"),n=t("./stream/DataLengthProbe");function o(t,e,r,s,A){this.compressedSize=t,this.uncompressedSize=e,this.crc32=r,this.compression=s,this.compressedContent=A}o.prototype={getContentWorker:function(){var t=new A(s.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new n("data_length")),e=this;return t.on("end",(function(){if(this.streamInfo.data_length!==e.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),t},getCompressedWorker:function(){return new A(s.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},o.createWorkerFrom=function(t,e,r){return t.pipe(new i).pipe(new n("uncompressedSize")).pipe(e.compressWorker(r)).pipe(new n("compressedSize")).withStreamInfo("compression",e)},e.exports=o},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(t,e,r){var s=t("./stream/GenericWorker");r.STORE={magic:"\0\0",compressWorker:function(t){return new s("STORE compression")},uncompressWorker:function(){return new s("STORE decompression")}},r.DEFLATE=t("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(t,e,r){var s=t("./utils"),A=function(){for(var t,e=[],r=0;r<256;r++){t=r;for(var s=0;s<8;s++)t=1&t?3988292384^t>>>1:t>>>1;e[r]=t}return e}();e.exports=function(t,e){return void 0!==t&&t.length?"string"!==s.getTypeOf(t)?function(t,e,r,s){var i=A,n=0+r;t^=-1;for(var o=0;o<n;o++)t=t>>>8^i[255&(t^e[o])];return-1^t}(0|e,t,t.length):function(t,e,r,s){var i=A,n=0+r;t^=-1;for(var o=0;o<n;o++)t=t>>>8^i[255&(t^e.charCodeAt(o))];return-1^t}(0|e,t,t.length):0}},{"./utils":32}],5:[function(t,e,r){r.base64=!1,r.binary=!1,r.dir=!1,r.createFolders=!0,r.date=null,r.compression=null,r.compressionOptions=null,r.comment=null,r.unixPermissions=null,r.dosPermissions=null},{}],6:[function(t,e,r){var s;s="undefined"!=typeof Promise?Promise:t("lie"),e.exports={Promise:s}},{lie:37}],7:[function(t,e,r){var s="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,A=t("pako"),i=t("./utils"),n=t("./stream/GenericWorker"),o=s?"uint8array":"array";function a(t,e){n.call(this,"FlateWorker/"+t),this._pako=null,this._pakoAction=t,this._pakoOptions=e,this.meta={}}r.magic="\b\0",i.inherits(a,n),a.prototype.processChunk=function(t){this.meta=t.meta,null===this._pako&&this._createPako(),this._pako.push(i.transformTo(o,t.data),!1)},a.prototype.flush=function(){n.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},a.prototype.cleanUp=function(){n.prototype.cleanUp.call(this),this._pako=null},a.prototype._createPako=function(){this._pako=new A[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var t=this;this._pako.onData=function(e){t.push({data:e,meta:t.meta})}},r.compressWorker=function(t){return new a("Deflate",t)},r.uncompressWorker=function(){return new a("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(t,e,r){function s(t,e){var r,s="";for(r=0;r<e;r++)s+=String.fromCharCode(255&t),t>>>=8;return s}function A(t,e,r,A,n,l){var c,u,d=t.file,p=t.compression,g=l!==o.utf8encode,f=i.transformTo("string",l(d.name)),_=i.transformTo("string",o.utf8encode(d.name)),m=d.comment,w=i.transformTo("string",l(m)),B=i.transformTo("string",o.utf8encode(m)),C=_.length!==d.name.length,y=B.length!==m.length,v="",E="",b="",x=d.dir,P=d.date,I={crc32:0,compressedSize:0,uncompressedSize:0};e&&!r||(I.crc32=t.crc32,I.compressedSize=t.compressedSize,I.uncompressedSize=t.uncompressedSize);var S=0;e&&(S|=8),g||!C&&!y||(S|=2048);var T=0,F=0;x&&(T|=16),"UNIX"===n?(F=798,T|=function(t,e){var r=t;return t||(r=e?16893:33204),(65535&r)<<16}(d.unixPermissions,x)):(F=20,T|=function(t){return 63&(t||0)}(d.dosPermissions)),c=P.getUTCHours(),c<<=6,c|=P.getUTCMinutes(),c<<=5,c|=P.getUTCSeconds()/2,u=P.getUTCFullYear()-1980,u<<=4,u|=P.getUTCMonth()+1,u<<=5,u|=P.getUTCDate(),C&&(E=s(1,1)+s(a(f),4)+_,v+="up"+s(E.length,2)+E),y&&(b=s(1,1)+s(a(w),4)+B,v+="uc"+s(b.length,2)+b);var R="";return R+="\n\0",R+=s(S,2),R+=p.magic,R+=s(c,2),R+=s(u,2),R+=s(I.crc32,4),R+=s(I.compressedSize,4),R+=s(I.uncompressedSize,4),R+=s(f.length,2),R+=s(v.length,2),{fileRecord:h.LOCAL_FILE_HEADER+R+f+v,dirRecord:h.CENTRAL_FILE_HEADER+s(F,2)+R+s(w.length,2)+"\0\0\0\0"+s(T,4)+s(A,4)+f+v+w}}var i=t("../utils"),n=t("../stream/GenericWorker"),o=t("../utf8"),a=t("../crc32"),h=t("../signature");function l(t,e,r,s){n.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=e,this.zipPlatform=r,this.encodeFileName=s,this.streamFiles=t,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}i.inherits(l,n),l.prototype.push=function(t){var e=t.meta.percent||0,r=this.entriesCount,s=this._sources.length;this.accumulate?this.contentBuffer.push(t):(this.bytesWritten+=t.data.length,n.prototype.push.call(this,{data:t.data,meta:{currentFile:this.currentFile,percent:r?(e+100*(r-s-1))/r:100}}))},l.prototype.openedSource=function(t){this.currentSourceOffset=this.bytesWritten,this.currentFile=t.file.name;var e=this.streamFiles&&!t.file.dir;if(e){var r=A(t,e,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},l.prototype.closedSource=function(t){this.accumulate=!1;var e=this.streamFiles&&!t.file.dir,r=A(t,e,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),e)this.push({data:function(t){return h.DATA_DESCRIPTOR+s(t.crc32,4)+s(t.compressedSize,4)+s(t.uncompressedSize,4)}(t),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},l.prototype.flush=function(){for(var t=this.bytesWritten,e=0;e<this.dirRecords.length;e++)this.push({data:this.dirRecords[e],meta:{percent:100}});var r=this.bytesWritten-t,A=function(t,e,r,A,n){var o=i.transformTo("string",n(A));return h.CENTRAL_DIRECTORY_END+"\0\0\0\0"+s(t,2)+s(t,2)+s(e,4)+s(r,4)+s(o.length,2)+o}(this.dirRecords.length,r,t,this.zipComment,this.encodeFileName);this.push({data:A,meta:{percent:100}})},l.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},l.prototype.registerPrevious=function(t){this._sources.push(t);var e=this;return t.on("data",(function(t){e.processChunk(t)})),t.on("end",(function(){e.closedSource(e.previous.streamInfo),e._sources.length?e.prepareNextSource():e.end()})),t.on("error",(function(t){e.error(t)})),this},l.prototype.resume=function(){return!!n.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},l.prototype.error=function(t){var e=this._sources;if(!n.prototype.error.call(this,t))return!1;for(var r=0;r<e.length;r++)try{e[r].error(t)}catch(t){}return!0},l.prototype.lock=function(){n.prototype.lock.call(this);for(var t=this._sources,e=0;e<t.length;e++)t[e].lock()},e.exports=l},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(t,e,r){var s=t("../compressions"),A=t("./ZipFileWorker");r.generateWorker=function(t,e,r){var i=new A(e.streamFiles,r,e.platform,e.encodeFileName),n=0;try{t.forEach((function(t,r){n++;var A=function(t,e){var r=t||e,A=s[r];if(!A)throw new Error(r+" is not a valid compression method !");return A}(r.options.compression,e.compression),o=r.options.compressionOptions||e.compressionOptions||{},a=r.dir,h=r.date;r._compressWorker(A,o).withStreamInfo("file",{name:t,dir:a,date:h,comment:r.comment||"",unixPermissions:r.unixPermissions,dosPermissions:r.dosPermissions}).pipe(i)})),i.entriesCount=n}catch(t){i.error(t)}return i}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(t,e,r){function s(){if(!(this instanceof s))return new s;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 t=new s;for(var e in this)"function"!=typeof this[e]&&(t[e]=this[e]);return t}}(s.prototype=t("./object")).loadAsync=t("./load"),s.support=t("./support"),s.defaults=t("./defaults"),s.version="3.7.1",s.loadAsync=function(t,e){return(new s).loadAsync(t,e)},s.external=t("./external"),e.exports=s},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(t,e,r){var s=t("./utils"),A=t("./external"),i=t("./utf8"),n=t("./zipEntries"),o=t("./stream/Crc32Probe"),a=t("./nodejsUtils");function h(t){return new A.Promise((function(e,r){var s=t.decompressed.getContentWorker().pipe(new o);s.on("error",(function(t){r(t)})).on("end",(function(){s.streamInfo.crc32!==t.decompressed.crc32?r(new Error("Corrupted zip : CRC32 mismatch")):e()})).resume()}))}e.exports=function(t,e){var r=this;return e=s.extend(e||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:i.utf8decode}),a.isNode&&a.isStream(t)?A.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):s.prepareContent("the loaded zip file",t,!0,e.optimizedBinaryString,e.base64).then((function(t){var r=new n(e);return r.load(t),r})).then((function(t){var r=[A.Promise.resolve(t)],s=t.files;if(e.checkCRC32)for(var i=0;i<s.length;i++)r.push(h(s[i]));return A.Promise.all(r)})).then((function(t){for(var s=t.shift(),A=s.files,i=0;i<A.length;i++){var n=A[i];r.file(n.fileNameStr,n.decompressed,{binary:!0,optimizedBinaryString:!0,date:n.date,dir:n.dir,comment:n.fileCommentStr.length?n.fileCommentStr:null,unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions,createFolders:e.createFolders})}return s.zipComment.length&&(r.comment=s.zipComment),r}))}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(t,e,r){var s=t("../utils"),A=t("../stream/GenericWorker");function i(t,e){A.call(this,"Nodejs stream input adapter for "+t),this._upstreamEnded=!1,this._bindStream(e)}s.inherits(i,A),i.prototype._bindStream=function(t){var e=this;(this._stream=t).pause(),t.on("data",(function(t){e.push({data:t,meta:{percent:0}})})).on("error",(function(t){e.isPaused?this.generatedError=t:e.error(t)})).on("end",(function(){e.isPaused?e._upstreamEnded=!0:e.end()}))},i.prototype.pause=function(){return!!A.prototype.pause.call(this)&&(this._stream.pause(),!0)},i.prototype.resume=function(){return!!A.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},e.exports=i},{"../stream/GenericWorker":28,"../utils":32}],13:[function(t,e,r){var s=t("readable-stream").Readable;function A(t,e,r){s.call(this,e),this._helper=t;var A=this;t.on("data",(function(t,e){A.push(t)||A._helper.pause(),r&&r(e)})).on("error",(function(t){A.emit("error",t)})).on("end",(function(){A.push(null)}))}t("../utils").inherits(A,s),A.prototype._read=function(){this._helper.resume()},e.exports=A},{"../utils":32,"readable-stream":16}],14:[function(t,e,r){e.exports={isNode:"undefined"!=typeof Buffer,newBufferFrom:function(t,e){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(t,e);if("number"==typeof t)throw new Error('The "data" argument must not be a number');return new Buffer(t,e)},allocBuffer:function(t){if(Buffer.alloc)return Buffer.alloc(t);var e=new Buffer(t);return e.fill(0),e},isBuffer:function(t){return Buffer.isBuffer(t)},isStream:function(t){return t&&"function"==typeof t.on&&"function"==typeof t.pause&&"function"==typeof t.resume}}},{}],15:[function(t,e,r){function s(t,e,r){var s,A=i.getTypeOf(e),o=i.extend(r||{},a);o.date=o.date||new Date,null!==o.compression&&(o.compression=o.compression.toUpperCase()),"string"==typeof o.unixPermissions&&(o.unixPermissions=parseInt(o.unixPermissions,8)),o.unixPermissions&&16384&o.unixPermissions&&(o.dir=!0),o.dosPermissions&&16&o.dosPermissions&&(o.dir=!0),o.dir&&(t=g(t)),o.createFolders&&(s=p(t))&&f.call(this,s,!0);var c,_="string"===A&&!1===o.binary&&!1===o.base64;r&&void 0!==r.binary||(o.binary=!_),(e instanceof h&&0===e.uncompressedSize||o.dir||!e||0===e.length)&&(o.base64=!1,o.binary=!0,e="",o.compression="STORE",A="string"),c=e instanceof h||e instanceof n?e:u.isNode&&u.isStream(e)?new d(t,e):i.prepareContent(t,e,o.binary,o.optimizedBinaryString,o.base64);var m=new l(t,c,o);this.files[t]=m}var A=t("./utf8"),i=t("./utils"),n=t("./stream/GenericWorker"),o=t("./stream/StreamHelper"),a=t("./defaults"),h=t("./compressedObject"),l=t("./zipObject"),c=t("./generate"),u=t("./nodejsUtils"),d=t("./nodejs/NodejsStreamInputAdapter"),p=function(t){"/"===t.slice(-1)&&(t=t.substring(0,t.length-1));var e=t.lastIndexOf("/");return 0<e?t.substring(0,e):""},g=function(t){return"/"!==t.slice(-1)&&(t+="/"),t},f=function(t,e){return e=void 0!==e?e:a.createFolders,t=g(t),this.files[t]||s.call(this,t,null,{dir:!0,createFolders:e}),this.files[t]};function _(t){return"[object RegExp]"===Object.prototype.toString.call(t)}var m={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(t){var e,r,s;for(e in this.files)s=this.files[e],(r=e.slice(this.root.length,e.length))&&e.slice(0,this.root.length)===this.root&&t(r,s)},filter:function(t){var e=[];return this.forEach((function(r,s){t(r,s)&&e.push(s)})),e},file:function(t,e,r){if(1!==arguments.length)return t=this.root+t,s.call(this,t,e,r),this;if(_(t)){var A=t;return this.filter((function(t,e){return!e.dir&&A.test(t)}))}var i=this.files[this.root+t];return i&&!i.dir?i:null},folder:function(t){if(!t)return this;if(_(t))return this.filter((function(e,r){return r.dir&&t.test(e)}));var e=this.root+t,r=f.call(this,e),s=this.clone();return s.root=r.name,s},remove:function(t){t=this.root+t;var e=this.files[t];if(e||("/"!==t.slice(-1)&&(t+="/"),e=this.files[t]),e&&!e.dir)delete this.files[t];else for(var r=this.filter((function(e,r){return r.name.slice(0,t.length)===t})),s=0;s<r.length;s++)delete this.files[r[s].name];return this},generate:function(t){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(t){var e,r={};try{if((r=i.extend(t||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:A.utf8encode})).type=r.type.toLowerCase(),r.compression=r.compression.toUpperCase(),"binarystring"===r.type&&(r.type="string"),!r.type)throw new Error("No output type specified.");i.checkSupport(r.type),"darwin"!==r.platform&&"freebsd"!==r.platform&&"linux"!==r.platform&&"sunos"!==r.platform||(r.platform="UNIX"),"win32"===r.platform&&(r.platform="DOS");var s=r.comment||this.comment||"";e=c.generateWorker(this,r,s)}catch(t){(e=new n("error")).error(t)}return new o(e,r.type||"string",r.mimeType)},generateAsync:function(t,e){return this.generateInternalStream(t).accumulate(e)},generateNodeStream:function(t,e){return(t=t||{}).type||(t.type="nodebuffer"),this.generateInternalStream(t).toNodejsStream(e)}};e.exports=m},{"./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(t,e,r){e.exports=t("stream")},{stream:void 0}],17:[function(t,e,r){var s=t("./DataReader");function A(t){s.call(this,t);for(var e=0;e<this.data.length;e++)t[e]=255&t[e]}t("../utils").inherits(A,s),A.prototype.byteAt=function(t){return this.data[this.zero+t]},A.prototype.lastIndexOfSignature=function(t){for(var e=t.charCodeAt(0),r=t.charCodeAt(1),s=t.charCodeAt(2),A=t.charCodeAt(3),i=this.length-4;0<=i;--i)if(this.data[i]===e&&this.data[i+1]===r&&this.data[i+2]===s&&this.data[i+3]===A)return i-this.zero;return-1},A.prototype.readAndCheckSignature=function(t){var e=t.charCodeAt(0),r=t.charCodeAt(1),s=t.charCodeAt(2),A=t.charCodeAt(3),i=this.readData(4);return e===i[0]&&r===i[1]&&s===i[2]&&A===i[3]},A.prototype.readData=function(t){if(this.checkOffset(t),0===t)return[];var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=A},{"../utils":32,"./DataReader":18}],18:[function(t,e,r){var s=t("../utils");function A(t){this.data=t,this.length=t.length,this.index=0,this.zero=0}A.prototype={checkOffset:function(t){this.checkIndex(this.index+t)},checkIndex:function(t){if(this.length<this.zero+t||t<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+t+"). Corrupted zip ?")},setIndex:function(t){this.checkIndex(t),this.index=t},skip:function(t){this.setIndex(this.index+t)},byteAt:function(t){},readInt:function(t){var e,r=0;for(this.checkOffset(t),e=this.index+t-1;e>=this.index;e--)r=(r<<8)+this.byteAt(e);return this.index+=t,r},readString:function(t){return s.transformTo("string",this.readData(t))},readData:function(t){},lastIndexOfSignature:function(t){},readAndCheckSignature:function(t){},readDate:function(){var t=this.readInt(4);return new Date(Date.UTC(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1))}},e.exports=A},{"../utils":32}],19:[function(t,e,r){var s=t("./Uint8ArrayReader");function A(t){s.call(this,t)}t("../utils").inherits(A,s),A.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=A},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(t,e,r){var s=t("./DataReader");function A(t){s.call(this,t)}t("../utils").inherits(A,s),A.prototype.byteAt=function(t){return this.data.charCodeAt(this.zero+t)},A.prototype.lastIndexOfSignature=function(t){return this.data.lastIndexOf(t)-this.zero},A.prototype.readAndCheckSignature=function(t){return t===this.readData(4)},A.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=A},{"../utils":32,"./DataReader":18}],21:[function(t,e,r){var s=t("./ArrayReader");function A(t){s.call(this,t)}t("../utils").inherits(A,s),A.prototype.readData=function(t){if(this.checkOffset(t),0===t)return new Uint8Array(0);var e=this.data.subarray(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=A},{"../utils":32,"./ArrayReader":17}],22:[function(t,e,r){var s=t("../utils"),A=t("../support"),i=t("./ArrayReader"),n=t("./StringReader"),o=t("./NodeBufferReader"),a=t("./Uint8ArrayReader");e.exports=function(t){var e=s.getTypeOf(t);return s.checkSupport(e),"string"!==e||A.uint8array?"nodebuffer"===e?new o(t):A.uint8array?new a(s.transformTo("uint8array",t)):new i(s.transformTo("array",t)):new n(t)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(t,e,r){r.LOCAL_FILE_HEADER="PK",r.CENTRAL_FILE_HEADER="PK",r.CENTRAL_DIRECTORY_END="PK",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",r.ZIP64_CENTRAL_DIRECTORY_END="PK",r.DATA_DESCRIPTOR="PK\b"},{}],24:[function(t,e,r){var s=t("./GenericWorker"),A=t("../utils");function i(t){s.call(this,"ConvertWorker to "+t),this.destType=t}A.inherits(i,s),i.prototype.processChunk=function(t){this.push({data:A.transformTo(this.destType,t.data),meta:t.meta})},e.exports=i},{"../utils":32,"./GenericWorker":28}],25:[function(t,e,r){var s=t("./GenericWorker"),A=t("../crc32");function i(){s.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}t("../utils").inherits(i,s),i.prototype.processChunk=function(t){this.streamInfo.crc32=A(t.data,this.streamInfo.crc32||0),this.push(t)},e.exports=i},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(t,e,r){var s=t("../utils"),A=t("./GenericWorker");function i(t){A.call(this,"DataLengthProbe for "+t),this.propName=t,this.withStreamInfo(t,0)}s.inherits(i,A),i.prototype.processChunk=function(t){if(t){var e=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=e+t.data.length}A.prototype.processChunk.call(this,t)},e.exports=i},{"../utils":32,"./GenericWorker":28}],27:[function(t,e,r){var s=t("../utils"),A=t("./GenericWorker");function i(t){A.call(this,"DataWorker");var e=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,t.then((function(t){e.dataIsReady=!0,e.data=t,e.max=t&&t.length||0,e.type=s.getTypeOf(t),e.isPaused||e._tickAndRepeat()}),(function(t){e.error(t)}))}s.inherits(i,A),i.prototype.cleanUp=function(){A.prototype.cleanUp.call(this),this.data=null},i.prototype.resume=function(){return!!A.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,s.delay(this._tickAndRepeat,[],this)),!0)},i.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(s.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},i.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var t=null,e=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,e);break;case"uint8array":t=this.data.subarray(this.index,e);break;case"array":case"nodebuffer":t=this.data.slice(this.index,e)}return this.index=e,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})},e.exports=i},{"../utils":32,"./GenericWorker":28}],28:[function(t,e,r){function s(t){this.name=t||"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}s.prototype={push:function(t){this.emit("data",t)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(t){this.emit("error",t)}return!0},error:function(t){return!this.isFinished&&(this.isPaused?this.generatedError=t:(this.isFinished=!0,this.emit("error",t),this.previous&&this.previous.error(t),this.cleanUp()),!0)},on:function(t,e){return this._listeners[t].push(e),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(t,e){if(this._listeners[t])for(var r=0;r<this._listeners[t].length;r++)this._listeners[t][r].call(this,e)},pipe:function(t){return t.registerPrevious(this)},registerPrevious:function(t){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=t.streamInfo,this.mergeStreamInfo(),this.previous=t;var e=this;return t.on("data",(function(t){e.processChunk(t)})),t.on("end",(function(){e.end()})),t.on("error",(function(t){e.error(t)})),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 t=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),t=!0),this.previous&&this.previous.resume(),!t},flush:function(){},processChunk:function(t){this.push(t)},withStreamInfo:function(t,e){return this.extraStreamInfo[t]=e,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var t in this.extraStreamInfo)this.extraStreamInfo.hasOwnProperty(t)&&(this.streamInfo[t]=this.extraStreamInfo[t])},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 t="Worker "+this.name;return this.previous?this.previous+" -> "+t:t}},e.exports=s},{}],29:[function(t,e,r){var s=t("../utils"),A=t("./ConvertWorker"),i=t("./GenericWorker"),n=t("../base64"),o=t("../support"),a=t("../external"),h=null;if(o.nodestream)try{h=t("../nodejs/NodejsStreamOutputAdapter")}catch(t){}function l(t,e,r){var n=e;switch(e){case"blob":case"arraybuffer":n="uint8array";break;case"base64":n="string"}try{this._internalType=n,this._outputType=e,this._mimeType=r,s.checkSupport(n),this._worker=t.pipe(new A(n)),t.lock()}catch(t){this._worker=new i("error"),this._worker.error(t)}}l.prototype={accumulate:function(t){return function(t,e){return new a.Promise((function(r,A){var i=[],o=t._internalType,a=t._outputType,h=t._mimeType;t.on("data",(function(t,r){i.push(t),e&&e(r)})).on("error",(function(t){i=[],A(t)})).on("end",(function(){try{var t=function(t,e,r){switch(t){case"blob":return s.newBlob(s.transformTo("arraybuffer",e),r);case"base64":return n.encode(e);default:return s.transformTo(t,e)}}(a,function(t,e){var r,s=0,A=null,i=0;for(r=0;r<e.length;r++)i+=e[r].length;switch(t){case"string":return e.join("");case"array":return Array.prototype.concat.apply([],e);case"uint8array":for(A=new Uint8Array(i),r=0;r<e.length;r++)A.set(e[r],s),s+=e[r].length;return A;case"nodebuffer":return Buffer.concat(e);default:throw new Error("concat : unsupported type '"+t+"'")}}(o,i),h);r(t)}catch(t){A(t)}i=[]})).resume()}))}(this,t)},on:function(t,e){var r=this;return"data"===t?this._worker.on(t,(function(t){e.call(r,t.data,t.meta)})):this._worker.on(t,(function(){s.delay(e,arguments,r)})),this},resume:function(){return s.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(t){if(s.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new h(this,{objectMode:"nodebuffer"!==this._outputType},t)}},e.exports=l},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(t,e,r){if(r.base64=!0,r.array=!0,r.string=!0,r.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,r.nodebuffer="undefined"!=typeof Buffer,r.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)r.blob=!1;else{var s=new ArrayBuffer(0);try{r.blob=0===new Blob([s],{type:"application/zip"}).size}catch(t){try{var A=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);A.append(s),r.blob=0===A.getBlob("application/zip").size}catch(t){r.blob=!1}}}try{r.nodestream=!!t("readable-stream").Readable}catch(t){r.nodestream=!1}},{"readable-stream":16}],31:[function(t,e,r){for(var s=t("./utils"),A=t("./support"),i=t("./nodejsUtils"),n=t("./stream/GenericWorker"),o=new Array(256),a=0;a<256;a++)o[a]=252<=a?6:248<=a?5:240<=a?4:224<=a?3:192<=a?2:1;function h(){n.call(this,"utf-8 decode"),this.leftOver=null}function l(){n.call(this,"utf-8 encode")}o[254]=o[254]=1,r.utf8encode=function(t){return A.nodebuffer?i.newBufferFrom(t,"utf-8"):function(t){var e,r,s,i,n,o=t.length,a=0;for(i=0;i<o;i++)55296==(64512&(r=t.charCodeAt(i)))&&i+1<o&&56320==(64512&(s=t.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(s-56320),i++),a+=r<128?1:r<2048?2:r<65536?3:4;for(e=A.uint8array?new Uint8Array(a):new Array(a),i=n=0;n<a;i++)55296==(64512&(r=t.charCodeAt(i)))&&i+1<o&&56320==(64512&(s=t.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(s-56320),i++),r<128?e[n++]=r:(r<2048?e[n++]=192|r>>>6:(r<65536?e[n++]=224|r>>>12:(e[n++]=240|r>>>18,e[n++]=128|r>>>12&63),e[n++]=128|r>>>6&63),e[n++]=128|63&r);return e}(t)},r.utf8decode=function(t){return A.nodebuffer?s.transformTo("nodebuffer",t).toString("utf-8"):function(t){var e,r,A,i,n=t.length,a=new Array(2*n);for(e=r=0;e<n;)if((A=t[e++])<128)a[r++]=A;else if(4<(i=o[A]))a[r++]=65533,e+=i-1;else{for(A&=2===i?31:3===i?15:7;1<i&&e<n;)A=A<<6|63&t[e++],i--;1<i?a[r++]=65533:A<65536?a[r++]=A:(A-=65536,a[r++]=55296|A>>10&1023,a[r++]=56320|1023&A)}return a.length!==r&&(a.subarray?a=a.subarray(0,r):a.length=r),s.applyFromCharCode(a)}(t=s.transformTo(A.uint8array?"uint8array":"array",t))},s.inherits(h,n),h.prototype.processChunk=function(t){var e=s.transformTo(A.uint8array?"uint8array":"array",t.data);if(this.leftOver&&this.leftOver.length){if(A.uint8array){var i=e;(e=new Uint8Array(i.length+this.leftOver.length)).set(this.leftOver,0),e.set(i,this.leftOver.length)}else e=this.leftOver.concat(e);this.leftOver=null}var n=function(t,e){var r;for((e=e||t.length)>t.length&&(e=t.length),r=e-1;0<=r&&128==(192&t[r]);)r--;return r<0||0===r?e:r+o[t[r]]>e?r:e}(e),a=e;n!==e.length&&(A.uint8array?(a=e.subarray(0,n),this.leftOver=e.subarray(n,e.length)):(a=e.slice(0,n),this.leftOver=e.slice(n,e.length))),this.push({data:r.utf8decode(a),meta:t.meta})},h.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:r.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},r.Utf8DecodeWorker=h,s.inherits(l,n),l.prototype.processChunk=function(t){this.push({data:r.utf8encode(t.data),meta:t.meta})},r.Utf8EncodeWorker=l},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(t,e,r){var s=t("./support"),A=t("./base64"),i=t("./nodejsUtils"),n=t("set-immediate-shim"),o=t("./external");function a(t){return t}function h(t,e){for(var r=0;r<t.length;++r)e[r]=255&t.charCodeAt(r);return e}r.newBlob=function(t,e){r.checkSupport("blob");try{return new Blob([t],{type:e})}catch(r){try{var s=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return s.append(t),s.getBlob(e)}catch(t){throw new Error("Bug : can't construct the Blob.")}}};var l={stringifyByChunk:function(t,e,r){var s=[],A=0,i=t.length;if(i<=r)return String.fromCharCode.apply(null,t);for(;A<i;)"array"===e||"nodebuffer"===e?s.push(String.fromCharCode.apply(null,t.slice(A,Math.min(A+r,i)))):s.push(String.fromCharCode.apply(null,t.subarray(A,Math.min(A+r,i)))),A+=r;return s.join("")},stringifyByChar:function(t){for(var e="",r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return e},applyCanBeUsed:{uint8array:function(){try{return s.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(t){return!1}}(),nodebuffer:function(){try{return s.nodebuffer&&1===String.fromCharCode.apply(null,i.allocBuffer(1)).length}catch(t){return!1}}()}};function c(t){var e=65536,s=r.getTypeOf(t),A=!0;if("uint8array"===s?A=l.applyCanBeUsed.uint8array:"nodebuffer"===s&&(A=l.applyCanBeUsed.nodebuffer),A)for(;1<e;)try{return l.stringifyByChunk(t,s,e)}catch(t){e=Math.floor(e/2)}return l.stringifyByChar(t)}function u(t,e){for(var r=0;r<t.length;r++)e[r]=t[r];return e}r.applyFromCharCode=c;var d={};d.string={string:a,array:function(t){return h(t,new Array(t.length))},arraybuffer:function(t){return d.string.uint8array(t).buffer},uint8array:function(t){return h(t,new Uint8Array(t.length))},nodebuffer:function(t){return h(t,i.allocBuffer(t.length))}},d.array={string:c,array:a,arraybuffer:function(t){return new Uint8Array(t).buffer},uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return i.newBufferFrom(t)}},d.arraybuffer={string:function(t){return c(new Uint8Array(t))},array:function(t){return u(new Uint8Array(t),new Array(t.byteLength))},arraybuffer:a,uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return i.newBufferFrom(new Uint8Array(t))}},d.uint8array={string:c,array:function(t){return u(t,new Array(t.length))},arraybuffer:function(t){return t.buffer},uint8array:a,nodebuffer:function(t){return i.newBufferFrom(t)}},d.nodebuffer={string:c,array:function(t){return u(t,new Array(t.length))},arraybuffer:function(t){return d.nodebuffer.uint8array(t).buffer},uint8array:function(t){return u(t,new Uint8Array(t.length))},nodebuffer:a},r.transformTo=function(t,e){if(e=e||"",!t)return e;r.checkSupport(t);var s=r.getTypeOf(e);return d[s][t](e)},r.getTypeOf=function(t){return"string"==typeof t?"string":"[object Array]"===Object.prototype.toString.call(t)?"array":s.nodebuffer&&i.isBuffer(t)?"nodebuffer":s.uint8array&&t instanceof Uint8Array?"uint8array":s.arraybuffer&&t instanceof ArrayBuffer?"arraybuffer":void 0},r.checkSupport=function(t){if(!s[t.toLowerCase()])throw new Error(t+" is not supported by this platform")},r.MAX_VALUE_16BITS=65535,r.MAX_VALUE_32BITS=-1,r.pretty=function(t){var e,r,s="";for(r=0;r<(t||"").length;r++)s+="\\x"+((e=t.charCodeAt(r))<16?"0":"")+e.toString(16).toUpperCase();return s},r.delay=function(t,e,r){n((function(){t.apply(r||null,e||[])}))},r.inherits=function(t,e){function r(){}r.prototype=e.prototype,t.prototype=new r},r.extend=function(){var t,e,r={};for(t=0;t<arguments.length;t++)for(e in arguments[t])arguments[t].hasOwnProperty(e)&&void 0===r[e]&&(r[e]=arguments[t][e]);return r},r.prepareContent=function(t,e,i,n,a){return o.Promise.resolve(e).then((function(t){return s.blob&&(t instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(t)))&&"undefined"!=typeof FileReader?new o.Promise((function(e,r){var s=new FileReader;s.onload=function(t){e(t.target.result)},s.onerror=function(t){r(t.target.error)},s.readAsArrayBuffer(t)})):t})).then((function(e){var l=r.getTypeOf(e);return l?("arraybuffer"===l?e=r.transformTo("uint8array",e):"string"===l&&(a?e=A.decode(e):i&&!0!==n&&(e=function(t){return h(t,s.uint8array?new Uint8Array(t.length):new Array(t.length))}(e))),e):o.Promise.reject(new Error("Can't read the data of '"+t+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,"set-immediate-shim":54}],33:[function(t,e,r){var s=t("./reader/readerFor"),A=t("./utils"),i=t("./signature"),n=t("./zipEntry"),o=(t("./utf8"),t("./support"));function a(t){this.files=[],this.loadOptions=t}a.prototype={checkSignature:function(t){if(!this.reader.readAndCheckSignature(t)){this.reader.index-=4;var e=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+A.pretty(e)+", expected "+A.pretty(t)+")")}},isSignature:function(t,e){var r=this.reader.index;this.reader.setIndex(t);var s=this.reader.readString(4)===e;return this.reader.setIndex(r),s},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 t=this.reader.readData(this.zipCommentLength),e=o.uint8array?"uint8array":"array",r=A.transformTo(e,t);this.zipComment=this.loadOptions.decodeFileName(r)},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 t,e,r,s=this.zip64EndOfCentralSize-44;0<s;)t=this.reader.readInt(2),e=this.reader.readInt(4),r=this.reader.readData(e),this.zip64ExtensibleData[t]={id:t,length:e,value:r}},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 t,e;for(t=0;t<this.files.length;t++)e=this.files[t],this.reader.setIndex(e.localHeaderOffset),this.checkSignature(i.LOCAL_FILE_HEADER),e.readLocalPart(this.reader),e.handleUTF8(),e.processAttributes()},readCentralDir:function(){var t;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(i.CENTRAL_FILE_HEADER);)(t=new n({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(t);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var t=this.reader.lastIndexOfSignature(i.CENTRAL_DIRECTORY_END);if(t<0)throw this.isSignature(0,i.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(t);var e=t;if(this.checkSignature(i.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===A.MAX_VALUE_16BITS||this.diskWithCentralDirStart===A.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===A.MAX_VALUE_16BITS||this.centralDirRecords===A.MAX_VALUE_16BITS||this.centralDirSize===A.MAX_VALUE_32BITS||this.centralDirOffset===A.MAX_VALUE_32BITS){if(this.zip64=!0,(t=this.reader.lastIndexOfSignature(i.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(t),this.checkSignature(i.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,i.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(i.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(i.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var r=this.centralDirOffset+this.centralDirSize;this.zip64&&(r+=20,r+=12+this.zip64EndOfCentralSize);var s=e-r;if(0<s)this.isSignature(e,i.CENTRAL_FILE_HEADER)||(this.reader.zero=s);else if(s<0)throw new Error("Corrupted zip: missing "+Math.abs(s)+" bytes.")},prepareReader:function(t){this.reader=s(t)},load:function(t){this.prepareReader(t),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},e.exports=a},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utf8":31,"./utils":32,"./zipEntry":34}],34:[function(t,e,r){var s=t("./reader/readerFor"),A=t("./utils"),i=t("./compressedObject"),n=t("./crc32"),o=t("./utf8"),a=t("./compressions"),h=t("./support");function l(t,e){this.options=t,this.loadOptions=e}l.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(t){var e,r;if(t.skip(22),this.fileNameLength=t.readInt(2),r=t.readInt(2),this.fileName=t.readData(this.fileNameLength),t.skip(r),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(e=function(t){for(var e in a)if(a.hasOwnProperty(e)&&a[e].magic===t)return a[e];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+A.pretty(this.compressionMethod)+" unknown (inner file : "+A.transformTo("string",this.fileName)+")");this.decompressed=new i(this.compressedSize,this.uncompressedSize,this.crc32,e,t.readData(this.compressedSize))},readCentralPart:function(t){this.versionMadeBy=t.readInt(2),t.skip(2),this.bitFlag=t.readInt(2),this.compressionMethod=t.readString(2),this.date=t.readDate(),this.crc32=t.readInt(4),this.compressedSize=t.readInt(4),this.uncompressedSize=t.readInt(4);var e=t.readInt(2);if(this.extraFieldsLength=t.readInt(2),this.fileCommentLength=t.readInt(2),this.diskNumberStart=t.readInt(2),this.internalFileAttributes=t.readInt(2),this.externalFileAttributes=t.readInt(4),this.localHeaderOffset=t.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");t.skip(e),this.readExtraFields(t),this.parseZIP64ExtraField(t),this.fileComment=t.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var t=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==t&&(this.dosPermissions=63&this.externalFileAttributes),3==t&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(t){if(this.extraFields[1]){var e=s(this.extraFields[1].value);this.uncompressedSize===A.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===A.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===A.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===A.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(t){var e,r,s,A=t.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});t.index+4<A;)e=t.readInt(2),r=t.readInt(2),s=t.readData(r),this.extraFields[e]={id:e,length:r,value:s};t.setIndex(A)},handleUTF8:function(){var t=h.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=o.utf8decode(this.fileName),this.fileCommentStr=o.utf8decode(this.fileComment);else{var e=this.findExtraFieldUnicodePath();if(null!==e)this.fileNameStr=e;else{var r=A.transformTo(t,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var s=this.findExtraFieldUnicodeComment();if(null!==s)this.fileCommentStr=s;else{var i=A.transformTo(t,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(i)}}},findExtraFieldUnicodePath:function(){var t=this.extraFields[28789];if(t){var e=s(t.value);return 1!==e.readInt(1)||n(this.fileName)!==e.readInt(4)?null:o.utf8decode(e.readData(t.length-5))}return null},findExtraFieldUnicodeComment:function(){var t=this.extraFields[25461];if(t){var e=s(t.value);return 1!==e.readInt(1)||n(this.fileComment)!==e.readInt(4)?null:o.utf8decode(e.readData(t.length-5))}return null}},e.exports=l},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(t,e,r){function s(t,e,r){this.name=t,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this.unixPermissions=r.unixPermissions,this.dosPermissions=r.dosPermissions,this._data=e,this._dataBinary=r.binary,this.options={compression:r.compression,compressionOptions:r.compressionOptions}}var A=t("./stream/StreamHelper"),i=t("./stream/DataWorker"),n=t("./utf8"),o=t("./compressedObject"),a=t("./stream/GenericWorker");s.prototype={internalStream:function(t){var e=null,r="string";try{if(!t)throw new Error("No output type specified.");var s="string"===(r=t.toLowerCase())||"text"===r;"binarystring"!==r&&"text"!==r||(r="string"),e=this._decompressWorker();var i=!this._dataBinary;i&&!s&&(e=e.pipe(new n.Utf8EncodeWorker)),!i&&s&&(e=e.pipe(new n.Utf8DecodeWorker))}catch(t){(e=new a("error")).error(t)}return new A(e,r,"")},async:function(t,e){return this.internalStream(t).accumulate(e)},nodeStream:function(t,e){return this.internalStream(t||"nodebuffer").toNodejsStream(e)},_compressWorker:function(t,e){if(this._data instanceof o&&this._data.compression.magic===t.magic)return this._data.getCompressedWorker();var r=this._decompressWorker();return this._dataBinary||(r=r.pipe(new n.Utf8EncodeWorker)),o.createWorkerFrom(r,t,e)},_decompressWorker:function(){return this._data instanceof o?this._data.getContentWorker():this._data instanceof a?this._data:new i(this._data)}};for(var h=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],l=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},c=0;c<h.length;c++)s.prototype[h[c]]=l;e.exports=s},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(t,e,s){(function(t){var r,s,A=t.MutationObserver||t.WebKitMutationObserver;if(A){var i=0,n=new A(l),o=t.document.createTextNode("");n.observe(o,{characterData:!0}),r=function(){o.data=i=++i%2}}else if(t.setImmediate||void 0===t.MessageChannel)r="document"in t&&"onreadystatechange"in t.document.createElement("script")?function(){var e=t.document.createElement("script");e.onreadystatechange=function(){l(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},t.document.documentElement.appendChild(e)}:function(){setTimeout(l,0)};else{var a=new t.MessageChannel;a.port1.onmessage=l,r=function(){a.port2.postMessage(0)}}var h=[];function l(){var t,e;s=!0;for(var r=h.length;r;){for(e=h,h=[],t=-1;++t<r;)e[t]();r=h.length}s=!1}e.exports=function(t){1!==h.push(t)||s||r()}}).call(this,void 0!==r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(t,e,r){var s=t("immediate");function A(){}var i={},n=["REJECTED"],o=["FULFILLED"],a=["PENDING"];function h(t){if("function"!=typeof t)throw new TypeError("resolver must be a function");this.state=a,this.queue=[],this.outcome=void 0,t!==A&&d(this,t)}function l(t,e,r){this.promise=t,"function"==typeof e&&(this.onFulfilled=e,this.callFulfilled=this.otherCallFulfilled),"function"==typeof r&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}function c(t,e,r){s((function(){var s;try{s=e(r)}catch(s){return i.reject(t,s)}s===t?i.reject(t,new TypeError("Cannot resolve promise with itself")):i.resolve(t,s)}))}function u(t){var e=t&&t.then;if(t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof e)return function(){e.apply(t,arguments)}}function d(t,e){var r=!1;function s(e){r||(r=!0,i.reject(t,e))}function A(e){r||(r=!0,i.resolve(t,e))}var n=p((function(){e(A,s)}));"error"===n.status&&s(n.value)}function p(t,e){var r={};try{r.value=t(e),r.status="success"}catch(t){r.status="error",r.value=t}return r}(e.exports=h).prototype.finally=function(t){if("function"!=typeof t)return this;var e=this.constructor;return this.then((function(r){return e.resolve(t()).then((function(){return r}))}),(function(r){return e.resolve(t()).then((function(){throw r}))}))},h.prototype.catch=function(t){return this.then(null,t)},h.prototype.then=function(t,e){if("function"!=typeof t&&this.state===o||"function"!=typeof e&&this.state===n)return this;var r=new this.constructor(A);return this.state!==a?c(r,this.state===o?t:e,this.outcome):this.queue.push(new l(r,t,e)),r},l.prototype.callFulfilled=function(t){i.resolve(this.promise,t)},l.prototype.otherCallFulfilled=function(t){c(this.promise,this.onFulfilled,t)},l.prototype.callRejected=function(t){i.reject(this.promise,t)},l.prototype.otherCallRejected=function(t){c(this.promise,this.onRejected,t)},i.resolve=function(t,e){var r=p(u,e);if("error"===r.status)return i.reject(t,r.value);var s=r.value;if(s)d(t,s);else{t.state=o,t.outcome=e;for(var A=-1,n=t.queue.length;++A<n;)t.queue[A].callFulfilled(e)}return t},i.reject=function(t,e){t.state=n,t.outcome=e;for(var r=-1,s=t.queue.length;++r<s;)t.queue[r].callRejected(e);return t},h.resolve=function(t){return t instanceof this?t:i.resolve(new this(A),t)},h.reject=function(t){var e=new this(A);return i.reject(e,t)},h.all=function(t){var e=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var r=t.length,s=!1;if(!r)return this.resolve([]);for(var n=new Array(r),o=0,a=-1,h=new this(A);++a<r;)l(t[a],a);return h;function l(t,A){e.resolve(t).then((function(t){n[A]=t,++o!==r||s||(s=!0,i.resolve(h,n))}),(function(t){s||(s=!0,i.reject(h,t))}))}},h.race=function(t){if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var e=t.length,r=!1;if(!e)return this.resolve([]);for(var s,n=-1,o=new this(A);++n<e;)s=t[n],this.resolve(s).then((function(t){r||(r=!0,i.resolve(o,t))}),(function(t){r||(r=!0,i.reject(o,t))}));return o}},{immediate:36}],38:[function(t,e,r){var s={};(0,t("./lib/utils/common").assign)(s,t("./lib/deflate"),t("./lib/inflate"),t("./lib/zlib/constants")),e.exports=s},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(t,e,r){var s=t("./zlib/deflate"),A=t("./utils/common"),i=t("./utils/strings"),n=t("./zlib/messages"),o=t("./zlib/zstream"),a=Object.prototype.toString;function h(t){if(!(this instanceof h))return new h(t);this.options=A.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},t||{});var e=this.options;e.raw&&0<e.windowBits?e.windowBits=-e.windowBits:e.gzip&&0<e.windowBits&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new o,this.strm.avail_out=0;var r=s.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(0!==r)throw new Error(n[r]);if(e.header&&s.deflateSetHeader(this.strm,e.header),e.dictionary){var l;if(l="string"==typeof e.dictionary?i.string2buf(e.dictionary):"[object ArrayBuffer]"===a.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,0!==(r=s.deflateSetDictionary(this.strm,l)))throw new Error(n[r]);this._dict_set=!0}}function l(t,e){var r=new h(e);if(r.push(t,!0),r.err)throw r.msg||n[r.err];return r.result}h.prototype.push=function(t,e){var r,n,o=this.strm,h=this.options.chunkSize;if(this.ended)return!1;n=e===~~e?e:!0===e?4:0,"string"==typeof t?o.input=i.string2buf(t):"[object ArrayBuffer]"===a.call(t)?o.input=new Uint8Array(t):o.input=t,o.next_in=0,o.avail_in=o.input.length;do{if(0===o.avail_out&&(o.output=new A.Buf8(h),o.next_out=0,o.avail_out=h),1!==(r=s.deflate(o,n))&&0!==r)return this.onEnd(r),!(this.ended=!0);0!==o.avail_out&&(0!==o.avail_in||4!==n&&2!==n)||("string"===this.options.to?this.onData(i.buf2binstring(A.shrinkBuf(o.output,o.next_out))):this.onData(A.shrinkBuf(o.output,o.next_out)))}while((0<o.avail_in||0===o.avail_out)&&1!==r);return 4===n?(r=s.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,0===r):2!==n||(this.onEnd(0),!(o.avail_out=0))},h.prototype.onData=function(t){this.chunks.push(t)},h.prototype.onEnd=function(t){0===t&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=A.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},r.Deflate=h,r.deflate=l,r.deflateRaw=function(t,e){return(e=e||{}).raw=!0,l(t,e)},r.gzip=function(t,e){return(e=e||{}).gzip=!0,l(t,e)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(t,e,r){var s=t("./zlib/inflate"),A=t("./utils/common"),i=t("./utils/strings"),n=t("./zlib/constants"),o=t("./zlib/messages"),a=t("./zlib/zstream"),h=t("./zlib/gzheader"),l=Object.prototype.toString;function c(t){if(!(this instanceof c))return new c(t);this.options=A.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&0<=e.windowBits&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(0<=e.windowBits&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),15<e.windowBits&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new a,this.strm.avail_out=0;var r=s.inflateInit2(this.strm,e.windowBits);if(r!==n.Z_OK)throw new Error(o[r]);this.header=new h,s.inflateGetHeader(this.strm,this.header)}function u(t,e){var r=new c(e);if(r.push(t,!0),r.err)throw r.msg||o[r.err];return r.result}c.prototype.push=function(t,e){var r,o,a,h,c,u,d=this.strm,p=this.options.chunkSize,g=this.options.dictionary,f=!1;if(this.ended)return!1;o=e===~~e?e:!0===e?n.Z_FINISH:n.Z_NO_FLUSH,"string"==typeof t?d.input=i.binstring2buf(t):"[object ArrayBuffer]"===l.call(t)?d.input=new Uint8Array(t):d.input=t,d.next_in=0,d.avail_in=d.input.length;do{if(0===d.avail_out&&(d.output=new A.Buf8(p),d.next_out=0,d.avail_out=p),(r=s.inflate(d,n.Z_NO_FLUSH))===n.Z_NEED_DICT&&g&&(u="string"==typeof g?i.string2buf(g):"[object ArrayBuffer]"===l.call(g)?new Uint8Array(g):g,r=s.inflateSetDictionary(this.strm,u)),r===n.Z_BUF_ERROR&&!0===f&&(r=n.Z_OK,f=!1),r!==n.Z_STREAM_END&&r!==n.Z_OK)return this.onEnd(r),!(this.ended=!0);d.next_out&&(0!==d.avail_out&&r!==n.Z_STREAM_END&&(0!==d.avail_in||o!==n.Z_FINISH&&o!==n.Z_SYNC_FLUSH)||("string"===this.options.to?(a=i.utf8border(d.output,d.next_out),h=d.next_out-a,c=i.buf2string(d.output,a),d.next_out=h,d.avail_out=p-h,h&&A.arraySet(d.output,d.output,a,h,0),this.onData(c)):this.onData(A.shrinkBuf(d.output,d.next_out)))),0===d.avail_in&&0===d.avail_out&&(f=!0)}while((0<d.avail_in||0===d.avail_out)&&r!==n.Z_STREAM_END);return r===n.Z_STREAM_END&&(o=n.Z_FINISH),o===n.Z_FINISH?(r=s.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===n.Z_OK):o!==n.Z_SYNC_FLUSH||(this.onEnd(n.Z_OK),!(d.avail_out=0))},c.prototype.onData=function(t){this.chunks.push(t)},c.prototype.onEnd=function(t){t===n.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=A.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},r.Inflate=c,r.inflate=u,r.inflateRaw=function(t,e){return(e=e||{}).raw=!0,u(t,e)},r.ungzip=u},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(t,e,r){var s="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;r.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var r=e.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var s in r)r.hasOwnProperty(s)&&(t[s]=r[s])}}return t},r.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var A={arraySet:function(t,e,r,s,A){if(e.subarray&&t.subarray)t.set(e.subarray(r,r+s),A);else for(var i=0;i<s;i++)t[A+i]=e[r+i]},flattenChunks:function(t){var e,r,s,A,i,n;for(e=s=0,r=t.length;e<r;e++)s+=t[e].length;for(n=new Uint8Array(s),e=A=0,r=t.length;e<r;e++)i=t[e],n.set(i,A),A+=i.length;return n}},i={arraySet:function(t,e,r,s,A){for(var i=0;i<s;i++)t[A+i]=e[r+i]},flattenChunks:function(t){return[].concat.apply([],t)}};r.setTyped=function(t){t?(r.Buf8=Uint8Array,r.Buf16=Uint16Array,r.Buf32=Int32Array,r.assign(r,A)):(r.Buf8=Array,r.Buf16=Array,r.Buf32=Array,r.assign(r,i))},r.setTyped(s)},{}],42:[function(t,e,r){var s=t("./common"),A=!0,i=!0;try{String.fromCharCode.apply(null,[0])}catch(t){A=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){i=!1}for(var n=new s.Buf8(256),o=0;o<256;o++)n[o]=252<=o?6:248<=o?5:240<=o?4:224<=o?3:192<=o?2:1;function a(t,e){if(e<65537&&(t.subarray&&i||!t.subarray&&A))return String.fromCharCode.apply(null,s.shrinkBuf(t,e));for(var r="",n=0;n<e;n++)r+=String.fromCharCode(t[n]);return r}n[254]=n[254]=1,r.string2buf=function(t){var e,r,A,i,n,o=t.length,a=0;for(i=0;i<o;i++)55296==(64512&(r=t.charCodeAt(i)))&&i+1<o&&56320==(64512&(A=t.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(A-56320),i++),a+=r<128?1:r<2048?2:r<65536?3:4;for(e=new s.Buf8(a),i=n=0;n<a;i++)55296==(64512&(r=t.charCodeAt(i)))&&i+1<o&&56320==(64512&(A=t.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(A-56320),i++),r<128?e[n++]=r:(r<2048?e[n++]=192|r>>>6:(r<65536?e[n++]=224|r>>>12:(e[n++]=240|r>>>18,e[n++]=128|r>>>12&63),e[n++]=128|r>>>6&63),e[n++]=128|63&r);return e},r.buf2binstring=function(t){return a(t,t.length)},r.binstring2buf=function(t){for(var e=new s.Buf8(t.length),r=0,A=e.length;r<A;r++)e[r]=t.charCodeAt(r);return e},r.buf2string=function(t,e){var r,s,A,i,o=e||t.length,h=new Array(2*o);for(r=s=0;r<o;)if((A=t[r++])<128)h[s++]=A;else if(4<(i=n[A]))h[s++]=65533,r+=i-1;else{for(A&=2===i?31:3===i?15:7;1<i&&r<o;)A=A<<6|63&t[r++],i--;1<i?h[s++]=65533:A<65536?h[s++]=A:(A-=65536,h[s++]=55296|A>>10&1023,h[s++]=56320|1023&A)}return a(h,s)},r.utf8border=function(t,e){var r;for((e=e||t.length)>t.length&&(e=t.length),r=e-1;0<=r&&128==(192&t[r]);)r--;return r<0||0===r?e:r+n[t[r]]>e?r:e}},{"./common":41}],43:[function(t,e,r){e.exports=function(t,e,r,s){for(var A=65535&t|0,i=t>>>16&65535|0,n=0;0!==r;){for(r-=n=2e3<r?2e3:r;i=i+(A=A+e[s++]|0)|0,--n;);A%=65521,i%=65521}return A|i<<16|0}},{}],44:[function(t,e,r){e.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(t,e,r){var s=function(){for(var t,e=[],r=0;r<256;r++){t=r;for(var s=0;s<8;s++)t=1&t?3988292384^t>>>1:t>>>1;e[r]=t}return e}();e.exports=function(t,e,r,A){var i=s,n=A+r;t^=-1;for(var o=A;o<n;o++)t=t>>>8^i[255&(t^e[o])];return-1^t}},{}],46:[function(t,e,r){var s,A=t("../utils/common"),i=t("./trees"),n=t("./adler32"),o=t("./crc32"),a=t("./messages"),h=-2,l=258,c=262,u=113;function d(t,e){return t.msg=a[e],e}function p(t){return(t<<1)-(4<t?9:0)}function g(t){for(var e=t.length;0<=--e;)t[e]=0}function f(t){var e=t.state,r=e.pending;r>t.avail_out&&(r=t.avail_out),0!==r&&(A.arraySet(t.output,e.pending_buf,e.pending_out,r,t.next_out),t.next_out+=r,e.pending_out+=r,t.total_out+=r,t.avail_out-=r,e.pending-=r,0===e.pending&&(e.pending_out=0))}function _(t,e){i._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,f(t.strm)}function m(t,e){t.pending_buf[t.pending++]=e}function w(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function B(t,e){var r,s,A=t.max_chain_length,i=t.strstart,n=t.prev_length,o=t.nice_match,a=t.strstart>t.w_size-c?t.strstart-(t.w_size-c):0,h=t.window,u=t.w_mask,d=t.prev,p=t.strstart+l,g=h[i+n-1],f=h[i+n];t.prev_length>=t.good_match&&(A>>=2),o>t.lookahead&&(o=t.lookahead);do{if(h[(r=e)+n]===f&&h[r+n-1]===g&&h[r]===h[i]&&h[++r]===h[i+1]){i+=2,r++;do{}while(h[++i]===h[++r]&&h[++i]===h[++r]&&h[++i]===h[++r]&&h[++i]===h[++r]&&h[++i]===h[++r]&&h[++i]===h[++r]&&h[++i]===h[++r]&&h[++i]===h[++r]&&i<p);if(s=l-(p-i),i=p-l,n<s){if(t.match_start=e,o<=(n=s))break;g=h[i+n-1],f=h[i+n]}}}while((e=d[e&u])>a&&0!=--A);return n<=t.lookahead?n:t.lookahead}function C(t){var e,r,s,i,a,h,l,u,d,p,g=t.w_size;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=g+(g-c)){for(A.arraySet(t.window,t.window,g,g,0),t.match_start-=g,t.strstart-=g,t.block_start-=g,e=r=t.hash_size;s=t.head[--e],t.head[e]=g<=s?s-g:0,--r;);for(e=r=g;s=t.prev[--e],t.prev[e]=g<=s?s-g:0,--r;);i+=g}if(0===t.strm.avail_in)break;if(h=t.strm,l=t.window,u=t.strstart+t.lookahead,p=void 0,(d=i)<(p=h.avail_in)&&(p=d),r=0===p?0:(h.avail_in-=p,A.arraySet(l,h.input,h.next_in,p,u),1===h.state.wrap?h.adler=n(h.adler,l,p,u):2===h.state.wrap&&(h.adler=o(h.adler,l,p,u)),h.next_in+=p,h.total_in+=p,p),t.lookahead+=r,t.lookahead+t.insert>=3)for(a=t.strstart-t.insert,t.ins_h=t.window[a],t.ins_h=(t.ins_h<<t.hash_shift^t.window[a+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[a+3-1])&t.hash_mask,t.prev[a&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=a,a++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<c&&0!==t.strm.avail_in)}function y(t,e){for(var r,s;;){if(t.lookahead<c){if(C(t),t.lookahead<c&&0===e)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==r&&t.strstart-r<=t.w_size-c&&(t.match_length=B(t,r)),t.match_length>=3)if(s=i._tr_tally(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart,0!=--t.match_length;);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else s=i._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(s&&(_(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(_(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(_(t,!1),0===t.strm.avail_out)?1:2}function v(t,e){for(var r,s,A;;){if(t.lookahead<c){if(C(t),t.lookahead<c&&0===e)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==r&&t.prev_length<t.max_lazy_match&&t.strstart-r<=t.w_size-c&&(t.match_length=B(t,r),t.match_length<=5&&(1===t.strategy||3===t.match_length&&4096<t.strstart-t.match_start)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){for(A=t.strstart+t.lookahead-3,s=i._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=A&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!=--t.prev_length;);if(t.match_available=0,t.match_length=2,t.strstart++,s&&(_(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((s=i._tr_tally(t,0,t.window[t.strstart-1]))&&_(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(s=i._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(_(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(_(t,!1),0===t.strm.avail_out)?1:2}function E(t,e,r,s,A){this.good_length=t,this.max_lazy=e,this.nice_length=r,this.max_chain=s,this.func=A}function b(){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=8,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 A.Buf16(1146),this.dyn_dtree=new A.Buf16(122),this.bl_tree=new A.Buf16(78),g(this.dyn_ltree),g(this.dyn_dtree),g(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new A.Buf16(16),this.heap=new A.Buf16(573),g(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new A.Buf16(573),g(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 x(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=2,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:u,t.adler=2===e.wrap?0:1,e.last_flush=0,i._tr_init(e),0):d(t,h)}function P(t){var e=x(t);return 0===e&&function(t){t.window_size=2*t.w_size,g(t.head),t.max_lazy_match=s[t.level].max_lazy,t.good_match=s[t.level].good_length,t.nice_match=s[t.level].nice_length,t.max_chain_length=s[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0}(t.state),e}function I(t,e,r,s,i,n){if(!t)return h;var o=1;if(-1===e&&(e=6),s<0?(o=0,s=-s):15<s&&(o=2,s-=16),i<1||9<i||8!==r||s<8||15<s||e<0||9<e||n<0||4<n)return d(t,h);8===s&&(s=9);var a=new b;return(t.state=a).strm=t,a.wrap=o,a.gzhead=null,a.w_bits=s,a.w_size=1<<a.w_bits,a.w_mask=a.w_size-1,a.hash_bits=i+7,a.hash_size=1<<a.hash_bits,a.hash_mask=a.hash_size-1,a.hash_shift=~~((a.hash_bits+3-1)/3),a.window=new A.Buf8(2*a.w_size),a.head=new A.Buf16(a.hash_size),a.prev=new A.Buf16(a.w_size),a.lit_bufsize=1<<i+6,a.pending_buf_size=4*a.lit_bufsize,a.pending_buf=new A.Buf8(a.pending_buf_size),a.d_buf=1*a.lit_bufsize,a.l_buf=3*a.lit_bufsize,a.level=e,a.strategy=n,a.method=r,P(t)}s=[new E(0,0,0,0,(function(t,e){var r=65535;for(r>t.pending_buf_size-5&&(r=t.pending_buf_size-5);;){if(t.lookahead<=1){if(C(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var s=t.block_start+r;if((0===t.strstart||t.strstart>=s)&&(t.lookahead=t.strstart-s,t.strstart=s,_(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-c&&(_(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(_(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(_(t,!1),t.strm.avail_out),1)})),new E(4,4,8,4,y),new E(4,5,16,8,y),new E(4,6,32,32,y),new E(4,4,16,16,v),new E(8,16,32,32,v),new E(8,16,128,128,v),new E(8,32,128,256,v),new E(32,128,258,1024,v),new E(32,258,258,4096,v)],r.deflateInit=function(t,e){return I(t,e,8,15,8,0)},r.deflateInit2=I,r.deflateReset=P,r.deflateResetKeep=x,r.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?h:(t.state.gzhead=e,0):h},r.deflate=function(t,e){var r,A,n,a;if(!t||!t.state||5<e||e<0)return t?d(t,h):h;if(A=t.state,!t.output||!t.input&&0!==t.avail_in||666===A.status&&4!==e)return d(t,0===t.avail_out?-5:h);if(A.strm=t,r=A.last_flush,A.last_flush=e,42===A.status)if(2===A.wrap)t.adler=0,m(A,31),m(A,139),m(A,8),A.gzhead?(m(A,(A.gzhead.text?1:0)+(A.gzhead.hcrc?2:0)+(A.gzhead.extra?4:0)+(A.gzhead.name?8:0)+(A.gzhead.comment?16:0)),m(A,255&A.gzhead.time),m(A,A.gzhead.time>>8&255),m(A,A.gzhead.time>>16&255),m(A,A.gzhead.time>>24&255),m(A,9===A.level?2:2<=A.strategy||A.level<2?4:0),m(A,255&A.gzhead.os),A.gzhead.extra&&A.gzhead.extra.length&&(m(A,255&A.gzhead.extra.length),m(A,A.gzhead.extra.length>>8&255)),A.gzhead.hcrc&&(t.adler=o(t.adler,A.pending_buf,A.pending,0)),A.gzindex=0,A.status=69):(m(A,0),m(A,0),m(A,0),m(A,0),m(A,0),m(A,9===A.level?2:2<=A.strategy||A.level<2?4:0),m(A,3),A.status=u);else{var c=8+(A.w_bits-8<<4)<<8;c|=(2<=A.strategy||A.level<2?0:A.level<6?1:6===A.level?2:3)<<6,0!==A.strstart&&(c|=32),c+=31-c%31,A.status=u,w(A,c),0!==A.strstart&&(w(A,t.adler>>>16),w(A,65535&t.adler)),t.adler=1}if(69===A.status)if(A.gzhead.extra){for(n=A.pending;A.gzindex<(65535&A.gzhead.extra.length)&&(A.pending!==A.pending_buf_size||(A.gzhead.hcrc&&A.pending>n&&(t.adler=o(t.adler,A.pending_buf,A.pending-n,n)),f(t),n=A.pending,A.pending!==A.pending_buf_size));)m(A,255&A.gzhead.extra[A.gzindex]),A.gzindex++;A.gzhead.hcrc&&A.pending>n&&(t.adler=o(t.adler,A.pending_buf,A.pending-n,n)),A.gzindex===A.gzhead.extra.length&&(A.gzindex=0,A.status=73)}else A.status=73;if(73===A.status)if(A.gzhead.name){n=A.pending;do{if(A.pending===A.pending_buf_size&&(A.gzhead.hcrc&&A.pending>n&&(t.adler=o(t.adler,A.pending_buf,A.pending-n,n)),f(t),n=A.pending,A.pending===A.pending_buf_size)){a=1;break}a=A.gzindex<A.gzhead.name.length?255&A.gzhead.name.charCodeAt(A.gzindex++):0,m(A,a)}while(0!==a);A.gzhead.hcrc&&A.pending>n&&(t.adler=o(t.adler,A.pending_buf,A.pending-n,n)),0===a&&(A.gzindex=0,A.status=91)}else A.status=91;if(91===A.status)if(A.gzhead.comment){n=A.pending;do{if(A.pending===A.pending_buf_size&&(A.gzhead.hcrc&&A.pending>n&&(t.adler=o(t.adler,A.pending_buf,A.pending-n,n)),f(t),n=A.pending,A.pending===A.pending_buf_size)){a=1;break}a=A.gzindex<A.gzhead.comment.length?255&A.gzhead.comment.charCodeAt(A.gzindex++):0,m(A,a)}while(0!==a);A.gzhead.hcrc&&A.pending>n&&(t.adler=o(t.adler,A.pending_buf,A.pending-n,n)),0===a&&(A.status=103)}else A.status=103;if(103===A.status&&(A.gzhead.hcrc?(A.pending+2>A.pending_buf_size&&f(t),A.pending+2<=A.pending_buf_size&&(m(A,255&t.adler),m(A,t.adler>>8&255),t.adler=0,A.status=u)):A.status=u),0!==A.pending){if(f(t),0===t.avail_out)return A.last_flush=-1,0}else if(0===t.avail_in&&p(e)<=p(r)&&4!==e)return d(t,-5);if(666===A.status&&0!==t.avail_in)return d(t,-5);if(0!==t.avail_in||0!==A.lookahead||0!==e&&666!==A.status){var B=2===A.strategy?function(t,e){for(var r;;){if(0===t.lookahead&&(C(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,r=i._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(_(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(_(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(_(t,!1),0===t.strm.avail_out)?1:2}(A,e):3===A.strategy?function(t,e){for(var r,s,A,n,o=t.window;;){if(t.lookahead<=l){if(C(t),t.lookahead<=l&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&0<t.strstart&&(s=o[A=t.strstart-1])===o[++A]&&s===o[++A]&&s===o[++A]){n=t.strstart+l;do{}while(s===o[++A]&&s===o[++A]&&s===o[++A]&&s===o[++A]&&s===o[++A]&&s===o[++A]&&s===o[++A]&&s===o[++A]&&A<n);t.match_length=l-(n-A),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(r=i._tr_tally(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=i._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(_(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(_(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(_(t,!1),0===t.strm.avail_out)?1:2}(A,e):s[A.level].func(A,e);if(3!==B&&4!==B||(A.status=666),1===B||3===B)return 0===t.avail_out&&(A.last_flush=-1),0;if(2===B&&(1===e?i._tr_align(A):5!==e&&(i._tr_stored_block(A,0,0,!1),3===e&&(g(A.head),0===A.lookahead&&(A.strstart=0,A.block_start=0,A.insert=0))),f(t),0===t.avail_out))return A.last_flush=-1,0}return 4!==e?0:A.wrap<=0?1:(2===A.wrap?(m(A,255&t.adler),m(A,t.adler>>8&255),m(A,t.adler>>16&255),m(A,t.adler>>24&255),m(A,255&t.total_in),m(A,t.total_in>>8&255),m(A,t.total_in>>16&255),m(A,t.total_in>>24&255)):(w(A,t.adler>>>16),w(A,65535&t.adler)),f(t),0<A.wrap&&(A.wrap=-A.wrap),0!==A.pending?0:1)},r.deflateEnd=function(t){var e;return t&&t.state?42!==(e=t.state.status)&&69!==e&&73!==e&&91!==e&&103!==e&&e!==u&&666!==e?d(t,h):(t.state=null,e===u?d(t,-3):0):h},r.deflateSetDictionary=function(t,e){var r,s,i,o,a,l,c,u,d=e.length;if(!t||!t.state)return h;if(2===(o=(r=t.state).wrap)||1===o&&42!==r.status||r.lookahead)return h;for(1===o&&(t.adler=n(t.adler,e,d,0)),r.wrap=0,d>=r.w_size&&(0===o&&(g(r.head),r.strstart=0,r.block_start=0,r.insert=0),u=new A.Buf8(r.w_size),A.arraySet(u,e,d-r.w_size,r.w_size,0),e=u,d=r.w_size),a=t.avail_in,l=t.next_in,c=t.input,t.avail_in=d,t.next_in=0,t.input=e,C(r);r.lookahead>=3;){for(s=r.strstart,i=r.lookahead-2;r.ins_h=(r.ins_h<<r.hash_shift^r.window[s+3-1])&r.hash_mask,r.prev[s&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=s,s++,--i;);r.strstart=s,r.lookahead=2,C(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,t.next_in=l,t.input=c,t.avail_in=a,r.wrap=o,0},r.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(t,e,r){e.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(t,e,r){e.exports=function(t,e){var r,s,A,i,n,o,a,h,l,c,u,d,p,g,f,_,m,w,B,C,y,v,E,b,x;r=t.state,s=t.next_in,b=t.input,A=s+(t.avail_in-5),i=t.next_out,x=t.output,n=i-(e-t.avail_out),o=i+(t.avail_out-257),a=r.dmax,h=r.wsize,l=r.whave,c=r.wnext,u=r.window,d=r.hold,p=r.bits,g=r.lencode,f=r.distcode,_=(1<<r.lenbits)-1,m=(1<<r.distbits)-1;t:do{p<15&&(d+=b[s++]<<p,p+=8,d+=b[s++]<<p,p+=8),w=g[d&_];e:for(;;){if(d>>>=B=w>>>24,p-=B,0==(B=w>>>16&255))x[i++]=65535&w;else{if(!(16&B)){if(0==(64&B)){w=g[(65535&w)+(d&(1<<B)-1)];continue e}if(32&B){r.mode=12;break t}t.msg="invalid literal/length code",r.mode=30;break t}C=65535&w,(B&=15)&&(p<B&&(d+=b[s++]<<p,p+=8),C+=d&(1<<B)-1,d>>>=B,p-=B),p<15&&(d+=b[s++]<<p,p+=8,d+=b[s++]<<p,p+=8),w=f[d&m];r:for(;;){if(d>>>=B=w>>>24,p-=B,!(16&(B=w>>>16&255))){if(0==(64&B)){w=f[(65535&w)+(d&(1<<B)-1)];continue r}t.msg="invalid distance code",r.mode=30;break t}if(y=65535&w,p<(B&=15)&&(d+=b[s++]<<p,(p+=8)<B&&(d+=b[s++]<<p,p+=8)),a<(y+=d&(1<<B)-1)){t.msg="invalid distance too far back",r.mode=30;break t}if(d>>>=B,p-=B,(B=i-n)<y){if(l<(B=y-B)&&r.sane){t.msg="invalid distance too far back",r.mode=30;break t}if(E=u,(v=0)===c){if(v+=h-B,B<C){for(C-=B;x[i++]=u[v++],--B;);v=i-y,E=x}}else if(c<B){if(v+=h+c-B,(B-=c)<C){for(C-=B;x[i++]=u[v++],--B;);if(v=0,c<C){for(C-=B=c;x[i++]=u[v++],--B;);v=i-y,E=x}}}else if(v+=c-B,B<C){for(C-=B;x[i++]=u[v++],--B;);v=i-y,E=x}for(;2<C;)x[i++]=E[v++],x[i++]=E[v++],x[i++]=E[v++],C-=3;C&&(x[i++]=E[v++],1<C&&(x[i++]=E[v++]))}else{for(v=i-y;x[i++]=x[v++],x[i++]=x[v++],x[i++]=x[v++],2<(C-=3););C&&(x[i++]=x[v++],1<C&&(x[i++]=x[v++]))}break}}break}}while(s<A&&i<o);s-=C=p>>3,d&=(1<<(p-=C<<3))-1,t.next_in=s,t.next_out=i,t.avail_in=s<A?A-s+5:5-(s-A),t.avail_out=i<o?o-i+257:257-(i-o),r.hold=d,r.bits=p}},{}],49:[function(t,e,r){var s=t("../utils/common"),A=t("./adler32"),i=t("./crc32"),n=t("./inffast"),o=t("./inftrees"),a=-2;function h(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function l(){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 s.Buf16(320),this.work=new s.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function c(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=1,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new s.Buf32(852),e.distcode=e.distdyn=new s.Buf32(592),e.sane=1,e.back=-1,0):a}function u(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,c(t)):a}function d(t,e){var r,s;return t&&t.state?(s=t.state,e<0?(r=0,e=-e):(r=1+(e>>4),e<48&&(e&=15)),e&&(e<8||15<e)?a:(null!==s.window&&s.wbits!==e&&(s.window=null),s.wrap=r,s.wbits=e,u(t))):a}function p(t,e){var r,s;return t?(s=new l,(t.state=s).window=null,0!==(r=d(t,e))&&(t.state=null),r):a}var g,f,_=!0;function m(t){if(_){var e;for(g=new s.Buf32(512),f=new s.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(o(1,t.lens,0,288,g,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;o(2,t.lens,0,32,f,0,t.work,{bits:5}),_=!1}t.lencode=g,t.lenbits=9,t.distcode=f,t.distbits=5}function w(t,e,r,A){var i,n=t.state;return null===n.window&&(n.wsize=1<<n.wbits,n.wnext=0,n.whave=0,n.window=new s.Buf8(n.wsize)),A>=n.wsize?(s.arraySet(n.window,e,r-n.wsize,n.wsize,0),n.wnext=0,n.whave=n.wsize):(A<(i=n.wsize-n.wnext)&&(i=A),s.arraySet(n.window,e,r-A,i,n.wnext),(A-=i)?(s.arraySet(n.window,e,r-A,A,0),n.wnext=A,n.whave=n.wsize):(n.wnext+=i,n.wnext===n.wsize&&(n.wnext=0),n.whave<n.wsize&&(n.whave+=i))),0}r.inflateReset=u,r.inflateReset2=d,r.inflateResetKeep=c,r.inflateInit=function(t){return p(t,15)},r.inflateInit2=p,r.inflate=function(t,e){var r,l,c,u,d,p,g,f,_,B,C,y,v,E,b,x,P,I,S,T,F,R,O,Q,D=0,L=new s.Buf8(4),U=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return a;12===(r=t.state).mode&&(r.mode=13),d=t.next_out,c=t.output,g=t.avail_out,u=t.next_in,l=t.input,p=t.avail_in,f=r.hold,_=r.bits,B=p,C=g,R=0;t:for(;;)switch(r.mode){case 1:if(0===r.wrap){r.mode=13;break}for(;_<16;){if(0===p)break t;p--,f+=l[u++]<<_,_+=8}if(2&r.wrap&&35615===f){L[r.check=0]=255&f,L[1]=f>>>8&255,r.check=i(r.check,L,2,0),_=f=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&f)<<8)+(f>>8))%31){t.msg="incorrect header check",r.mode=30;break}if(8!=(15&f)){t.msg="unknown compression method",r.mode=30;break}if(_-=4,F=8+(15&(f>>>=4)),0===r.wbits)r.wbits=F;else if(F>r.wbits){t.msg="invalid window size",r.mode=30;break}r.dmax=1<<F,t.adler=r.check=1,r.mode=512&f?10:12,_=f=0;break;case 2:for(;_<16;){if(0===p)break t;p--,f+=l[u++]<<_,_+=8}if(r.flags=f,8!=(255&r.flags)){t.msg="unknown compression method",r.mode=30;break}if(57344&r.flags){t.msg="unknown header flags set",r.mode=30;break}r.head&&(r.head.text=f>>8&1),512&r.flags&&(L[0]=255&f,L[1]=f>>>8&255,r.check=i(r.check,L,2,0)),_=f=0,r.mode=3;case 3:for(;_<32;){if(0===p)break t;p--,f+=l[u++]<<_,_+=8}r.head&&(r.head.time=f),512&r.flags&&(L[0]=255&f,L[1]=f>>>8&255,L[2]=f>>>16&255,L[3]=f>>>24&255,r.check=i(r.check,L,4,0)),_=f=0,r.mode=4;case 4:for(;_<16;){if(0===p)break t;p--,f+=l[u++]<<_,_+=8}r.head&&(r.head.xflags=255&f,r.head.os=f>>8),512&r.flags&&(L[0]=255&f,L[1]=f>>>8&255,r.check=i(r.check,L,2,0)),_=f=0,r.mode=5;case 5:if(1024&r.flags){for(;_<16;){if(0===p)break t;p--,f+=l[u++]<<_,_+=8}r.length=f,r.head&&(r.head.extra_len=f),512&r.flags&&(L[0]=255&f,L[1]=f>>>8&255,r.check=i(r.check,L,2,0)),_=f=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&(p<(y=r.length)&&(y=p),y&&(r.head&&(F=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),s.arraySet(r.head.extra,l,u,y,F)),512&r.flags&&(r.check=i(r.check,l,y,u)),p-=y,u+=y,r.length-=y),r.length))break t;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===p)break t;for(y=0;F=l[u+y++],r.head&&F&&r.length<65536&&(r.head.name+=String.fromCharCode(F)),F&&y<p;);if(512&r.flags&&(r.check=i(r.check,l,y,u)),p-=y,u+=y,F)break t}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===p)break t;for(y=0;F=l[u+y++],r.head&&F&&r.length<65536&&(r.head.comment+=String.fromCharCode(F)),F&&y<p;);if(512&r.flags&&(r.check=i(r.check,l,y,u)),p-=y,u+=y,F)break t}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;_<16;){if(0===p)break t;p--,f+=l[u++]<<_,_+=8}if(f!==(65535&r.check)){t.msg="header crc mismatch",r.mode=30;break}_=f=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=12;break;case 10:for(;_<32;){if(0===p)break t;p--,f+=l[u++]<<_,_+=8}t.adler=r.check=h(f),_=f=0,r.mode=11;case 11:if(0===r.havedict)return t.next_out=d,t.avail_out=g,t.next_in=u,t.avail_in=p,r.hold=f,r.bits=_,2;t.adler=r.check=1,r.mode=12;case 12:if(5===e||6===e)break t;case 13:if(r.last){f>>>=7&_,_-=7&_,r.mode=27;break}for(;_<3;){if(0===p)break t;p--,f+=l[u++]<<_,_+=8}switch(r.last=1&f,_-=1,3&(f>>>=1)){case 0:r.mode=14;break;case 1:if(m(r),r.mode=20,6!==e)break;f>>>=2,_-=2;break t;case 2:r.mode=17;break;case 3:t.msg="invalid block type",r.mode=30}f>>>=2,_-=2;break;case 14:for(f>>>=7&_,_-=7&_;_<32;){if(0===p)break t;p--,f+=l[u++]<<_,_+=8}if((65535&f)!=(f>>>16^65535)){t.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&f,_=f=0,r.mode=15,6===e)break t;case 15:r.mode=16;case 16:if(y=r.length){if(p<y&&(y=p),g<y&&(y=g),0===y)break t;s.arraySet(c,l,u,y,d),p-=y,u+=y,g-=y,d+=y,r.length-=y;break}r.mode=12;break;case 17:for(;_<14;){if(0===p)break t;p--,f+=l[u++]<<_,_+=8}if(r.nlen=257+(31&f),f>>>=5,_-=5,r.ndist=1+(31&f),f>>>=5,_-=5,r.ncode=4+(15&f),f>>>=4,_-=4,286<r.nlen||30<r.ndist){t.msg="too many length or distance symbols",r.mode=30;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;_<3;){if(0===p)break t;p--,f+=l[u++]<<_,_+=8}r.lens[U[r.have++]]=7&f,f>>>=3,_-=3}for(;r.have<19;)r.lens[U[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,O={bits:r.lenbits},R=o(0,r.lens,0,19,r.lencode,0,r.work,O),r.lenbits=O.bits,R){t.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;x=(D=r.lencode[f&(1<<r.lenbits)-1])>>>16&255,P=65535&D,!((b=D>>>24)<=_);){if(0===p)break t;p--,f+=l[u++]<<_,_+=8}if(P<16)f>>>=b,_-=b,r.lens[r.have++]=P;else{if(16===P){for(Q=b+2;_<Q;){if(0===p)break t;p--,f+=l[u++]<<_,_+=8}if(f>>>=b,_-=b,0===r.have){t.msg="invalid bit length repeat",r.mode=30;break}F=r.lens[r.have-1],y=3+(3&f),f>>>=2,_-=2}else if(17===P){for(Q=b+3;_<Q;){if(0===p)break t;p--,f+=l[u++]<<_,_+=8}_-=b,F=0,y=3+(7&(f>>>=b)),f>>>=3,_-=3}else{for(Q=b+7;_<Q;){if(0===p)break t;p--,f+=l[u++]<<_,_+=8}_-=b,F=0,y=11+(127&(f>>>=b)),f>>>=7,_-=7}if(r.have+y>r.nlen+r.ndist){t.msg="invalid bit length repeat",r.mode=30;break}for(;y--;)r.lens[r.have++]=F}}if(30===r.mode)break;if(0===r.lens[256]){t.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,O={bits:r.lenbits},R=o(1,r.lens,0,r.nlen,r.lencode,0,r.work,O),r.lenbits=O.bits,R){t.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,O={bits:r.distbits},R=o(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,O),r.distbits=O.bits,R){t.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===e)break t;case 20:r.mode=21;case 21:if(6<=p&&258<=g){t.next_out=d,t.avail_out=g,t.next_in=u,t.avail_in=p,r.hold=f,r.bits=_,n(t,C),d=t.next_out,c=t.output,g=t.avail_out,u=t.next_in,l=t.input,p=t.avail_in,f=r.hold,_=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;x=(D=r.lencode[f&(1<<r.lenbits)-1])>>>16&255,P=65535&D,!((b=D>>>24)<=_);){if(0===p)break t;p--,f+=l[u++]<<_,_+=8}if(x&&0==(240&x)){for(I=b,S=x,T=P;x=(D=r.lencode[T+((f&(1<<I+S)-1)>>I)])>>>16&255,P=65535&D,!(I+(b=D>>>24)<=_);){if(0===p)break t;p--,f+=l[u++]<<_,_+=8}f>>>=I,_-=I,r.back+=I}if(f>>>=b,_-=b,r.back+=b,r.length=P,0===x){r.mode=26;break}if(32&x){r.back=-1,r.mode=12;break}if(64&x){t.msg="invalid literal/length code",r.mode=30;break}r.extra=15&x,r.mode=22;case 22:if(r.extra){for(Q=r.extra;_<Q;){if(0===p)break t;p--,f+=l[u++]<<_,_+=8}r.length+=f&(1<<r.extra)-1,f>>>=r.extra,_-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;x=(D=r.distcode[f&(1<<r.distbits)-1])>>>16&255,P=65535&D,!((b=D>>>24)<=_);){if(0===p)break t;p--,f+=l[u++]<<_,_+=8}if(0==(240&x)){for(I=b,S=x,T=P;x=(D=r.distcode[T+((f&(1<<I+S)-1)>>I)])>>>16&255,P=65535&D,!(I+(b=D>>>24)<=_);){if(0===p)break t;p--,f+=l[u++]<<_,_+=8}f>>>=I,_-=I,r.back+=I}if(f>>>=b,_-=b,r.back+=b,64&x){t.msg="invalid distance code",r.mode=30;break}r.offset=P,r.extra=15&x,r.mode=24;case 24:if(r.extra){for(Q=r.extra;_<Q;){if(0===p)break t;p--,f+=l[u++]<<_,_+=8}r.offset+=f&(1<<r.extra)-1,f>>>=r.extra,_-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===g)break t;if(y=C-g,r.offset>y){if((y=r.offset-y)>r.whave&&r.sane){t.msg="invalid distance too far back",r.mode=30;break}v=y>r.wnext?(y-=r.wnext,r.wsize-y):r.wnext-y,y>r.length&&(y=r.length),E=r.window}else E=c,v=d-r.offset,y=r.length;for(g<y&&(y=g),g-=y,r.length-=y;c[d++]=E[v++],--y;);0===r.length&&(r.mode=21);break;case 26:if(0===g)break t;c[d++]=r.length,g--,r.mode=21;break;case 27:if(r.wrap){for(;_<32;){if(0===p)break t;p--,f|=l[u++]<<_,_+=8}if(C-=g,t.total_out+=C,r.total+=C,C&&(t.adler=r.check=r.flags?i(r.check,c,C,d-C):A(r.check,c,C,d-C)),C=g,(r.flags?f:h(f))!==r.check){t.msg="incorrect data check",r.mode=30;break}_=f=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;_<32;){if(0===p)break t;p--,f+=l[u++]<<_,_+=8}if(f!==(4294967295&r.total)){t.msg="incorrect length check",r.mode=30;break}_=f=0}r.mode=29;case 29:R=1;break t;case 30:R=-3;break t;case 31:return-4;default:return a}return t.next_out=d,t.avail_out=g,t.next_in=u,t.avail_in=p,r.hold=f,r.bits=_,(r.wsize||C!==t.avail_out&&r.mode<30&&(r.mode<27||4!==e))&&w(t,t.output,t.next_out,C-t.avail_out)?(r.mode=31,-4):(B-=t.avail_in,C-=t.avail_out,t.total_in+=B,t.total_out+=C,r.total+=C,r.wrap&&C&&(t.adler=r.check=r.flags?i(r.check,c,C,t.next_out-C):A(r.check,c,C,t.next_out-C)),t.data_type=r.bits+(r.last?64:0)+(12===r.mode?128:0)+(20===r.mode||15===r.mode?256:0),(0==B&&0===C||4===e)&&0===R&&(R=-5),R)},r.inflateEnd=function(t){if(!t||!t.state)return a;var e=t.state;return e.window&&(e.window=null),t.state=null,0},r.inflateGetHeader=function(t,e){var r;return t&&t.state?0==(2&(r=t.state).wrap)?a:((r.head=e).done=!1,0):a},r.inflateSetDictionary=function(t,e){var r,s=e.length;return t&&t.state?0!==(r=t.state).wrap&&11!==r.mode?a:11===r.mode&&A(1,e,s,0)!==r.check?-3:w(t,e,s,s)?(r.mode=31,-4):(r.havedict=1,0):a},r.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(t,e,r){var s=t("../utils/common"),A=[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],i=[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],n=[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],o=[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];e.exports=function(t,e,r,a,h,l,c,u){var d,p,g,f,_,m,w,B,C,y=u.bits,v=0,E=0,b=0,x=0,P=0,I=0,S=0,T=0,F=0,R=0,O=null,Q=0,D=new s.Buf16(16),L=new s.Buf16(16),U=null,H=0;for(v=0;v<=15;v++)D[v]=0;for(E=0;E<a;E++)D[e[r+E]]++;for(P=y,x=15;1<=x&&0===D[x];x--);if(x<P&&(P=x),0===x)return h[l++]=20971520,h[l++]=20971520,u.bits=1,0;for(b=1;b<x&&0===D[b];b++);for(P<b&&(P=b),v=T=1;v<=15;v++)if(T<<=1,(T-=D[v])<0)return-1;if(0<T&&(0===t||1!==x))return-1;for(L[1]=0,v=1;v<15;v++)L[v+1]=L[v]+D[v];for(E=0;E<a;E++)0!==e[r+E]&&(c[L[e[r+E]]++]=E);if(m=0===t?(O=U=c,19):1===t?(O=A,Q-=257,U=i,H-=257,256):(O=n,U=o,-1),v=b,_=l,S=E=R=0,g=-1,f=(F=1<<(I=P))-1,1===t&&852<F||2===t&&592<F)return 1;for(;;){for(w=v-S,C=c[E]<m?(B=0,c[E]):c[E]>m?(B=U[H+c[E]],O[Q+c[E]]):(B=96,0),d=1<<v-S,b=p=1<<I;h[_+(R>>S)+(p-=d)]=w<<24|B<<16|C|0,0!==p;);for(d=1<<v-1;R&d;)d>>=1;if(0!==d?(R&=d-1,R+=d):R=0,E++,0==--D[v]){if(v===x)break;v=e[r+c[E]]}if(P<v&&(R&f)!==g){for(0===S&&(S=P),_+=b,T=1<<(I=v-S);I+S<x&&!((T-=D[I+S])<=0);)I++,T<<=1;if(F+=1<<I,1===t&&852<F||2===t&&592<F)return 1;h[g=R&f]=P<<24|I<<16|_-l|0}}return 0!==R&&(h[_+R]=v-S<<24|64<<16|0),u.bits=P,0}},{"../utils/common":41}],51:[function(t,e,r){e.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(t,e,r){var s=t("../utils/common");function A(t){for(var e=t.length;0<=--e;)t[e]=0}var i=256,n=286,o=30,a=15,h=[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],l=[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],c=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],u=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],d=new Array(576);A(d);var p=new Array(60);A(p);var g=new Array(512);A(g);var f=new Array(256);A(f);var _=new Array(29);A(_);var m,w,B,C=new Array(o);function y(t,e,r,s,A){this.static_tree=t,this.extra_bits=e,this.extra_base=r,this.elems=s,this.max_length=A,this.has_stree=t&&t.length}function v(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function E(t){return t<256?g[t]:g[256+(t>>>7)]}function b(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function x(t,e,r){t.bi_valid>16-r?(t.bi_buf|=e<<t.bi_valid&65535,b(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=r-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=r)}function P(t,e,r){x(t,r[2*e],r[2*e+1])}function I(t,e){for(var r=0;r|=1&t,t>>>=1,r<<=1,0<--e;);return r>>>1}function S(t,e,r){var s,A,i=new Array(16),n=0;for(s=1;s<=a;s++)i[s]=n=n+r[s-1]<<1;for(A=0;A<=e;A++){var o=t[2*A+1];0!==o&&(t[2*A]=I(i[o]++,o))}}function T(t){var e;for(e=0;e<n;e++)t.dyn_ltree[2*e]=0;for(e=0;e<o;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function F(t){8<t.bi_valid?b(t,t.bi_buf):0<t.bi_valid&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function R(t,e,r,s){var A=2*e,i=2*r;return t[A]<t[i]||t[A]===t[i]&&s[e]<=s[r]}function O(t,e,r){for(var s=t.heap[r],A=r<<1;A<=t.heap_len&&(A<t.heap_len&&R(e,t.heap[A+1],t.heap[A],t.depth)&&A++,!R(e,s,t.heap[A],t.depth));)t.heap[r]=t.heap[A],r=A,A<<=1;t.heap[r]=s}function Q(t,e,r){var s,A,n,o,a=0;if(0!==t.last_lit)for(;s=t.pending_buf[t.d_buf+2*a]<<8|t.pending_buf[t.d_buf+2*a+1],A=t.pending_buf[t.l_buf+a],a++,0===s?P(t,A,e):(P(t,(n=f[A])+i+1,e),0!==(o=h[n])&&x(t,A-=_[n],o),P(t,n=E(--s),r),0!==(o=l[n])&&x(t,s-=C[n],o)),a<t.last_lit;);P(t,256,e)}function D(t,e){var r,s,A,i=e.dyn_tree,n=e.stat_desc.static_tree,o=e.stat_desc.has_stree,h=e.stat_desc.elems,l=-1;for(t.heap_len=0,t.heap_max=573,r=0;r<h;r++)0!==i[2*r]?(t.heap[++t.heap_len]=l=r,t.depth[r]=0):i[2*r+1]=0;for(;t.heap_len<2;)i[2*(A=t.heap[++t.heap_len]=l<2?++l:0)]=1,t.depth[A]=0,t.opt_len--,o&&(t.static_len-=n[2*A+1]);for(e.max_code=l,r=t.heap_len>>1;1<=r;r--)O(t,i,r);for(A=h;r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],O(t,i,1),s=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=s,i[2*A]=i[2*r]+i[2*s],t.depth[A]=(t.depth[r]>=t.depth[s]?t.depth[r]:t.depth[s])+1,i[2*r+1]=i[2*s+1]=A,t.heap[1]=A++,O(t,i,1),2<=t.heap_len;);t.heap[--t.heap_max]=t.heap[1],function(t,e){var r,s,A,i,n,o,h=e.dyn_tree,l=e.max_code,c=e.stat_desc.static_tree,u=e.stat_desc.has_stree,d=e.stat_desc.extra_bits,p=e.stat_desc.extra_base,g=e.stat_desc.max_length,f=0;for(i=0;i<=a;i++)t.bl_count[i]=0;for(h[2*t.heap[t.heap_max]+1]=0,r=t.heap_max+1;r<573;r++)g<(i=h[2*h[2*(s=t.heap[r])+1]+1]+1)&&(i=g,f++),h[2*s+1]=i,l<s||(t.bl_count[i]++,n=0,p<=s&&(n=d[s-p]),o=h[2*s],t.opt_len+=o*(i+n),u&&(t.static_len+=o*(c[2*s+1]+n)));if(0!==f){do{for(i=g-1;0===t.bl_count[i];)i--;t.bl_count[i]--,t.bl_count[i+1]+=2,t.bl_count[g]--,f-=2}while(0<f);for(i=g;0!==i;i--)for(s=t.bl_count[i];0!==s;)l<(A=t.heap[--r])||(h[2*A+1]!==i&&(t.opt_len+=(i-h[2*A+1])*h[2*A],h[2*A+1]=i),s--)}}(t,e),S(i,l,t.bl_count)}function L(t,e,r){var s,A,i=-1,n=e[1],o=0,a=7,h=4;for(0===n&&(a=138,h=3),e[2*(r+1)+1]=65535,s=0;s<=r;s++)A=n,n=e[2*(s+1)+1],++o<a&&A===n||(o<h?t.bl_tree[2*A]+=o:0!==A?(A!==i&&t.bl_tree[2*A]++,t.bl_tree[32]++):o<=10?t.bl_tree[34]++:t.bl_tree[36]++,i=A,h=(o=0)===n?(a=138,3):A===n?(a=6,3):(a=7,4))}function U(t,e,r){var s,A,i=-1,n=e[1],o=0,a=7,h=4;for(0===n&&(a=138,h=3),s=0;s<=r;s++)if(A=n,n=e[2*(s+1)+1],!(++o<a&&A===n)){if(o<h)for(;P(t,A,t.bl_tree),0!=--o;);else 0!==A?(A!==i&&(P(t,A,t.bl_tree),o--),P(t,16,t.bl_tree),x(t,o-3,2)):o<=10?(P(t,17,t.bl_tree),x(t,o-3,3)):(P(t,18,t.bl_tree),x(t,o-11,7));i=A,h=(o=0)===n?(a=138,3):A===n?(a=6,3):(a=7,4)}}A(C);var H=!1;function N(t,e,r,A){x(t,0+(A?1:0),3),function(t,e,r,A){F(t),b(t,r),b(t,~r),s.arraySet(t.pending_buf,t.window,e,r,t.pending),t.pending+=r}(t,e,r)}r._tr_init=function(t){H||(function(){var t,e,r,s,A,i=new Array(16);for(s=r=0;s<28;s++)for(_[s]=r,t=0;t<1<<h[s];t++)f[r++]=s;for(f[r-1]=s,s=A=0;s<16;s++)for(C[s]=A,t=0;t<1<<l[s];t++)g[A++]=s;for(A>>=7;s<o;s++)for(C[s]=A<<7,t=0;t<1<<l[s]-7;t++)g[256+A++]=s;for(e=0;e<=a;e++)i[e]=0;for(t=0;t<=143;)d[2*t+1]=8,t++,i[8]++;for(;t<=255;)d[2*t+1]=9,t++,i[9]++;for(;t<=279;)d[2*t+1]=7,t++,i[7]++;for(;t<=287;)d[2*t+1]=8,t++,i[8]++;for(S(d,287,i),t=0;t<o;t++)p[2*t+1]=5,p[2*t]=I(t,5);m=new y(d,h,257,n,a),w=new y(p,l,0,o,a),B=new y(new Array(0),c,0,19,7)}(),H=!0),t.l_desc=new v(t.dyn_ltree,m),t.d_desc=new v(t.dyn_dtree,w),t.bl_desc=new v(t.bl_tree,B),t.bi_buf=0,t.bi_valid=0,T(t)},r._tr_stored_block=N,r._tr_flush_block=function(t,e,r,s){var A,n,o=0;0<t.level?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,r=4093624447;for(e=0;e<=31;e++,r>>>=1)if(1&r&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<i;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),D(t,t.l_desc),D(t,t.d_desc),o=function(t){var e;for(L(t,t.dyn_ltree,t.l_desc.max_code),L(t,t.dyn_dtree,t.d_desc.max_code),D(t,t.bl_desc),e=18;3<=e&&0===t.bl_tree[2*u[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),A=t.opt_len+3+7>>>3,(n=t.static_len+3+7>>>3)<=A&&(A=n)):A=n=r+5,r+4<=A&&-1!==e?N(t,e,r,s):4===t.strategy||n===A?(x(t,2+(s?1:0),3),Q(t,d,p)):(x(t,4+(s?1:0),3),function(t,e,r,s){var A;for(x(t,e-257,5),x(t,r-1,5),x(t,s-4,4),A=0;A<s;A++)x(t,t.bl_tree[2*u[A]+1],3);U(t,t.dyn_ltree,e-1),U(t,t.dyn_dtree,r-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,o+1),Q(t,t.dyn_ltree,t.dyn_dtree)),T(t),s&&F(t)},r._tr_tally=function(t,e,r){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&r,t.last_lit++,0===e?t.dyn_ltree[2*r]++:(t.matches++,e--,t.dyn_ltree[2*(f[r]+i+1)]++,t.dyn_dtree[2*E(e)]++),t.last_lit===t.lit_bufsize-1},r._tr_align=function(t){x(t,2,3),P(t,256,d),function(t){16===t.bi_valid?(b(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},{"../utils/common":41}],53:[function(t,e,r){e.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(t,e,r){e.exports="function"==typeof setImmediate?setImmediate:function(){var t=[].slice.apply(arguments);t.splice(1,0,0),setTimeout.apply(null,t)}},{}]},{},[10])(10)},155:t=>{var e,r,s=t.exports={};function A(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function n(t){if(e===setTimeout)return setTimeout(t,0);if((e===A||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(r){try{return e.call(null,t,0)}catch(r){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:A}catch(t){e=A}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(t){r=i}}();var o,a=[],h=!1,l=-1;function c(){h&&o&&(h=!1,o.length?a=o.concat(a):l=-1,a.length&&u())}function u(){if(!h){var t=n(c);h=!0;for(var e=a.length;e;){for(o=a,a=[];++l<e;)o&&o[l].run();l=-1,e=a.length}o=null,h=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function p(){}s.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];a.push(new d(t,e)),1!==a.length||h||n(u)},d.prototype.run=function(){this.fun.apply(null,this.array)},s.title="browser",s.browser=!0,s.env={},s.argv=[],s.version="",s.versions={},s.on=p,s.addListener=p,s.once=p,s.off=p,s.removeListener=p,s.removeAllListeners=p,s.emit=p,s.prependListener=p,s.prependOnceListener=p,s.listeners=function(t){return[]},s.binding=function(t){throw new Error("process.binding is not supported")},s.cwd=function(){return"/"},s.chdir=function(t){throw new Error("process.chdir is not supported")},s.umask=function(){return 0}},509:(t,e,r)=>{var s=r(764),A=s.Buffer;function i(t,e){for(var r in t)e[r]=t[r]}function n(t,e,r){return A(t,e,r)}A.from&&A.alloc&&A.allocUnsafe&&A.allocUnsafeSlow?t.exports=s:(i(s,e),e.Buffer=n),i(A,n),n.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return A(t,e,r)},n.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var s=A(t);return void 0!==e?"string"==typeof r?s.fill(e,r):s.fill(e):s.fill(0),s},n.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return A(t)},n.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return s.SlowBuffer(t)}},99:(t,e,r)=>{!function(t){t.parser=function(t,e){return new A(t,e)},t.SAXParser=A,t.SAXStream=n,t.createStream=function(t,e){return new n(t,e)},t.MAX_BUFFER_LENGTH=65536;var e,s=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function A(e,r){if(!(this instanceof A))return new A(e,r);var i=this;!function(t){for(var e=0,r=s.length;e<r;e++)t[s[e]]=""}(i),i.q=i.c="",i.bufferCheckPosition=t.MAX_BUFFER_LENGTH,i.opt=r||{},i.opt.lowercase=i.opt.lowercase||i.opt.lowercasetags,i.looseCase=i.opt.lowercase?"toLowerCase":"toUpperCase",i.tags=[],i.closed=i.closedRoot=i.sawRoot=!1,i.tag=i.error=null,i.strict=!!e,i.noscript=!(!e&&!i.opt.noscript),i.state=y.BEGIN,i.strictEntities=i.opt.strictEntities,i.ENTITIES=i.strictEntities?Object.create(t.XML_ENTITIES):Object.create(t.ENTITIES),i.attribList=[],i.opt.xmlns&&(i.ns=Object.create(h)),i.trackPosition=!1!==i.opt.position,i.trackPosition&&(i.position=i.line=i.column=0),E(i,"onready")}t.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],Object.create||(Object.create=function(t){function e(){}return e.prototype=t,new e}),Object.keys||(Object.keys=function(t){var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push(r);return e}),A.prototype={end:function(){S(this)},write:function(e){var r=this;if(this.error)throw this.error;if(r.closed)return I(r,"Cannot write after close. Assign an onready handler.");if(null===e)return S(r);"object"==typeof e&&(e=e.toString());for(var A=0,i="";i=H(e,A++),r.c=i,i;)switch(r.trackPosition&&(r.position++,"\n"===i?(r.line++,r.column=0):r.column++),r.state){case y.BEGIN:if(r.state=y.BEGIN_WHITESPACE,"\ufeff"===i)continue;U(r,i);continue;case y.BEGIN_WHITESPACE:U(r,i);continue;case y.TEXT:if(r.sawRoot&&!r.closedRoot){for(var n=A-1;i&&"<"!==i&&"&"!==i;)(i=H(e,A++))&&r.trackPosition&&(r.position++,"\n"===i?(r.line++,r.column=0):r.column++);r.textNode+=e.substring(n,A-1)}"<"!==i||r.sawRoot&&r.closedRoot&&!r.strict?(p(i)||r.sawRoot&&!r.closedRoot||T(r,"Text data outside of root node."),"&"===i?r.state=y.TEXT_ENTITY:r.textNode+=i):(r.state=y.OPEN_WAKA,r.startTagPosition=r.position);continue;case y.SCRIPT:"<"===i?r.state=y.SCRIPT_ENDING:r.script+=i;continue;case y.SCRIPT_ENDING:"/"===i?r.state=y.CLOSE_TAG:(r.script+="<"+i,r.state=y.SCRIPT);continue;case y.OPEN_WAKA:if("!"===i)r.state=y.SGML_DECL,r.sgmlDecl="";else if(p(i));else if(_(l,i))r.state=y.OPEN_TAG,r.tagName=i;else if("/"===i)r.state=y.CLOSE_TAG,r.tagName="";else if("?"===i)r.state=y.PROC_INST,r.procInstName=r.procInstBody="";else{if(T(r,"Unencoded <"),r.startTagPosition+1<r.position){var o=r.position-r.startTagPosition;i=new Array(o).join(" ")+i}r.textNode+="<"+i,r.state=y.TEXT}continue;case y.SGML_DECL:"[CDATA["===(r.sgmlDecl+i).toUpperCase()?(b(r,"onopencdata"),r.state=y.CDATA,r.sgmlDecl="",r.cdata=""):r.sgmlDecl+i==="--"?(r.state=y.COMMENT,r.comment="",r.sgmlDecl=""):"DOCTYPE"===(r.sgmlDecl+i).toUpperCase()?(r.state=y.DOCTYPE,(r.doctype||r.sawRoot)&&T(r,"Inappropriately located doctype declaration"),r.doctype="",r.sgmlDecl=""):">"===i?(b(r,"onsgmldeclaration",r.sgmlDecl),r.sgmlDecl="",r.state=y.TEXT):g(i)?(r.state=y.SGML_DECL_QUOTED,r.sgmlDecl+=i):r.sgmlDecl+=i;continue;case y.SGML_DECL_QUOTED:i===r.q&&(r.state=y.SGML_DECL,r.q=""),r.sgmlDecl+=i;continue;case y.DOCTYPE:">"===i?(r.state=y.TEXT,b(r,"ondoctype",r.doctype),r.doctype=!0):(r.doctype+=i,"["===i?r.state=y.DOCTYPE_DTD:g(i)&&(r.state=y.DOCTYPE_QUOTED,r.q=i));continue;case y.DOCTYPE_QUOTED:r.doctype+=i,i===r.q&&(r.q="",r.state=y.DOCTYPE);continue;case y.DOCTYPE_DTD:r.doctype+=i,"]"===i?r.state=y.DOCTYPE:g(i)&&(r.state=y.DOCTYPE_DTD_QUOTED,r.q=i);continue;case y.DOCTYPE_DTD_QUOTED:r.doctype+=i,i===r.q&&(r.state=y.DOCTYPE_DTD,r.q="");continue;case y.COMMENT:"-"===i?r.state=y.COMMENT_ENDING:r.comment+=i;continue;case y.COMMENT_ENDING:"-"===i?(r.state=y.COMMENT_ENDED,r.comment=P(r.opt,r.comment),r.comment&&b(r,"oncomment",r.comment),r.comment=""):(r.comment+="-"+i,r.state=y.COMMENT);continue;case y.COMMENT_ENDED:">"!==i?(T(r,"Malformed comment"),r.comment+="--"+i,r.state=y.COMMENT):r.state=y.TEXT;continue;case y.CDATA:"]"===i?r.state=y.CDATA_ENDING:r.cdata+=i;continue;case y.CDATA_ENDING:"]"===i?r.state=y.CDATA_ENDING_2:(r.cdata+="]"+i,r.state=y.CDATA);continue;case y.CDATA_ENDING_2:">"===i?(r.cdata&&b(r,"oncdata",r.cdata),b(r,"onclosecdata"),r.cdata="",r.state=y.TEXT):"]"===i?r.cdata+="]":(r.cdata+="]]"+i,r.state=y.CDATA);continue;case y.PROC_INST:"?"===i?r.state=y.PROC_INST_ENDING:p(i)?r.state=y.PROC_INST_BODY:r.procInstName+=i;continue;case y.PROC_INST_BODY:if(!r.procInstBody&&p(i))continue;"?"===i?r.state=y.PROC_INST_ENDING:r.procInstBody+=i;continue;case y.PROC_INST_ENDING:">"===i?(b(r,"onprocessinginstruction",{name:r.procInstName,body:r.procInstBody}),r.procInstName=r.procInstBody="",r.state=y.TEXT):(r.procInstBody+="?"+i,r.state=y.PROC_INST_BODY);continue;case y.OPEN_TAG:_(c,i)?r.tagName+=i:(F(r),">"===i?Q(r):"/"===i?r.state=y.OPEN_TAG_SLASH:(p(i)||T(r,"Invalid character in tag name"),r.state=y.ATTRIB));continue;case y.OPEN_TAG_SLASH:">"===i?(Q(r,!0),D(r)):(T(r,"Forward-slash in opening tag not followed by >"),r.state=y.ATTRIB);continue;case y.ATTRIB:if(p(i))continue;">"===i?Q(r):"/"===i?r.state=y.OPEN_TAG_SLASH:_(l,i)?(r.attribName=i,r.attribValue="",r.state=y.ATTRIB_NAME):T(r,"Invalid attribute name");continue;case y.ATTRIB_NAME:"="===i?r.state=y.ATTRIB_VALUE:">"===i?(T(r,"Attribute without value"),r.attribValue=r.attribName,O(r),Q(r)):p(i)?r.state=y.ATTRIB_NAME_SAW_WHITE:_(c,i)?r.attribName+=i:T(r,"Invalid attribute name");continue;case y.ATTRIB_NAME_SAW_WHITE:if("="===i)r.state=y.ATTRIB_VALUE;else{if(p(i))continue;T(r,"Attribute without value"),r.tag.attributes[r.attribName]="",r.attribValue="",b(r,"onattribute",{name:r.attribName,value:""}),r.attribName="",">"===i?Q(r):_(l,i)?(r.attribName=i,r.state=y.ATTRIB_NAME):(T(r,"Invalid attribute name"),r.state=y.ATTRIB)}continue;case y.ATTRIB_VALUE:if(p(i))continue;g(i)?(r.q=i,r.state=y.ATTRIB_VALUE_QUOTED):(T(r,"Unquoted attribute value"),r.state=y.ATTRIB_VALUE_UNQUOTED,r.attribValue=i);continue;case y.ATTRIB_VALUE_QUOTED:if(i!==r.q){"&"===i?r.state=y.ATTRIB_VALUE_ENTITY_Q:r.attribValue+=i;continue}O(r),r.q="",r.state=y.ATTRIB_VALUE_CLOSED;continue;case y.ATTRIB_VALUE_CLOSED:p(i)?r.state=y.ATTRIB:">"===i?Q(r):"/"===i?r.state=y.OPEN_TAG_SLASH:_(l,i)?(T(r,"No whitespace between attributes"),r.attribName=i,r.attribValue="",r.state=y.ATTRIB_NAME):T(r,"Invalid attribute name");continue;case y.ATTRIB_VALUE_UNQUOTED:if(!f(i)){"&"===i?r.state=y.ATTRIB_VALUE_ENTITY_U:r.attribValue+=i;continue}O(r),">"===i?Q(r):r.state=y.ATTRIB;continue;case y.CLOSE_TAG:if(r.tagName)">"===i?D(r):_(c,i)?r.tagName+=i:r.script?(r.script+="</"+r.tagName,r.tagName="",r.state=y.SCRIPT):(p(i)||T(r,"Invalid tagname in closing tag"),r.state=y.CLOSE_TAG_SAW_WHITE);else{if(p(i))continue;m(l,i)?r.script?(r.script+="</"+i,r.state=y.SCRIPT):T(r,"Invalid tagname in closing tag."):r.tagName=i}continue;case y.CLOSE_TAG_SAW_WHITE:if(p(i))continue;">"===i?D(r):T(r,"Invalid characters in closing tag");continue;case y.TEXT_ENTITY:case y.ATTRIB_VALUE_ENTITY_Q:case y.ATTRIB_VALUE_ENTITY_U:var a,h;switch(r.state){case y.TEXT_ENTITY:a=y.TEXT,h="textNode";break;case y.ATTRIB_VALUE_ENTITY_Q:a=y.ATTRIB_VALUE_QUOTED,h="attribValue";break;case y.ATTRIB_VALUE_ENTITY_U:a=y.ATTRIB_VALUE_UNQUOTED,h="attribValue"}";"===i?(r[h]+=L(r),r.entity="",r.state=a):_(r.entity.length?d:u,i)?r.entity+=i:(T(r,"Invalid character in entity name"),r[h]+="&"+r.entity+i,r.entity="",r.state=a);continue;default:throw new Error(r,"Unknown state: "+r.state)}return r.position>=r.bufferCheckPosition&&function(e){for(var r=Math.max(t.MAX_BUFFER_LENGTH,10),A=0,i=0,n=s.length;i<n;i++){var o=e[s[i]].length;if(o>r)switch(s[i]){case"textNode":x(e);break;case"cdata":b(e,"oncdata",e.cdata),e.cdata="";break;case"script":b(e,"onscript",e.script),e.script="";break;default:I(e,"Max buffer length exceeded: "+s[i])}A=Math.max(A,o)}var a=t.MAX_BUFFER_LENGTH-A;e.bufferCheckPosition=a+e.position}(r),r},resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){var t;x(t=this),""!==t.cdata&&(b(t,"oncdata",t.cdata),t.cdata=""),""!==t.script&&(b(t,"onscript",t.script),t.script="")}};try{e=r(830).Stream}catch(t){e=function(){}}var i=t.EVENTS.filter((function(t){return"error"!==t&&"end"!==t}));function n(t,r){if(!(this instanceof n))return new n(t,r);e.apply(this),this._parser=new A(t,r),this.writable=!0,this.readable=!0;var s=this;this._parser.onend=function(){s.emit("end")},this._parser.onerror=function(t){s.emit("error",t),s._parser.error=null},this._decoder=null,i.forEach((function(t){Object.defineProperty(s,"on"+t,{get:function(){return s._parser["on"+t]},set:function(e){if(!e)return s.removeAllListeners(t),s._parser["on"+t]=e,e;s.on(t,e)},enumerable:!0,configurable:!1})}))}n.prototype=Object.create(e.prototype,{constructor:{value:n}}),n.prototype.write=function(t){if("function"==typeof Buffer&&"function"==typeof Buffer.isBuffer&&Buffer.isBuffer(t)){if(!this._decoder){var e=r(553).s;this._decoder=new e("utf8")}t=this._decoder.write(t)}return this._parser.write(t.toString()),this.emit("data",t),!0},n.prototype.end=function(t){return t&&t.length&&this.write(t),this._parser.end(),!0},n.prototype.on=function(t,r){var s=this;return s._parser["on"+t]||-1===i.indexOf(t)||(s._parser["on"+t]=function(){var e=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);e.splice(0,0,t),s.emit.apply(s,e)}),e.prototype.on.call(s,t,r)};var o="http://www.w3.org/XML/1998/namespace",a="http://www.w3.org/2000/xmlns/",h={xml:o,xmlns:a},l=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,c=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,u=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,d=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function p(t){return" "===t||"\n"===t||"\r"===t||"\t"===t}function g(t){return'"'===t||"'"===t}function f(t){return">"===t||p(t)}function _(t,e){return t.test(e)}function m(t,e){return!_(t,e)}var w,B,C,y=0;for(var v in t.STATE={BEGIN:y++,BEGIN_WHITESPACE:y++,TEXT:y++,TEXT_ENTITY:y++,OPEN_WAKA:y++,SGML_DECL:y++,SGML_DECL_QUOTED:y++,DOCTYPE:y++,DOCTYPE_QUOTED:y++,DOCTYPE_DTD:y++,DOCTYPE_DTD_QUOTED:y++,COMMENT_STARTING:y++,COMMENT:y++,COMMENT_ENDING:y++,COMMENT_ENDED:y++,CDATA:y++,CDATA_ENDING:y++,CDATA_ENDING_2:y++,PROC_INST:y++,PROC_INST_BODY:y++,PROC_INST_ENDING:y++,OPEN_TAG:y++,OPEN_TAG_SLASH:y++,ATTRIB:y++,ATTRIB_NAME:y++,ATTRIB_NAME_SAW_WHITE:y++,ATTRIB_VALUE:y++,ATTRIB_VALUE_QUOTED:y++,ATTRIB_VALUE_CLOSED:y++,ATTRIB_VALUE_UNQUOTED:y++,ATTRIB_VALUE_ENTITY_Q:y++,ATTRIB_VALUE_ENTITY_U:y++,CLOSE_TAG:y++,CLOSE_TAG_SAW_WHITE:y++,SCRIPT:y++,SCRIPT_ENDING:y++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(t.ENTITIES).forEach((function(e){var r=t.ENTITIES[e],s="number"==typeof r?String.fromCharCode(r):r;t.ENTITIES[e]=s})),t.STATE)t.STATE[t.STATE[v]]=v;function E(t,e,r){t[e]&&t[e](r)}function b(t,e,r){t.textNode&&x(t),E(t,e,r)}function x(t){t.textNode=P(t.opt,t.textNode),t.textNode&&E(t,"ontext",t.textNode),t.textNode=""}function P(t,e){return t.trim&&(e=e.trim()),t.normalize&&(e=e.replace(/\s+/g," ")),e}function I(t,e){return x(t),t.trackPosition&&(e+="\nLine: "+t.line+"\nColumn: "+t.column+"\nChar: "+t.c),e=new Error(e),t.error=e,E(t,"onerror",e),t}function S(t){return t.sawRoot&&!t.closedRoot&&T(t,"Unclosed root tag"),t.state!==y.BEGIN&&t.state!==y.BEGIN_WHITESPACE&&t.state!==y.TEXT&&I(t,"Unexpected end"),x(t),t.c="",t.closed=!0,E(t,"onend"),A.call(t,t.strict,t.opt),t}function T(t,e){if("object"!=typeof t||!(t instanceof A))throw new Error("bad call to strictFail");t.strict&&I(t,e)}function F(t){t.strict||(t.tagName=t.tagName[t.looseCase]());var e=t.tags[t.tags.length-1]||t,r=t.tag={name:t.tagName,attributes:{}};t.opt.xmlns&&(r.ns=e.ns),t.attribList.length=0,b(t,"onopentagstart",r)}function R(t,e){var r=t.indexOf(":")<0?["",t]:t.split(":"),s=r[0],A=r[1];return e&&"xmlns"===t&&(s="xmlns",A=""),{prefix:s,local:A}}function O(t){if(t.strict||(t.attribName=t.attribName[t.looseCase]()),-1!==t.attribList.indexOf(t.attribName)||t.tag.attributes.hasOwnProperty(t.attribName))t.attribName=t.attribValue="";else{if(t.opt.xmlns){var e=R(t.attribName,!0),r=e.prefix,s=e.local;if("xmlns"===r)if("xml"===s&&t.attribValue!==o)T(t,"xml: prefix must be bound to "+o+"\nActual: "+t.attribValue);else if("xmlns"===s&&t.attribValue!==a)T(t,"xmlns: prefix must be bound to "+a+"\nActual: "+t.attribValue);else{var A=t.tag,i=t.tags[t.tags.length-1]||t;A.ns===i.ns&&(A.ns=Object.create(i.ns)),A.ns[s]=t.attribValue}t.attribList.push([t.attribName,t.attribValue])}else t.tag.attributes[t.attribName]=t.attribValue,b(t,"onattribute",{name:t.attribName,value:t.attribValue});t.attribName=t.attribValue=""}}function Q(t,e){if(t.opt.xmlns){var r=t.tag,s=R(t.tagName);r.prefix=s.prefix,r.local=s.local,r.uri=r.ns[s.prefix]||"",r.prefix&&!r.uri&&(T(t,"Unbound namespace prefix: "+JSON.stringify(t.tagName)),r.uri=s.prefix);var A=t.tags[t.tags.length-1]||t;r.ns&&A.ns!==r.ns&&Object.keys(r.ns).forEach((function(e){b(t,"onopennamespace",{prefix:e,uri:r.ns[e]})}));for(var i=0,n=t.attribList.length;i<n;i++){var o=t.attribList[i],a=o[0],h=o[1],l=R(a,!0),c=l.prefix,u=l.local,d=""===c?"":r.ns[c]||"",p={name:a,value:h,prefix:c,local:u,uri:d};c&&"xmlns"!==c&&!d&&(T(t,"Unbound namespace prefix: "+JSON.stringify(c)),p.uri=c),t.tag.attributes[a]=p,b(t,"onattribute",p)}t.attribList.length=0}t.tag.isSelfClosing=!!e,t.sawRoot=!0,t.tags.push(t.tag),b(t,"onopentag",t.tag),e||(t.noscript||"script"!==t.tagName.toLowerCase()?t.state=y.TEXT:t.state=y.SCRIPT,t.tag=null,t.tagName=""),t.attribName=t.attribValue="",t.attribList.length=0}function D(t){if(!t.tagName)return T(t,"Weird empty close tag."),t.textNode+="</>",void(t.state=y.TEXT);if(t.script){if("script"!==t.tagName)return t.script+="</"+t.tagName+">",t.tagName="",void(t.state=y.SCRIPT);b(t,"onscript",t.script),t.script=""}var e=t.tags.length,r=t.tagName;t.strict||(r=r[t.looseCase]());for(var s=r;e--&&t.tags[e].name!==s;)T(t,"Unexpected close tag");if(e<0)return T(t,"Unmatched closing tag: "+t.tagName),t.textNode+="</"+t.tagName+">",void(t.state=y.TEXT);t.tagName=r;for(var A=t.tags.length;A-- >e;){var i=t.tag=t.tags.pop();t.tagName=t.tag.name,b(t,"onclosetag",t.tagName);var n={};for(var o in i.ns)n[o]=i.ns[o];var a=t.tags[t.tags.length-1]||t;t.opt.xmlns&&i.ns!==a.ns&&Object.keys(i.ns).forEach((function(e){var r=i.ns[e];b(t,"onclosenamespace",{prefix:e,uri:r})}))}0===e&&(t.closedRoot=!0),t.tagName=t.attribValue=t.attribName="",t.attribList.length=0,t.state=y.TEXT}function L(t){var e,r=t.entity,s=r.toLowerCase(),A="";return t.ENTITIES[r]?t.ENTITIES[r]:t.ENTITIES[s]?t.ENTITIES[s]:("#"===(r=s).charAt(0)&&("x"===r.charAt(1)?(r=r.slice(2),A=(e=parseInt(r,16)).toString(16)):(r=r.slice(1),A=(e=parseInt(r,10)).toString(10))),r=r.replace(/^0+/,""),isNaN(e)||A.toLowerCase()!==r?(T(t,"Invalid character entity"),"&"+t.entity+";"):String.fromCodePoint(e))}function U(t,e){"<"===e?(t.state=y.OPEN_WAKA,t.startTagPosition=t.position):p(e)||(T(t,"Non-whitespace before first tag."),t.textNode=e,t.state=y.TEXT)}function H(t,e){var r="";return e<t.length&&(r=t.charAt(e)),r}y=t.STATE,String.fromCodePoint||(w=String.fromCharCode,B=Math.floor,C=function(){var t,e,r=16384,s=[],A=-1,i=arguments.length;if(!i)return"";for(var n="";++A<i;){var o=Number(arguments[A]);if(!isFinite(o)||o<0||o>1114111||B(o)!==o)throw RangeError("Invalid code point: "+o);o<=65535?s.push(o):(t=55296+((o-=65536)>>10),e=o%1024+56320,s.push(t,e)),(A+1===i||s.length>r)&&(n+=w.apply(null,s),s.length=0)}return n},Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:C,configurable:!0,writable:!0}):String.fromCodePoint=C)}(e)},830:(t,e,r)=>{t.exports=A;var s=r(187).EventEmitter;function A(){s.call(this)}r(717)(A,s),A.Readable=r(577),A.Writable=r(323),A.Duplex=r(656),A.Transform=r(473),A.PassThrough=r(366),A.finished=r(86),A.pipeline=r(472),A.Stream=A,A.prototype.pipe=function(t,e){var r=this;function A(e){t.writable&&!1===t.write(e)&&r.pause&&r.pause()}function i(){r.readable&&r.resume&&r.resume()}r.on("data",A),t.on("drain",i),t._isStdio||e&&!1===e.end||(r.on("end",o),r.on("close",a));var n=!1;function o(){n||(n=!0,t.end())}function a(){n||(n=!0,"function"==typeof t.destroy&&t.destroy())}function h(t){if(l(),0===s.listenerCount(this,"error"))throw t}function l(){r.removeListener("data",A),t.removeListener("drain",i),r.removeListener("end",o),r.removeListener("close",a),r.removeListener("error",h),t.removeListener("error",h),r.removeListener("end",l),r.removeListener("close",l),t.removeListener("close",l)}return r.on("error",h),t.on("error",h),r.on("end",l),r.on("close",l),t.on("close",l),t.emit("pipe",r),t}},106:t=>{var e={};function r(t,r,s){s||(s=Error);var A=function(t){var e,s;function A(e,s,A){return t.call(this,function(t,e,s){return"string"==typeof r?r:r(t,e,s)}(e,s,A))||this}return s=t,(e=A).prototype=Object.create(s.prototype),e.prototype.constructor=e,e.__proto__=s,A}(s);A.prototype.name=s.name,A.prototype.code=t,e[t]=A}function s(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map((function(t){return String(t)})),r>2?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:2===r?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}r("ERR_INVALID_OPT_VALUE",(function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'}),TypeError),r("ERR_INVALID_ARG_TYPE",(function(t,e,r){var A,i,n,o,a;if("string"==typeof e&&(i="not ",e.substr(0,i.length)===i)?(A="must not be",e=e.replace(/^not /,"")):A="must be",function(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}(t," argument"))n="The ".concat(t," ").concat(A," ").concat(s(e,"type"));else{var h=("number"!=typeof a&&(a=0),a+".".length>(o=t).length||-1===o.indexOf(".",a)?"argument":"property");n='The "'.concat(t,'" ').concat(h," ").concat(A," ").concat(s(e,"type"))}return n+". Received type ".concat(typeof r)}),TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.q=e},656:(t,e,r)=>{var s=r(155),A=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};t.exports=l;var i=r(577),n=r(323);r(717)(l,i);for(var o=A(n.prototype),a=0;a<o.length;a++){var h=o[a];l.prototype[h]||(l.prototype[h]=n.prototype[h])}function l(t){if(!(this instanceof l))return new l(t);i.call(this,t),n.call(this,t),this.allowHalfOpen=!0,t&&(!1===t.readable&&(this.readable=!1),!1===t.writable&&(this.writable=!1),!1===t.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",c)))}function c(){this._writableState.ended||s.nextTick(u,this)}function u(t){t.end()}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(l.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(l.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}})},366:(t,e,r)=>{t.exports=A;var s=r(473);function A(t){if(!(this instanceof A))return new A(t);s.call(this,t)}r(717)(A,s),A.prototype._transform=function(t,e,r){r(null,t)}},577:(t,e,r)=>{var s,A=r(155);t.exports=b,b.ReadableState=E,r(187).EventEmitter;var i,n=function(t,e){return t.listeners(e).length},o=r(194),a=r(764).Buffer,h=r.g.Uint8Array||function(){},l=r(964);i=l&&l.debuglog?l.debuglog("stream"):function(){};var c,u,d,p=r(686),g=r(29),f=r(94).getHighWaterMark,_=r(106).q,m=_.ERR_INVALID_ARG_TYPE,w=_.ERR_STREAM_PUSH_AFTER_EOF,B=_.ERR_METHOD_NOT_IMPLEMENTED,C=_.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(717)(b,o);var y=g.errorOrDestroy,v=["error","close","destroy","pause","resume"];function E(t,e,A){s=s||r(656),t=t||{},"boolean"!=typeof A&&(A=e instanceof s),this.objectMode=!!t.objectMode,A&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=f(this,t,"readableHighWaterMark",A),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(c||(c=r(553).s),this.decoder=new c(t.encoding),this.encoding=t.encoding)}function b(t){if(s=s||r(656),!(this instanceof b))return new b(t);var e=this instanceof s;this._readableState=new E(t,this,e),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),o.call(this)}function x(t,e,r,s,A){i("readableAddChunk",e);var n,o=t._readableState;if(null===e)o.reading=!1,function(t,e){if(i("onEofChunk"),!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?T(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,F(t)))}}(t,o);else if(A||(n=function(t,e){var r,s;return s=e,a.isBuffer(s)||s instanceof h||"string"==typeof e||void 0===e||t.objectMode||(r=new m("chunk",["string","Buffer","Uint8Array"],e)),r}(o,e)),n)y(t,n);else if(o.objectMode||e&&e.length>0)if("string"==typeof e||o.objectMode||Object.getPrototypeOf(e)===a.prototype||(e=function(t){return a.from(t)}(e)),s)o.endEmitted?y(t,new C):P(t,o,e,!0);else if(o.ended)y(t,new w);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!r?(e=o.decoder.write(e),o.objectMode||0!==e.length?P(t,o,e,!1):R(t,o)):P(t,o,e,!1)}else s||(o.reading=!1,R(t,o));return!o.ended&&(o.length<o.highWaterMark||0===o.length)}function P(t,e,r,s){e.flowing&&0===e.length&&!e.sync?(e.awaitDrain=0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,s?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&T(t)),R(t,e)}Object.defineProperty(b.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),b.prototype.destroy=g.destroy,b.prototype._undestroy=g.undestroy,b.prototype._destroy=function(t,e){e(t)},b.prototype.push=function(t,e){var r,s=this._readableState;return s.objectMode?r=!0:"string"==typeof t&&((e=e||s.defaultEncoding)!==s.encoding&&(t=a.from(t,e),e=""),r=!0),x(this,t,e,!1,r)},b.prototype.unshift=function(t){return x(this,t,null,!0,!1)},b.prototype.isPaused=function(){return!1===this._readableState.flowing},b.prototype.setEncoding=function(t){c||(c=r(553).s);var e=new c(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var s=this._readableState.buffer.head,A="";null!==s;)A+=e.write(s.data),s=s.next;return this._readableState.buffer.clear(),""!==A&&this._readableState.buffer.push(A),this._readableState.length=A.length,this};var I=1073741824;function S(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=I?t=I:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function T(t){var e=t._readableState;i("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(i("emitReadable",e.flowing),e.emittedReadable=!0,A.nextTick(F,t))}function F(t){var e=t._readableState;i("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,U(t)}function R(t,e){e.readingMore||(e.readingMore=!0,A.nextTick(O,t,e))}function O(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&0===e.length);){var r=e.length;if(i("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}function Q(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function D(t){i("readable nexttick read 0"),t.read(0)}function L(t,e){i("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),U(t),e.flowing&&!e.reading&&t.read(0)}function U(t){var e=t._readableState;for(i("flow",e.flowing);e.flowing&&null!==t.read(););}function H(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r);var r}function N(t){var e=t._readableState;i("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,A.nextTick(M,e,t))}function M(t,e){if(i("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}function k(t,e){for(var r=0,s=t.length;r<s;r++)if(t[r]===e)return r;return-1}b.prototype.read=function(t){i("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&((0!==e.highWaterMark?e.length>=e.highWaterMark:e.length>0)||e.ended))return i("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?N(this):T(this),null;if(0===(t=S(t,e))&&e.ended)return 0===e.length&&N(this),null;var s,A=e.needReadable;return i("need readable",A),(0===e.length||e.length-t<e.highWaterMark)&&i("length less than watermark",A=!0),e.ended||e.reading?i("reading or ended",A=!1):A&&(i("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=S(r,e))),null===(s=t>0?H(t,e):null)?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&N(this)),null!==s&&this.emit("data",s),s},b.prototype._read=function(t){y(this,new B("_read()"))},b.prototype.pipe=function(t,e){var r=this,s=this._readableState;switch(s.pipesCount){case 0:s.pipes=t;break;case 1:s.pipes=[s.pipes,t];break;default:s.pipes.push(t)}s.pipesCount+=1,i("pipe count=%d opts=%j",s.pipesCount,e);var o=e&&!1===e.end||t===A.stdout||t===A.stderr?g:a;function a(){i("onend"),t.end()}s.endEmitted?A.nextTick(o):r.once("end",o),t.on("unpipe",(function e(A,n){i("onunpipe"),A===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,i("cleanup"),t.removeListener("close",d),t.removeListener("finish",p),t.removeListener("drain",h),t.removeListener("error",u),t.removeListener("unpipe",e),r.removeListener("end",a),r.removeListener("end",g),r.removeListener("data",c),l=!0,!s.awaitDrain||t._writableState&&!t._writableState.needDrain||h())}));var h=function(t){return function(){var e=t._readableState;i("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&n(t,"data")&&(e.flowing=!0,U(t))}}(r);t.on("drain",h);var l=!1;function c(e){i("ondata");var A=t.write(e);i("dest.write",A),!1===A&&((1===s.pipesCount&&s.pipes===t||s.pipesCount>1&&-1!==k(s.pipes,t))&&!l&&(i("false write response, pause",s.awaitDrain),s.awaitDrain++),r.pause())}function u(e){i("onerror",e),g(),t.removeListener("error",u),0===n(t,"error")&&y(t,e)}function d(){t.removeListener("finish",p),g()}function p(){i("onfinish"),t.removeListener("close",d),g()}function g(){i("unpipe"),r.unpipe(t)}return r.on("data",c),function(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events.error?Array.isArray(t._events.error)?t._events.error.unshift(r):t._events.error=[r,t._events.error]:t.on(e,r)}(t,"error",u),t.once("close",d),t.once("finish",p),t.emit("pipe",r),s.flowing||(i("pipe resume"),r.resume()),t},b.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r)),this;if(!t){var s=e.pipes,A=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var i=0;i<A;i++)s[i].emit("unpipe",this,{hasUnpiped:!1});return this}var n=k(e.pipes,t);return-1===n||(e.pipes.splice(n,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r)),this},b.prototype.on=function(t,e){var r=o.prototype.on.call(this,t,e),s=this._readableState;return"data"===t?(s.readableListening=this.listenerCount("readable")>0,!1!==s.flowing&&this.resume()):"readable"===t&&(s.endEmitted||s.readableListening||(s.readableListening=s.needReadable=!0,s.flowing=!1,s.emittedReadable=!1,i("on readable",s.length,s.reading),s.length?T(this):s.reading||A.nextTick(D,this))),r},b.prototype.addListener=b.prototype.on,b.prototype.removeListener=function(t,e){var r=o.prototype.removeListener.call(this,t,e);return"readable"===t&&A.nextTick(Q,this),r},b.prototype.removeAllListeners=function(t){var e=o.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||A.nextTick(Q,this),e},b.prototype.resume=function(){var t=this._readableState;return t.flowing||(i("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,A.nextTick(L,t,e))}(this,t)),t.paused=!1,this},b.prototype.pause=function(){return i("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(i("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},b.prototype.wrap=function(t){var e=this,r=this._readableState,s=!1;for(var A in t.on("end",(function(){if(i("wrapped end"),r.decoder&&!r.ended){var t=r.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(A){i("wrapped data"),r.decoder&&(A=r.decoder.write(A)),r.objectMode&&null==A||(r.objectMode||A&&A.length)&&(e.push(A)||(s=!0,t.pause()))})),t)void 0===this[A]&&"function"==typeof t[A]&&(this[A]=function(e){return function(){return t[e].apply(t,arguments)}}(A));for(var n=0;n<v.length;n++)t.on(v[n],this.emit.bind(this,v[n]));return this._read=function(e){i("wrapped _read",e),s&&(s=!1,t.resume())},this},"function"==typeof Symbol&&(b.prototype[Symbol.asyncIterator]=function(){return void 0===u&&(u=r(828)),u(this)}),Object.defineProperty(b.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(b.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(b.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}}),b._fromList=H,Object.defineProperty(b.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(b.from=function(t,e){return void 0===d&&(d=r(265)),d(b,t,e)})},473:(t,e,r)=>{t.exports=l;var s=r(106).q,A=s.ERR_METHOD_NOT_IMPLEMENTED,i=s.ERR_MULTIPLE_CALLBACK,n=s.ERR_TRANSFORM_ALREADY_TRANSFORMING,o=s.ERR_TRANSFORM_WITH_LENGTH_0,a=r(656);function h(t,e){var r=this._transformState;r.transforming=!1;var s=r.writecb;if(null===s)return this.emit("error",new i);r.writechunk=null,r.writecb=null,null!=e&&this.push(e),s(t);var A=this._readableState;A.reading=!1,(A.needReadable||A.length<A.highWaterMark)&&this._read(A.highWaterMark)}function l(t){if(!(this instanceof l))return new l(t);a.call(this,t),this._transformState={afterTransform:h.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",c)}function c(){var t=this;"function"!=typeof this._flush||this._readableState.destroyed?u(this,null,null):this._flush((function(e,r){u(t,e,r)}))}function u(t,e,r){if(e)return t.emit("error",e);if(null!=r&&t.push(r),t._writableState.length)throw new o;if(t._transformState.transforming)throw new n;return t.push(null)}r(717)(l,a),l.prototype.push=function(t,e){return this._transformState.needTransform=!1,a.prototype.push.call(this,t,e)},l.prototype._transform=function(t,e,r){r(new A("_transform()"))},l.prototype._write=function(t,e,r){var s=this._transformState;if(s.writecb=r,s.writechunk=t,s.writeencoding=e,!s.transforming){var A=this._readableState;(s.needTransform||A.needReadable||A.length<A.highWaterMark)&&this._read(A.highWaterMark)}},l.prototype._read=function(t){var e=this._transformState;null===e.writechunk||e.transforming?e.needTransform=!0:(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform))},l.prototype._destroy=function(t,e){a.prototype._destroy.call(this,t,(function(t){e(t)}))}},323:(t,e,r)=>{var s,A=r(155);function i(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,r){var s=t.entry;for(t.entry=null;s;){var A=s.callback;e.pendingcb--,A(void 0),s=s.next}e.corkedRequestsFree.next=t}(e,t)}}t.exports=b,b.WritableState=E;var n,o={deprecate:r(927)},a=r(194),h=r(764).Buffer,l=r.g.Uint8Array||function(){},c=r(29),u=r(94).getHighWaterMark,d=r(106).q,p=d.ERR_INVALID_ARG_TYPE,g=d.ERR_METHOD_NOT_IMPLEMENTED,f=d.ERR_MULTIPLE_CALLBACK,_=d.ERR_STREAM_CANNOT_PIPE,m=d.ERR_STREAM_DESTROYED,w=d.ERR_STREAM_NULL_VALUES,B=d.ERR_STREAM_WRITE_AFTER_END,C=d.ERR_UNKNOWN_ENCODING,y=c.errorOrDestroy;function v(){}function E(t,e,n){s=s||r(656),t=t||{},"boolean"!=typeof n&&(n=e instanceof s),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=u(this,t,"writableHighWaterMark",n),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var o=!1===t.decodeStrings;this.decodeStrings=!o,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var r=t._writableState,s=r.sync,i=r.writecb;if("function"!=typeof i)throw new f;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(r),e)!function(t,e,r,s,i){--e.pendingcb,r?(A.nextTick(i,s),A.nextTick(F,t,e),t._writableState.errorEmitted=!0,y(t,s)):(i(s),t._writableState.errorEmitted=!0,y(t,s),F(t,e))}(t,r,s,e,i);else{var n=S(r)||t.destroyed;n||r.corked||r.bufferProcessing||!r.bufferedRequest||I(t,r),s?A.nextTick(P,t,r,n,i):P(t,r,n,i)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function b(t){var e=this instanceof(s=s||r(656));if(!e&&!n.call(b,this))return new b(t);this._writableState=new E(t,this,e),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),a.call(this)}function x(t,e,r,s,A,i,n){e.writelen=s,e.writecb=n,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new m("write")):r?t._writev(A,e.onwrite):t._write(A,i,e.onwrite),e.sync=!1}function P(t,e,r,s){r||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,s(),F(t,e)}function I(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var s=e.bufferedRequestCount,A=new Array(s),n=e.corkedRequestsFree;n.entry=r;for(var o=0,a=!0;r;)A[o]=r,r.isBuf||(a=!1),r=r.next,o+=1;A.allBuffers=a,x(t,e,!0,e.length,A,"",n.finish),e.pendingcb++,e.lastBufferedRequest=null,n.next?(e.corkedRequestsFree=n.next,n.next=null):e.corkedRequestsFree=new i(e),e.bufferedRequestCount=0}else{for(;r;){var h=r.chunk,l=r.encoding,c=r.callback;if(x(t,e,!1,e.objectMode?1:h.length,h,l,c),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function S(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function T(t,e){t._final((function(r){e.pendingcb--,r&&y(t,r),e.prefinished=!0,t.emit("prefinish"),F(t,e)}))}function F(t,e){var r=S(e);if(r&&(function(t,e){e.prefinished||e.finalCalled||("function"!=typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.pendingcb++,e.finalCalled=!0,A.nextTick(T,t,e)))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var s=t._readableState;(!s||s.autoDestroy&&s.endEmitted)&&t.destroy()}return r}r(717)(b,a),E.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(E.prototype,"buffer",{get:o.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(n=Function.prototype[Symbol.hasInstance],Object.defineProperty(b,Symbol.hasInstance,{value:function(t){return!!n.call(this,t)||this===b&&t&&t._writableState instanceof E}})):n=function(t){return t instanceof this},b.prototype.pipe=function(){y(this,new _)},b.prototype.write=function(t,e,r){var s,i=this._writableState,n=!1,o=!i.objectMode&&(s=t,h.isBuffer(s)||s instanceof l);return o&&!h.isBuffer(t)&&(t=function(t){return h.from(t)}(t)),"function"==typeof e&&(r=e,e=null),o?e="buffer":e||(e=i.defaultEncoding),"function"!=typeof r&&(r=v),i.ending?function(t,e){var r=new B;y(t,r),A.nextTick(e,r)}(this,r):(o||function(t,e,r,s){var i;return null===r?i=new w:"string"==typeof r||e.objectMode||(i=new p("chunk",["string","Buffer"],r)),!i||(y(t,i),A.nextTick(s,i),!1)}(this,i,t,r))&&(i.pendingcb++,n=function(t,e,r,s,A,i){if(!r){var n=function(t,e,r){return t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=h.from(e,r)),e}(e,s,A);s!==n&&(r=!0,A="buffer",s=n)}var o=e.objectMode?1:s.length;e.length+=o;var a=e.length<e.highWaterMark;if(a||(e.needDrain=!0),e.writing||e.corked){var l=e.lastBufferedRequest;e.lastBufferedRequest={chunk:s,encoding:A,isBuf:r,callback:i,next:null},l?l.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else x(t,e,!1,o,s,A,i);return a}(this,i,o,t,e,r)),n},b.prototype.cork=function(){this._writableState.corked++},b.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||I(this,t))},b.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new C(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(b.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(b.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),b.prototype._write=function(t,e,r){r(new g("_write()"))},b.prototype._writev=null,b.prototype.end=function(t,e,r){var s=this._writableState;return"function"==typeof t?(r=t,t=null,e=null):"function"==typeof e&&(r=e,e=null),null!=t&&this.write(t,e),s.corked&&(s.corked=1,this.uncork()),s.ending||function(t,e,r){e.ending=!0,F(t,e),r&&(e.finished?A.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}(this,s,r),this},Object.defineProperty(b.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(b.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),b.prototype.destroy=c.destroy,b.prototype._undestroy=c.undestroy,b.prototype._destroy=function(t,e){e(t)}},828:(t,e,r)=>{var s,A=r(155);function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var n=r(86),o=Symbol("lastResolve"),a=Symbol("lastReject"),h=Symbol("error"),l=Symbol("ended"),c=Symbol("lastPromise"),u=Symbol("handlePromise"),d=Symbol("stream");function p(t,e){return{value:t,done:e}}function g(t){var e=t[o];if(null!==e){var r=t[d].read();null!==r&&(t[c]=null,t[o]=null,t[a]=null,e(p(r,!1)))}}function f(t){A.nextTick(g,t)}var _=Object.getPrototypeOf((function(){})),m=Object.setPrototypeOf((i(s={get stream(){return this[d]},next:function(){var t=this,e=this[h];if(null!==e)return Promise.reject(e);if(this[l])return Promise.resolve(p(void 0,!0));if(this[d].destroyed)return new Promise((function(e,r){A.nextTick((function(){t[h]?r(t[h]):e(p(void 0,!0))}))}));var r,s=this[c];if(s)r=new Promise(function(t,e){return function(r,s){t.then((function(){e[l]?r(p(void 0,!0)):e[u](r,s)}),s)}}(s,this));else{var i=this[d].read();if(null!==i)return Promise.resolve(p(i,!1));r=new Promise(this[u])}return this[c]=r,r}},Symbol.asyncIterator,(function(){return this})),i(s,"return",(function(){var t=this;return new Promise((function(e,r){t[d].destroy(null,(function(t){t?r(t):e(p(void 0,!0))}))}))})),s),_);t.exports=function(t){var e,r=Object.create(m,(i(e={},d,{value:t,writable:!0}),i(e,o,{value:null,writable:!0}),i(e,a,{value:null,writable:!0}),i(e,h,{value:null,writable:!0}),i(e,l,{value:t._readableState.endEmitted,writable:!0}),i(e,u,{value:function(t,e){var s=r[d].read();s?(r[c]=null,r[o]=null,r[a]=null,t(p(s,!1))):(r[o]=t,r[a]=e)},writable:!0}),e));return r[c]=null,n(t,(function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=r[a];return null!==e&&(r[c]=null,r[o]=null,r[a]=null,e(t)),void(r[h]=t)}var s=r[o];null!==s&&(r[c]=null,r[o]=null,r[a]=null,s(p(void 0,!0))),r[l]=!0})),t.on("readable",f.bind(null,r)),r}},686:(t,e,r)=>{function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,s)}return r}function A(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function i(t,e){for(var r=0;r<e.length;r++){var s=e[r];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}var n=r(764).Buffer,o=r(862).inspect,a=o&&o.custom||"inspect";t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}var e;return e=[{key:"push",value:function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data;return r}},{key:"concat",value:function(t){if(0===this.length)return n.alloc(0);for(var e,r,s,A=n.allocUnsafe(t>>>0),i=this.head,o=0;i;)e=i.data,r=A,s=o,n.prototype.copy.call(e,r,s),o+=i.data.length,i=i.next;return A}},{key:"consume",value:function(t,e){var r;return t<this.head.data.length?(r=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):r=t===this.head.data.length?this.shift():e?this._getString(t):this._getBuffer(t),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var e=this.head,r=1,s=e.data;for(t-=s.length;e=e.next;){var A=e.data,i=t>A.length?A.length:t;if(i===A.length?s+=A:s+=A.slice(0,t),0==(t-=i)){i===A.length?(++r,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=A.slice(i));break}++r}return this.length-=r,s}},{key:"_getBuffer",value:function(t){var e=n.allocUnsafe(t),r=this.head,s=1;for(r.data.copy(e),t-=r.data.length;r=r.next;){var A=r.data,i=t>A.length?A.length:t;if(A.copy(e,e.length-t,0,i),0==(t-=i)){i===A.length?(++s,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=A.slice(i));break}++s}return this.length-=s,e}},{key:a,value:function(t,e){return o(this,function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?s(Object(r),!0).forEach((function(e){A(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},e,{depth:0,customInspect:!1}))}}],e&&i(t.prototype,e),t}()},29:(t,e,r)=>{var s=r(155);function A(t,e){n(t,e),i(t)}function i(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function n(t,e){t.emit("error",e)}t.exports={destroy:function(t,e){var r=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return o||a?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,s.nextTick(n,this,t)):s.nextTick(n,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!e&&t?r._writableState?r._writableState.errorEmitted?s.nextTick(i,r):(r._writableState.errorEmitted=!0,s.nextTick(A,r,t)):s.nextTick(A,r,t):e?(s.nextTick(i,r),e(t)):s.nextTick(i,r)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(t,e){var r=t._readableState,s=t._writableState;r&&r.autoDestroy||s&&s.autoDestroy?t.destroy(e):t.emit("error",e)}}},86:(t,e,r)=>{var s=r(106).q.ERR_STREAM_PREMATURE_CLOSE;function A(){}t.exports=function t(e,r,i){if("function"==typeof r)return t(e,null,r);r||(r={}),i=function(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,s=new Array(r),A=0;A<r;A++)s[A]=arguments[A];t.apply(this,s)}}}(i||A);var n=r.readable||!1!==r.readable&&e.readable,o=r.writable||!1!==r.writable&&e.writable,a=function(){e.writable||l()},h=e._writableState&&e._writableState.finished,l=function(){o=!1,h=!0,n||i.call(e)},c=e._readableState&&e._readableState.endEmitted,u=function(){n=!1,c=!0,o||i.call(e)},d=function(t){i.call(e,t)},p=function(){var t;return n&&!c?(e._readableState&&e._readableState.ended||(t=new s),i.call(e,t)):o&&!h?(e._writableState&&e._writableState.ended||(t=new s),i.call(e,t)):void 0},g=function(){e.req.on("finish",l)};return function(t){return t.setHeader&&"function"==typeof t.abort}(e)?(e.on("complete",l),e.on("abort",p),e.req?g():e.on("request",g)):o&&!e._writableState&&(e.on("end",a),e.on("close",a)),e.on("end",u),e.on("finish",l),!1!==r.error&&e.on("error",d),e.on("close",p),function(){e.removeListener("complete",l),e.removeListener("abort",p),e.removeListener("request",g),e.req&&e.req.removeListener("finish",l),e.removeListener("end",a),e.removeListener("close",a),e.removeListener("finish",l),e.removeListener("end",u),e.removeListener("error",d),e.removeListener("close",p)}}},265:t=>{t.exports=function(){throw new Error("Readable.from is not available in the browser")}},472:(t,e,r)=>{var s,A=r(106).q,i=A.ERR_MISSING_ARGS,n=A.ERR_STREAM_DESTROYED;function o(t){if(t)throw t}function a(t,e,A,i){i=function(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}(i);var o=!1;t.on("close",(function(){o=!0})),void 0===s&&(s=r(86)),s(t,{readable:e,writable:A},(function(t){if(t)return i(t);o=!0,i()}));var a=!1;return function(e){if(!o&&!a)return a=!0,function(t){return t.setHeader&&"function"==typeof t.abort}(t)?t.abort():"function"==typeof t.destroy?t.destroy():void i(e||new n("pipe"))}}function h(t){t()}function l(t,e){return t.pipe(e)}function c(t){return t.length?"function"!=typeof t[t.length-1]?o:t.pop():o}t.exports=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var s,A=c(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new i("streams");var n=e.map((function(t,r){var i=r<e.length-1;return a(t,i,r>0,(function(t){s||(s=t),t&&n.forEach(h),i||(n.forEach(h),A(s))}))}));return e.reduce(l)}},94:(t,e,r)=>{var s=r(106).q.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(t,e,r,A){var i=function(t,e,r){return null!=t.highWaterMark?t.highWaterMark:e?t[r]:null}(e,A,r);if(null!=i){if(!isFinite(i)||Math.floor(i)!==i||i<0)throw new s(A?r:"highWaterMark",i);return Math.floor(i)}return t.objectMode?16:16384}}},194:(t,e,r)=>{t.exports=r(187).EventEmitter},553:(t,e,r)=>{var s=r(509).Buffer,A=s.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(s.isEncoding===A||!A(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=a,this.end=h,e=4;break;case"utf8":this.fillLast=o,e=4;break;case"base64":this.text=l,this.end=c,e=3;break;default:return this.write=u,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=s.allocUnsafe(e)}function n(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function o(t){var e=this.lastTotal-this.lastNeed,r=function(t,e,r){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==r?r:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function a(t,e){if((t.length-e)%2==0){var r=t.toString("utf16le",e);if(r){var s=r.charCodeAt(r.length-1);if(s>=55296&&s<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function h(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function l(t,e){var r=(t.length-e)%3;return 0===r?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function c(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function u(t){return t.toString(this.encoding)}function d(t){return t&&t.length?this.write(t):""}e.s=i,i.prototype.write=function(t){if(0===t.length)return"";var e,r;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""},i.prototype.end=function(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e},i.prototype.text=function(t,e){var r=function(t,e,r){var s=e.length-1;if(s<r)return 0;var A=n(e[s]);return A>=0?(A>0&&(t.lastNeed=A-1),A):--s<r||-2===A?0:(A=n(e[s]))>=0?(A>0&&(t.lastNeed=A-2),A):--s<r||-2===A?0:(A=n(e[s]))>=0?(A>0&&(2===A?A=0:t.lastNeed=A-3),A):0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var s=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,s),t.toString("utf8",e,s)},i.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},927:(t,e,r)=>{function s(t){try{if(!r.g.localStorage)return!1}catch(t){return!1}var e=r.g.localStorage[t];return null!=e&&"true"===String(e).toLowerCase()}t.exports=function(t,e){if(s("noDeprecation"))return t;var r=!1;return function(){if(!r){if(s("throwDeprecation"))throw new Error(e);s("traceDeprecation")?console.trace(e):console.warn(e),r=!0}return t.apply(this,arguments)}}},881:t=>{t.exports={isArray:function(t){return Array.isArray?Array.isArray(t):"[object Array]"===Object.prototype.toString.call(t)}}},888:(t,e,r)=>{var s=r(229),A=r(388),i=r(501),n=r(673);t.exports={xml2js:s,xml2json:A,js2xml:i,json2xml:n}},501:(t,e,r)=>{var s,A,i=r(740),n=r(881).isArray;function o(t,e,r){return(!r&&t.spaces?"\n":"")+Array(e+1).join(t.spaces)}function a(t,e,r){if(e.ignoreAttributes)return"";"attributesFn"in e&&(t=e.attributesFn(t,A,s));var i,n,a,h,l=[];for(i in t)t.hasOwnProperty(i)&&null!==t[i]&&void 0!==t[i]&&(h=e.noQuotesForNativeAttributes&&"string"!=typeof t[i]?"":'"',n=(n=""+t[i]).replace(/"/g,"&quot;"),a="attributeNameFn"in e?e.attributeNameFn(i,n,A,s):i,l.push(e.spaces&&e.indentAttributes?o(e,r+1,!1):" "),l.push(a+"="+h+("attributeValueFn"in e?e.attributeValueFn(n,i,A,s):n)+h));return t&&Object.keys(t).length&&e.spaces&&e.indentAttributes&&l.push(o(e,r,!1)),l.join("")}function h(t,e,r){return s=t,A="xml",e.ignoreDeclaration?"":"<?xml"+a(t[e.attributesKey],e,r)+"?>"}function l(t,e,r){if(e.ignoreInstruction)return"";var i;for(i in t)if(t.hasOwnProperty(i))break;var n="instructionNameFn"in e?e.instructionNameFn(i,t[i],A,s):i;if("object"==typeof t[i])return s=t,A=n,"<?"+n+a(t[i][e.attributesKey],e,r)+"?>";var o=t[i]?t[i]:"";return"instructionFn"in e&&(o=e.instructionFn(o,i,A,s)),"<?"+n+(o?" "+o:"")+"?>"}function c(t,e){return e.ignoreComment?"":"\x3c!--"+("commentFn"in e?e.commentFn(t,A,s):t)+"--\x3e"}function u(t,e){return e.ignoreCdata?"":"<![CDATA["+("cdataFn"in e?e.cdataFn(t,A,s):t.replace("]]>","]]]]><![CDATA[>"))+"]]>"}function d(t,e){return e.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in e?e.doctypeFn(t,A,s):t)+">"}function p(t,e){return e.ignoreText?"":(t=(t=(t=""+t).replace(/&amp;/g,"&")).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),"textFn"in e?e.textFn(t,A,s):t)}function g(t,e,r,i){return t.reduce((function(t,n){var h=o(e,r,i&&!t);switch(n.type){case"element":return t+h+function(t,e,r){s=t,A=t.name;var i=[],n="elementNameFn"in e?e.elementNameFn(t.name,t):t.name;i.push("<"+n),t[e.attributesKey]&&i.push(a(t[e.attributesKey],e,r));var o=t[e.elementsKey]&&t[e.elementsKey].length||t[e.attributesKey]&&"preserve"===t[e.attributesKey]["xml:space"];return o||(o="fullTagEmptyElementFn"in e?e.fullTagEmptyElementFn(t.name,t):e.fullTagEmptyElement),o?(i.push(">"),t[e.elementsKey]&&t[e.elementsKey].length&&(i.push(g(t[e.elementsKey],e,r+1)),s=t,A=t.name),i.push(e.spaces&&function(t,e){var r;if(t.elements&&t.elements.length)for(r=0;r<t.elements.length;++r)switch(t.elements[r][e.typeKey]){case"text":if(e.indentText)return!0;break;case"cdata":if(e.indentCdata)return!0;break;case"instruction":if(e.indentInstruction)return!0;break;default:return!0}return!1}(t,e)?"\n"+Array(r+1).join(e.spaces):""),i.push("</"+n+">")):i.push("/>"),i.join("")}(n,e,r);case"comment":return t+h+c(n[e.commentKey],e);case"doctype":return t+h+d(n[e.doctypeKey],e);case"cdata":return t+(e.indentCdata?h:"")+u(n[e.cdataKey],e);case"text":return t+(e.indentText?h:"")+p(n[e.textKey],e);case"instruction":var f={};return f[n[e.nameKey]]=n[e.attributesKey]?n:n[e.instructionKey],t+(e.indentInstruction?h:"")+l(f,e,r)}}),"")}function f(t,e,r){var s;for(s in t)if(t.hasOwnProperty(s))switch(s){case e.parentKey:case e.attributesKey:break;case e.textKey:if(e.indentText||r)return!0;break;case e.cdataKey:if(e.indentCdata||r)return!0;break;case e.instructionKey:if(e.indentInstruction||r)return!0;break;case e.doctypeKey:case e.commentKey:default:return!0}return!1}function _(t,e,r,i,n){s=t,A=e;var h="elementNameFn"in r?r.elementNameFn(e,t):e;if(null==t||""===t)return"fullTagEmptyElementFn"in r&&r.fullTagEmptyElementFn(e,t)||r.fullTagEmptyElement?"<"+h+"></"+h+">":"<"+h+"/>";var l=[];if(e){if(l.push("<"+h),"object"!=typeof t)return l.push(">"+p(t,r)+"</"+h+">"),l.join("");t[r.attributesKey]&&l.push(a(t[r.attributesKey],r,i));var c=f(t,r,!0)||t[r.attributesKey]&&"preserve"===t[r.attributesKey]["xml:space"];if(c||(c="fullTagEmptyElementFn"in r?r.fullTagEmptyElementFn(e,t):r.fullTagEmptyElement),!c)return l.push("/>"),l.join("");l.push(">")}return l.push(m(t,r,i+1,!1)),s=t,A=e,e&&l.push((n?o(r,i,!1):"")+"</"+h+">"),l.join("")}function m(t,e,r,s){var A,i,a,g=[];for(i in t)if(t.hasOwnProperty(i))for(a=n(t[i])?t[i]:[t[i]],A=0;A<a.length;++A){switch(i){case e.declarationKey:g.push(h(a[A],e,r));break;case e.instructionKey:g.push((e.indentInstruction?o(e,r,s):"")+l(a[A],e,r));break;case e.attributesKey:case e.parentKey:break;case e.textKey:g.push((e.indentText?o(e,r,s):"")+p(a[A],e));break;case e.cdataKey:g.push((e.indentCdata?o(e,r,s):"")+u(a[A],e));break;case e.doctypeKey:g.push(o(e,r,s)+d(a[A],e));break;case e.commentKey:g.push(o(e,r,s)+c(a[A],e));break;default:g.push(o(e,r,s)+_(a[A],i,e,r,f(a[A],e)))}s=s&&!g.length}return g.join("")}t.exports=function(t,e){e=function(t){var e=i.copyOptions(t);return i.ensureFlagExists("ignoreDeclaration",e),i.ensureFlagExists("ignoreInstruction",e),i.ensureFlagExists("ignoreAttributes",e),i.ensureFlagExists("ignoreText",e),i.ensureFlagExists("ignoreComment",e),i.ensureFlagExists("ignoreCdata",e),i.ensureFlagExists("ignoreDoctype",e),i.ensureFlagExists("compact",e),i.ensureFlagExists("indentText",e),i.ensureFlagExists("indentCdata",e),i.ensureFlagExists("indentAttributes",e),i.ensureFlagExists("indentInstruction",e),i.ensureFlagExists("fullTagEmptyElement",e),i.ensureFlagExists("noQuotesForNativeAttributes",e),i.ensureSpacesExists(e),"number"==typeof e.spaces&&(e.spaces=Array(e.spaces+1).join(" ")),i.ensureKeyExists("declaration",e),i.ensureKeyExists("instruction",e),i.ensureKeyExists("attributes",e),i.ensureKeyExists("text",e),i.ensureKeyExists("comment",e),i.ensureKeyExists("cdata",e),i.ensureKeyExists("doctype",e),i.ensureKeyExists("type",e),i.ensureKeyExists("name",e),i.ensureKeyExists("elements",e),i.checkFnExists("doctype",e),i.checkFnExists("instruction",e),i.checkFnExists("cdata",e),i.checkFnExists("comment",e),i.checkFnExists("text",e),i.checkFnExists("instructionName",e),i.checkFnExists("elementName",e),i.checkFnExists("attributeName",e),i.checkFnExists("attributeValue",e),i.checkFnExists("attributes",e),i.checkFnExists("fullTagEmptyElement",e),e}(e);var r=[];return s=t,A="_root_",e.compact?r.push(m(t,e,0,!0)):(t[e.declarationKey]&&r.push(h(t[e.declarationKey],e,0)),t[e.elementsKey]&&t[e.elementsKey].length&&r.push(g(t[e.elementsKey],e,0,!r.length))),r.join("")}},673:(t,e,r)=>{var s=r(501);t.exports=function(t,e){t instanceof Buffer&&(t=t.toString());var r=null;if("string"==typeof t)try{r=JSON.parse(t)}catch(t){throw new Error("The JSON structure is invalid")}else r=t;return s(r,e)}},740:(t,e,r)=>{var s=r(881).isArray;t.exports={copyOptions:function(t){var e,r={};for(e in t)t.hasOwnProperty(e)&&(r[e]=t[e]);return r},ensureFlagExists:function(t,e){t in e&&"boolean"==typeof e[t]||(e[t]=!1)},ensureSpacesExists:function(t){(!("spaces"in t)||"number"!=typeof t.spaces&&"string"!=typeof t.spaces)&&(t.spaces=0)},ensureAlwaysArrayExists:function(t){"alwaysArray"in t&&("boolean"==typeof t.alwaysArray||s(t.alwaysArray))||(t.alwaysArray=!1)},ensureKeyExists:function(t,e){t+"Key"in e&&"string"==typeof e[t+"Key"]||(e[t+"Key"]=e.compact?"_"+t:t)},checkFnExists:function(t,e){return t+"Fn"in e}}},229:(t,e,r)=>{var s,A,i=r(99),n=r(740),o=r(881).isArray;function a(t){var e=Number(t);if(!isNaN(e))return e;var r=t.toLowerCase();return"true"===r||"false"!==r&&t}function h(t,e){var r;if(s.compact){if(!A[s[t+"Key"]]&&(o(s.alwaysArray)?-1!==s.alwaysArray.indexOf(s[t+"Key"]):s.alwaysArray)&&(A[s[t+"Key"]]=[]),A[s[t+"Key"]]&&!o(A[s[t+"Key"]])&&(A[s[t+"Key"]]=[A[s[t+"Key"]]]),t+"Fn"in s&&"string"==typeof e&&(e=s[t+"Fn"](e,A)),"instruction"===t&&("instructionFn"in s||"instructionNameFn"in s))for(r in e)if(e.hasOwnProperty(r))if("instructionFn"in s)e[r]=s.instructionFn(e[r],r,A);else{var i=e[r];delete e[r],e[s.instructionNameFn(r,i,A)]=i}o(A[s[t+"Key"]])?A[s[t+"Key"]].push(e):A[s[t+"Key"]]=e}else{A[s.elementsKey]||(A[s.elementsKey]=[]);var n={};if(n[s.typeKey]=t,"instruction"===t){for(r in e)if(e.hasOwnProperty(r))break;n[s.nameKey]="instructionNameFn"in s?s.instructionNameFn(r,e,A):r,s.instructionHasAttributes?(n[s.attributesKey]=e[r][s.attributesKey],"instructionFn"in s&&(n[s.attributesKey]=s.instructionFn(n[s.attributesKey],r,A))):("instructionFn"in s&&(e[r]=s.instructionFn(e[r],r,A)),n[s.instructionKey]=e[r])}else t+"Fn"in s&&(e=s[t+"Fn"](e,A)),n[s[t+"Key"]]=e;s.addParent&&(n[s.parentKey]=A),A[s.elementsKey].push(n)}}function l(t){var e;if("attributesFn"in s&&t&&(t=s.attributesFn(t,A)),(s.trim||"attributeValueFn"in s||"attributeNameFn"in s||s.nativeTypeAttributes)&&t)for(e in t)if(t.hasOwnProperty(e)&&(s.trim&&(t[e]=t[e].trim()),s.nativeTypeAttributes&&(t[e]=a(t[e])),"attributeValueFn"in s&&(t[e]=s.attributeValueFn(t[e],e,A)),"attributeNameFn"in s)){var r=t[e];delete t[e],t[s.attributeNameFn(e,t[e],A)]=r}return t}function c(t){var e={};if(t.body&&("xml"===t.name.toLowerCase()||s.instructionHasAttributes)){for(var r,i=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g;null!==(r=i.exec(t.body));)e[r[1]]=r[2]||r[3]||r[4];e=l(e)}if("xml"===t.name.toLowerCase()){if(s.ignoreDeclaration)return;A[s.declarationKey]={},Object.keys(e).length&&(A[s.declarationKey][s.attributesKey]=e),s.addParent&&(A[s.declarationKey][s.parentKey]=A)}else{if(s.ignoreInstruction)return;s.trim&&(t.body=t.body.trim());var n={};s.instructionHasAttributes&&Object.keys(e).length?(n[t.name]={},n[t.name][s.attributesKey]=e):n[t.name]=t.body,h("instruction",n)}}function u(t,e){var r;if("object"==typeof t&&(e=t.attributes,t=t.name),e=l(e),"elementNameFn"in s&&(t=s.elementNameFn(t,A)),s.compact){var i;if(r={},!s.ignoreAttributes&&e&&Object.keys(e).length)for(i in r[s.attributesKey]={},e)e.hasOwnProperty(i)&&(r[s.attributesKey][i]=e[i]);!(t in A)&&(o(s.alwaysArray)?-1!==s.alwaysArray.indexOf(t):s.alwaysArray)&&(A[t]=[]),A[t]&&!o(A[t])&&(A[t]=[A[t]]),o(A[t])?A[t].push(r):A[t]=r}else A[s.elementsKey]||(A[s.elementsKey]=[]),(r={})[s.typeKey]="element",r[s.nameKey]=t,!s.ignoreAttributes&&e&&Object.keys(e).length&&(r[s.attributesKey]=e),s.alwaysChildren&&(r[s.elementsKey]=[]),A[s.elementsKey].push(r);r[s.parentKey]=A,A=r}function d(t){s.ignoreText||(t.trim()||s.captureSpacesBetweenElements)&&(s.trim&&(t=t.trim()),s.nativeType&&(t=a(t)),s.sanitize&&(t=t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")),h("text",t))}function p(t){s.ignoreComment||(s.trim&&(t=t.trim()),h("comment",t))}function g(t){var e=A[s.parentKey];s.addParent||delete A[s.parentKey],A=e}function f(t){s.ignoreCdata||(s.trim&&(t=t.trim()),h("cdata",t))}function _(t){s.ignoreDoctype||(t=t.replace(/^ /,""),s.trim&&(t=t.trim()),h("doctype",t))}function m(t){t.note=t}t.exports=function(t,e){var r=i.parser(!0,{}),o={};if(A=o,s=function(t){return s=n.copyOptions(t),n.ensureFlagExists("ignoreDeclaration",s),n.ensureFlagExists("ignoreInstruction",s),n.ensureFlagExists("ignoreAttributes",s),n.ensureFlagExists("ignoreText",s),n.ensureFlagExists("ignoreComment",s),n.ensureFlagExists("ignoreCdata",s),n.ensureFlagExists("ignoreDoctype",s),n.ensureFlagExists("compact",s),n.ensureFlagExists("alwaysChildren",s),n.ensureFlagExists("addParent",s),n.ensureFlagExists("trim",s),n.ensureFlagExists("nativeType",s),n.ensureFlagExists("nativeTypeAttributes",s),n.ensureFlagExists("sanitize",s),n.ensureFlagExists("instructionHasAttributes",s),n.ensureFlagExists("captureSpacesBetweenElements",s),n.ensureAlwaysArrayExists(s),n.ensureKeyExists("declaration",s),n.ensureKeyExists("instruction",s),n.ensureKeyExists("attributes",s),n.ensureKeyExists("text",s),n.ensureKeyExists("comment",s),n.ensureKeyExists("cdata",s),n.ensureKeyExists("doctype",s),n.ensureKeyExists("type",s),n.ensureKeyExists("name",s),n.ensureKeyExists("elements",s),n.ensureKeyExists("parent",s),n.checkFnExists("doctype",s),n.checkFnExists("instruction",s),n.checkFnExists("cdata",s),n.checkFnExists("comment",s),n.checkFnExists("text",s),n.checkFnExists("instructionName",s),n.checkFnExists("elementName",s),n.checkFnExists("attributeName",s),n.checkFnExists("attributeValue",s),n.checkFnExists("attributes",s),s}(e),r.opt={strictEntities:!0},r.onopentag=u,r.ontext=d,r.oncomment=p,r.onclosetag=g,r.onerror=m,r.oncdata=f,r.ondoctype=_,r.onprocessinginstruction=c,r.write(t).close(),o[s.elementsKey]){var a=o[s.elementsKey];delete o[s.elementsKey],o[s.elementsKey]=a,delete o.text}return o}},388:(t,e,r)=>{var s=r(740),A=r(229);t.exports=function(t,e){var r,i,n;return r=function(t){var e=s.copyOptions(t);return s.ensureSpacesExists(e),e}(e),i=A(t,r),n="compact"in r&&r.compact?"_parent":"parent",("addParent"in r&&r.addParent?JSON.stringify(i,(function(t,e){return t===n?"_":e}),r.spaces):JSON.stringify(i,null,r.spaces)).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}},255:t=>{var e={"&":"&amp;",'"':"&quot;","'":"&apos;","<":"&lt;",">":"&gt;"};t.exports=function(t){return t&&t.replace?t.replace(/([&"<>'])/g,(function(t,r){return e[r]})):t}},479:(t,e,r)=>{var s=r(155),A=r(255),i=r(830).Stream;function n(t,e,r){r=r||0;var s,i,o=(s=e,new Array(r||0).join(s||"")),a=t;if("object"==typeof t&&(a=t[i=Object.keys(t)[0]])&&a._elem)return a._elem.name=i,a._elem.icount=r,a._elem.indent=e,a._elem.indents=o,a._elem.interrupt=a,a._elem;var h,l=[],c=[];function u(t){Object.keys(t).forEach((function(e){l.push(function(t,e){return t+'="'+A(e)+'"'}(e,t[e]))}))}switch(typeof a){case"object":if(null===a)break;a._attr&&u(a._attr),a._cdata&&c.push(("<![CDATA["+a._cdata).replace(/\]\]>/g,"]]]]><![CDATA[>")+"]]>"),a.forEach&&(h=!1,c.push(""),a.forEach((function(t){"object"==typeof t?"_attr"==Object.keys(t)[0]?u(t._attr):c.push(n(t,e,r+1)):(c.pop(),h=!0,c.push(A(t)))})),h||c.push(""));break;default:c.push(A(a))}return{name:i,interrupt:!1,attributes:l,content:c,icount:r,indents:o,indent:e}}function o(t,e,r){if("object"!=typeof e)return t(!1,e);var s=e.interrupt?1:e.content.length;function A(){for(;e.content.length;){var A=e.content.shift();if(void 0!==A){if(i(A))return;o(t,A)}}t(!1,(s>1?e.indents:"")+(e.name?"</"+e.name+">":"")+(e.indent&&!r?"\n":"")),r&&r()}function i(e){return!!e.interrupt&&(e.interrupt.append=t,e.interrupt.end=A,e.interrupt=!1,t(!0),!0)}if(t(!1,e.indents+(e.name?"<"+e.name:"")+(e.attributes.length?" "+e.attributes.join(" "):"")+(s?e.name?">":"":e.name?"/>":"")+(e.indent&&s>1?"\n":"")),!s)return t(!1,e.indent?"\n":"");i(e)||A()}t.exports=function(t,e){"object"!=typeof e&&(e={indent:e});var r,A,a=e.stream?new i:null,h="",l=!1,c=e.indent?!0===e.indent?" ":e.indent:"",u=!0;function d(t){u?s.nextTick(t):t()}function p(t,e){if(void 0!==e&&(h+=e),t&&!l&&(a=a||new i,l=!0),t&&l){var r=h;d((function(){a.emit("data",r)})),h=""}}function g(t,e){o(p,n(t,c,c?1:0),e)}function f(){if(a){var t=h;d((function(){a.emit("data",t),a.emit("end"),a.readable=!1,a.emit("close")}))}}return d((function(){u=!1})),e.declaration&&(A={version:"1.0",encoding:(r=e.declaration).encoding||"UTF-8"},r.standalone&&(A.standalone=r.standalone),g({"?xml":{_attr:A}}),h=h.replace("/>","?>")),t&&t.forEach?t.forEach((function(e,r){var s;r+1===t.length&&(s=f),g(e,s)})):g(t,f),a?(a.readable=!0,a):h},t.exports.element=t.exports.Element=function(){var t={_elem:n(Array.prototype.slice.call(arguments)),push:function(t){if(!this.append)throw new Error("not assigned to a parent!");var e=this,r=this._elem.indent;o(this.append,n(t,r,this._elem.icount+(r?1:0)),(function(){e.append(!0)}))},close:function(t){void 0!==t&&this.push(t),this.end&&this.end()}};return t}},862:()=>{},964:()=>{}},e={};function r(s){var A=e[s];if(void 0!==A)return A.exports;var i=e[s]={exports:{}};return t[s](i,i.exports,r),i.exports}r.d=(t,e)=>{for(var s in e)r.o(e,s)&&!r.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var s={};return(()=>{r.r(s),r.d(s,{AbstractNumbering:()=>rn,Alignment:()=>J,AlignmentAttributes:()=>X,AlignmentType:()=>N,Attributes:()=>o,BaseEmphasisMark:()=>ut,BaseXmlComponent:()=>t,Body:()=>gs,Bookmark:()=>Nr,BookmarkEnd:()=>kr,BookmarkStart:()=>Mr,Border:()=>j,BorderElement:()=>Y,BorderStyle:()=>M,Column:()=>_s,ColumnAttributes:()=>fs,ColumnBreak:()=>Br,Columns:()=>jr,ColumnsAttributes:()=>$r,ConcreteHyperlink:()=>Qr,ConcreteNumbering:()=>nn,DeletedTextRun:()=>po,DocGridAttributes:()=>Zr,Document:()=>Kn,DocumentAttributes:()=>ms,DocumentBackground:()=>Bs,DocumentBackgroundAttributes:()=>ws,DocumentDefaults:()=>kn,DocumentGrid:()=>qr,DotEmphasisMark:()=>pt,Drawing:()=>hr,DropCapType:()=>bs,EMPTY_OBJECT:()=>e,EmphasisMark:()=>dt,EmphasisMarkType:()=>K,ExternalHyperlink:()=>Lr,File:()=>Kn,FootNoteReferenceRunAttributes:()=>ro,FootNotes:()=>Ui,Footer:()=>eo,FooterWrapper:()=>Pi,FootnoteReference:()=>so,FootnoteReferenceRun:()=>Ao,FrameAnchorType:()=>xs,FrameProperties:()=>Ss,FramePropertiesAttributes:()=>Is,FrameWrap:()=>Ps,GridSpan:()=>DA,Header:()=>to,HeaderFooterReference:()=>Yr,HeaderFooterReferenceType:()=>jt,HeaderFooterType:()=>Zt,HeaderWrapper:()=>ki,HeadingLevel:()=>Kt,HeightRule:()=>$A,HorizontalPosition:()=>ce,HorizontalPositionAlign:()=>fo,HorizontalPositionRelativeFrom:()=>Ht,HpsMeasureElement:()=>D,HyperlinkType:()=>Yt,IgnoreIfEmptyXmlComponent:()=>i,ImageRun:()=>lr,ImportDotx:()=>So,ImportedRootElementAttributes:()=>u,ImportedXmlComponent:()=>c,Indent:()=>tt,InitializableXmlComponent:()=>p,InsertedTextRun:()=>no,InternalHyperlink:()=>Dr,LeaderType:()=>zt,Level:()=>Zi,LevelBase:()=>ji,LevelForOverride:()=>qi,LevelFormat:()=>Ki,LevelOverride:()=>an,LevelSuffix:()=>Wi,LineNumberAttributes:()=>ts,LineNumberRestartFormat:()=>qt,LineNumberType:()=>es,LineRuleType:()=>Gt,Math:()=>Rs,MathAccentCharacter:()=>Ns,MathAngledBrackets:()=>yA,MathBase:()=>Ms,MathCurlyBrackets:()=>CA,MathDegree:()=>nA,MathDenominator:()=>Ds,MathFraction:()=>Us,MathFunction:()=>dA,MathFunctionName:()=>cA,MathFunctionProperties:()=>uA,MathLimitLocation:()=>Vs,MathNArayProperties:()=>Xs,MathNumerator:()=>Ls,MathPreSubSuperScript:()=>AA,MathPreSubSuperScriptProperties:()=>sA,MathRadical:()=>lA,MathRadicalProperties:()=>hA,MathRoundBrackets:()=>wA,MathRun:()=>Qs,MathSquareBrackets:()=>BA,MathSubScript:()=>tA,MathSubScriptElement:()=>Js,MathSubScriptProperties:()=>qs,MathSubSuperScript:()=>rA,MathSubSuperScriptProperties:()=>eA,MathSum:()=>$s,MathSuperScript:()=>Zs,MathSuperScriptElement:()=>Ys,MathSuperScriptProperties:()=>js,Media:()=>Vi,NumberFormat:()=>mo,NumberProperties:()=>Ir,NumberValueElement:()=>U,Numbering:()=>cn,OnOffElement:()=>Q,OutlineLevel:()=>Vr,OverlapType:()=>WA,Packer:()=>bo,PageBorderDisplay:()=>te,PageBorderOffsetFrom:()=>ee,PageBorderZOrder:()=>re,PageBorders:()=>ss,PageBreak:()=>wr,PageBreakBefore:()=>Cr,PageMargin:()=>is,PageMarginAttributes:()=>As,PageNumber:()=>z,PageNumberSeparator:()=>se,PageNumberType:()=>os,PageNumberTypeAttributes:()=>ns,PageOrientation:()=>Ae,PageReference:()=>Wr,PageSize:()=>hs,PageSizeAttributes:()=>as,Paragraph:()=>Fs,ParagraphProperties:()=>Ts,ParagraphPropertiesDefaults:()=>Nn,RelativeHorizontalPosition:()=>XA,RelativeVerticalPosition:()=>JA,Run:()=>It,RunFonts:()=>Bt,RunProperties:()=>bt,RunPropertiesDefaults:()=>Mn,SectionProperties:()=>ps,SectionType:()=>ie,SectionTypeAttributes:()=>ls,SequentialIdentifier:()=>dr,Shading:()=>ct,ShadingType:()=>G,SimpleField:()=>fr,SimpleMailMergeField:()=>_r,SimplePos:()=>oe,Spacing:()=>vr,StringContainer:()=>H,StringValueElement:()=>L,Style:()=>Er,StyleForCharacter:()=>vn,StyleForParagraph:()=>yn,StyleLevel:()=>qn,Styles:()=>Hn,SymbolRun:()=>Rt,TDirection:()=>NA,Tab:()=>pr,TabAttributes:()=>xr,TabStop:()=>br,TabStopItem:()=>Pr,TabStopPosition:()=>Xt,TabStopType:()=>Wt,Table:()=>ii,TableAnchorType:()=>zA,TableBorders:()=>KA,TableCell:()=>kA,TableCellBorders:()=>OA,TableFloatOptionsAttributes:()=>ti,TableFloatProperties:()=>ei,TableLayout:()=>si,TableLayoutType:()=>YA,TableOfContents:()=>Zn,TableOverlap:()=>qA,TableProperties:()=>Ai,TableRow:()=>hi,TableRowHeight:()=>oi,TableRowHeightAttributes:()=>ni,TableRowProperties:()=>ai,TableWidthElement:()=>FA,TextDirection:()=>SA,TextRun:()=>St,TextWrappingSide:()=>kt,TextWrappingType:()=>Mt,ThematicBreak:()=>Z,Type:()=>cs,Underline:()=>Et,UnderlineType:()=>W,VerticalAlign:()=>$t,VerticalAlignAttributes:()=>zr,VerticalAlignElement:()=>Xr,VerticalMerge:()=>UA,VerticalMergeType:()=>IA,VerticalPosition:()=>de,VerticalPositionAlign:()=>_o,VerticalPositionRelativeFrom:()=>Nt,WORKAROUND:()=>Wn,WORKAROUND2:()=>Gi,WORKAROUND3:()=>d,WORKAROUND4:()=>iA,WidthType:()=>xA,WrapNone:()=>Ge,WrapSquare:()=>We,WrapTight:()=>Xe,WrapTopAndBottom:()=>Ye,XmlAttributeComponent:()=>n,XmlComponent:()=>A,convertInchesToTwip:()=>Dt,convertMillimetersToTwip:()=>Qt,convertToXmlComponent:()=>h,dateTimeValue:()=>O,decimalNumber:()=>g,eighthPointMeasureValue:()=>F,hexColorValue:()=>E,hpsMeasureValue:()=>x,longHexNumber:()=>m,measurementOrPercentValue:()=>T,percentageValue:()=>S,pointMeasureValue:()=>R,positiveUniversalMeasureValue:()=>v,sectionMarginDefaults:()=>us,sectionPageSizeDefaults:()=>ds,shortHexNumber:()=>w,signedHpsMeasureValue:()=>P,signedTwipsMeasureValue:()=>b,twipsMeasureValue:()=>I,uCharHexNumber:()=>B,uniqueId:()=>Ut,uniqueNumericId:()=>Lt,universalMeasureValue:()=>C,unsignedDecimalNumber:()=>f});class t{constructor(t){this.rootKey=t}}const e=Object.seal({});class A extends t{constructor(t){super(t),this.root=new Array}prepForXml(r){var s;const A=this.root.map((e=>e instanceof t?e.prepForXml(r):e)).filter((t=>void 0!==t));return{[this.rootKey]:A.length?1===A.length&&(null===(s=A[0])||void 0===s?void 0:s._attr)?A[0]:A:e}}addChildElement(t){return this.root.push(t),this}}class i extends A{prepForXml(t){const e=super.prepForXml(t);if(e&&("object"!=typeof e[this.rootKey]||Object.keys(e[this.rootKey]).length))return e}}class n extends t{constructor(t){super("_attr"),this.root=t}prepForXml(t){const e={};return Object.keys(this.root).forEach((t=>{const r=this.root[t];if(void 0!==r){const s=this.xmlKeys&&this.xmlKeys[t]||t;e[s]=r}})),{_attr:e}}set(t){this.root=t}}class o extends n{constructor(){super(...arguments),this.xmlKeys={val:"w:val",color:"w:color",fill:"w:fill",space:"w:space",sz:"w:sz",type:"w:type",rsidR:"w:rsidR",rsidRPr:"w:rsidRPr",rsidSect:"w:rsidSect",w:"w:w",h:"w:h",top:"w:top",right:"w:right",bottom:"w:bottom",left:"w:left",header:"w:header",footer:"w:footer",gutter:"w:gutter",linePitch:"w:linePitch",pos:"w:pos"}}}var a=r(888);function h(t){switch(t.type){case void 0:case"element":const e=new c(t.name,t.attributes),r=t.elements||[];for(const t of r){const r=h(t);void 0!==r&&e.push(r)}return e;case"text":return t.text;default:return}}class l extends n{}class c extends A{static fromXmlString(t){return h((0,a.xml2js)(t,{compact:!1}))}constructor(t,e){super(t),e&&this.root.push(new l(e))}push(t){this.root.push(t)}}class u extends A{constructor(t){super(""),this._attr=t}prepForXml(t){return{_attr:this._attr}}}const d="";class p extends A{constructor(t,e){super(t),e&&(this.root=e.root)}}function g(t){if(isNaN(t))throw new Error("Invalid value '".concat(t,"' specified. Must be an integer."));return Math.floor(t)}function f(t){const e=g(t);if(e<0)throw new Error("Invalid value '".concat(t,"' specified. Must be a positive integer."));return e}function _(t,e){const r=2*e;if(t.length!==r||isNaN(Number("0x"+t)))throw new Error("Invalid hex value '".concat(t,"'. Expected ").concat(r," digit hex value"));return t}function m(t){return _(t,4)}function w(t){return _(t,2)}function B(t){return _(t,1)}function C(t){const e=t.slice(-2);if(!y.includes(e))throw new Error("Invalid unit '".concat(e,"' specified. Valid units are ").concat(y.join(", ")));const r=t.substring(0,t.length-2);if(isNaN(Number(r)))throw new Error("Invalid value '".concat(r,"' specified. Expected a valid number."));return"".concat(Number(r)).concat(e)}const y=["mm","cm","in","pt","pc","pi"];function v(t){const e=C(t);if(parseFloat(e)<0)throw new Error("Invalid value '".concat(e,"' specified. Expected a positive number."));return e}function E(t){return"auto"===t?t:_("#"===t.charAt(0)?t.substring(1):t,3)}function b(t){return"string"==typeof t?C(t):g(t)}function x(t){return"string"==typeof t?v(t):f(t)}function P(t){return"string"==typeof t?C(t):g(t)}function I(t){return"string"==typeof t?v(t):f(t)}function S(t){if("%"!==t.slice(-1))throw new Error("Invalid value '".concat(t,"'. Expected percentage value (eg '55%')"));const e=t.substring(0,t.length-1);if(isNaN(Number(e)))throw new Error("Invalid value '".concat(e,"' specified. Expected a valid number."));return"".concat(Number(e),"%")}function T(t){return"number"==typeof t?g(t):"%"===t.slice(-1)?S(t):C(t)}const F=f,R=f;function O(t){return t.toISOString()}class Q extends A{constructor(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];super(t),!0!==e&&this.root.push(new o({val:e}))}}class D extends A{constructor(t,e){super(t),this.root.push(new o({val:x(e)}))}}class L extends A{constructor(t,e){super(t),this.root.push(new o({val:e}))}}class U extends A{constructor(t,e){super(t),this.root.push(new o({val:e}))}}class H extends A{constructor(t,e){super(t),this.root.push(e)}}var N,M,k,V,G,K,W,z;!function(t){t.START="start",t.END="end",t.CENTER="center",t.BOTH="both",t.JUSTIFIED="both",t.DISTRIBUTE="distribute",t.LEFT="left",t.RIGHT="right"}(N||(N={}));class X extends n{constructor(){super(...arguments),this.xmlKeys={val:"w:val"}}}class J extends A{constructor(t){super("w:jc"),this.root.push(new X({val:t}))}}class Y extends A{constructor(t,e){let{color:r,size:s,space:A,style:i}=e;super(t),this.root.push(new $({style:i,color:void 0===r?void 0:E(r),size:void 0===s?void 0:F(s),space:void 0===A?void 0:R(A)}))}}class $ extends n{constructor(){super(...arguments),this.xmlKeys={style:"w:val",color:"w:color",size:"w:sz",space:"w:space"}}}!function(t){t.SINGLE="single",t.DASH_DOT_STROKED="dashDotStroked",t.DASHED="dashed",t.DASH_SMALL_GAP="dashSmallGap",t.DOT_DASH="dotDash",t.DOT_DOT_DASH="dotDotDash",t.DOTTED="dotted",t.DOUBLE="double",t.DOUBLE_WAVE="doubleWave",t.INSET="inset",t.NIL="nil",t.NONE="none",t.OUTSET="outset",t.THICK="thick",t.THICK_THIN_LARGE_GAP="thickThinLargeGap",t.THICK_THIN_MEDIUM_GAP="thickThinMediumGap",t.THICK_THIN_SMALL_GAP="thickThinSmallGap",t.THIN_THICK_LARGE_GAP="thinThickLargeGap",t.THIN_THICK_MEDIUM_GAP="thinThickMediumGap",t.THIN_THICK_SMALL_GAP="thinThickSmallGap",t.THIN_THICK_THIN_LARGE_GAP="thinThickThinLargeGap",t.THIN_THICK_THIN_MEDIUM_GAP="thinThickThinMediumGap",t.THIN_THICK_THIN_SMALL_GAP="thinThickThinSmallGap",t.THREE_D_EMBOSS="threeDEmboss",t.THREE_D_ENGRAVE="threeDEngrave",t.TRIPLE="triple",t.WAVE="wave"}(M||(M={}));class j extends i{constructor(t){super("w:pBdr"),t.top&&this.root.push(new Y("w:top",t.top)),t.bottom&&this.root.push(new Y("w:bottom",t.bottom)),t.left&&this.root.push(new Y("w:left",t.left)),t.right&&this.root.push(new Y("w:right",t.right))}}class Z extends A{constructor(){super("w:pBdr");const t=new Y("w:bottom",{color:"auto",space:1,style:M.SINGLE,size:6});this.root.push(t)}}class q extends n{constructor(){super(...arguments),this.xmlKeys={start:"w:start",end:"w:end",left:"w:left",right:"w:right",hanging:"w:hanging",firstLine:"w:firstLine"}}}class tt extends A{constructor(t){let{start:e,end:r,left:s,right:A,hanging:i,firstLine:n}=t;super("w:ind"),this.root.push(new q({start:void 0===e?void 0:b(e),end:void 0===r?void 0:b(r),left:void 0===s?void 0:b(s),right:void 0===A?void 0:b(A),hanging:void 0===i?void 0:I(i),firstLine:void 0===n?void 0:I(n)}))}}class et extends A{constructor(){super("w:br")}}!function(t){t.BEGIN="begin",t.END="end",t.SEPARATE="separate"}(k||(k={}));class rt extends n{constructor(){super(...arguments),this.xmlKeys={type:"w:fldCharType",dirty:"w:dirty"}}}class st extends A{constructor(t){super("w:fldChar"),this.root.push(new rt({type:k.BEGIN,dirty:t}))}}class At extends A{constructor(t){super("w:fldChar"),this.root.push(new rt({type:k.SEPARATE,dirty:t}))}}class it extends A{constructor(t){super("w:fldChar"),this.root.push(new rt({type:k.END,dirty:t}))}}!function(t){t.DEFAULT="default",t.PRESERVE="preserve"}(V||(V={}));class nt extends n{constructor(){super(...arguments),this.xmlKeys={space:"xml:space"}}}class ot extends A{constructor(){super("w:instrText"),this.root.push(new nt({space:V.PRESERVE})),this.root.push("PAGE")}}class at extends A{constructor(){super("w:instrText"),this.root.push(new nt({space:V.PRESERVE})),this.root.push("NUMPAGES")}}class ht extends A{constructor(){super("w:instrText"),this.root.push(new nt({space:V.PRESERVE})),this.root.push("SECTIONPAGES")}}class lt extends n{constructor(){super(...arguments),this.xmlKeys={fill:"w:fill",color:"w:color",type:"w:val"}}}class ct extends A{constructor(t){let{fill:e,color:r,type:s}=t;super("w:shd"),this.root.push(new lt({fill:void 0===e?void 0:E(e),color:void 0===r?void 0:E(r),type:s}))}}!function(t){t.CLEAR="clear",t.DIAGONAL_CROSS="diagCross",t.DIAGONAL_STRIPE="diagStripe",t.HORIZONTAL_CROSS="horzCross",t.HORIZONTAL_STRIPE="horzStripe",t.NIL="nil",t.PERCENT_5="pct5",t.PERCENT_10="pct10",t.PERCENT_12="pct12",t.PERCENT_15="pct15",t.PERCENT_20="pct20",t.PERCENT_25="pct25",t.PERCENT_30="pct30",t.PERCENT_35="pct35",t.PERCENT_37="pct37",t.PERCENT_40="pct40",t.PERCENT_45="pct45",t.PERCENT_50="pct50",t.PERCENT_55="pct55",t.PERCENT_60="pct60",t.PERCENT_62="pct62",t.PERCENT_65="pct65",t.PERCENT_70="pct70",t.PERCENT_75="pct75",t.PERCENT_80="pct80",t.PERCENT_85="pct85",t.PERCENT_87="pct87",t.PERCENT_90="pct90",t.PERCENT_95="pct95",t.REVERSE_DIAGONAL_STRIPE="reverseDiagStripe",t.SOLID="solid",t.THIN_DIAGONAL_CROSS="thinDiagCross",t.THIN_DIAGONAL_STRIPE="thinDiagStripe",t.THIN_HORIZONTAL_CROSS="thinHorzCross",t.THIN_REVERSE_DIAGONAL_STRIPE="thinReverseDiagStripe",t.THIN_VERTICAL_STRIPE="thinVertStripe",t.VERTICAL_STRIPE="vertStripe"}(G||(G={})),function(t){t.DOT="dot"}(K||(K={}));class ut extends A{constructor(t){super("w:em"),this.root.push(new o({val:t}))}}class dt extends ut{constructor(){super(arguments.length>0&&void 0!==arguments[0]?arguments[0]:K.DOT)}}class pt extends ut{constructor(){super(K.DOT)}}class gt extends A{constructor(t){super("w:spacing"),this.root.push(new o({val:b(t)}))}}class ft extends A{constructor(t){super("w:color"),this.root.push(new o({val:E(t)}))}}class _t extends A{constructor(t){super("w:highlight"),this.root.push(new o({val:t}))}}class mt extends A{constructor(t){super("w:highlightCs"),this.root.push(new o({val:t}))}}class wt extends n{constructor(){super(...arguments),this.xmlKeys={ascii:"w:ascii",cs:"w:cs",eastAsia:"w:eastAsia",hAnsi:"w:hAnsi",hint:"w:hint"}}}class Bt extends A{constructor(t,e){if(super("w:rFonts"),"string"==typeof t){const r=t;this.root.push(new wt({ascii:r,cs:r,eastAsia:r,hAnsi:r,hint:e}))}else{const e=t;this.root.push(new wt(e))}}}class Ct extends A{constructor(t){super("w:vertAlign"),this.root.push(new o({val:t}))}}class yt extends Ct{constructor(){super("superscript")}}class vt extends Ct{constructor(){super("subscript")}}!function(t){t.SINGLE="single",t.WORDS="words",t.DOUBLE="double",t.THICK="thick",t.DOTTED="dotted",t.DOTTEDHEAVY="dottedHeavy",t.DASH="dash",t.DASHEDHEAVY="dashedHeavy",t.DASHLONG="dashLong",t.DASHLONGHEAVY="dashLongHeavy",t.DOTDASH="dotDash",t.DASHDOTHEAVY="dashDotHeavy",t.DOTDOTDASH="dotDotDash",t.DASHDOTDOTHEAVY="dashDotDotHeavy",t.WAVE="wave",t.WAVYHEAVY="wavyHeavy",t.WAVYDOUBLE="wavyDouble"}(W||(W={}));class Et extends A{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:W.SINGLE,e=arguments.length>1?arguments[1]:void 0;super("w:u"),this.root.push(new o({val:t,color:void 0===e?void 0:E(e)}))}}class bt extends i{constructor(t){var e,r;if(super("w:rPr"),!t)return;void 0!==t.bold&&this.push(new Q("w:b",t.bold)),(void 0===t.boldComplexScript&&void 0!==t.bold||t.boldComplexScript)&&this.push(new Q("w:bCs",null!==(e=t.boldComplexScript)&&void 0!==e?e:t.bold)),void 0!==t.italics&&this.push(new Q("w:i",t.italics)),(void 0===t.italicsComplexScript&&void 0!==t.italics||t.italicsComplexScript)&&this.push(new Q("w:iCs",null!==(r=t.italicsComplexScript)&&void 0!==r?r:t.italics)),t.underline&&this.push(new Et(t.underline.type,t.underline.color)),t.emphasisMark&&this.push(new dt(t.emphasisMark.type)),t.color&&this.push(new ft(t.color)),void 0!==t.size&&this.push(new D("w:sz",t.size));const s=void 0===t.sizeComplexScript||!0===t.sizeComplexScript?t.size:t.sizeComplexScript;s&&this.push(new D("w:szCs",s)),void 0!==t.rightToLeft&&this.push(new Q("w:rtl",t.rightToLeft)),void 0!==t.smallCaps?this.push(new Q("w:smallCaps",t.smallCaps)):void 0!==t.allCaps&&this.push(new Q("w:caps",t.allCaps)),void 0!==t.strike&&this.push(new Q("w:strike",t.strike)),void 0!==t.doubleStrike&&this.push(new Q("w:dstrike",t.doubleStrike)),t.subScript&&this.push(new vt),t.superScript&&this.push(new yt),t.style&&this.push(new L("w:rStyle",t.style)),t.font&&("string"==typeof t.font?this.push(new Bt(t.font)):"name"in t.font?this.push(new Bt(t.font.name,t.font.hint)):this.push(new Bt(t.font))),t.highlight&&this.push(new _t(t.highlight));const A=void 0===t.highlightComplexScript||!0===t.highlightComplexScript?t.highlight:t.highlightComplexScript;A&&this.push(new mt(A)),t.characterSpacing&&this.push(new gt(t.characterSpacing)),void 0!==t.emboss&&this.push(new Q("w:emboss",t.emboss)),void 0!==t.imprint&&this.push(new Q("w:imprint",t.imprint)),t.shading&&this.push(new ct(t.shading))}push(t){this.root.push(t)}}class xt extends n{constructor(){super(...arguments),this.xmlKeys={space:"xml:space"}}}class Pt extends A{constructor(t){super("w:t"),this.root.push(new xt({space:V.PRESERVE})),this.root.push(t)}}!function(t){t.CURRENT="CURRENT",t.TOTAL_PAGES="TOTAL_PAGES",t.TOTAL_PAGES_IN_SECTION="TOTAL_PAGES_IN_SECTION"}(z||(z={}));class It extends A{constructor(t){if(super("w:r"),this.properties=new bt(t),this.root.push(this.properties),t.break)for(let e=0;e<t.break;e++)this.root.push(new et);if(t.children)for(const e of t.children)if("string"!=typeof e)this.root.push(e);else switch(e){case z.CURRENT:this.root.push(new st),this.root.push(new ot),this.root.push(new At),this.root.push(new it);break;case z.TOTAL_PAGES:this.root.push(new st),this.root.push(new at),this.root.push(new At),this.root.push(new it);break;case z.TOTAL_PAGES_IN_SECTION:this.root.push(new st),this.root.push(new ht),this.root.push(new At),this.root.push(new it);break;default:this.root.push(new Pt(e))}else t.text&&this.root.push(new Pt(t.text))}}class St extends It{constructor(t){if("string"==typeof t)return super({}),this.root.push(new Pt(t)),this;super(t)}}class Tt extends n{constructor(){super(...arguments),this.xmlKeys={char:"w:char",symbolfont:"w:font"}}}class Ft extends A{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Wingdings";super("w:sym"),this.root.push(new Tt({char:t,symbolfont:e}))}}class Rt extends It{constructor(t){if("string"==typeof t)return super({}),void this.root.push(new Ft(t));super(t),this.root.push(new Ft(t.char,t.symbolfont))}}let Ot=0;const Qt=t=>Math.floor(t/25.4*72*20),Dt=t=>Math.floor(72*t*20),Lt=()=>++Ot,Ut=()=>function(){let t="",e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:21;for(;e--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t}().toLowerCase();var Ht,Nt,Mt,kt,Vt,Gt,Kt,Wt,zt,Xt,Jt,Yt,$t,jt,Zt,qt,te,ee,re,se,Ae,ie;!function(t){t.CHARACTER="character",t.COLUMN="column",t.INSIDE_MARGIN="insideMargin",t.LEFT_MARGIN="leftMargin",t.MARGIN="margin",t.OUTSIDE_MARGIN="outsideMargin",t.PAGE="page",t.RIGHT_MARGIN="rightMargin"}(Ht||(Ht={})),function(t){t.BOTTOM_MARGIN="bottomMargin",t.INSIDE_MARGIN="insideMargin",t.LINE="line",t.MARGIN="margin",t.OUTSIDE_MARGIN="outsideMargin",t.PAGE="page",t.PARAGRAPH="paragraph",t.TOP_MARGIN="topMargin"}(Nt||(Nt={}));class ne extends n{constructor(){super(...arguments),this.xmlKeys={x:"x",y:"y"}}}class oe extends A{constructor(){super("wp:simplePos"),this.root.push(new ne({x:0,y:0}))}}class ae extends A{constructor(t){super("wp:align"),this.root.push(t)}}class he extends A{constructor(t){super("wp:posOffset"),this.root.push(t.toString())}}class le extends n{constructor(){super(...arguments),this.xmlKeys={relativeFrom:"relativeFrom"}}}class ce extends A{constructor(t){if(super("wp:positionH"),this.root.push(new le({relativeFrom:t.relative||Ht.PAGE})),t.align)this.root.push(new ae(t.align));else{if(void 0===t.offset)throw new Error("There is no configuration provided for floating position (Align or offset)");this.root.push(new he(t.offset))}}}class ue extends n{constructor(){super(...arguments),this.xmlKeys={relativeFrom:"relativeFrom"}}}class de extends A{constructor(t){if(super("wp:positionV"),this.root.push(new ue({relativeFrom:t.relative||Nt.PAGE})),t.align)this.root.push(new ae(t.align));else{if(void 0===t.offset)throw new Error("There is no configuration provided for floating position (Align or offset)");this.root.push(new he(t.offset))}}}class pe extends n{constructor(){super(...arguments),this.xmlKeys={uri:"uri"}}}class ge extends n{constructor(){super(...arguments),this.xmlKeys={embed:"r:embed",cstate:"cstate"}}}class fe extends A{constructor(t){super("a:blip"),this.root.push(new ge({embed:"rId{".concat(t.fileName,"}"),cstate:"none"}))}}class _e extends A{constructor(){super("a:srcRect")}}class me extends A{constructor(){super("a:fillRect")}}class we extends A{constructor(){super("a:stretch"),this.root.push(new me)}}class Be extends A{constructor(t){super("pic:blipFill"),this.root.push(new fe(t)),this.root.push(new _e),this.root.push(new we)}}class Ce extends n{constructor(){super(...arguments),this.xmlKeys={noChangeAspect:"noChangeAspect",noChangeArrowheads:"noChangeArrowheads"}}}class ye extends A{constructor(){super("a:picLocks"),this.root.push(new Ce({noChangeAspect:1,noChangeArrowheads:1}))}}class ve extends A{constructor(){super("pic:cNvPicPr"),this.root.push(new ye)}}class Ee extends n{constructor(){super(...arguments),this.xmlKeys={id:"id",name:"name",descr:"descr"}}}class be extends A{constructor(){super("pic:cNvPr"),this.root.push(new Ee({id:0,name:"",descr:""}))}}class xe extends A{constructor(){super("pic:nvPicPr"),this.root.push(new be),this.root.push(new ve)}}class Pe extends n{constructor(){super(...arguments),this.xmlKeys={xmlns:"xmlns:pic"}}}class Ie extends n{constructor(){super(...arguments),this.xmlKeys={cx:"cx",cy:"cy"}}}class Se extends A{constructor(t,e){super("a:ext"),this.attributes=new Ie({cx:t,cy:e}),this.root.push(this.attributes)}}class Te extends n{constructor(){super(...arguments),this.xmlKeys={x:"x",y:"y"}}}class Fe extends A{constructor(){super("a:off"),this.root.push(new Te({x:0,y:0}))}}class Re extends n{constructor(){super(...arguments),this.xmlKeys={flipVertical:"flipV",flipHorizontal:"flipH",rotation:"rot"}}}class Oe extends A{constructor(t){var e,r;super("a:xfrm"),this.root.push(new Re({flipVertical:null===(e=t.flip)||void 0===e?void 0:e.vertical,flipHorizontal:null===(r=t.flip)||void 0===r?void 0:r.horizontal,rotation:t.rotation})),this.extents=new Se(t.emus.x,t.emus.y),this.root.push(new Fe),this.root.push(this.extents)}}class Qe extends A{constructor(){super("a:avLst")}}class De extends n{constructor(){super(...arguments),this.xmlKeys={prst:"prst"}}}class Le extends A{constructor(){super("a:prstGeom"),this.root.push(new De({prst:"rect"})),this.root.push(new Qe)}}class Ue extends n{constructor(){super(...arguments),this.xmlKeys={bwMode:"bwMode"}}}class He extends A{constructor(t){super("pic:spPr"),this.root.push(new Ue({bwMode:"auto"})),this.form=new Oe(t),this.root.push(this.form),this.root.push(new Le)}}class Ne extends A{constructor(t,e){super("pic:pic"),this.root.push(new Pe({xmlns:"http://schemas.openxmlformats.org/drawingml/2006/picture"})),this.root.push(new xe),this.root.push(new Be(t)),this.root.push(new He(e))}}class Me extends A{constructor(t,e){super("a:graphicData"),this.root.push(new pe({uri:"http://schemas.openxmlformats.org/drawingml/2006/picture"})),this.pic=new Ne(t,e),this.root.push(this.pic)}}class ke extends n{constructor(){super(...arguments),this.xmlKeys={a:"xmlns:a"}}}class Ve extends A{constructor(t,e){super("a:graphic"),this.root.push(new ke({a:"http://schemas.openxmlformats.org/drawingml/2006/main"})),this.data=new Me(t,e),this.root.push(this.data)}}!function(t){t[t.NONE=0]="NONE",t[t.SQUARE=1]="SQUARE",t[t.TIGHT=2]="TIGHT",t[t.TOP_AND_BOTTOM=3]="TOP_AND_BOTTOM"}(Mt||(Mt={})),function(t){t.BOTH_SIDES="bothSides",t.LEFT="left",t.RIGHT="right",t.LARGEST="largest"}(kt||(kt={}));class Ge extends A{constructor(){super("wp:wrapNone")}}class Ke extends n{constructor(){super(...arguments),this.xmlKeys={distT:"distT",distB:"distB",distL:"distL",distR:"distR",wrapText:"wrapText"}}}class We extends A{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{top:0,bottom:0,left:0,right:0};super("wp:wrapSquare"),this.root.push(new Ke({wrapText:t.side||kt.BOTH_SIDES,distT:e.top,distB:e.bottom,distL:e.left,distR:e.right}))}}class ze extends n{constructor(){super(...arguments),this.xmlKeys={distT:"distT",distB:"distB"}}}class Xe extends A{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{top:0,bottom:0};super("wp:wrapTight"),this.root.push(new ze({distT:t.top,distB:t.bottom}))}}class Je extends n{constructor(){super(...arguments),this.xmlKeys={distT:"distT",distB:"distB"}}}class Ye extends A{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{top:0,bottom:0};super("wp:wrapTopAndBottom"),this.root.push(new Je({distT:t.top,distB:t.bottom}))}}class $e extends n{constructor(){super(...arguments),this.xmlKeys={id:"id",name:"name",descr:"descr"}}}class je extends A{constructor(){super("wp:docPr"),this.root.push(new $e({id:0,name:"",descr:""}))}}class Ze extends n{constructor(){super(...arguments),this.xmlKeys={b:"b",l:"l",r:"r",t:"t"}}}class qe extends A{constructor(){super("wp:effectExtent"),this.root.push(new Ze({b:0,l:0,r:0,t:0}))}}class tr extends n{constructor(){super(...arguments),this.xmlKeys={cx:"cx",cy:"cy"}}}class er extends A{constructor(t,e){super("wp:extent"),this.attributes=new tr({cx:t,cy:e}),this.root.push(this.attributes)}}class rr extends n{constructor(){super(...arguments),this.xmlKeys={xmlns:"xmlns:a",noChangeAspect:"noChangeAspect"}}}class sr extends A{constructor(){super("a:graphicFrameLocks"),this.root.push(new rr({xmlns:"http://schemas.openxmlformats.org/drawingml/2006/main",noChangeAspect:1}))}}class Ar extends A{constructor(){super("wp:cNvGraphicFramePr"),this.root.push(new sr)}}class ir extends n{constructor(){super(...arguments),this.xmlKeys={distT:"distT",distB:"distB",distL:"distL",distR:"distR",allowOverlap:"allowOverlap",behindDoc:"behindDoc",layoutInCell:"layoutInCell",locked:"locked",relativeHeight:"relativeHeight",simplePos:"simplePos"}}}class nr extends A{constructor(t,e,r){super("wp:anchor");const s=Object.assign({allowOverlap:!0,behindDocument:!1,lockAnchor:!1,layoutInCell:!0,verticalPosition:{},horizontalPosition:{}},r.floating);if(this.root.push(new ir({distT:s.margins&&s.margins.top||0,distB:s.margins&&s.margins.bottom||0,distL:s.margins&&s.margins.left||0,distR:s.margins&&s.margins.right||0,simplePos:"0",allowOverlap:!0===s.allowOverlap?"1":"0",behindDoc:!0===s.behindDocument?"1":"0",locked:!0===s.lockAnchor?"1":"0",layoutInCell:!0===s.layoutInCell?"1":"0",relativeHeight:s.zIndex?s.zIndex:e.emus.y})),this.root.push(new oe),this.root.push(new ce(s.horizontalPosition)),this.root.push(new de(s.verticalPosition)),this.root.push(new er(e.emus.x,e.emus.y)),this.root.push(new qe),void 0!==r.floating&&void 0!==r.floating.wrap)switch(r.floating.wrap.type){case Mt.SQUARE:this.root.push(new We(r.floating.wrap,r.floating.margins));break;case Mt.TIGHT:this.root.push(new Xe(r.floating.margins));break;case Mt.TOP_AND_BOTTOM:this.root.push(new Ye(r.floating.margins));break;case Mt.NONE:default:this.root.push(new Ge)}else this.root.push(new Ge);this.root.push(new je),this.root.push(new Ar),this.root.push(new Ve(t,e))}}class or extends n{constructor(){super(...arguments),this.xmlKeys={distT:"distT",distB:"distB",distL:"distL",distR:"distR"}}}class ar extends A{constructor(t,e){super("wp:inline"),this.root.push(new or({distT:0,distB:0,distL:0,distR:0})),this.extent=new er(e.emus.x,e.emus.y),this.graphic=new Ve(t,e),this.root.push(this.extent),this.root.push(new qe),this.root.push(new je),this.root.push(new Ar),this.root.push(this.graphic)}}class hr extends A{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super("w:drawing"),e.floating?this.root.push(new nr(t,t.transformation,e)):(this.inline=new ar(t,t.transformation),this.root.push(this.inline))}}class lr extends It{constructor(t){super({}),this.key="".concat(Ut(),".png");const e="string"==typeof t.data?this.convertDataURIToBinary(t.data):t.data;this.imageData={stream:e,fileName:this.key,transformation:{pixels:{x:Math.round(t.transformation.width),y:Math.round(t.transformation.height)},emus:{x:Math.round(9525*t.transformation.width),y:Math.round(9525*t.transformation.height)},flip:t.transformation.flip,rotation:t.transformation.rotation?6e4*t.transformation.rotation:void 0}};const r=new hr(this.imageData,{floating:t.floating});this.root.push(r)}prepForXml(t){return t.file.Media.addImage(this.key,this.imageData),super.prepForXml(t)}convertDataURIToBinary(t){const e=";base64,",s=t.indexOf(e)+e.length;return"function"==typeof atob?new Uint8Array(atob(t.substring(s)).split("").map((t=>t.charCodeAt(0)))):new(r(764).Buffer)(t,"base64")}}class cr extends n{constructor(){super(...arguments),this.xmlKeys={space:"xml:space"}}}class ur extends A{constructor(t){super("w:instrText"),this.root.push(new cr({space:V.PRESERVE})),this.root.push("SEQ ".concat(t))}}class dr extends It{constructor(t){super({}),this.root.push(new st(!0)),this.root.push(new ur(t)),this.root.push(new At),this.root.push(new it)}}class pr extends A{constructor(){super("w:tab")}}class gr extends n{constructor(){super(...arguments),this.xmlKeys={instr:"w:instr"}}}class fr extends A{constructor(t,e){super("w:fldSimple"),this.root.push(new gr({instr:t})),void 0!==e&&this.root.push(new St(e))}}class _r extends fr{constructor(t){super(" MERGEFIELD ".concat(t," "),"«".concat(t,"»"))}}!function(t){t.COLUMN="column",t.PAGE="page"}(Vt||(Vt={}));class mr extends A{constructor(t){super("w:br"),this.root.push(new o({type:t}))}}class wr extends It{constructor(){super({}),this.root.push(new mr(Vt.PAGE))}}class Br extends It{constructor(){super({}),this.root.push(new mr(Vt.COLUMN))}}class Cr extends A{constructor(){super("w:pageBreakBefore")}}!function(t){t.AT_LEAST="atLeast",t.EXACTLY="exactly",t.AUTO="auto"}(Gt||(Gt={}));class yr extends n{constructor(){super(...arguments),this.xmlKeys={after:"w:after",before:"w:before",line:"w:line",lineRule:"w:lineRule"}}}class vr extends A{constructor(t){super("w:spacing"),this.root.push(new yr(t))}}!function(t){t.HEADING_1="Heading1",t.HEADING_2="Heading2",t.HEADING_3="Heading3",t.HEADING_4="Heading4",t.HEADING_5="Heading5",t.HEADING_6="Heading6",t.TITLE="Title"}(Kt||(Kt={}));class Er extends A{constructor(t){super("w:pStyle"),this.root.push(new o({val:t}))}}class br extends A{constructor(t,e,r){super("w:tabs"),this.root.push(new Pr(t,e,r))}}!function(t){t.LEFT="left",t.RIGHT="right",t.CENTER="center",t.BAR="bar",t.CLEAR="clear",t.DECIMAL="decimal",t.END="end",t.NUM="num",t.START="start"}(Wt||(Wt={})),function(t){t.DOT="dot",t.HYPHEN="hyphen",t.MIDDLE_DOT="middleDot",t.NONE="none",t.UNDERSCORE="underscore"}(zt||(zt={})),function(t){t[t.MAX=9026]="MAX"}(Xt||(Xt={}));class xr extends n{constructor(){super(...arguments),this.xmlKeys={val:"w:val",pos:"w:pos",leader:"w:leader"}}}class Pr extends A{constructor(t,e,r){super("w:tab"),this.root.push(new xr({val:t,pos:e,leader:r}))}}class Ir extends A{constructor(t,e){super("w:numPr"),this.root.push(new Sr(e)),this.root.push(new Tr(t))}}class Sr extends A{constructor(t){super("w:ilvl"),this.root.push(new o({val:t}))}}class Tr extends A{constructor(t){super("w:numId"),this.root.push(new o({val:"string"==typeof t?"{".concat(t,"}"):t}))}}class Fr extends n{constructor(){super(...arguments),this.xmlKeys={id:"Id",type:"Type",target:"Target",targetMode:"TargetMode"}}}!function(t){t.EXTERNAL="External"}(Jt||(Jt={}));class Rr extends A{constructor(t,e,r,s){super("Relationship"),this.root.push(new Fr({id:t,type:e,target:r,targetMode:s}))}}class Or extends n{constructor(){super(...arguments),this.xmlKeys={id:"r:id",history:"w:history",anchor:"w:anchor"}}}!function(t){t.INTERNAL="INTERNAL",t.EXTERNAL="EXTERNAL"}(Yt||(Yt={}));class Qr extends A{constructor(t,e,r){super("w:hyperlink"),this.linkId=e;const s={history:1,anchor:r||void 0,id:r?void 0:"rId".concat(this.linkId)},A=new Or(s);this.root.push(A),t.forEach((t=>{this.root.push(t)}))}}class Dr extends Qr{constructor(t){super(t.children,Ut(),t.anchor)}}class Lr{constructor(t){this.options=t}}class Ur extends n{constructor(){super(...arguments),this.xmlKeys={id:"w:id",name:"w:name"}}}class Hr extends n{constructor(){super(...arguments),this.xmlKeys={id:"w:id"}}}class Nr{constructor(t){const e=Ut();this.start=new Mr(t.id,e),this.children=t.children,this.end=new kr(e)}}class Mr extends A{constructor(t,e){super("w:bookmarkStart");const r=new Ur({name:t,id:e});this.root.push(r)}}class kr extends A{constructor(t){super("w:bookmarkEnd");const e=new Hr({id:t});this.root.push(e)}}class Vr extends A{constructor(t){super("w:outlineLvl"),this.level=t,this.root.push(new o({val:t}))}}class Gr extends n{constructor(){super(...arguments),this.xmlKeys={space:"xml:space"}}}class Kr extends A{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super("w:instrText"),this.root.push(new Gr({space:V.PRESERVE}));let r="PAGEREF ".concat(t);e.hyperlink&&(r="".concat(r," \\h")),e.useRelativePosition&&(r="".concat(r," \\p")),this.root.push(r)}}class Wr extends It{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super({children:[new st(!0),new Kr(t,e),new it]})}}!function(t){t.BOTH="both",t.BOTTOM="bottom",t.CENTER="center",t.TOP="top"}($t||($t={}));class zr extends n{constructor(){super(...arguments),this.xmlKeys={verticalAlign:"w:val"}}}class Xr extends A{constructor(t){super("w:vAlign"),this.root.push(new zr({verticalAlign:t}))}}!function(t){t.DEFAULT="default",t.FIRST="first",t.EVEN="even"}(jt||(jt={}));class Jr extends n{constructor(){super(...arguments),this.xmlKeys={type:"w:type",id:"r:id"}}}!function(t){t.HEADER="w:headerReference",t.FOOTER="w:footerReference"}(Zt||(Zt={}));class Yr extends A{constructor(t,e){super(t),this.root.push(new Jr({type:e.type||jt.DEFAULT,id:"rId".concat(e.id)}))}}class $r extends n{constructor(){super(...arguments),this.xmlKeys={space:"w:space",count:"w:num",separate:"w:sep",equalWidth:"w:equalWidth"}}}class jr extends A{constructor(t){let{space:e,count:r,separate:s,equalWidth:A,children:i}=t;super("w:cols"),this.root.push(new $r({space:void 0===e?void 0:I(e),count:void 0===r?void 0:g(r),separate:s,equalWidth:A})),!A&&i&&i.forEach((t=>this.addChildElement(t)))}}class Zr extends n{constructor(){super(...arguments),this.xmlKeys={linePitch:"w:linePitch"}}}class qr extends A{constructor(t){super("w:docGrid"),this.root.push(new Zr({linePitch:g(t)}))}}!function(t){t.NEW_PAGE="newPage",t.NEW_SECTION="newSection",t.CONTINUOUS="continuous"}(qt||(qt={}));class ts extends n{constructor(){super(...arguments),this.xmlKeys={countBy:"w:countBy",start:"w:start",restart:"w:restart",distance:"w:distance"}}}class es extends A{constructor(t){let{countBy:e,start:r,restart:s,distance:A}=t;super("w:lnNumType"),this.root.push(new ts({countBy:void 0===e?void 0:g(e),start:void 0===r?void 0:g(r),restart:s,distance:void 0===A?void 0:I(A)}))}}!function(t){t.ALL_PAGES="allPages",t.FIRST_PAGE="firstPage",t.NOT_FIRST_PAGE="notFirstPage"}(te||(te={})),function(t){t.PAGE="page",t.TEXT="text"}(ee||(ee={})),function(t){t.BACK="back",t.FRONT="front"}(re||(re={}));class rs extends n{constructor(){super(...arguments),this.xmlKeys={display:"w:display",offsetFrom:"w:offsetFrom",zOrder:"w:zOrder"}}}class ss extends i{constructor(t){super("w:pgBorders"),t&&(t.pageBorders?this.root.push(new rs({display:t.pageBorders.display,offsetFrom:t.pageBorders.offsetFrom,zOrder:t.pageBorders.zOrder})):this.root.push(new rs({})),t.pageBorderTop&&this.root.push(new Y("w:top",t.pageBorderTop)),t.pageBorderLeft&&this.root.push(new Y("w:left",t.pageBorderLeft)),t.pageBorderBottom&&this.root.push(new Y("w:bottom",t.pageBorderBottom)),t.pageBorderRight&&this.root.push(new Y("w:right",t.pageBorderRight)))}}class As extends n{constructor(){super(...arguments),this.xmlKeys={top:"w:top",right:"w:right",bottom:"w:bottom",left:"w:left",header:"w:header",footer:"w:footer",gutter:"w:gutter"}}}class is extends A{constructor(t,e,r,s,A,i,n){super("w:pgMar"),this.root.push(new As({top:b(t),right:I(e),bottom:b(r),left:I(s),header:I(A),footer:I(i),gutter:I(n)}))}}!function(t){t.HYPHEN="hyphen",t.PERIOD="period",t.COLON="colon",t.EM_DASH="emDash",t.EN_DASH="endash"}(se||(se={}));class ns extends n{constructor(){super(...arguments),this.xmlKeys={start:"w:start",formatType:"w:fmt",separator:"w:chapSep"}}}class os extends A{constructor(t){let{start:e,formatType:r,separator:s}=t;super("w:pgNumType"),this.root.push(new ns({start:void 0===e?void 0:g(e),formatType:r,separator:s}))}}!function(t){t.PORTRAIT="portrait",t.LANDSCAPE="landscape"}(Ae||(Ae={}));class as extends n{constructor(){super(...arguments),this.xmlKeys={width:"w:w",height:"w:h",orientation:"w:orient"}}}class hs extends A{constructor(t,e,r){super("w:pgSz");const s=r===Ae.LANDSCAPE,A=I(t),i=I(e);this.root.push(new as({width:s?i:A,height:s?A:i,orientation:r}))}}!function(t){t.NEXT_PAGE="nextPage",t.NEXT_COLUMN="nextColumn",t.CONTINUOUS="continuous",t.EVEN_PAGE="evenPage",t.ODD_PAGE="oddPage"}(ie||(ie={}));class ls extends n{constructor(){super(...arguments),this.xmlKeys={val:"w:val"}}}class cs extends A{constructor(t){super("w:type"),this.root.push(new ls({val:t}))}}const us={TOP:"1in",RIGHT:"1in",BOTTOM:"1in",LEFT:"1in",HEADER:708,FOOTER:708,GUTTER:0},ds={WIDTH:11906,HEIGHT:16838,ORIENTATION:Ae.PORTRAIT};class ps extends A{constructor(){let{page:{size:{width:t=ds.WIDTH,height:e=ds.HEIGHT,orientation:r=ds.ORIENTATION}={},margin:{top:s=us.TOP,right:A=us.RIGHT,bottom:i=us.BOTTOM,left:n=us.LEFT,header:o=us.HEADER,footer:a=us.FOOTER,gutter:h=us.GUTTER}={},pageNumbers:l={},borders:c}={},grid:{linePitch:u=360}={},headerWrapperGroup:d={},footerWrapperGroup:p={},lineNumbers:g,titlePage:f,verticalAlign:_,column:m,type:w}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super("w:sectPr"),this.addHeaderFooterGroup(Zt.HEADER,d),this.addHeaderFooterGroup(Zt.FOOTER,p),w&&this.root.push(new cs(w)),this.root.push(new hs(t,e,r)),this.root.push(new is(s,A,i,n,o,a,h)),c&&this.root.push(new ss(c)),g&&this.root.push(new es(g)),this.root.push(new os(l)),m&&this.root.push(new jr(m)),_&&this.root.push(new Xr(_)),void 0!==f&&this.root.push(new Q("w:titlePg",f)),this.root.push(new qr(u))}addHeaderFooterGroup(t,e){e.default&&this.root.push(new Yr(t,{type:jt.DEFAULT,id:e.default.View.ReferenceId})),e.first&&this.root.push(new Yr(t,{type:jt.FIRST,id:e.first.View.ReferenceId})),e.even&&this.root.push(new Yr(t,{type:jt.EVEN,id:e.even.View.ReferenceId}))}}class gs extends A{constructor(){super("w:body"),this.sections=[]}addSection(t){const e=this.sections.pop();this.root.push(this.createSectionParagraph(e)),this.sections.push(new ps(t))}prepForXml(t){return 1===this.sections.length&&(this.root.splice(0,1),this.root.push(this.sections.pop())),super.prepForXml(t)}push(t){this.root.push(t)}createSectionParagraph(t){const e=new Fs({}),r=new Ts({});return r.push(t),e.addChildElement(r),e}}class fs extends n{constructor(){super(...arguments),this.xmlKeys={width:"w:w",space:"w:space"}}}class _s extends A{constructor(t){let{width:e,space:r}=t;super("w:col"),this.root.push(new fs({width:I(e),space:void 0===r?void 0:I(r)}))}}class ms extends n{constructor(){super(...arguments),this.xmlKeys={wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",Ignorable:"mc:Ignorable",cp:"xmlns:cp",dc:"xmlns:dc",dcterms:"xmlns:dcterms",dcmitype:"xmlns:dcmitype",xsi:"xmlns:xsi",type:"xsi:type"}}}class ws extends n{constructor(){super(...arguments),this.xmlKeys={color:"w:color",themeColor:"w:themeColor",themeShade:"w:themeShade",themeTint:"w:themeTint"}}}class Bs extends A{constructor(t){super("w:background"),this.root.push(new ws({color:E(t.color?t.color:"FFFFFF"),themeColor:t.themeColor,themeShade:void 0===t.themeShade?void 0:B(t.themeShade),themeTint:void 0===t.themeTint?void 0:B(t.themeTint)}))}}class Cs extends A{constructor(t){super("w:document"),this.root.push(new ms({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",Ignorable:"w14 w15 wp14"})),this.body=new gs,this.root.push(new Bs(t.background)),this.root.push(this.body)}add(t){return this.body.push(t),this}get Body(){return this.body}}class ys extends n{constructor(){super(...arguments),this.xmlKeys={xmlns:"xmlns"}}}class vs extends A{constructor(){super("Relationships"),this.root.push(new ys({xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"}))}addRelationship(t){this.root.push(t)}createRelationship(t,e,r,s){const A=new Rr("rId".concat(t),e,r,s);return this.addRelationship(A),A}get RelationshipCount(){return this.root.length-1}}class Es{constructor(t){this.document=new Cs(t),this.relationships=new vs}get View(){return this.document}get Relationships(){return this.relationships}}var bs,xs,Ps;!function(t){t.NONE="none",t.DROP="drop",t.MARGIN="margin"}(bs||(bs={})),function(t){t.MARGIN="margin",t.PAGE="page",t.TEXT="text"}(xs||(xs={})),function(t){t.AROUND="around",t.AUTO="auto",t.NONE="none",t.NOT_BESIDE="notBeside",t.THROUGH="through",t.TIGHT="tight"}(Ps||(Ps={}));class Is extends n{constructor(){super(...arguments),this.xmlKeys={anchorLock:"w:anchorLock",dropCap:"w:dropCap",width:"w:w",height:"w:h",x:"w:x",y:"w:y",anchorHorizontal:"w:hAnchor",anchorVertical:"w:vAnchor",spaceHorizontal:"w:hSpace",spaceVertical:"w:vSpace",rule:"w:hRule",alignmentX:"w:xAlign",alignmentY:"w:yAlign",lines:"w:lines",wrap:"w:wrap"}}}class Ss extends A{constructor(t){var e,r;super("w:framePr"),this.root.push(new Is({anchorLock:t.anchorLock,dropCap:t.dropCap,width:t.width,height:t.height,x:t.position.x,y:t.position.y,anchorHorizontal:t.anchor.horizontal,anchorVertical:t.anchor.vertical,spaceHorizontal:null===(e=t.space)||void 0===e?void 0:e.horizontal,spaceVertical:null===(r=t.space)||void 0===r?void 0:r.vertical,rule:t.rule,alignmentX:t.alignment.x,alignmentY:t.alignment.y,lines:t.lines,wrap:t.wrap}))}}class Ts extends i{constructor(t){var e,r;if(super("w:pPr"),this.numberingReferences=[],!t)return this;if(t.heading&&this.push(new Er(t.heading)),t.bullet&&this.push(new Er("ListParagraph")),t.numbering&&(t.style||t.heading||t.numbering.custom||this.push(new Er("ListParagraph"))),t.style&&this.push(new Er(t.style)),void 0!==t.keepNext&&this.push(new Q("w:keepNext",t.keepNext)),void 0!==t.keepLines&&this.push(new Q("w:keepLines",t.keepLines)),t.pageBreakBefore&&this.push(new Cr),t.frame&&this.push(new Ss(t.frame)),void 0!==t.widowControl&&this.push(new Q("w:widowControl",t.widowControl)),t.bullet&&this.push(new Ir(1,t.bullet.level)),t.numbering&&(this.numberingReferences.push({reference:t.numbering.reference,instance:null!==(e=t.numbering.instance)&&void 0!==e?e:0}),this.push(new Ir("".concat(t.numbering.reference,"-").concat(null!==(r=t.numbering.instance)&&void 0!==r?r:0),t.numbering.level))),t.border&&this.push(new j(t.border)),t.thematicBreak&&this.push(new Z),t.shading&&this.push(new ct(t.shading)),t.rightTabStop&&this.push(new br(Wt.RIGHT,t.rightTabStop)),t.tabStops)for(const e of t.tabStops)this.push(new br(e.type,e.position,e.leader));t.leftTabStop&&this.push(new br(Wt.LEFT,t.leftTabStop)),void 0!==t.bidirectional&&this.push(new Q("w:bidi",t.contextualSpacing)),t.spacing&&this.push(new vr(t.spacing)),t.indent&&this.push(new tt(t.indent)),void 0!==t.contextualSpacing&&this.push(new Q("w:contextualSpacing",t.contextualSpacing)),t.alignment&&this.push(new J(t.alignment)),void 0!==t.outlineLevel&&this.push(new Vr(t.outlineLevel)),void 0!==t.suppressLineNumbers&&this.push(new Q("w:suppressLineNumbers",t.suppressLineNumbers))}push(t){this.root.push(t)}prepForXml(t){if(t.viewWrapper instanceof Es)for(const e of this.numberingReferences)t.file.Numbering.createConcreteNumberingInstance(e.reference,e.instance);return super.prepForXml(t)}}class Fs extends A{constructor(t){if(super("w:p"),"string"==typeof t)return this.properties=new Ts({}),this.root.push(this.properties),this.root.push(new St(t)),this;if(this.properties=new Ts(t),this.root.push(this.properties),t.text&&this.root.push(new St(t.text)),t.children)for(const e of t.children)if(e instanceof Nr){this.root.push(e.start);for(const t of e.children)this.root.push(t);this.root.push(e.end)}else this.root.push(e)}prepForXml(t){for(const e of this.root)if(e instanceof Lr){const r=this.root.indexOf(e),s=new Qr(e.options.children,Ut());t.viewWrapper.Relationships.createRelationship(s.linkId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",e.options.link,Jt.EXTERNAL),this.root[r]=s}return super.prepForXml(t)}addRunToFront(t){return this.root.splice(1,0,t),this}}class Rs extends A{constructor(t){super("m:oMath");for(const e of t.children)this.root.push(e)}}class Os extends A{constructor(t){super("m:t"),this.root.push(t)}}class Qs extends A{constructor(t){super("m:r"),this.root.push(new Os(t))}}class Ds extends A{constructor(t){super("m:den");for(const e of t)this.root.push(e)}}class Ls extends A{constructor(t){super("m:num");for(const e of t)this.root.push(e)}}class Us extends A{constructor(t){super("m:f"),this.root.push(new Ls(t.numerator)),this.root.push(new Ds(t.denominator))}}class Hs extends n{constructor(){super(...arguments),this.xmlKeys={accent:"m:val"}}}class Ns extends A{constructor(t){super("m:chr"),this.root.push(new Hs({accent:t}))}}class Ms extends A{constructor(t){super("m:e");for(const e of t)this.root.push(e)}}class ks extends n{constructor(){super(...arguments),this.xmlKeys={value:"m:val"}}}class Vs extends A{constructor(){super("m:limLoc"),this.root.push(new ks({value:"undOvr"}))}}class Gs extends n{constructor(){super(...arguments),this.xmlKeys={hide:"m:val"}}}class Ks extends A{constructor(){super("m:subHide"),this.root.push(new Gs({hide:1}))}}class Ws extends n{constructor(){super(...arguments),this.xmlKeys={hide:"m:val"}}}class zs extends A{constructor(){super("m:supHide"),this.root.push(new Ws({hide:1}))}}class Xs extends A{constructor(t,e,r){super("m:naryPr"),this.root.push(new Ns(t)),this.root.push(new Vs),e||this.root.push(new zs),r||this.root.push(new Ks)}}class Js extends A{constructor(t){super("m:sub");for(const e of t)this.root.push(e)}}class Ys extends A{constructor(t){super("m:sup");for(const e of t)this.root.push(e)}}class $s extends A{constructor(t){super("m:nary"),this.root.push(new Xs("∑",!!t.superScript,!!t.subScript)),t.subScript&&this.root.push(new Js(t.subScript)),t.superScript&&this.root.push(new Ys(t.superScript)),this.root.push(new Ms(t.children))}}class js extends A{constructor(){super("m:sSupPr")}}class Zs extends A{constructor(t){super("m:sSup"),this.root.push(new js),this.root.push(new Ms(t.children)),this.root.push(new Ys(t.superScript))}}class qs extends A{constructor(){super("m:sSubPr")}}class tA extends A{constructor(t){super("m:sSub"),this.root.push(new qs),this.root.push(new Ms(t.children)),this.root.push(new Js(t.subScript))}}class eA extends A{constructor(){super("m:sSubSupPr")}}class rA extends A{constructor(t){super("m:sSubSup"),this.root.push(new eA),this.root.push(new Ms(t.children)),this.root.push(new Js(t.subScript)),this.root.push(new Ys(t.superScript))}}class sA extends A{constructor(){super("m:sPrePr")}}class AA extends A{constructor(t){super("m:sPre"),this.root.push(new sA),this.root.push(new Ms(t.children)),this.root.push(new Js(t.subScript)),this.root.push(new Ys(t.superScript))}}const iA="";class nA extends A{constructor(t){if(super("m:deg"),t)for(const e of t)this.root.push(e)}}class oA extends n{constructor(){super(...arguments),this.xmlKeys={hide:"m:val"}}}class aA extends A{constructor(){super("m:degHide"),this.root.push(new oA({hide:1}))}}class hA extends A{constructor(t){super("m:radPr"),t||this.root.push(new aA)}}class lA extends A{constructor(t){super("m:rad"),this.root.push(new hA(!!t.degree)),this.root.push(new nA(t.degree)),this.root.push(new Ms(t.children))}}class cA extends A{constructor(t){super("m:fName");for(const e of t)this.root.push(e)}}class uA extends A{constructor(){super("m:funcPr")}}class dA extends A{constructor(t){super("m:func"),this.root.push(new uA),this.root.push(new cA(t.name)),this.root.push(new Ms(t.children))}}class pA extends n{constructor(){super(...arguments),this.xmlKeys={character:"m:val"}}}class gA extends A{constructor(t){super("m:begChr"),this.root.push(new pA({character:t}))}}class fA extends n{constructor(){super(...arguments),this.xmlKeys={character:"m:val"}}}class _A extends A{constructor(t){super("m:endChr"),this.root.push(new fA({character:t}))}}class mA extends A{constructor(t){super("m:dPr"),t&&(this.root.push(new gA(t.beginningCharacter)),this.root.push(new _A(t.endingCharacter)))}}class wA extends A{constructor(t){super("m:d"),this.root.push(new mA),this.root.push(new Ms(t.children))}}class BA extends A{constructor(t){super("m:d"),this.root.push(new mA({beginningCharacter:"[",endingCharacter:"]"})),this.root.push(new Ms(t.children))}}class CA extends A{constructor(t){super("m:d"),this.root.push(new mA({beginningCharacter:"{",endingCharacter:"}"})),this.root.push(new Ms(t.children))}}class yA extends A{constructor(t){super("m:d"),this.root.push(new mA({beginningCharacter:"〈",endingCharacter:"〉"})),this.root.push(new Ms(t.children))}}class vA extends A{constructor(t){super("w:tblGrid");for(const e of t)this.root.push(new bA(e))}}class EA extends n{constructor(){super(...arguments),this.xmlKeys={w:"w:w"}}}class bA extends A{constructor(t){super("w:gridCol"),void 0!==t&&this.root.push(new EA({w:I(t)}))}}var xA,PA,IA,SA;!function(t){t.AUTO="auto",t.DXA="dxa",t.NIL="nil",t.PERCENTAGE="pct"}(xA||(xA={}));class TA extends n{constructor(){super(...arguments),this.xmlKeys={type:"w:type",size:"w:w"}}}class FA extends A{constructor(t,e){let{type:r=xA.AUTO,size:s}=e;super(t);let A=s;r===xA.PERCENTAGE&&"number"==typeof s&&(A="".concat(s,"%")),this.root.push(new TA({type:r,size:T(A)}))}}!function(t){t.TABLE="w:tblCellMar",t.TABLE_CELL="w:tcMar"}(PA||(PA={}));class RA extends i{constructor(t,e){let{marginUnitType:r=xA.DXA,top:s,left:A,bottom:i,right:n}=e;super(t),void 0!==s&&this.root.push(new FA("w:top",{type:r,size:s})),void 0!==A&&this.root.push(new FA("w:left",{type:r,size:A})),void 0!==i&&this.root.push(new FA("w:bottom",{type:r,size:i})),void 0!==n&&this.root.push(new FA("w:right",{type:r,size:n}))}}class OA extends i{constructor(t){super("w:tcBorders"),t.top&&this.root.push(new Y("w:top",t.top)),t.start&&this.root.push(new Y("w:start",t.start)),t.left&&this.root.push(new Y("w:left",t.left)),t.bottom&&this.root.push(new Y("w:bottom",t.bottom)),t.end&&this.root.push(new Y("w:end",t.end)),t.right&&this.root.push(new Y("w:right",t.right))}}class QA extends n{constructor(){super(...arguments),this.xmlKeys={val:"w:val"}}}class DA extends A{constructor(t){super("w:gridSpan"),this.root.push(new QA({val:g(t)}))}}!function(t){t.CONTINUE="continue",t.RESTART="restart"}(IA||(IA={}));class LA extends n{constructor(){super(...arguments),this.xmlKeys={val:"w:val"}}}class UA extends A{constructor(t){super("w:vMerge"),this.root.push(new LA({val:t}))}}!function(t){t.BOTTOM_TO_TOP_LEFT_TO_RIGHT="btLr",t.LEFT_TO_RIGHT_TOP_TO_BOTTOM="lrTb",t.TOP_TO_BOTTOM_RIGHT_TO_LEFT="tbRl"}(SA||(SA={}));class HA extends n{constructor(){super(...arguments),this.xmlKeys={val:"w:val"}}}class NA extends A{constructor(t){super("w:textDirection"),this.root.push(new HA({val:t}))}}class MA extends i{constructor(t){super("w:tcPr"),t.width&&this.root.push(new FA("w:tcW",t.width)),t.columnSpan&&this.root.push(new DA(t.columnSpan)),t.verticalMerge?this.root.push(new UA(t.verticalMerge)):t.rowSpan&&t.rowSpan>1&&this.root.push(new UA(IA.RESTART)),t.borders&&this.root.push(new OA(t.borders)),t.shading&&this.root.push(new ct(t.shading)),t.margins&&this.root.push(new RA(PA.TABLE_CELL,t.margins)),t.textDirection&&this.root.push(new NA(t.textDirection)),t.verticalAlign&&this.root.push(new Xr(t.verticalAlign))}}class kA extends A{constructor(t){super("w:tc"),this.options=t,this.root.push(new MA(t));for(const e of t.children)this.root.push(e)}prepForXml(t){return this.root[this.root.length-1]instanceof Fs||this.root.push(new Fs({})),super.prepForXml(t)}}const VA={style:M.NONE,size:0,color:"auto"},GA={style:M.SINGLE,size:4,color:"auto"};class KA extends A{constructor(t){super("w:tblBorders"),t.top?this.root.push(new Y("w:top",t.top)):this.root.push(new Y("w:top",GA)),t.left?this.root.push(new Y("w:left",t.left)):this.root.push(new Y("w:left",GA)),t.bottom?this.root.push(new Y("w:bottom",t.bottom)):this.root.push(new Y("w:bottom",GA)),t.right?this.root.push(new Y("w:right",t.right)):this.root.push(new Y("w:right",GA)),t.insideHorizontal?this.root.push(new Y("w:insideH",t.insideHorizontal)):this.root.push(new Y("w:insideH",GA)),t.insideVertical?this.root.push(new Y("w:insideV",t.insideVertical)):this.root.push(new Y("w:insideV",GA))}}var WA,zA,XA,JA,YA,$A,jA;KA.NONE={top:VA,bottom:VA,left:VA,right:VA,insideHorizontal:VA,insideVertical:VA},function(t){t.NEVER="never",t.OVERLAP="overlap"}(WA||(WA={}));class ZA extends n{constructor(){super(...arguments),this.xmlKeys={val:"w:val"}}}class qA extends A{constructor(t){super("w:tblOverlap"),this.root.push(new ZA({val:t}))}}!function(t){t.MARGIN="margin",t.PAGE="page",t.TEXT="text"}(zA||(zA={})),function(t){t.CENTER="center",t.INSIDE="inside",t.LEFT="left",t.OUTSIDE="outside",t.RIGHT="right"}(XA||(XA={})),function(t){t.CENTER="center",t.INSIDE="inside",t.BOTTOM="bottom",t.OUTSIDE="outside",t.INLINE="inline",t.TOP="top"}(JA||(JA={}));class ti extends n{constructor(){super(...arguments),this.xmlKeys={horizontalAnchor:"w:horzAnchor",verticalAnchor:"w:vertAnchor",absoluteHorizontalPosition:"w:tblpX",relativeHorizontalPosition:"w:tblpXSpec",absoluteVerticalPosition:"w:tblpY",relativeVerticalPosition:"w:tblpYSpec",bottomFromText:"w:bottomFromText",topFromText:"w:topFromText",leftFromText:"w:leftFromText",rightFromText:"w:rightFromText"}}}class ei extends A{constructor(t){var{leftFromText:e,rightFromText:r,topFromText:s,bottomFromText:A,absoluteHorizontalPosition:i,absoluteVerticalPosition:n}=t,o=function(t,e){var r={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(r[s]=t[s]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var A=0;for(s=Object.getOwnPropertySymbols(t);A<s.length;A++)e.indexOf(s[A])<0&&Object.prototype.propertyIsEnumerable.call(t,s[A])&&(r[s[A]]=t[s[A]])}return r}(t,["leftFromText","rightFromText","topFromText","bottomFromText","absoluteHorizontalPosition","absoluteVerticalPosition"]);super("w:tblpPr"),this.root.push(new ti(Object.assign({leftFromText:void 0===e?void 0:I(e),rightFromText:void 0===r?void 0:I(r),topFromText:void 0===s?void 0:I(s),bottomFromText:void 0===A?void 0:I(A),absoluteHorizontalPosition:void 0===i?void 0:b(i),absoluteVerticalPosition:void 0===n?void 0:b(n)},o))),o.overlap&&this.root.push(new qA(o.overlap))}}!function(t){t.AUTOFIT="autofit",t.FIXED="fixed"}(YA||(YA={}));class ri extends n{constructor(){super(...arguments),this.xmlKeys={type:"w:type"}}}class si extends A{constructor(t){super("w:tblLayout"),this.root.push(new ri({type:t}))}}class Ai extends i{constructor(t){super("w:tblPr"),t.style&&this.root.push(new L("w:tblStyle",t.style)),t.float&&this.root.push(new ei(t.float)),void 0!==t.visuallyRightToLeft&&this.root.push(new Q("w:bidiVisual",t.visuallyRightToLeft)),t.width&&this.root.push(new FA("w:tblW",t.width)),t.alignment&&this.root.push(new J(t.alignment)),t.indent&&this.root.push(new FA("w:tblInd",t.indent)),t.borders&&this.root.push(new KA(t.borders)),t.shading&&this.root.push(new ct(t.shading)),t.layout&&this.root.push(new si(t.layout)),t.cellMargin&&this.root.push(new RA(PA.TABLE,t.cellMargin))}}class ii extends A{constructor(t){let{rows:e,width:r,columnWidths:s=Array(Math.max(...e.map((t=>t.CellCount)))).fill(100),margins:A,indent:i,float:n,layout:o,style:a,borders:h,alignment:l,visuallyRightToLeft:c}=t;super("w:tbl"),this.root.push(new Ai({borders:null!=h?h:{},width:null!=r?r:{size:100},indent:i,float:n,layout:o,style:a,alignment:l,cellMargin:A,visuallyRightToLeft:c})),this.root.push(new vA(s));for(const t of e)this.root.push(t);e.forEach(((t,r)=>{if(r===e.length-1)return;let s=0;t.cells.forEach((t=>{if(t.options.rowSpan&&t.options.rowSpan>1){const A=new kA({rowSpan:t.options.rowSpan-1,columnSpan:t.options.columnSpan,borders:t.options.borders,children:[],verticalMerge:IA.CONTINUE});e[r+1].addCellToColumnIndex(A,s)}s+=t.options.columnSpan||1}))}))}}!function(t){t.AUTO="auto",t.ATLEAST="atLeast",t.EXACT="exact"}($A||($A={}));class ni extends n{constructor(){super(...arguments),this.xmlKeys={value:"w:val",rule:"w:hRule"}}}class oi extends A{constructor(t,e){super("w:trHeight"),this.root.push(new ni({value:I(t),rule:e}))}}class ai extends i{constructor(t){super("w:trPr"),void 0!==t.cantSplit&&this.root.push(new Q("w:cantSplit",t.cantSplit)),void 0!==t.tableHeader&&this.root.push(new Q("w:tblHeader",t.tableHeader)),t.height&&this.root.push(new oi(t.height.value,t.height.rule))}}class hi extends A{constructor(t){super("w:tr"),this.options=t,this.root.push(new ai(t));for(const e of t.children)this.root.push(e)}get CellCount(){return this.options.children.length}get cells(){return this.root.filter((t=>t instanceof kA))}addCellToIndex(t,e){this.root.splice(e+1,0,t)}addCellToColumnIndex(t,e){const r=this.columnIndexToRootIndex(e,!0);this.addCellToIndex(t,r-1)}rootIndexToColumnIndex(t){if(t<1||t>=this.root.length)throw new Error("cell 'rootIndex' should between 1 to "+(this.root.length-1));let e=0;for(let r=1;r<t;r++)e+=this.root[r].options.columnSpan||1;return e}columnIndexToRootIndex(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t<0)throw new Error("cell 'columnIndex' should not less than zero");let r=0,s=1;for(;r<=t;){if(s>=this.root.length){if(e)return this.root.length;throw new Error("cell 'columnIndex' should not great than "+(r-1))}const t=this.root[s];s+=1,r+=t&&t.options.columnSpan||1}return s-1}}class li extends n{constructor(){super(...arguments),this.xmlKeys={xmlns:"xmlns",vt:"xmlns:vt"}}}class ci extends A{constructor(){super("Properties"),this.root.push(new li({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"}))}}class ui extends n{constructor(){super(...arguments),this.xmlKeys={xmlns:"xmlns"}}}class di extends n{constructor(){super(...arguments),this.xmlKeys={contentType:"ContentType",extension:"Extension"}}}class pi extends A{constructor(t,e){super("Default"),this.root.push(new di({contentType:t,extension:e}))}}class gi extends n{constructor(){super(...arguments),this.xmlKeys={contentType:"ContentType",partName:"PartName"}}}class fi extends A{constructor(t,e){super("Override"),this.root.push(new gi({contentType:t,partName:e}))}}class _i extends A{constructor(){super("Types"),this.root.push(new ui({xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"})),this.root.push(new pi("image/png","png")),this.root.push(new pi("image/jpeg","jpeg")),this.root.push(new pi("image/jpeg","jpg")),this.root.push(new pi("image/bmp","bmp")),this.root.push(new pi("image/gif","gif")),this.root.push(new pi("application/vnd.openxmlformats-package.relationships+xml","rels")),this.root.push(new pi("application/xml","xml")),this.root.push(new fi("application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml","/word/document.xml")),this.root.push(new fi("application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml","/word/styles.xml")),this.root.push(new fi("application/vnd.openxmlformats-package.core-properties+xml","/docProps/core.xml")),this.root.push(new fi("application/vnd.openxmlformats-officedocument.custom-properties+xml","/docProps/custom.xml")),this.root.push(new fi("application/vnd.openxmlformats-officedocument.extended-properties+xml","/docProps/app.xml")),this.root.push(new fi("application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml","/word/numbering.xml")),this.root.push(new fi("application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml","/word/footnotes.xml")),this.root.push(new fi("application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml","/word/settings.xml"))}addFooter(t){this.root.push(new fi("application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml","/word/footer".concat(t,".xml")))}addHeader(t){this.root.push(new fi("application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml","/word/header".concat(t,".xml")))}}class mi extends A{constructor(t){super("cp:coreProperties"),this.root.push(new ms({cp:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",xsi:"http://www.w3.org/2001/XMLSchema-instance"})),t.title&&this.root.push(new H("dc:title",t.title)),t.subject&&this.root.push(new H("dc:subject",t.subject)),t.creator&&this.root.push(new H("dc:creator",t.creator)),t.keywords&&this.root.push(new H("cp:keywords",t.keywords)),t.description&&this.root.push(new H("dc:description",t.description)),t.lastModifiedBy&&this.root.push(new H("cp:lastModifiedBy",t.lastModifiedBy)),t.revision&&this.root.push(new H("cp:revision",t.revision)),this.root.push(new wi("dcterms:created")),this.root.push(new wi("dcterms:modified"))}}class wi extends A{constructor(t){super(t),this.root.push(new ms({type:"dcterms:W3CDTF"})),this.root.push(O(new Date))}}class Bi extends n{constructor(){super(...arguments),this.xmlKeys={xmlns:"xmlns",vt:"xmlns:vt"}}}class Ci extends n{constructor(){super(...arguments),this.xmlKeys={fmtid:"fmtid",pid:"pid",name:"name"}}}class yi extends A{constructor(t,e){super("property"),this.root.push(new Ci({fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:t.toString(),name:e.name})),this.root.push(new vi(e.value))}}class vi extends A{constructor(t){super("vt:lpwstr"),this.root.push(t)}}class Ei extends A{constructor(t){super("Properties"),this.properties=[],this.root.push(new Bi({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"})),this.nextId=2;for(const e of t)this.addCustomProperty(e)}prepForXml(t){return this.properties.forEach((t=>this.root.push(t))),super.prepForXml(t)}addCustomProperty(t){this.properties.push(new yi(this.nextId++,t))}}class bi extends n{constructor(){super(...arguments),this.xmlKeys={wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",cp:"xmlns:cp",dc:"xmlns:dc",dcterms:"xmlns:dcterms",dcmitype:"xmlns:dcmitype",xsi:"xmlns:xsi",type:"xsi:type"}}}class xi extends p{constructor(t,e){super("w:ftr",e),this.refId=t,e||this.root.push(new bi({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape"}))}get ReferenceId(){return this.refId}add(t){this.root.push(t)}}class Pi{constructor(t,e,r){this.media=t,this.footer=new xi(e,r),this.relationships=new vs}add(t){this.footer.add(t)}addChildElement(t){this.footer.addChildElement(t)}get View(){return this.footer}get Relationships(){return this.relationships}get Media(){return this.media}}class Ii extends n{constructor(){super(...arguments),this.xmlKeys={type:"w:type",id:"w:id"}}}class Si extends A{constructor(){super("w:footnoteRef")}}class Ti extends It{constructor(){super({style:"FootnoteReference"}),this.root.push(new Si)}}!function(t){t.SEPERATOR="separator",t.CONTINUATION_SEPERATOR="continuationSeparator"}(jA||(jA={}));class Fi extends A{constructor(t){super("w:footnote"),this.root.push(new Ii({type:t.type,id:t.id}));for(let e=0;e<t.children.length;e++){const r=t.children[e];0===e&&r.addRunToFront(new Ti),this.root.push(r)}}}class Ri extends A{constructor(){super("w:continuationSeparator")}}class Oi extends It{constructor(){super({}),this.root.push(new Ri)}}class Qi extends A{constructor(){super("w:separator")}}class Di extends It{constructor(){super({}),this.root.push(new Qi)}}class Li extends n{constructor(){super(...arguments),this.xmlKeys={wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",Ignorable:"mc:Ignorable"}}}class Ui extends A{constructor(){super("w:footnotes"),this.root.push(new Li({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",Ignorable:"w14 w15 wp14"}));const t=new Fi({id:-1,type:jA.SEPERATOR,children:[new Fs({spacing:{after:0,line:240,lineRule:Gt.AUTO},children:[new Di]})]});this.root.push(t);const e=new Fi({id:0,type:jA.CONTINUATION_SEPERATOR,children:[new Fs({spacing:{after:0,line:240,lineRule:Gt.AUTO},children:[new Oi]})]});this.root.push(e)}createFootNote(t,e){const r=new Fi({id:t,children:e});this.root.push(r)}}class Hi{constructor(){this.footnotess=new Ui,this.relationships=new vs}get View(){return this.footnotess}get Relationships(){return this.relationships}}class Ni extends n{constructor(){super(...arguments),this.xmlKeys={wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",cp:"xmlns:cp",dc:"xmlns:dc",dcterms:"xmlns:dcterms",dcmitype:"xmlns:dcmitype",xsi:"xmlns:xsi",type:"xsi:type",cx:"xmlns:cx",cx1:"xmlns:cx1",cx2:"xmlns:cx2",cx3:"xmlns:cx3",cx4:"xmlns:cx4",cx5:"xmlns:cx5",cx6:"xmlns:cx6",cx7:"xmlns:cx7",cx8:"xmlns:cx8",w16cid:"xmlns:w16cid",w16se:"xmlns:w16se"}}}class Mi extends p{constructor(t,e){super("w:hdr",e),this.refId=t,e||this.root.push(new Ni({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",cx:"http://schemas.microsoft.com/office/drawing/2014/chartex",cx1:"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex",cx2:"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex",cx3:"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex",cx4:"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex",cx5:"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex",cx6:"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex",cx7:"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex",cx8:"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex",w16cid:"http://schemas.microsoft.com/office/word/2016/wordml/cid",w16se:"http://schemas.microsoft.com/office/word/2015/wordml/symex"}))}get ReferenceId(){return this.refId}add(t){this.root.push(t)}}class ki{constructor(t,e,r){this.media=t,this.header=new Mi(e,r),this.relationships=new vs}add(t){return this.header.add(t),this}addChildElement(t){this.header.addChildElement(t)}get View(){return this.header}get Relationships(){return this.relationships}get Media(){return this.media}}class Vi{constructor(){this.map=new Map}addMedia(t,e){const r="".concat(Ut(),".png"),s={stream:"string"==typeof t?this.convertDataURIToBinary(t):t,fileName:r,transformation:{pixels:{x:Math.round(e.width),y:Math.round(e.height)},emus:{x:Math.round(9525*e.width),y:Math.round(9525*e.height)},flip:e.flip,rotation:e.rotation?6e4*e.rotation:void 0}};return this.map.set(r,s),s}addImage(t,e){this.map.set(t,e)}get Array(){return Array.from(this.map.values())}convertDataURIToBinary(t){const e=";base64,",s=t.indexOf(e)+e.length;return"function"==typeof atob?new Uint8Array(atob(t.substring(s)).split("").map((t=>t.charCodeAt(0)))):new(r(764).Buffer)(t,"base64")}}const Gi="";var Ki,Wi;!function(t){t.BULLET="bullet",t.CARDINAL_TEXT="cardinalText",t.CHICAGO="chicago",t.DECIMAL="decimal",t.DECIMAL_ENCLOSED_CIRCLE="decimalEnclosedCircle",t.DECIMAL_ENCLOSED_FULLSTOP="decimalEnclosedFullstop",t.DECIMAL_ENCLOSED_PARENTHESES="decimalEnclosedParen",t.DECIMAL_ZERO="decimalZero",t.LOWER_LETTER="lowerLetter",t.LOWER_ROMAN="lowerRoman",t.NONE="none",t.ORDINAL_TEXT="ordinalText",t.UPPER_LETTER="upperLetter",t.UPPER_ROMAN="upperRoman"}(Ki||(Ki={}));class zi extends n{constructor(){super(...arguments),this.xmlKeys={ilvl:"w:ilvl",tentative:"w15:tentative"}}}class Xi extends A{constructor(t){super("w:numFmt"),this.root.push(new o({val:t}))}}class Ji extends A{constructor(t){super("w:lvlText"),this.root.push(new o({val:t}))}}class Yi extends A{constructor(t){super("w:lvlJc"),this.root.push(new o({val:t}))}}!function(t){t.NOTHING="nothing",t.SPACE="space",t.TAB="tab"}(Wi||(Wi={}));class $i extends A{constructor(t){super("w:suff"),this.root.push(new o({val:t}))}}class ji extends A{constructor(t){let{level:e,format:r,text:s,alignment:A=N.START,start:i=1,style:n,suffix:o}=t;super("w:lvl"),this.root.push(new U("w:start",g(i))),r&&this.root.push(new Xi(r)),o&&this.root.push(new $i(o)),s&&this.root.push(new Ji(s)),this.root.push(new Yi(A)),this.paragraphProperties=new Ts(n&&n.paragraph),this.runProperties=new bt(n&&n.run),this.root.push(this.paragraphProperties),this.root.push(this.runProperties),this.root.push(new zi({ilvl:g(e),tentative:1}))}}class Zi extends ji{constructor(t){super(t)}}class qi extends ji{}class tn extends A{constructor(t){super("w:multiLevelType"),this.root.push(new o({val:t}))}}class en extends n{constructor(){super(...arguments),this.xmlKeys={abstractNumId:"w:abstractNumId",restartNumberingAfterBreak:"w15:restartNumberingAfterBreak"}}}class rn extends A{constructor(t,e){super("w:abstractNum"),this.root.push(new en({abstractNumId:g(t),restartNumberingAfterBreak:0})),this.root.push(new tn("hybridMultilevel")),this.id=t;for(const t of e)this.root.push(new Zi(t))}}class sn extends A{constructor(t){super("w:abstractNumId"),this.root.push(new o({val:t}))}}class An extends n{constructor(){super(...arguments),this.xmlKeys={numId:"w:numId"}}}class nn extends A{constructor(t){super("w:num"),this.numId=t.numId,this.reference=t.reference,this.instance=t.instance,this.root.push(new An({numId:g(t.numId)})),this.root.push(new sn(g(t.abstractNumId))),t.overrideLevel&&this.root.push(new an(t.overrideLevel.num,t.overrideLevel.start))}}class on extends n{constructor(){super(...arguments),this.xmlKeys={ilvl:"w:ilvl"}}}class an extends A{constructor(t,e){super("w:lvlOverride"),this.root.push(new on({ilvl:t})),void 0!==e&&this.root.push(new ln(e))}}class hn extends n{constructor(){super(...arguments),this.xmlKeys={val:"w:val"}}}class ln extends A{constructor(t){super("w:startOverride"),this.root.push(new hn({val:t}))}}class cn extends A{constructor(t){super("w:numbering"),this.abstractNumberingMap=new Map,this.concreteNumberingMap=new Map,this.referenceConfigMap=new Map,this.root.push(new ms({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",Ignorable:"w14 w15 wp14"}));const e=new rn(Lt(),[{level:0,format:Ki.BULLET,text:"●",alignment:N.LEFT,style:{paragraph:{indent:{left:Dt(.5),hanging:Dt(.25)}}}},{level:1,format:Ki.BULLET,text:"○",alignment:N.LEFT,style:{paragraph:{indent:{left:Dt(1),hanging:Dt(.25)}}}},{level:2,format:Ki.BULLET,text:"■",alignment:N.LEFT,style:{paragraph:{indent:{left:2160,hanging:Dt(.25)}}}},{level:3,format:Ki.BULLET,text:"●",alignment:N.LEFT,style:{paragraph:{indent:{left:2880,hanging:Dt(.25)}}}},{level:4,format:Ki.BULLET,text:"○",alignment:N.LEFT,style:{paragraph:{indent:{left:3600,hanging:Dt(.25)}}}},{level:5,format:Ki.BULLET,text:"■",alignment:N.LEFT,style:{paragraph:{indent:{left:4320,hanging:Dt(.25)}}}},{level:6,format:Ki.BULLET,text:"●",alignment:N.LEFT,style:{paragraph:{indent:{left:5040,hanging:Dt(.25)}}}},{level:7,format:Ki.BULLET,text:"●",alignment:N.LEFT,style:{paragraph:{indent:{left:5760,hanging:Dt(.25)}}}},{level:8,format:Ki.BULLET,text:"●",alignment:N.LEFT,style:{paragraph:{indent:{left:6480,hanging:Dt(.25)}}}}]);this.concreteNumberingMap.set("default-bullet-numbering",new nn({numId:1,abstractNumId:e.id,reference:"default-bullet-numbering",instance:0,overrideLevel:{num:0,start:1}})),this.abstractNumberingMap.set("default-bullet-numbering",e);for(const e of t.config)this.abstractNumberingMap.set(e.reference,new rn(Lt(),e.levels)),this.referenceConfigMap.set(e.reference,e.levels)}prepForXml(t){for(const t of this.abstractNumberingMap.values())this.root.push(t);for(const t of this.concreteNumberingMap.values())this.root.push(t);return super.prepForXml(t)}createConcreteNumberingInstance(t,e){const r=this.abstractNumberingMap.get(t);if(!r)return;const s="".concat(t,"-").concat(e);if(this.concreteNumberingMap.has(s))return;const A={numId:Lt(),abstractNumId:r.id,reference:t,instance:e,overrideLevel:{num:0,start:1}},i=this.referenceConfigMap.get(t),n=i&&i[0].start;n&&Number.isInteger(n)&&(A.overrideLevel={num:0,start:n}),this.concreteNumberingMap.set(s,new nn(A))}get ConcreteNumbering(){return Array.from(this.concreteNumberingMap.values())}get ReferenceConfig(){return Array.from(this.referenceConfigMap.values())}}class un extends n{constructor(){super(...arguments),this.xmlKeys={version:"w:val",name:"w:name",uri:"w:uri"}}}class dn extends A{constructor(t){super("w:compatSetting"),this.root.push(new un({version:t,uri:"http://schemas.microsoft.com/office/word",name:"compatibilityMode"}))}}class pn extends A{constructor(t){super("w:compat"),void 0!==t.doNotExpandShiftReturn&&this.root.push(new Q("w:doNotExpandShiftReturn",t.doNotExpandShiftReturn)),t.version&&this.root.push(new dn(t.version))}}class gn extends n{constructor(){super(...arguments),this.xmlKeys={wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",Ignorable:"mc:Ignorable"}}}class fn extends A{constructor(t){super("w:settings"),this.root.push(new gn({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",Ignorable:"w14 w15 wp14"})),this.root.push(new Q("w:displayBackgroundShape",!0)),void 0!==t.trackRevisions&&this.root.push(new Q("w:trackRevisions",t.trackRevisions)),void 0!==t.evenAndOddHeaders&&this.root.push(new Q("w:evenAndOddHeaders",t.evenAndOddHeaders)),void 0!==t.updateFields&&this.root.push(new Q("w:updateFields",t.updateFields)),this.root.push(new pn({version:t.compatabilityModeVersion||15}))}}class _n extends n{constructor(){super(...arguments),this.xmlKeys={val:"w:val"}}}class mn extends A{constructor(t){super("w:name"),this.root.push(new _n({val:t}))}}class wn extends A{constructor(t){super("w:uiPriority"),this.root.push(new _n({val:g(t)}))}}class Bn extends n{constructor(){super(...arguments),this.xmlKeys={type:"w:type",styleId:"w:styleId",default:"w:default",customStyle:"w:customStyle"}}}class Cn extends A{constructor(t,e){super("w:style"),this.root.push(new Bn(t)),e.name&&this.root.push(new mn(e.name)),e.basedOn&&this.root.push(new L("w:basedOn",e.basedOn)),e.next&&this.root.push(new L("w:next",e.next)),e.link&&this.root.push(new L("w:link",e.link)),void 0!==e.uiPriority&&this.root.push(new wn(e.uiPriority)),void 0!==e.semiHidden&&this.root.push(new Q("w:semiHidden",e.semiHidden)),void 0!==e.unhideWhenUsed&&this.root.push(new Q("w:unhideWhenUsed",e.unhideWhenUsed)),void 0!==e.quickFormat&&this.root.push(new Q("w:qFormat",e.quickFormat))}}class yn extends Cn{constructor(t){super({type:"paragraph",styleId:t.id},t),this.paragraphProperties=new Ts(t.paragraph),this.runProperties=new bt(t.run),this.root.push(this.paragraphProperties),this.root.push(this.runProperties)}}class vn extends Cn{constructor(t){super({type:"character",styleId:t.id},Object.assign({uiPriority:99,unhideWhenUsed:!0},t)),this.runProperties=new bt(t.run),this.root.push(this.runProperties)}}class En extends yn{constructor(t){super(Object.assign(Object.assign({},t),{basedOn:"Normal",next:"Normal",quickFormat:!0}))}}class bn extends En{constructor(t){super(Object.assign(Object.assign({},t),{id:"Title",name:"Title"}))}}class xn extends En{constructor(t){super(Object.assign(Object.assign({},t),{id:"Heading1",name:"Heading 1"}))}}class Pn extends En{constructor(t){super(Object.assign(Object.assign({},t),{id:"Heading2",name:"Heading 2"}))}}class In extends En{constructor(t){super(Object.assign(Object.assign({},t),{id:"Heading3",name:"Heading 3"}))}}class Sn extends En{constructor(t){super(Object.assign(Object.assign({},t),{id:"Heading4",name:"Heading 4"}))}}class Tn extends En{constructor(t){super(Object.assign(Object.assign({},t),{id:"Heading5",name:"Heading 5"}))}}class Fn extends En{constructor(t){super(Object.assign(Object.assign({},t),{id:"Heading6",name:"Heading 6"}))}}class Rn extends En{constructor(t){super(Object.assign(Object.assign({},t),{id:"Strong",name:"Strong"}))}}class On extends yn{constructor(t){super(Object.assign(Object.assign({},t),{id:"ListParagraph",name:"List Paragraph",basedOn:"Normal",quickFormat:!0}))}}class Qn extends yn{constructor(t){super(Object.assign(Object.assign({},t),{id:"FootnoteText",name:"footnote text",link:"FootnoteTextChar",basedOn:"Normal",uiPriority:99,semiHidden:!0,unhideWhenUsed:!0,paragraph:{spacing:{after:0,line:240,lineRule:Gt.AUTO}},run:{size:20}}))}}class Dn extends vn{constructor(t){super(Object.assign(Object.assign({},t),{id:"FootnoteReference",name:"footnote reference",basedOn:"DefaultParagraphFont",semiHidden:!0,run:{superScript:!0}}))}}class Ln extends vn{constructor(t){super(Object.assign(Object.assign({},t),{id:"FootnoteTextChar",name:"Footnote Text Char",basedOn:"DefaultParagraphFont",link:"FootnoteText",semiHidden:!0,run:{size:20}}))}}class Un extends vn{constructor(t){super(Object.assign(Object.assign({},t),{id:"Hyperlink",name:"Hyperlink",basedOn:"DefaultParagraphFont",run:{color:"0563C1",underline:{type:W.SINGLE}}}))}}class Hn extends A{constructor(t){if(super("w:styles"),t.initialStyles&&this.root.push(t.initialStyles),t.importedStyles)for(const e of t.importedStyles)this.root.push(e);if(t.paragraphStyles)for(const e of t.paragraphStyles)this.root.push(new yn(e));if(t.characterStyles)for(const e of t.characterStyles)this.root.push(new vn(e))}}class Nn extends A{constructor(t){super("w:pPrDefault"),this.root.push(new Ts(t))}}class Mn extends A{constructor(t){super("w:rPrDefault"),this.root.push(new bt(t))}}class kn extends A{constructor(t){super("w:docDefaults"),this.runPropertiesDefaults=new Mn(t.run),this.paragraphPropertiesDefaults=new Nn(t.paragraph),this.root.push(this.runPropertiesDefaults),this.root.push(this.paragraphPropertiesDefaults)}}class Vn{newInstance(t){const e=(0,a.xml2js)(t,{compact:!1});let r;for(const t of e.elements||[])"w:styles"===t.name&&(r=t);if(void 0===r)throw new Error("can not find styles element");const s=r.elements||[];return new Hn({initialStyles:new u(r.attributes),importedStyles:s.map((t=>h(t)))})}}class Gn{newInstance(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var e;return{initialStyles:new ms({mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",Ignorable:"w14 w15"}),importedStyles:[new kn(null!==(e=t.document)&&void 0!==e?e:{}),new bn(Object.assign({run:{size:56}},t.title)),new xn(Object.assign({run:{color:"2E74B5",size:32}},t.heading1)),new Pn(Object.assign({run:{color:"2E74B5",size:26}},t.heading2)),new In(Object.assign({run:{color:"1F4D78",size:24}},t.heading3)),new Sn(Object.assign({run:{color:"2E74B5",italics:!0}},t.heading4)),new Tn(Object.assign({run:{color:"2E74B5"}},t.heading5)),new Fn(Object.assign({run:{color:"1F4D78"}},t.heading6)),new Rn(Object.assign({run:{bold:!0}},t.strong)),new On(t.listParagraph||{}),new Un(t.hyperlink||{}),new Dn(t.footnoteReference||{}),new Qn(t.footnoteText||{}),new Ln(t.footnoteTextChar||{})]}}}class Kn{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var r,s,A,i,n,o;if(this.currentRelationshipId=1,this.headers=[],this.footers=[],this.coreProperties=new mi(Object.assign(Object.assign({},t),{creator:null!==(r=t.creator)&&void 0!==r?r:"Un-named",revision:null!==(s=t.revision)&&void 0!==s?s:"1",lastModifiedBy:null!==(A=t.lastModifiedBy)&&void 0!==A?A:"Un-named"})),this.numbering=new cn(t.numbering?t.numbering:{config:[]}),this.fileRelationships=new vs,this.customProperties=new Ei(null!==(i=t.customProperties)&&void 0!==i?i:[]),this.appProperties=new ci,this.footnotesWrapper=new Hi,this.contentTypes=new _i,this.documentWrapper=new Es({background:t.background||{}}),this.settings=new fn({compatabilityModeVersion:t.compatabilityModeVersion,evenAndOddHeaders:!!t.evenAndOddHeaderAndFooters,trackRevisions:null===(n=t.features)||void 0===n?void 0:n.trackRevisions,updateFields:null===(o=t.features)||void 0===o?void 0:o.updateFields}),this.media=e.template&&e.template.media?e.template.media:new Vi,e.template&&(this.currentRelationshipId=e.template.currentRelationshipId+1),e.template&&t.externalStyles)throw Error("can not use both template and external styles");if(e.template){const t=new Vn;this.styles=t.newInstance(e.template.styles)}else if(t.externalStyles){const e=new Vn;this.styles=e.newInstance(t.externalStyles)}else if(t.styles){const e=(new Gn).newInstance(t.styles.default);this.styles=new Hn(Object.assign(Object.assign({},e),t.styles))}else{const t=new Gn;this.styles=new Hn(t.newInstance())}if(this.addDefaultRelationships(),e.template&&e.template.headers)for(const t of e.template.headers)this.addHeaderToDocument(t.header,t.type);if(e.template&&e.template.footers)for(const t of e.template.footers)this.addFooterToDocument(t.footer,t.type);for(const e of t.sections)this.addSection(e);if(t.footnotes)for(const e in t.footnotes)this.footnotesWrapper.View.createFootNote(parseFloat(e),t.footnotes[e].children)}addSection(t){let{headers:e={},footers:r={},children:s,properties:A}=t;this.documentWrapper.View.Body.addSection(Object.assign(Object.assign({},A),{headerWrapperGroup:{default:e.default?this.createHeader(e.default):void 0,first:e.first?this.createHeader(e.first):void 0,even:e.even?this.createHeader(e.even):void 0},footerWrapperGroup:{default:r.default?this.createFooter(r.default):void 0,first:r.first?this.createFooter(r.first):void 0,even:r.even?this.createFooter(r.even):void 0}}));for(const t of s)this.documentWrapper.View.add(t)}createHeader(t){const e=new ki(this.media,this.currentRelationshipId++);for(const r of t.options.children)e.add(r);return this.addHeaderToDocument(e),e}createFooter(t){const e=new Pi(this.media,this.currentRelationshipId++);for(const r of t.options.children)e.add(r);return this.addFooterToDocument(e),e}addHeaderToDocument(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:jt.DEFAULT;this.headers.push({header:t,type:e}),this.documentWrapper.Relationships.createRelationship(t.View.ReferenceId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/header","header".concat(this.headers.length,".xml")),this.contentTypes.addHeader(this.headers.length)}addFooterToDocument(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:jt.DEFAULT;this.footers.push({footer:t,type:e}),this.documentWrapper.Relationships.createRelationship(t.View.ReferenceId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer","footer".concat(this.footers.length,".xml")),this.contentTypes.addFooter(this.footers.length)}addDefaultRelationships(){this.fileRelationships.createRelationship(1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument","word/document.xml"),this.fileRelationships.createRelationship(2,"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties","docProps/core.xml"),this.fileRelationships.createRelationship(3,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties","docProps/app.xml"),this.fileRelationships.createRelationship(4,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties","docProps/custom.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles","styles.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering","numbering.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes","footnotes.xml"),this.documentWrapper.Relationships.createRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings","settings.xml")}get Document(){return this.documentWrapper}get Styles(){return this.styles}get CoreProperties(){return this.coreProperties}get Numbering(){return this.numbering}get Media(){return this.media}get FileRelationships(){return this.fileRelationships}get Headers(){return this.headers.map((t=>t.header))}get Footers(){return this.footers.map((t=>t.footer))}get ContentTypes(){return this.contentTypes}get CustomProperties(){return this.customProperties}get AppProperties(){return this.appProperties}get FootNotes(){return this.footnotesWrapper}get Settings(){return this.settings}}const Wn="";class zn extends n{constructor(){super(...arguments),this.xmlKeys={space:"xml:space"}}}class Xn extends A{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super("w:instrText"),this.properties=t,this.root.push(new zn({space:V.PRESERVE}));let e="TOC";this.properties.captionLabel&&(e="".concat(e,' \\a "').concat(this.properties.captionLabel,'"')),this.properties.entriesFromBookmark&&(e="".concat(e,' \\b "').concat(this.properties.entriesFromBookmark,'"')),this.properties.captionLabelIncludingNumbers&&(e="".concat(e,' \\c "').concat(this.properties.captionLabelIncludingNumbers,'"')),this.properties.sequenceAndPageNumbersSeparator&&(e="".concat(e,' \\d "').concat(this.properties.sequenceAndPageNumbersSeparator,'"')),this.properties.tcFieldIdentifier&&(e="".concat(e,' \\f "').concat(this.properties.tcFieldIdentifier,'"')),this.properties.hyperlink&&(e="".concat(e," \\h")),this.properties.tcFieldLevelRange&&(e="".concat(e,' \\l "').concat(this.properties.tcFieldLevelRange,'"')),this.properties.pageNumbersEntryLevelsRange&&(e="".concat(e,' \\n "').concat(this.properties.pageNumbersEntryLevelsRange,'"')),this.properties.headingStyleRange&&(e="".concat(e,' \\o "').concat(this.properties.headingStyleRange,'"')),this.properties.entryAndPageNumberSeparator&&(e="".concat(e,' \\p "').concat(this.properties.entryAndPageNumberSeparator,'"')),this.properties.seqFieldIdentifierForPrefix&&(e="".concat(e,' \\s "').concat(this.properties.seqFieldIdentifierForPrefix,'"')),this.properties.stylesWithLevels&&this.properties.stylesWithLevels.length&&(e="".concat(e,' \\t "').concat(this.properties.stylesWithLevels.map((t=>"".concat(t.styleName,",").concat(t.level))).join(","),'"')),this.properties.useAppliedParagraphOutlineLevel&&(e="".concat(e," \\u")),this.properties.preserveTabInEntries&&(e="".concat(e," \\w")),this.properties.preserveNewLineInEntries&&(e="".concat(e," \\x")),this.properties.hideTabAndPageNumbersInWebView&&(e="".concat(e," \\z")),this.root.push(e)}}class Jn extends A{constructor(){super("w:sdtContent")}}class Yn extends n{constructor(){super(...arguments),this.xmlKeys={alias:"w:val"}}}class $n extends A{constructor(t){super("w:alias"),this.root.push(new Yn({alias:t}))}}class jn extends A{constructor(t){super("w:sdtPr"),this.root.push(new $n(t))}}class Zn extends A{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Table of Contents",e=arguments.length>1?arguments[1]:void 0;super("w:sdt"),this.root.push(new jn(t));const r=new Jn,s=new Fs({children:[new It({children:[new st(!0),new Xn(e),new At]})]});r.addChildElement(s);const A=new Fs({children:[new It({children:[new it]})]});r.addChildElement(A),this.root.push(r)}}class qn{constructor(t,e){this.styleName=t,this.level=e}}class to{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{children:[]};this.options=t}}class eo{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{children:[]};this.options=t}}class ro extends n{constructor(){super(...arguments),this.xmlKeys={id:"w:id"}}}class so extends A{constructor(t){super("w:footnoteReference"),this.root.push(new ro({id:t}))}}class Ao extends It{constructor(t){super({style:"FootnoteReference"}),this.root.push(new so(t))}}class io extends n{constructor(){super(...arguments),this.xmlKeys={id:"w:id",author:"w:author",date:"w:date"}}}class no extends A{constructor(t){super("w:ins"),this.root.push(new io({id:t.id,author:t.author,date:t.date})),this.addChildElement(new St(t))}}class oo extends n{constructor(){super(...arguments),this.xmlKeys={space:"xml:space"}}}class ao extends A{constructor(){super("w:delInstrText"),this.root.push(new oo({space:V.PRESERVE})),this.root.push("PAGE")}}class ho extends A{constructor(){super("w:delInstrText"),this.root.push(new oo({space:V.PRESERVE})),this.root.push("NUMPAGES")}}class lo extends A{constructor(){super("w:delInstrText"),this.root.push(new oo({space:V.PRESERVE})),this.root.push("SECTIONPAGES")}}class co extends n{constructor(){super(...arguments),this.xmlKeys={space:"xml:space"}}}class uo extends A{constructor(t){super("w:delText"),this.root.push(new co({space:V.PRESERVE})),this.root.push(t)}}class po extends A{constructor(t){super("w:del"),this.root.push(new io({id:t.id,author:t.author,date:t.date})),this.deletedTextRunWrapper=new go(t),this.addChildElement(this.deletedTextRunWrapper)}}class go extends A{constructor(t){if(super("w:r"),this.root.push(new bt(t)),t.children)for(const e of t.children)if("string"!=typeof e)this.root.push(e);else switch(e){case z.CURRENT:this.root.push(new st),this.root.push(new ao),this.root.push(new At),this.root.push(new it);break;case z.TOTAL_PAGES:this.root.push(new st),this.root.push(new ho),this.root.push(new At),this.root.push(new it);break;case z.TOTAL_PAGES_IN_SECTION:this.root.push(new st),this.root.push(new lo),this.root.push(new At),this.root.push(new it);break;default:this.root.push(new uo(e))}else t.text&&this.root.push(new uo(t.text));if(t.break)for(let e=0;e<t.break;e++)this.root.splice(1,0,new et)}}var fo,_o,mo;!function(t){t.CENTER="center",t.INSIDE="inside",t.LEFT="left",t.OUTSIDE="outside",t.RIGHT="right"}(fo||(fo={})),function(t){t.BOTTOM="bottom",t.CENTER="center",t.INSIDE="inside",t.OUTSIDE="outside",t.TOP="top"}(_o||(_o={})),function(t){t.DECIMAL="decimal",t.UPPER_ROMAN="upperRoman",t.LOWER_ROMAN="lowerRoman",t.UPPER_LETTER="upperLetter",t.LOWER_LETTER="lowerLetter",t.ORDINAL="ordinal",t.CARDINAL_TEXT="cardinalText",t.ORDINAL_TEXT="ordinalText",t.HEX="hex",t.CHICAGO="chicago",t.IDEOGRAPH_DIGITAL="ideographDigital",t.JAPANESE_COUNTING="japaneseCounting",t.AIUEO="aiueo",t.IROHA="iroha",t.DECIMAL_FULL_WIDTH="decimalFullWidth",t.DECIMAL_HALF_WIDTH="decimalHalfWidth",t.JAPANESE_LEGAL="japaneseLegal",t.JAPANESE_DIGITAL_TEN_THOUSAND="japaneseDigitalTenThousand",t.DECIMAL_ENCLOSED_CIRCLE="decimalEnclosedCircle",t.DECIMAL_FULL_WIDTH_2="decimalFullWidth2",t.AIUEO_FULL_WIDTH="aiueoFullWidth",t.IROHA_FULL_WIDTH="irohaFullWidth",t.DECIMAL_ZERO="decimalZero",t.BULLET="bullet",t.GANADA="ganada",t.CHOSUNG="chosung",t.DECIMAL_ENCLOSED_FULL_STOP="decimalEnclosedFullstop",t.DECIMAL_ENCLOSED_PAREN="decimalEnclosedParen",t.DECIMAL_ENCLOSED_CIRCLE_CHINESE="decimalEnclosedCircleChinese",t.IDEOGRAPH_ENCLOSED_CIRCLE="ideographEnclosedCircle",t.IDEOGRAPH_TRADITIONAL="ideographTraditional",t.IDEOGRAPH_ZODIAC="ideographZodiac",t.IDEOGRAPH_ZODIAC_TRADITIONAL="ideographZodiacTraditional",t.TAIWANESE_COUNTING="taiwaneseCounting",t.IDEOGRAPH_LEGAL_TRADITIONAL="ideographLegalTraditional",t.TAIWANESE_COUNTING_THOUSAND="taiwaneseCountingThousand",t.TAIWANESE_DIGITAL="taiwaneseDigital",t.CHINESE_COUNTING="chineseCounting",t.CHINESE_LEGAL_SIMPLIFIED="chineseLegalSimplified",t.CHINESE_COUNTING_TEN_THOUSAND="chineseCountingThousand",t.KOREAN_DIGITAL="koreanDigital",t.KOREAN_COUNTING="koreanCounting",t.KOREAN_LEGAL="koreanLegal",t.KOREAN_DIGITAL_2="koreanDigital2",t.VIETNAMESE_COUNTING="vietnameseCounting",t.RUSSIAN_LOWER="russianLower",t.RUSSIAN_UPPER="russianUpper",t.NONE="none",t.NUMBER_IN_DASH="numberInDash",t.HEBREW_1="hebrew1",t.HEBREW_2="hebrew2",t.ARABIC_ALPHA="arabicAlpha",t.ARABIC_ABJAD="arabicAbjad",t.HINDI_VOWELS="hindiVowels",t.HINDI_CONSONANTS="hindiConsonants",t.HINDI_NUMBERS="hindiNumbers",t.HINDI_COUNTING="hindiCounting",t.THAI_LETTERS="thaiLetters",t.THAI_NUMBERS="thaiNumbers",t.THAI_COUNTING="thaiCounting",t.BAHT_TEXT="bahtText",t.DOLLAR_TEXT="dollarText"}(mo||(mo={}));var wo=r(733),Bo=r(479);class Co{format(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=t.prepForXml(e);if(r)return r;throw Error("XMLComponent did not format correctly")}}class yo{replace(t,e,r){let s=t;return e.forEach(((t,e)=>{s=s.replace(new RegExp("{".concat(t.fileName,"}"),"g"),(r+e).toString())})),s}getMediaData(t,e){return e.Array.filter((e=>t.search("{".concat(e.fileName,"}"))>0))}}class vo{replace(t,e){let r=t;for(const t of e)r=r.replace(new RegExp("{".concat(t.reference,"-").concat(t.instance,"}"),"g"),t.numId.toString());return r}}var Eo=function(t,e,r,s){return new(r||(r=Promise))((function(A,i){function n(t){try{a(s.next(t))}catch(t){i(t)}}function o(t){try{a(s.throw(t))}catch(t){i(t)}}function a(t){var e;t.done?A(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(n,o)}a((s=s.apply(t,e||[])).next())}))};class bo{static toBuffer(t,e){return Eo(this,void 0,void 0,(function*(){const r=this.compiler.compile(t,e);return yield r.generateAsync({type:"nodebuffer",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})}))}static toBase64String(t,e){return Eo(this,void 0,void 0,(function*(){const r=this.compiler.compile(t,e);return yield r.generateAsync({type:"base64",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})}))}static toBlob(t,e){return Eo(this,void 0,void 0,(function*(){const r=this.compiler.compile(t,e);return yield r.generateAsync({type:"blob",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})}))}}bo.compiler=new class{constructor(){this.formatter=new Co,this.imageReplacer=new yo,this.numberingReplacer=new vo}compile(t,e){const r=new wo,s=this.xmlifyFile(t,e);for(const t in s){if(!s[t])continue;const e=s[t];if(Array.isArray(e))for(const t of e)r.file(t.path,t.data);else r.file(e.path,e.data)}for(const e of t.Media.Array){const t=e.stream;r.file("word/media/".concat(e.fileName),t)}return r}xmlifyFile(t,e){const r=t.Document.Relationships.RelationshipCount+1,s=Bo(this.formatter.format(t.Document.View,{viewWrapper:t.Document,file:t}),{indent:e,declaration:{standalone:"yes",encoding:"UTF-8"}}),A=this.imageReplacer.getMediaData(s,t.Media);return{Relationships:{data:(()=>(A.forEach(((e,s)=>{t.Document.Relationships.createRelationship(r+s,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image","media/".concat(e.fileName))})),Bo(this.formatter.format(t.Document.Relationships,{viewWrapper:t.Document,file:t}),{indent:e,declaration:{encoding:"UTF-8"}})))(),path:"word/_rels/document.xml.rels"},Document:{data:(()=>{const e=this.imageReplacer.replace(s,A,r);return this.numberingReplacer.replace(e,t.Numbering.ConcreteNumbering)})(),path:"word/document.xml"},Styles:{data:(()=>{const r=Bo(this.formatter.format(t.Styles,{viewWrapper:t.Document,file:t}),{indent:e,declaration:{standalone:"yes",encoding:"UTF-8"}});return this.numberingReplacer.replace(r,t.Numbering.ConcreteNumbering)})(),path:"word/styles.xml"},Properties:{data:Bo(this.formatter.format(t.CoreProperties,{viewWrapper:t.Document,file:t}),{indent:e,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/core.xml"},Numbering:{data:Bo(this.formatter.format(t.Numbering,{viewWrapper:t.Document,file:t}),{indent:e,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/numbering.xml"},FileRelationships:{data:Bo(this.formatter.format(t.FileRelationships,{viewWrapper:t.Document,file:t}),{indent:e,declaration:{encoding:"UTF-8"}}),path:"_rels/.rels"},HeaderRelationships:t.Headers.map(((r,s)=>{const A=Bo(this.formatter.format(r.View,{viewWrapper:r,file:t}),{indent:e,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(A,t.Media).forEach(((t,e)=>{r.Relationships.createRelationship(e,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image","media/".concat(t.fileName))})),{data:Bo(this.formatter.format(r.Relationships,{viewWrapper:r,file:t}),{indent:e,declaration:{encoding:"UTF-8"}}),path:"word/_rels/header".concat(s+1,".xml.rels")}})),FooterRelationships:t.Footers.map(((r,s)=>{const A=Bo(this.formatter.format(r.View,{viewWrapper:r,file:t}),{indent:e,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(A,t.Media).forEach(((t,e)=>{r.Relationships.createRelationship(e,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image","media/".concat(t.fileName))})),{data:Bo(this.formatter.format(r.Relationships,{viewWrapper:r,file:t}),{indent:e,declaration:{encoding:"UTF-8"}}),path:"word/_rels/footer".concat(s+1,".xml.rels")}})),Headers:t.Headers.map(((r,s)=>{const A=Bo(this.formatter.format(r.View,{viewWrapper:r,file:t}),{indent:e,declaration:{encoding:"UTF-8"}}),i=this.imageReplacer.getMediaData(A,t.Media);return{data:this.imageReplacer.replace(A,i,0),path:"word/header".concat(s+1,".xml")}})),Footers:t.Footers.map(((r,s)=>{const A=Bo(this.formatter.format(r.View,{viewWrapper:r,file:t}),{indent:e,declaration:{encoding:"UTF-8"}}),i=this.imageReplacer.getMediaData(A,t.Media);return{data:this.imageReplacer.replace(A,i,0),path:"word/footer".concat(s+1,".xml")}})),ContentTypes:{data:Bo(this.formatter.format(t.ContentTypes,{viewWrapper:t.Document,file:t}),{indent:e,declaration:{encoding:"UTF-8"}}),path:"[Content_Types].xml"},CustomProperties:{data:Bo(this.formatter.format(t.CustomProperties,{viewWrapper:t.Document,file:t}),{indent:e,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/custom.xml"},AppProperties:{data:Bo(this.formatter.format(t.AppProperties,{viewWrapper:t.Document,file:t}),{indent:e,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/app.xml"},FootNotes:{data:Bo(this.formatter.format(t.FootNotes.View,{viewWrapper:t.FootNotes,file:t}),{indent:e,declaration:{encoding:"UTF-8"}}),path:"word/footnotes.xml"},FootNotesRelationships:{data:Bo(this.formatter.format(t.FootNotes.Relationships,{viewWrapper:t.FootNotes,file:t}),{indent:e,declaration:{encoding:"UTF-8"}}),path:"word/_rels/footnotes.xml.rels"},Settings:{data:Bo(this.formatter.format(t.Settings,{viewWrapper:t.Document,file:t}),{indent:e,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/settings.xml"}}}};var xo=function(t,e,r,s){return new(r||(r=Promise))((function(A,i){function n(t){try{a(s.next(t))}catch(t){i(t)}}function o(t){try{a(s.throw(t))}catch(t){i(t)}}function a(t){var e;t.done?A(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(n,o)}a((s=s.apply(t,e||[])).next())}))};const Po={"http://schemas.openxmlformats.org/officeDocument/2006/relationships/header":"header","http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer":"footer","http://schemas.openxmlformats.org/officeDocument/2006/relationships/image":"image","http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink":"hyperlink"};var Io;!function(t){t.HEADER="header",t.FOOTER="footer",t.IMAGE="image",t.HYPERLINK="hyperlink"}(Io||(Io={}));class So{extract(t){return xo(this,void 0,void 0,(function*(){const e=yield wo.loadAsync(t),r=yield e.files["word/document.xml"].async("text"),s=yield e.files["word/_rels/document.xml.rels"].async("text"),A=this.extractDocumentRefs(r),i=this.findReferenceFiles(s),n=new Vi;return{headers:yield this.createHeaders(e,A,i,n,0),footers:yield this.createFooters(e,A,i,n,A.headers.length),currentRelationshipId:A.footers.length+A.headers.length,styles:yield e.files["word/styles.xml"].async("text"),titlePageIsDefined:this.checkIfTitlePageIsDefined(r),media:n}}))}createFooters(t,e,r,s,A){return xo(this,void 0,void 0,(function*(){const i=e.footers.map(((e,i)=>xo(this,void 0,void 0,(function*(){const n=r.find((t=>t.id===e.id));if(null===n||!n)throw new Error("Can not find target file for id ".concat(e.id));const o=yield t.files["word/".concat(n.target)].async("text"),l=(0,a.xml2js)(o,{compact:!1,captureSpacesBetweenElements:!0});if(!l.elements)return;const c=h(l.elements.reduce(((t,e)=>"w:ftr"===e.name?e:t))),u=new Pi(s,A+i,c);return yield this.addRelationshipToWrapper(n,t,u,s),{type:e.type,footer:u}})))).filter((t=>!!t));return Promise.all(i)}))}createHeaders(t,e,r,s,A){return xo(this,void 0,void 0,(function*(){const i=e.headers.map(((e,i)=>xo(this,void 0,void 0,(function*(){const n=r.find((t=>t.id===e.id));if(null===n||!n)throw new Error("Can not find target file for id ".concat(e.id));const o=yield t.files["word/".concat(n.target)].async("text"),l=(0,a.xml2js)(o,{compact:!1,captureSpacesBetweenElements:!0});if(!l.elements)return;const c=h(l.elements.reduce(((t,e)=>"w:hdr"===e.name?e:t))),u=new ki(s,A+i,c);return yield this.addRelationshipToWrapper(n,t,u,s),{type:e.type,header:u}})))).filter((t=>!!t));return Promise.all(i)}))}addRelationshipToWrapper(t,e,r,s){return xo(this,void 0,void 0,(function*(){const A=e.files["word/_rels/".concat(t.target,".rels")];if(!A)return;const i=yield A.async("text"),n=this.findReferenceFiles(i).filter((t=>t.type===Io.IMAGE)),o=this.findReferenceFiles(i).filter((t=>t.type===Io.HYPERLINK));for(const t of n){const A=yield e.files["word/".concat(t.target)].async("nodebuffer"),i=s.addMedia(A,{width:100,height:100});r.Relationships.createRelationship(t.id,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image","media/".concat(i.fileName))}for(const t of o)r.Relationships.createRelationship(t.id,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",t.target,Jt.EXTERNAL)}))}findReferenceFiles(t){const e=(0,a.xml2js)(t,{compact:!0});return(Array.isArray(e.Relationships.Relationship)?e.Relationships.Relationship:[e.Relationships.Relationship]).map((t=>{if(void 0===t._attributes)throw Error("relationship element has no attributes");return{id:this.parseRefId(t._attributes.Id),type:Po[t._attributes.Type],target:t._attributes.Target}})).filter((t=>null!==t.type))}extractDocumentRefs(t){const e=(0,a.xml2js)(t,{compact:!0})["w:document"]["w:body"]["w:sectPr"],r=e["w:headerReference"];let s;s=void 0===r?[]:Array.isArray(r)?r:[r];const A=s.map((t=>{if(void 0===t._attributes)throw Error("header reference element has no attributes");return{type:t._attributes["w:type"],id:this.parseRefId(t._attributes["r:id"])}})),i=e["w:footerReference"];let n;return n=void 0===i?[]:Array.isArray(i)?i:[i],{headers:A,footers:n.map((t=>{if(void 0===t._attributes)throw Error("footer reference element has no attributes");return{type:t._attributes["w:type"],id:this.parseRefId(t._attributes["r:id"])}}))}}checkIfTitlePageIsDefined(t){return void 0!==(0,a.xml2js)(t,{compact:!0})["w:document"]["w:body"]["w:sectPr"]["w:titlePg"]}parseRefId(t){const e=/^rId(\d+)$/.exec(t);if(null===e)throw new Error("Invalid ref id");return parseInt(e[1],10)}}})(),s})()}));class cm{constructor(){this._elements=[],this._images={},this._loadCount=0}get loaded(){return 0===this._elements.length}add(t,e){if(!(t in this._images)){const r=document.createElement("img");r.crossOrigin="anonymous",r.src=t,r.style.opacity=e,this._elements.push(r),this._images[t]=""}}get(t){return this._images[t]}load(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3;if(this._loadCount<t){for(let t=this._elements.length-1;t>=0;t--){const e=this._elements[t];if(e.complete&&e.naturalHeight>0){const r=document.createElement("canvas"),s=r.getContext("2d"),A=parseFloat(e.style.opacity)||1;r.width=e.width,r.height=e.height,s.globalAlpha=A,s.drawImage(e,0,0);const i=r.toDataURL("image/png");this._images[e.src]=i,this._elements.splice(t,1)}}return this._loadCount++,0===this._elements.length}return!0}}const um=["borderTopStyle","borderBottomStyle","borderLeftStyle","borderRightStyle"],dm=["borderTopColor","borderBottomColor","borderLeftColor","borderRightColor"];class pm{}class gm extends pm{constructor(t,e,r){super(),this._dom=e,this._model=r;const s=this._elements=this.$_build(t,e,r)||[];if(r){const r=t.getBounds(e),A=getComputedStyle(e),i=$n.cssToColor(A.backgroundColor);for(let e=0;e<um.length;e++){const i=A[um[e]];if(i&&"none"!=i){let n,o,a,h;switch(e){case 0:n=r.x,a=r.x+r.width,o=h=r.y;break;case 1:n=r.x,a=r.x+r.width,o=h=r.y+r.height>>>0;break;case 2:n=a=r.x,o=r.y,h=r.y+r.height;break;case 3:n=a=r.x+r.width>>>0,o=r.y,h=r.y+r.height}const l=new ym(t,n,o,a,h,i,A[dm[e]]);s.unshift(l)}}if(i){const r=new fm(t,e,null);r.color=i.color,r.alpha=i.alpha,s.unshift(r)}}}write(t){return this._doWrite(t,this._dom,this._model)}_doWrite(t,e,r){const s=[],A=this._elements;return null==A||A.forEach((e=>{e.write(t).forEach((t=>s.push(t)))})),s}$_build(t,e,r){return this._doBuild(t,e,r)}_doBuild(t,e,r){const s=[],A=e.children;for(let e=0;e<A.length;e++){const r=A[e],i=t.createDOCElements(r);ot.isArray(i)?s.push(...i):i&&s.push(i)}return s}_fontName(t){if(t){const e=t.split(/,\s*/)[0];return e.startsWith('"')?e.substring(1,e.length-1):e}return"굴림"}_fontSize(t){return t?t.endsWith("px")?Math.round(72*parseInt(t)/96)+"pt":t.endsWith("pt")?t:t+"pt":"10px"}_toBold(t){return parseInt(t)>=700}_toUnderline(t){if(t&&t.indexOf("underline")>=0)return{}}_toColor(t){function e(t){return 1===(t=(+t).toString(16)).length?"0"+t:t}if(t.startsWith("#"))return t.substr(t.length-6);if(t.startsWith("rgb(")){const r=t.substring(4,t.length-1).split(/,\s*/);return r[2],e(r[0])+e(r[1])+e(r[2])}if(t.startsWith("rgba(")){const r=t.substring(5,t.length-1).split(/,\s*/);return r[3],e(r[0])+e(r[1])+e(r[2])}return"000000"}_toDoc(t){return 20*t*72/96>>0}_toPosition(t){return 914400*t/96>>0}_toSize(t){return t>>0}_toShading(t,e){return e<1?{fill:ot.pad16($n.lighten(t,e),6)}:{fill:ot.pad16(t,6)}}_createText(t,e){return 1===t.length&&160===t.charCodeAt(0)&&(t=""),new lm.TextRun({text:t,font:this._fontName(e.fontFamily),size:this._fontSize(e.fontSize),color:this._toColor(e.color),italics:"italic"===e.fontStyle,bold:this._toBold(e.fontWeight),underline:this._toUnderline(e.textDecoration)})}}class fm extends gm{constructor(){super(...arguments),this.alpha=1}_doWrite(t,e,r){const s=t.getBounds(e);return[new lm.Paragraph({frame:{position:{x:this._toDoc(s.x),y:this._toDoc(s.y)},width:1*this._toDoc(s.width),height:1*this._toDoc(s.height),anchor:{horizontal:lm.FrameAnchorType.PAGE,vertical:lm.FrameAnchorType.PAGE},alignment:{x:lm.HorizontalPositionAlign.CENTER,y:lm.VerticalPositionAlign.CENTER}},shading:this._toShading(this.color,this.alpha),children:[]})]}_doBuild(t,e,r){}}class _m extends gm{_doWrite(t,e,r){const s=getComputedStyle(e),A=t.getBounds(e),i=e.textContent;return[new lm.Paragraph({frame:{position:{x:this._toDoc(A.x),y:this._toDoc(A.y-.2*A.height)},width:1.05*this._toDoc(A.width),height:1*this._toDoc(A.height),anchor:{horizontal:lm.FrameAnchorType.PAGE,vertical:lm.FrameAnchorType.PAGE},alignment:{x:lm.HorizontalPositionAlign.CENTER,y:lm.VerticalPositionAlign.CENTER}},children:[this._createText(i,s)]})]}_doBuild(t,e,r){}}class mm extends gm{constructor(t,e,r){super(t,e,r)}_doBuild(t,e,r){const s=getComputedStyle(e),A=ot.getImageUrl(s);A.startsWith("data:image")?this._data=A:A.startsWith("http")&&t.addImage(this._url=A,s.opacity)}_doWrite(t,e,r){const s=this._data||t.getImage(this._url)||new Uint8Array(0),A=t.getBounds(e);return[new lm.Paragraph({children:[new lm.ImageRun({data:s,transformation:{width:this._toSize(A.width),height:this._toSize(A.height)},floating:{horizontalPosition:{relative:lm.HorizontalPositionRelativeFrom.PAGE,offset:this._toPosition(A.x)},verticalPosition:{relative:lm.VerticalPositionRelativeFrom.PAGE,offset:this._toPosition(A.y)},allowOverlap:!0}})]})]}}class wm extends gm{constructor(t,e,r,s){super(t,e,s);const A=new Blob([r],{type:"image/svg+xml;charset=utf-8"});this._svgData=(URL||webkitURL).createObjectURL(A),t.addImage(this._svgData,"1")}_doBuild(t,e,r){}_doWrite(t,e,r){const s=t.getImage(this._svgData+""),A=t.getBounds(e);return[new lm.Paragraph({children:[new lm.ImageRun({data:s||new Uint8Array(0),transformation:{width:this._toSize(A.width),height:this._toSize(A.height)},floating:{horizontalPosition:{relative:lm.HorizontalPositionRelativeFrom.PAGE,offset:this._toPosition(A.x)},verticalPosition:{relative:lm.VerticalPositionRelativeFrom.PAGE,offset:this._toPosition(A.y)},allowOverlap:!0}})]})]}}class Bm extends gm{constructor(t,e,r){super(t,e,r)}_doBuild(t,e,r){this._data=e.toDataURL()}_doWrite(t,e,r){const s=t.getBounds(e);return[new lm.Paragraph({children:[new lm.ImageRun({data:this._data,transformation:{width:this._toSize(s.width),height:this._toSize(s.height)},floating:{horizontalPosition:{relative:lm.HorizontalPositionRelativeFrom.PAGE,offset:this._toPosition(s.x)},verticalPosition:{relative:lm.VerticalPositionRelativeFrom.PAGE,offset:this._toPosition(s.y)},allowOverlap:!0}})]})]}}class Cm extends gm{}class ym extends gm{constructor(t,e,r,s,A,i,n){super(t,null,null),this._x1=Math.min(e,s),this._y1=Math.min(r,A),this._x2=Math.max(e,s),this._y2=Math.max(r,A),this._x11=e-this._x1,this._y11=r-this._y1,this._x22=s-this._x1,this._y22=A-this._y1,this._cssStyle=i,this._cssColor=n}static bulidLine(t,e,r,s,A,i){const n=document.createElement("canvas"),o=n.getContext("2d");switch(n.width=Math.max(1,Math.abs(r-t)),n.height=Math.max(1,Math.abs(s-e)),A){case"dashed":o.setLineDash([4,3]);break;case"dotted":o.setLineDash([2,2])}o.strokeStyle=i,o.beginPath(),o.moveTo(t,e),o.lineTo(r,s),o.stroke();return n.toDataURL()}static write(t,e,r,s,A){return[new lm.Paragraph({children:[new lm.ImageRun({data:t,transformation:{width:s,height:A},floating:{horizontalPosition:{relative:lm.HorizontalPositionRelativeFrom.PAGE,offset:e},verticalPosition:{relative:lm.VerticalPositionRelativeFrom.PAGE,offset:r},allowOverlap:!0}})]})]}_doBuild(t,e,r){}_doWrite(t,e,r){return this._data||(this._data=ym.bulidLine(this._x11,this._y11,this._x22,this._y22,this._cssStyle,this._cssColor)),ym.write(this._data,this._toPosition(this._x1),this._toPosition(this._y1),this._toSize(Math.max(1,this._x2-this._x1)),this._toSize(Math.max(1,this._y2-this._y1)))}}class vm extends gm{constructor(t,e,r){super(t,e,r)}_doBuild(t,e,r){const s=e.getBoundingClientRect();r.reversed?this._data=ym.bulidLine(0,s.height,s.width,0,"solid","black"):this._data=ym.bulidLine(0,0,s.width,s.height,"solid","black")}_doWrite(t,e,r){const s=t.getBounds(e);return ym.write(this._data,this._toPosition(s.x),this._toPosition(s.y),this._toSize(s.width),this._toSize(s.height))}}class Em{constructor(t,e,r){this._pages=[],r.forEach((e=>{t.setPageDiv(e.page),this._pages.push(new bm(t,e))}))}get pages(){return this._pages}}class bm extends pm{constructor(t,e){super(),this._page=e,this._elements=this.$_build(t)}write(t){const e=[];t.setPageDiv(this._page.page);for(let r of this._elements){const s=r.write(t);null==s||s.forEach((t=>e.push(t)))}return e}$_buildBackground(t,e){return new gm(t,e,null)}$_buildForeground(t,e){return new gm(t,e,null)}$_buildPageHeader(t,e){return new gm(t,e,t.report.page.pageHeader)}$_buildPageFooter(t,e){return new gm(t,e,t.report.page.pageFooter)}$_buildPageBody(t,e){const r=[];for(let s of e){const e=t.createDOCElements(s);ot.isArray(e)?r.push(...e):e&&r.push(e)}return r}$_build(t){const e=this._page,r=[];return r.push(this.$_buildBackground(t,e.background)),r.push(this.$_buildPageHeader(t,e.pageHeader)),this.$_buildPageBody(t,e.contents).forEach((t=>t&&r.push(t))),r.push(this.$_buildPageFooter(t,e.pageFooter)),r.push(this.$_buildForeground(t,e.foreground)),r}}function xm(t,e){const r={};if(t.borderLeft){const t=e.borderLeftStyle,s=e.borderLeftColor;r.left={style:t,color:s}}if(t.borderRight){const t=e.borderRightStyle,s=e.borderRightColor;r.right={style:t,color:s}}if(t.borderTop){const t=e.borderTopStyle,s=e.borderTopColor;r.top={style:t,color:s}}if(t.borderBottom){const t=e.borderBottomStyle,s=e.borderBottomColor;r.bottom={style:t,color:s}}return ot.isEmpty(r)?null:r}const Pm={l:lm.AlignmentType.LEFT,c:lm.AlignmentType.CENTER,r:lm.AlignmentType.RIGHT};class Im extends gm{constructor(t,e,r){super(t,e,r)}_doBuild(t,e,r){}_doWrite(t,e,r){const s=e.firstChild.children,A=s.length,i=new Array(A),n=t.getBounds(e);for(let t=0;t<A;t++){const e=s[t];i[t]=this._toDoc(e.$_w)}return[new lm.Table({float:{horizontalAnchor:lm.TableAnchorType.PAGE,verticalAnchor:lm.TableAnchorType.PAGE,overlap:lm.OverlapType.OVERLAP,absoluteHorizontalPosition:this._toDoc(n.x),absoluteVerticalPosition:this._toDoc(n.y)},layout:lm.TableLayoutType.FIXED,columnWidths:i,rows:this.$_writeRows(t,e.rows)})]}$_writeRows(t,e){const r=[];for(let s=0;s<e.length;s++)r.push(this.$_writeRow(t,e[s]));return r}$_writeRow(t,e){function r(t){if(t){if("none"===t.style)return{style:lm.BorderStyle.NONE,size:0,color:"ffffff"};if(0===$n.cssToColor(t.color,!1).alpha)return{style:lm.BorderStyle.NONE,size:0,color:"ffffff"}}}const s=e.cells,A=getComputedStyle(e),i=$n.cssToColor(A.backgroundColor),n=[];for(let t=0;t<s.length;t++){const e=s[t],A=getComputedStyle(e);if("none"===A.display)continue;const o=$n.cssToColor(A.backgroundColor)||i;let a=A;const h=e.getElementsByClassName(ko.SPAN)[0];h&&(a=getComputedStyle(h));const l=xm(e.style,A);let c;l&&(c={start:r(l.left),end:r(l.right),top:r(l.top),bottom:r(l.bottom)});const u=new lm.TableCell({columnSpan:e.colSpan||1,rowSpan:e.rowSpan||1,children:[new lm.Paragraph({children:[this._createText(e.textContent,a)],alignment:Pm[e.dataset._align]})],shading:o&&this._toShading(o.color,o.alpha),verticalAlign:lm.VerticalAlign.CENTER,borders:c});n.push(u)}return new lm.TableRow({height:{value:this._toDoc(e.clientHeight),rule:lm.HeightRule.EXACT},children:n})}}class Sm{constructor(t,e){this._report=t,this._imageLoader=new cm,this._model=new Em(this,t,e)}createDOCElements(t){const e=t instanceof HTMLElement&&this._report.models[t.dataset._m_];if(e instanceof Ci)return new mm(this,t,e);if(e instanceof yi){const r=t.getElementsByClassName(Ko.CHECK_CLASS)[0],s=new mm(this,r,e),A=t.getElementsByClassName(Ko.TEXT_CLASS)[0];return[s,new _m(this,A,e)]}if(e instanceof nn)return new Cm(this,t,e);if(e instanceof Xi){const r=t._svg_,s=r.substring(r.indexOf("<svg"));return new wm(this,t,s,e)}if(t instanceof HTMLTableElement)return new Im(this,t,e);if(t instanceof HTMLSpanElement)return e instanceof js&&t.dataset.line?new vm(this,t,e):new _m(this,t,e);if(t instanceof SVGSVGElement){const r=(new XMLSerializer).serializeToString(t);return new wm(this,t,r,e)}return t instanceof HTMLCanvasElement?new Bm(this,t,e):t instanceof HTMLElement?new gm(this,t,e):void 0}setPageDiv(t){t!==this._pageDiv&&(this._pageDiv=t,this._pageRect=t.getBoundingClientRect())}getBounds(t){const e=t.getBoundingClientRect();return e.x-=this._pageRect.x,e.y-=this._pageRect.y,e}addImage(t,e){this._imageLoader.add(t,e)}getImage(t){return this._imageLoader.get(t)}get report(){return this._report}prepare(t){return this._imageLoader.load(t)}canExport(){return this._imageLoader.loaded}toBlob(t){const e=new lm.Document({sections:this.$_buildSections()});lm.Packer.toBlob(e).then(t)}toBuffer(t){const e=new lm.Document({sections:this.$_buildSections()});lm.Packer.toBuffer(e).then(t)}$_buildSection(){const t=this,e=[];return this._model.pages.forEach(((r,s)=>{const A=r.write(t);s>0&&A.unshift(new lm.Paragraph({pageBreakBefore:!0,children:[]})),null==A||A.forEach((t=>e.push(t)))})),{properties:{page:{margin:{top:0,bottom:0,left:0,right:0}}},children:e}}$_buildSections(){const t=this,e={type:lm.SectionType.NEXT_PAGE,page:{margin:{top:0,bottom:0,left:0,right:0}}},r=[];return this._model.pages.forEach(((s,A)=>{const i=s.write(t);r.push({properties:e,children:i})})),r}}class Tm{constructor(){}exportBlob(t,e,r){if("function"!=typeof r)return;const s=()=>{i.canExport()||i.prepare(A)?i.toBlob(r):setTimeout((()=>{s()}),300)},A=5,i=new Sm(t,e);s()}export(t,e,r){if("function"!=typeof r)return;const s=()=>{i.canExport()||i.prepare(A)?i.toBuffer(r):setTimeout((()=>{s()}),300)},A=5,i=new Sm(t,e);s()}}const Fm=function(t){return((255&t)<<16)+(65280&t)+((16711680&t)>>16)},Rm=function(t){return 255*(1-t)>>0};var Om;!function(t){t.Solid="Solid",t.Dash="Dash",t.Dot="Dot",t.DashDot="DashDot",t.DashDotDot="DashDotDot",t.LongDash="LongDash",t.Circle="Circle",t.DoubleSlim="DoubleSlim",t.SlimThick="SlimThick",t.ThickSlim="ThickSlim",t.SlimThickSlim="SlimThickSlim",t.None="None"}(Om||(Om={}));var Qm,Dm,Lm,Um,Hm,Nm,Mm,km,Vm,Gm,Km,Wm,zm,Xm;!function(t){t.Solid="Solid",t.Dash="Dash",t.Dot="Dot",t.DashDot="DashDot",t.DashDotDot="DashDotDot",t.LongDash="LongDash",t.Circle="Circle",t.DoubleSlim="DoubleSlim",t.SlimThick="SlimThick",t.ThickSlim="ThickSlim",t.SlimThickSlim="SlimThickSlim"}(Qm||(Qm={})),function(t){t.Solid="Solid",t.Dot="Dot",t.Thick="Thick",t.Dash="Dash",t.DashDot="DashDot",t.DashDotDot="DashDotDot"}(Dm||(Dm={})),function(t){t.Digit="Digit",t.CircledDigit="CircledDigit",t.RomanCapital="RomanCapital",t.RomanSmall="RomanSmall",t.LatinCapital="LatinCapital",t.LatinSmall="LatinSmall",t.CircledLatinCapital="CircledLatinCapital",t.CircledLatinSmall="CircledLatinSmall",t.HangulSyllable="HangulSyllable",t.CircledHangulSyllable="CircledHangulSyllable",t.HangulJamo="HangulJamo",t.CircledHangulJamo="CircledHangulJamo",t.HangulPhonetic="HangulPhonetic",t.Ideograph="Ideograph",t.CircledIdeograph="CircledIdeograph"}(Lm||(Lm={})),function(t){t.Digit="Digit",t.CircledDigit="CircledDigit",t.RomanCapital="RomanCapital",t.RomanSmall="RomanSmall",t.LatinCapital="LatinCapital",t.LatinSmall="LatinSmall",t.CircledLatinCapital="CircledLatinCapital",t.CircledLatinSmall="CircledLatinSmall",t.HangulSyllable="HangulSyllable",t.CircledHangulSyllable="CircledHangulSyllable",t.HangulJamo="HangulJamo",t.CircledHangulJamo="CircledHangulJamo",t.HangulPhonetic="HangulPhonetic",t.Ideograph="Ideograph",t.CircledIdeograph="CircledIdeograph",t.DecagonCircle="DecagonCircle",t.DecagonCircleHanja="DecagonCircleHanja",t.Symbol="Symbol",t.UserChar="UserChar"}(Um||(Um={})),function(t){t.Justify="Justify",t.Left="Left",t.Right="Right",t.Center="Center",t.Distribute="Distribute",t.DistributeSpace="DistributeSpace"}(Hm||(Hm={})),function(t){t.Left="Left",t.Right="Right",t.Center="Center"}(Nm||(Nm={})),function(t){t.Normal="Normal",t.Arrow="Arrow",t.Spear="Spear",t.ConcaveArrow="ConcaveArrow",t.EmptyDiamond="EmptyDiamond",t.EmptyCircle="EmptyCircle",t.EmptyBox="EmptyBox",t.FilledDiamond="FilledDiamond",t.FilledCircle="FilledCircle",t.FilledBox="FilledBox"}(Mm||(Mm={})),function(t){t.SmallSmall="SmallSmall",t.SmallMedium="SmallMedium",t.SmallLarge="SmallLarge",t.MediumSmall="MediumSmall",t.MediumMedium="MediumMedium",t.MediumLarge="MediumLarge",t.LargeSmall="LargeSmall",t.LargeMedium="LargeMedium",t.LargeLarge="LargeLarge"}(km||(km={})),function(t){t.Hangul="Hangul",t.Latin="Latin",t.Hanja="Hanja",t.Japanese="Japanese",t.Other="Other",t.Symbol="Symbol",t.User="User"}(Vm||(Vm={})),function(t){t.Horizontal="Horizontal",t.Vertical="Vertical",t.BackSlash="BackSlash",t.Slash="Slash",t.Cross="Cross",t.CrossDiagonal="CrossDiagonal"}(Gm||(Gm={})),function(t){t.Tile="Tile",t.TileHorzTop="TileHorzTop",t.TileHorzBottom="TileHorzBottom",t.TileVertLeft="TileVertLeft",t.TileVertRight="TileVertRight",t.Total="Total",t.Center="Center",t.CenterTop="CenterTop",t.CenterBottom="CenterBottom",t.LeftCenter="LeftCenter",t.LeftTop="LeftTop",t.LeftBottom="LeftBottom",t.RightCenter="RightCenter",t.RightTop="RightTop",t.RightBottom="RightBottom",t.Zoom="Zoom"}(Km||(Km={})),function(t){t.Break="Break",t.Squeeze="Squeeze",t.Keep="Keep"}(Wm||(Wm={})),function(t){t.Square="Square",t.Tight="Tight",t.Through="Through",t.TopAndBottom="TopAndBottom",t.BehindText="BehindText",t.InFrontOfText="InFrontOfText"}(zm||(zm={})),function(t){t.Clickhere="Clickhere",t.Hyperlink="Hyperlink",t.Bookmark="Bookmark",t.Formula="Formula",t.Summery="Summery",t.UserInfo="UserInfo",t.Date="Date",t.DocDate="DocDate",t.Path="Path",t.Crossref="Crossref",t.Mailmerge="Mailmerge",t.Memo="Memo",t.RevisionChange="RevisionChange",t.RevisionSign="RevisionSign",t.RevisionDelete="RevisionDelete",t.RevisionAttach="RevisionAttach",t.RevisionClipping="RevisionClipping",t.RevisionSawtooth="RevisionSawtooth",t.RevisionThinking="RevisionThinking",t.RevisionPraise="RevisionPraise",t.RevisionLine="RevisionLine",t.RevisionSimpleChange="RevisionSimpleChange",t.RevisionHyperlink="RevisionHyperlink",t.RevisionLineAttach="RevisionLineAttach",t.RevisionLineLink="RevisionLineLink",t.RevisionLineTransfer="RevisionLineTransfer",t.RevisionRightmove="RevisionRightmove",t.RevisionLeftmove="RevisionLeftmove",t.RevisionTransfer="RevisionTransfer",t.RevisionSplit="RevisionSplit"}(Xm||(Xm={}));const Jm="A".charCodeAt(0),Ym="Z".charCodeAt(0),$m="_".charCodeAt(0),jm="$".charCodeAt(0);class Zm{constructor(t){if(t)for(let e in t)if(e in this){const r=e.charCodeAt(0);r>=Jm&&r<=Ym&&(this[e]=t[e])}}static equals(t,e){if(t&&e&&t.constructor===e.constructor){for(let r in t){const s=r.charCodeAt(0);if(s>=Jm&&s<=Ym&&t[r]!==e[r])return!1}for(let r in t){const s=t[r];if(s instanceof Zm&&!Zm.equals(s,e[r]))return!1}for(let r in e){if(e[r]instanceof Zm&&!(t[r]instanceof Zm))return!1}return!0}return!1}get tag(){return this.constructor.TAG}get text(){}getTagOrders(){}getContent(){let t=[];const e={};for(let r in this){const s=this[r];if(s instanceof Zm&&r.charCodeAt(0)!==jm)t.push(s);else{const A=r.charCodeAt(0);if(A>=Jm&&A<=Ym)e[r]=s;else if(ot.isArray(s)&&r.charCodeAt(0)==$m)for(let e of s)t.push(e)}}const r=this.constructor.ORDERS;return r&&(t=t.sort(((t,e)=>(r[e.tag]||0)-(r[t.tag]||0)))),{elements:t,attrs:e}}}Zm.TAG="INVALID";class qm extends Zm{}class tw extends Zm{constructor(){super(...arguments),this._size=new ew,this._position=new rw,this._outsideMargin=new sw,this.InstId=tw.Id++}setSize(t,e){return this._size.Width=t,this._size.Height=e,this}setPosition(t,e){return this._position.HorzOffset=t,this._position.VertOffset=e,this}}tw.TAG="SHAPEOBJECT",tw.Id=0;class ew extends Zm{constructor(){super(...arguments),this.WidthRelTo="Absolute",this.HeightRelTo="Absolute",this.Protect=!1}}ew.TAG="SIZE";class rw extends Zm{constructor(){super(...arguments),this.TreatAsChar=!1,this.VertRelTo="Paper",this.HorzRelTo="Paper",this.VertAlign="Top",this.HorzAlign="Left",this.VertOffset=0,this.HorzOffset=0,this.FlowWidthText=!0,this.AllowOverlap=!0}}rw.TAG="POSITION";class sw extends Zm{constructor(){super(...arguments),this.Left=0,this.Right=0,this.Top=0,this.Bottom=0}}sw.TAG="OUTSIDEMARGIN";class Aw extends Zm{constructor(){super(...arguments),this.Left=0,this.Right=0,this.Top=0,this.Bottom=0}}Aw.TAG="INSIDEMARGIN";class iw extends Zm{constructor(){super(...arguments),this.Bright=0,this.Contrast=0,this.Effect="RealPic"}}iw.TAG="IMAGE";class nw extends Zm{}nw.TAG="WINDOWBRUSH";class ow extends Zm{constructor(){super(...arguments),this._windowBrush=new nw,this._color=16777215,this._alpha=0}setColor(t,e){return this._windowBrush.FaceColor=Fm(this._color=t),this._windowBrush.Alpha=Rm(this._alpha=e),this}sameWithColor(t,e){return t===this._color&&e===this._alpha}}ow.TAG="FILLBRUSH";class aw extends Zm{constructor(){super(...arguments),this.E1=1,this.E2=0,this.E3=0,this.E4=0,this.E5=1,this.E6=0}}class hw extends aw{}hw.TAG="TRANSMATRIX";class lw extends aw{}lw.TAG="SCAMATRIX";class cw extends aw{}cw.TAG="ROTMATRIX";class uw extends Zm{constructor(){super(...arguments),this._translate=new hw,this._scale=new lw,this._rotate=new cw}}uw.TAG="RENDERINGINFO";class dw extends Zm{constructor(){super(...arguments),this._rendering=new uw,this.XPos=0,this.YPos=0,this.GroupLevel=0,this.HorzFlip=!1,this.VertFlip=!1}setSize(t,e){this.OriWidth=t,this.OriHeight=e}}dw.TAG="SHAPECOMPONENT";class pw extends Zm{constructor(){super(...arguments),this.Left=0,this.Right=0,this.Top=0,this.Bottom=0}}pw.TAG="TEXTMARGIN";class gw extends Zm{constructor(){super(...arguments),this._textMargin=new pw,this._paraList=new Bw,this.Editable=!1}setText(t,e){const r=this._paraList.add().addText(!1,!0),s=r.add(yw);return r.CharShape=e,s.setText(t),this}}gw.TAG="DRAWTEXT";class fw extends Zm{constructor(){super(...arguments),this.Width=33,this.Style=Om.None,this.EndCap="Flat",this.HeadStyle=Mm.Normal,this.TailStyle=Mm.Normal,this.HeadSize=km.SmallSmall,this.TailSize=km.SmallSmall,this.OutlineStyle="Normal"}setStyle(t){return this.Style=function(t){switch(t){case"dot":return Om.Dot;case"dashed":return Om.Dash;default:return Om.Solid}}(t),this}setColor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this.Color=Fm(t),this.Alpha=Rm(e),this}}fw.TAG="LINESHAPE";class _w extends Zm{constructor(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];super(),this._shapeComponent=new dw,this._lineShape=new fw,t&&(this._fillBrush=new ow),e&&(this._drawText=new gw)}get lineShape(){return this._lineShape}setText(t,e){return this._drawText.setText(t,e),this}setSize(t,e){return this._shapeComponent.setSize(t,e),this}setColor(t,e){return this._fillBrush||(this._fillBrush=new ow),this._fillBrush.setColor(t,e),this}setDebug(t){return t&&this._lineShape.Style===Om.None&&(this._lineShape.Style=Om.Solid,this._lineShape.Color=Fm(13421772)),this}}_w.TAG="DRAWINGOBJECT";class mw extends Zm{constructor(t,e,r){super(r),this._children=[],this.CharShape=0,t&&!e&&(this._secDef=new bw,this._colDef=new xw)}get secDef(){return this._secDef}get colDef(){return this._colDef}add(t){const e=new t;return this._children.push(e),e}addElement(t){t&&this._children.push(t)}addElements(t){null==t||t.forEach((t=>t&&this._children.push(t)))}}mw.TAG="TEXT",mw.ORDERS={SECDEF:10,COLDEF:9};class ww extends Zm{constructor(){super(...arguments),this._texts=[]}addText(){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const e=new mw(arguments.length>0&&void 0!==arguments[0]&&arguments[0],t);return t&&(this.ParaShape=0),this._texts.push(e),e}get firstText(){return this._texts.length>0?this._texts[0]:void 0}}ww.TAG="P";class Bw extends Zm{constructor(){super(...arguments),this._paras=[],this.TextDirection=0,this.LineWrap=Wm.Keep,this.VertAlign="Center"}get count(){return this._paras.length}get first(){return this._paras.length>0?this._paras[0]:void 0}add(){const t=new ww;return this._paras.push(t),t}}Bw.TAG="PARALIST";class Cw extends Zm{static getFontSize(t){let e=parseInt(t)||10;return t.endsWith("px")&&(e=72*e/96>>0),e>>0}static getColor(t){let e=0;if(t.startsWith("#"))e=+t.substr(t.length-6),e=(255&e)<<16+(65280&e)+(16711680&e)>>16;else if(t.startsWith("rgb(")){const r=t.substring(4,t.length-1).split(/,\s*/);e=(+r[2]<<16)+(+r[1]<<8)+ +r[0]}else if(t.startsWith("rgba(")){const r=t.substring(5,t.length-1).split(/,\s*/);e=(+r[3]<<24)+(+r[2]<<16)+(+r[1]<<8)+ +r[0]}return e}static getFontBold(t){return+t>=700}_toHwpF(t){return 100*t*72/96}_toHwp(t){return Math.round(100*t*72/96)}_toColor(t){return(255&t)<<16+(65280&t)+(16711680&t)>>16}}class yw extends Cw{setText(t){t=1===t.length&&160===t.charCodeAt(0)?"":ot.escapeXML(t),this._value=t}get text(){return this._value}}yw.TAG="CHAR";class vw extends Cw{constructor(){super(...arguments),this.Left=0,this.Right=0,this.Top=0,this.Bottom=0,this.Header=0,this.Footer=0,this.Gutter=0}}vw.TAG="PAGEMARGIN";class Ew extends Cw{constructor(){super(...arguments),this._margin=new vw,this.Landscape=0,this.Width=59528,this.Height=84188,this.GutterType="LeftOnly"}}Ew.TAG="PAGEDEF";class bw extends Cw{constructor(){super(...arguments),this._pageDef=new Ew,this._pageBorderFills=[],this.TabStop=8e3}}bw.TAG="SECDEF";class xw extends Cw{constructor(){super(...arguments),this.Type="Newspaper",this.Count=1,this.Layout="Left",this.SameSize=!0,this.SameGap=0}}xw.TAG="COLDEF";class Pw extends Zm{setBounds(t,e,r,s){return this.X0=t,this.Y0=e,this.X1=t+r,this.Y1=e,this.X2=t+r,this.Y2=e+s,this.X3=t,this.Y3=e+s,this}}Pw.TAG="IMAGERECT";class Iw extends Zm{constructor(){super(...arguments),this.Left=0,this.Top=0,this.Right=0,this.Bottom=0}}Iw.TAG="IMAGECLIP";class Sw extends Cw{constructor(){super(...arguments),this._shapeObject=new tw,this._shapeComponent=new dw,this._lineShape=new fw,this._imageRect=new Pw,this._imageClip=new Iw,this._image=new iw}init(){return this._shapeObject.ZOrder=1,this._shapeObject.NumberingType="Figure",this._shapeObject.TextWrap=zm.Square,this._shapeObject.Lock=!1,this}setId(t){return this._image.BinItem=t,this}setBounds(t,e,r,s){return t=this._toHwp(t),e=this._toHwp(e),r=this._toHwp(r),s=this._toHwp(s),this._shapeObject.setSize(r,s).setPosition(t,e),this._shapeComponent.setSize(r,s),this._imageRect.setBounds(0,0,r,s),this}}Sw.TAG="PICTURE";class Tw extends Cw{constructor(t,e,r,s){super(),this._shape=new tw,this._drawing=new _w(!1,!1),this.IsReverseHV=!1;const A=this._toHwp(Math.min(t,r)),i=this._toHwp(Math.min(e,s)),n=this._toHwp(Math.max(t,r)),o=this._toHwp(Math.max(e,s)),a=Math.max(1,n-A),h=Math.max(1,o-i);this.StartX=0,this.StartY=0,this.EndX=a,this.EndY=h,this._shape.setPosition(A,i).setSize(a,h),this._drawing.setSize(a,h),this._drawing.lineShape.Style=Om.Solid}setStyle(t){return this._drawing.lineShape.setStyle(t),this}setColor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this._drawing.lineShape.setColor(t,e),this}}Tw.TAG="LINE";class Fw extends Cw{constructor(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];super(arguments.length>2?arguments[2]:void 0),this._shape=new tw,this._drawing=new _w(t,e)}setBounds(t,e,r,s){return r=this._toHwp(r),s=this._toHwp(s),this.X0=0,this.Y0=0,this.X1=0+r,this.Y1=0,this.X2=0+r,this.Y2=0+s,this.X3=0,this.Y3=0+s,this._shape.setSize(r,s).setPosition(this._toHwp(t),this._toHwp(e)),this._drawing.setSize(r,s),this}setZOrder(t){return this._shape.ZOrder=t,this}setText(t,e){return this._drawing.setText(t,e),this}setDebug(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this._drawing.setDebug(t)}setColor(t,e){return this._drawing.setColor(t,e),this}}Fw.TAG="RECTANGLE";class Rw extends Zm{constructor(){super(...arguments),this._paraList=new Bw,this.ColAddr=0,this.RowAddr=0,this.ColSpan=1,this.RowSpan=1,this.Header=!1,this.HasMargin=!1,this.Protect=!1,this.Editable=!1,this.Dirty=!1}get textElement(){return this.$_text}add(t){const e=this.$_checkText();return this._paraList.LineWrap=Wm.Break,e.add(t)}setAlign(t,e){return this._paraList.first.ParaShape=t.head.addParaShape(e),this}setWrap(t){return this._paraList.first.ParaShape=t.head.addParaShapeWrap(),this}$_checkText(){if(!this.$_text){const t=this._paraList.add();this.$_text=t.addText()}return this.$_text}}Rw.TAG="CELL";class Ow extends Zm{constructor(){super(...arguments),this._cells=[]}addCell(t){this._cells.push(t)}}Ow.TAG="ROW";const Qw={l:Hm.Left,c:Hm.Center,r:Hm.Right};class Dw extends Cw{constructor(){super(...arguments),this._shapeObject=new tw,this._insideMargin=new Aw,this.PageBreak="Cell",this.RepeatHeader=!0,this.CellSpacing=0}setBounds(t,e,r,s){return t=this._toHwp(t),e=this._toHwp(e),r=this._toHwp(r),s=this._toHwp(s),this._shapeObject.setSize(r,s).setPosition(t,e),this}build(t,e){function r(t,e){if(1===e)return n[t];{let r=n[t];for(let s=1;s<e;s++)r+=n[t+s];return r}}const s=e.rows,A=e.firstChild.children,i=A.length,n=new Array(i);for(let t=0;t<i;t++){const e=A[t];n[t]=this._toHwp(e.$_w)}this.RowCount=s.length,this.ColCount=i,this._rows=[];for(let e=0,A=this.RowCount;e<A;e++){const A=s[e],n=getComputedStyle(A),o=$n.cssToColor(n.backgroundColor),a=A.cells,h=this._toHwp(A.offsetHeight),l=new Ow;for(let s=0;s<i;s++){const A=a[s],i=A.style,n=getComputedStyle(A);if("none"===n.display)continue;const c=new Rw,u=$n.cssToColor(n.backgroundColor)||o,d=xm(i,n);c.RowAddr=e,c.ColAddr=s,c.RowSpan=A.rowSpan||1,c.ColSpan=A.colSpan||1,c.Width=r(s,c.ColSpan),c.Height=h,c.BorderFill=u&&d?t.getBorderFillByCell(u.color,d):u?t.getBorderFillByColor($n.lighten(u.color,u.alpha),1):d?t.getBorderFillByBorders(d):2;c.add(yw).setText(A.textContent);const p=A.getElementsByClassName(ko.SPAN)[0];if(p){const e=c.textElement,r=getComputedStyle(p),s=Cw.getFontSize(r.fontSize),i=Cw.getColor(r.color),n=Cw.getFontBold(r.fontWeight),o="italic"===r.fontStyle,a=r.textDecoration.indexOf("underline")>=0,h=t.addCharShape(0,s,i,n,o,a);e.CharShape=h,"pre-wrap"===r.whiteSpace?c.setWrap(t):c.setAlign(t,Qw[A.dataset._align])}l.addCell(c)}this._rows.push(l)}return this}}Dw.TAG="TABLE";const Lw=["borderTopStyle","borderBottomStyle","borderLeftStyle","borderRightStyle"],Uw=["borderTopColor","borderBottomColor","borderLeftColor","borderRightColor"];class Hw{constructor(){}build(t,e,r){e.forEach(((e,s)=>{const A=this.$_buildPage(r.setPageDiv(e.page),t,e),i=r.body.section.addPara(),n=i.addText(0===s);A.forEach((t=>{t&&n.addElement(t)})),s>0&&(i.PageBreak=!0)}))}$_createBounds(t,e){let r=t.getDomBounds(e);const s=getComputedStyle(e),A=$n.cssToColor(s.backgroundColor),i=[];if(A){const s=new Fw(!0,!1);r=t.getDomBounds(e),s.setBounds(r.x,r.y,r.width,r.height).setZOrder(0).setColor(A.color,A.alpha),i.push(s)}return Lw.forEach(((A,n)=>{const o=s[A];if(o&&"none"!=o){let A,a,h,l;switch(r||(r=t.getDomBounds(e)),n){case 0:A=r.x,h=r.x+r.width,a=l=r.y;break;case 1:A=r.x,h=r.x+r.width,a=l=r.y+r.height;break;case 2:A=h=r.x,a=r.y,l=r.y+r.height;break;case 3:A=h=r.x+r.width,a=r.y,l=r.y+r.height}const c=$n.cssToColor(s[Uw[n]]),u=new Tw(A,a,h,l);u.setStyle(o).setColor(c.color,c.alpha),i.push(u)}})),i}$_createText(t,e){const r=e.textContent;if(r){const s=t.getDomBounds(e),A=new Fw(!1,!0),i=t.getCharShape(e);return A.setBounds(s.x,s.y,s.width,s.height).setText(r,i).setDebug(Hw.DEBUG),A}}$_createPicture(t,e){const r=t.getDomBounds(e),s=getComputedStyle(e),A=ot.getImageUrl(s),i=t.addImage(A,s.opacity),n=new Sw;return n.init().setId(i).setBounds(r.x,r.y,e.clientWidth,e.clientHeight),n}$_createCheck(t,e){const r=e.getElementsByClassName(Ko.CHECK_CLASS)[0],s=this.$_createPicture(t,r),A=e.getElementsByClassName(Ko.TEXT_CLASS)[0];return[s,this.$_createText(t,A)]}$_createSvg(t,e){let r,s=e instanceof SVGSVGElement?e:null;if(s)r=(new XMLSerializer).serializeToString(s);else{const t=e._svg_;r=t.substring(t.indexOf("<svg"))}const A=new Blob([r],{type:"image/svg+xml;charset=utf-8"}),i=(window.URL||window.webkitURL).createObjectURL(A),n=t.addImage(i,"1"),o=new Sw,a=t.getDomBounds(e);return o.init().setId(n).setBounds(a.x,a.y,a.width,a.height),o}$_createCanvas(t,e){const r=e.toDataURL(),s=t.addImage(r,"1"),A=new Sw,i=t.getDomBounds(e);return A.init().setId(s).setBounds(i.x,i.y,i.width,i.height),A}$_createTable(t,e){const r=new Dw,s=t.getDomBounds(e);return r.BorderFill=2,r.setBounds(s.x,s.y,s.width,s.height),r.build(t,e),r}$_createDiagonalLine(t,e,r){const s=t.getDomBounds(e);return r?new Tw(s.x,s.y+s.height,s.x+s.width,s.y):new Tw(s.x,s.y,s.x+s.width,s.y+s.height)}$_buildItem(t,e,r,s){const A=r instanceof HTMLElement&&e.models[r.dataset._m_];if(A&&!(A instanceof js)){const e=this.$_createBounds(t,r);ot.push(s,e)}if(A instanceof Ci)s.push(this.$_createPicture(t,r));else if(A instanceof Xi)s.push(this.$_createSvg(t,r));else if(A instanceof yi)s.push(...this.$_createCheck(t,r));else if(r instanceof HTMLTableElement)s.push(this.$_createTable(t,r));else if(r instanceof HTMLSpanElement)A instanceof js&&r.dataset.line?s.push(this.$_createDiagonalLine(t,r,A.reversed)):s.push(this.$_createText(t,r));else if(r instanceof SVGSVGElement)s.push(this.$_createSvg(t,r));else if(r instanceof HTMLCanvasElement)s.push(this.$_createCanvas(t,r));else if(r instanceof HTMLElement){const A=r.children;for(let r=0;r<A.length;r++)A[r]instanceof Element&&this.$_buildItem(t,e,A[r],s)}}$_buildBackground(t,e,r,s){this.$_buildItem(t,e,r,s)}$_buildForeground(t,e,r,s){this.$_buildItem(t,e,r,s)}$_buildPageHeader(t,e,r,s){this.$_buildItem(t,e,r,s)}$_buildPageFooter(t,e,r,s){this.$_buildItem(t,e,r,s)}$_buildPageBody(t,e,r,s){for(let A of r)this.$_buildItem(t,e,A,s)}$_buildPage(t,e,r){const s=[];return this.$_buildBackground(t,e,r.background,s),this.$_buildPageHeader(t,e,r.pageHeader,s),this.$_buildPageBody(t,e,r.contents,s),this.$_buildPageFooter(t,e,r.pageFooter,s),this.$_buildForeground(t,e,r.foreground,s),s}}Hw.DEBUG=!1;const Nw="\r\n",Mw=/\<|\>|\&|\"/;class kw{constructor(t){this._root=t}get root(){return this._root}addChild(t,e,r,s){const A={tag:e,attrs:r};return(t=t||this._root).children||(t.children=[]),t.children.push(A),A}setAttr(t,e,r){var s;void 0!==r?(t.attrs||(t.attrs={}),t.attrs[e]=(s=String(r),Mw.test(s)?s.replace(/\&/g,"&amp;").replace(/\</g,"&lt;").replace(/\>/g,"&gt;").replace(/\"/g,"&quot;"):s)):t.attrs&&delete t.attrs[e]}setValue(t,e){void 0!==e?t.value=e:delete t.value}toString(){let t='<?xml version="1.0" encoding="utf-8"?>\r\n';return t+="<!DOCTYPE ".concat(this._root.tag,">").concat(Nw),t+=this.$_toStr(this._root),t}$_toStr(t){let e="<".concat(t.tag);for(let r in t.attrs)e+=" ".concat(r,'="').concat(t.attrs[r],'"');if(t.children||void 0!==t.value){if(e+=">",void 0!==t.value&&(e+=t.value),t.children){e+="".concat(Nw);for(let r of t.children)e+=this.$_toStr(r)}e+="</".concat(t.tag,">")}else e+="/>";return"".concat(e).concat(Nw)}}class Vw extends Zm{constructor(){super(),this.Version="2.8",this.Style="embed",this.SubVersion="8.0.0.0",this._head=new IB,this._body=new TB,this._tail=new OB}get head(){return this._head}get body(){return this._body}get tail(){return this._tail}addImageBin(t,e,r){this._head.addBin(t,e),this._tail.addImageBin(t,r)}get tag(){return"HWPML"}}Vw.TAG="HWPML";class Gw extends Zm{}Gw.TAG="DOCSUMMARY";class Kw extends Zm{constructor(){super(...arguments),this.Page=1,this.Footnote=1,this.Endnote=1,this.Picture=1,this.Table=1,this.Equation=1}}Kw.TAG="BEGINNUMBER";class Ww extends Zm{}Ww.TAG="CARETPOS";class zw extends Zm{constructor(){super(...arguments),this._beginNumber=new Kw,this._caretPos=new Ww}}zw.TAG="DOCSETTING";class Xw extends Zm{constructor(){super(...arguments),this.Type="Embedding",this.Format="jpg"}}Xw.TAG="BINITEM";class Jw extends qm{constructor(){super(...arguments),this._items=[],this.Count=0}add(t,e){const r=new Xw;r.BinData=t,r.Format=e,this._items.push(r),this.Count++}get count(){return this.Count}}Jw.TAG="BINDATALIST";class Yw extends Zm{constructor(){super(...arguments),this.FamilyType=2,this.SerifStyle=11,this.Weight=6,this.Proportion=0,this.Contrast=0,this.StrokeVariation=1,this.ArmStyle=1,this.LetterForm=1,this.MidLine=1,this.XHeight=1}}Yw.TAG="TYPEINFO";class $w extends Zm{constructor(){super(...arguments),this._typeInfo=new Yw}}$w.TAG="FONT";class jw extends Zm{constructor(){super(...arguments),this._fonts=[]}add(t){this._fonts.push(t)}}jw.TAG="FONTFACE";class Zw extends qm{constructor(){super(),this._faces=[];const t=["맑은 고딕","굴림","바탕","돋움"];["Hangul","Latin","Hanja","Japanese","Other","Symbol","User"].forEach((e=>{const r=new jw;r.Lang=e,r.Count=t.length,t.forEach(((t,e)=>{const s=new $w;s.Id=e,s.Type="ttf",s.Name=t,r.add(s)})),this._faces.push(r)}))}get count(){return this._faces.length}}Zw.TAG="FACENAMELIST";class qw extends Zm{constructor(){super(...arguments),this.Type=Om.Solid,this.Width="0.12mm",this.Color=0}setStyles(t){const e=$n.cssToColor(t.color,!1),r=t.style;if(r)if("none"===r)this.Type=Om.None;else this.Type=Om.Solid;return e&&(0===e.alpha&&(this.Type=Om.None),this.Color=Fm(e.color)),this}sameWithStyles(t){const e=$n.cssToColor(t.color,!1),r=e&&0===e.alpha?"none":t.style;if(r)if("none"===r){if(this.Type!==Om.None)return!1}else if(this.Type!==Om.Solid)return!1;return!e||this.Color===Fm(e.color)}}class tB extends qw{}tB.TAG="LEFTBORDER";class eB extends qw{}eB.TAG="RIGHTBORDER";class rB extends qw{}rB.TAG="TOPBORDER";class sB extends qw{}sB.TAG="BOTTOMBORDER";class AB extends qw{}AB.TAG="DIAGONAL";const iB={style:"solid",color:"rgb(0,0,0)"};class nB extends Zm{constructor(){super(...arguments),this._leftBorder=new tB,this._rightBorder=new eB,this._topBorder=new rB,this._bottomBorder=new sB,this._diagonal=new AB,this.ThreeD=!1,this.Shadow=!1,this.Slash=0,this.BackSlash=0,this.CrookedSlash=0,this.CounterSlash=0,this.CounterBackSlash=0,this.BreakCellSeparateLine=0,this.$_borders=[this._leftBorder,this._rightBorder,this._topBorder,this._bottomBorder,this._diagonal]}setSimple(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0.12mm";return this.$_borders.forEach((r=>{r.Type=t,r.Width=e})),this}setFill(t,e){let r=this._fillBrush;return r||(r=this._fillBrush=new ow),r.setColor(t,e),this}sameFill(t,e){return this._fillBrush&&this._fillBrush.sameWithColor(t,e)}setBorders(t){return t.left&&this._leftBorder.setStyles(t.left),t.right&&this._rightBorder.setStyles(t.right),t.top&&this._topBorder.setStyles(t.top),t.bottom&&this._bottomBorder.setStyles(t.bottom),this}sameBorders(t){return!!this._leftBorder.sameWithStyles(t.left||iB)&&(!!this._rightBorder.sameWithStyles(t.right||iB)&&(!!this._topBorder.sameWithStyles(t.top||iB)&&!!this._bottomBorder.sameWithStyles(t.bottom||iB)))}}nB.TAG="BORDERFILL";class oB extends qm{constructor(){super(),this._fills=[],this.Count=0,this.addSimple(Om.None,"0.1mm"),this.addSimple(Om.Solid,"0.12mm")}addSimple(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0.12mm";const r=new nB;return r.setSimple(t,e),r.Id=++this.Count,this._fills.push(r),r}findByFill(t,e){for(let r of this._fills)if(r.sameFill(t,e))return r}findByBorders(t){for(let e of this._fills)if(e.sameBorders(t))return e}getByFill(t,e){let r=this.findByFill(t,e);return r||(r=(new nB).setFill(t,e),r.Id=++this.Count,this._fills.push(r)),r.Id}getByBorders(t){let e=this.findByBorders(t);return e||(e=(new nB).setBorders(t),e.Id=++this.Count,this._fills.push(e)),e.Id}getByCell(t,e){}get count(){return this.Count}}oB.TAG="BORDERFILLLIST";class aB extends Zm{constructor(){super(...arguments),this.Hangul=0,this.Latin=0,this.Hanja=0,this.Japanese=0,this.Other=0,this.Symbol=0,this.User=0}static create(t){return(new aB).setId(t)}setId(t){return this.Hangul=this.Latin=this.Hanja=this.Japanese=this.Other=this.Symbol=this.User=t,this}}aB.TAG="FONTID";class hB extends Zm{constructor(){super(...arguments),this.Hangul=100,this.Latin=100,this.Hanja=100,this.Japanese=100,this.Other=100,this.Symbol=100,this.User=100}static create(t){const e=new hB;return e.Hangul=e.Latin=e.Hanja=e.Japanese=e.Other=e.Symbol=e.User=t,e}}hB.TAG="RATIO";class lB extends Zm{constructor(){super(...arguments),this.Hangul=0,this.Latin=0,this.Hanja=0,this.Japanese=0,this.Other=0,this.Symbol=0,this.User=0}static create(t){const e=new lB;return e.Hangul=e.Latin=e.Hanja=e.Japanese=e.Other=e.Symbol=e.User=t,e}}lB.TAG="CHARSPACING";class cB extends Zm{constructor(){super(...arguments),this.Hangul=100,this.Latin=100,this.Hanja=100,this.Japanese=100,this.Other=100,this.Symbol=100,this.User=100}static create(t){const e=new cB;return e.Hangul=e.Latin=e.Hanja=e.Japanese=e.Other=e.Symbol=e.User=t,e}}cB.TAG="RELSIZE";class uB extends Zm{constructor(){super(...arguments),this.Hangul=0,this.Latin=0,this.Hanja=0,this.Japanese=0,this.Other=0,this.Symbol=0,this.User=0}static create(t){const e=new uB;return e.Hangul=e.Latin=e.Hanja=e.Japanese=e.Other=e.Symbol=e.User=t,e}}uB.TAG="CHAROFFSET";class dB extends Zm{}dB.TAG="ITALIC";class pB extends Zm{}pB.TAG="BOLD";class gB extends Zm{constructor(){super(...arguments),this.Type="Bottom",this.Shape=Qm.Solid,this.Color=0}}gB.TAG="UNDERLINE";class fB extends Zm{constructor(){super(...arguments),this.Height=1e3,this.TextColor=0,this.ShadeColor=4294967295,this.UseFontSpace=!1,this.UseKerning=!1,this.SymMark=0}static createSimple(t,e,r,s,A,i){const n=new fB;return n.Height=Math.round(100*e),n.TextColor=r,n._fontId=aB.create(t),n._ratio=hB.create(100),n._charSpacing=lB.create(0),n._relSize=cB.create(100),n._charOffset=uB.create(0),s&&(n._bold=new pB),A&&(n._italic=new dB),i&&(n._underline=new gB),n}same(t,e,r,s,A,i){return this._fontId.Hangul===t&&Math.round(this.Height/100)===e&&this.TextColor===r&&(!(s&&!this._bold)&&(A===!!this._italic&&i===!!this._underline))}}fB.TAG="CHARSHAPE";class _B extends qm{constructor(){super(...arguments),this._charShapes=[],this.Count=0}add(t,e,r,s,A,i){let n;for(let o of this._charShapes)if(o.same(t,e,r,s,A,i)){n=o;break}return n||(n=fB.createSimple(t,e,r,s,A,i),n.Id=this.Count++,this._charShapes.push(n)),n.Id}get(t){return this._charShapes[t]}get count(){return this.Count}}_B.TAG="CHARSHAPELIST";class mB extends Zm{constructor(){super(...arguments),this.AutoTabLeft=!1,this.AutoTabRight=!1}}mB.TAG="TABDEF";class wB extends qm{constructor(){super(...arguments),this._defs=[],this.Count=0}add(t){return this._defs.push(t),t.Id=this.Count++}addDef(t,e){const r=new mB;return r.AutoTabLeft=t,r.AutoTabRight=e,this.add(r),r}get(t){return this._defs[t]}get count(){return this.Count}}wB.TAG="TABLELIST";class BB extends qm{constructor(){super(...arguments),this._numberings=[],this.Count=0}get count(){return this.Count}}BB.TAG="NUMBERINGLIST";class CB extends qm{constructor(){super(...arguments),this._bullets=[],this.Count=0}get count(){return this.Count}}CB.TAG="BULLETLIST";class yB extends Zm{constructor(){super(...arguments),this.Indent=0,this.Left=0,this.Right=0,this.Prev=0,this.Mext=0,this.LineSpacingType="Percent",this.LineSpacing=130}}yB.TAG="PARAMARGIN";class vB extends Zm{constructor(){super(...arguments),this.Align=Hm.Justify,this.VertAlign="Baseline",this.HeadingType="None",this.Level=0,this.BreakLatinWord="KeepWord",this.BreakNonLatinWord=!0,this.Condense=0,this.WindowOrphan=!1,this.KeepWithNext=!1,this.KeepLines=!1,this.PageBreakBefore=!1,this.FontLineHeight=!1,this.SnapToGrid=!0,this.LineWrap=Wm.Break,this.AutoSpaceEAsianEng=!0,this.AutoSpaceEAsianNum=!0}static create(t,e,r){const s=new vB(r);return s._margin=t,s._border=e,s}sameWith(){return!1}}vB.TAG="PARASHAPE";class EB extends qm{constructor(){super(),this._shapes=[],this.Count=0,this.add(Hm.Left)}get(t){return this._shapes[t]}add(t){for(let e of this._shapes)if(e.Align===t)return e;const e=new vB;return e.Id=this.Count++,e.Align=t,this._shapes.push(e),e}addWrap(){if(!this._wrap){const t=this._wrap=vB.create(new yB,null,null);t.Id=this.Count++,t.Align=Hm.Center,this._shapes.push(t)}return this._wrap}get count(){return this.Count}}EB.TAG="PARASHAPELIST";class bB extends qm{constructor(){super(...arguments),this._styles=[],this.Count=0}add(t){return this._styles.push(t),t.Id=this.Count++}get count(){return this.Count}}bB.TAG="STYLELIST";class xB extends qm{constructor(){super(...arguments),this._memos=[],this.Count=0}get count(){return this.Count}}xB.TAG="MEMOSHAPELIST";class PB extends Zm{constructor(){super(),this._binDataList=new Jw,this._faceNameList=new Zw,this._borderFillList=new oB,this._charShapeList=new _B,this._tabDefList=new wB,this._numberingList=new BB,this._bulletList=new CB,this._paraShapeList=new EB,this._styleList=new bB,this._memoShapeList=new xB}get borderFillList(){return this._borderFillList}get charShapeList(){return this._charShapeList}get paraShapeList(){return this._paraShapeList}addBin(t,e){this._binDataList.add(t,e)}}PB.TAG="MAPPINGTABLE";class IB extends Zm{constructor(){super(),this._docSummary=new Gw,this._docSetting=new zw,this._mappingTable=new PB}get docSummary(){return this._docSummary}get docSetting(){return this._docSetting}get mappingTable(){return this._mappingTable}addBin(t,e){this._mappingTable.addBin(t,e)}addCharShape(t,e,r,s,A,i){return this._mappingTable.charShapeList.add(t,e,r,s,A,i)}addParaShape(t){return this._mappingTable.paraShapeList.add(t).Id}addParaShapeWrap(){return this._mappingTable.paraShapeList.addWrap().Id}}IB.TAG="HEAD";class SB extends Zm{constructor(){super(...arguments),this._paras=[]}addPara(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const e=new ww;return t&&e.addText(!1,!1),this._paras.push(e),e}}SB.TAG="SECTION";class TB extends Zm{constructor(){super(),this._sections=[];const t=new SB;t.Id=0,this._sections.push(t)}get section(){return this._sections[0]}}TB.TAG="BODY";class FB extends Zm{constructor(){super(...arguments),this.Encoding="Base64"}get text(){return this._text}}FB.TAG="BINDATA";class RB extends Zm{constructor(){super(...arguments),this._data=[]}addImage(t,e){const r=new FB;return r.Id=t,r.Size=e.length,r._text=e,this._data.push(r),r}}RB.TAG="BINDATASTORAGE";class OB extends Zm{constructor(){super(...arguments),this._bindDataStorage=new RB}getBinData(t){return this._bindDataStorage[t]}addImageBin(t,e){return this._bindDataStorage.addImage(t,e)}}OB.TAG="TAIL";class QB{constructor(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._imgId=1,this._imgMap={},this.debug=t,this._imageLoader=new cm,this._root=new Vw}static write(t,e,r){const{elements:s,attrs:A}=e.getContent();for(let e in A)t.setAttr(r,e,A[e]);const i=e.text;i&&t.setValue(r,i);for(let e of s)if(!(e instanceof qm)||e.count>0){const s=t.addChild(r,e.tag);this.write(t,e,s)}}static toXml(t){const e=new kw({tag:t.tag});return this.write(e,t,e.root),e.toString()}get body(){return this._root.body}get head(){return this._root.head}get tail(){return this._root.tail}addImage(t,e){let r=this._imgMap[t];if(!r){t.indexOf("base64,")<0&&this._imageLoader.add(t,e),r=this._imgMap[t]=String(this._imgId++)}return+r}getBorderFillByColor(t,e){return this.head.mappingTable.borderFillList.getByFill(t,e)}getBorderFillByBorders(t){return this.head.mappingTable.borderFillList.getByBorders(t)}getBorderFillByCell(t,e){return this.head.mappingTable.borderFillList.getByCell(t,e)}getCharShape(t){const e=getComputedStyle(t),r=Cw.getFontSize(e.fontSize),s=Cw.getColor(e.color),A=Cw.getFontBold(e.fontWeight),i="italic"===e.fontStyle,n=e.textDecoration.indexOf("underline")>=0;return this.addCharShape(0,r,s,A,i,n)}addCharShape(t,e,r,s,A,i){return this._root.head.addCharShape(t,e,r,s,A,i)}prepare(t){return this._imageLoader.load(t)}canExport(){return this._imageLoader.loaded}toXml(){const t=this._root,e=new kw({tag:"HWPML",attrs:{Version:"2.1"}});for(let e in this._imgMap){const r=+this._imgMap[e];let s;s=this._imageLoader.get(e)||e;let A=s.indexOf("base64,");A>=0&&(s=s.substring(A+7)),t.addImageBin(r,"png",s)}return QB.write(e,t,e.root),e}setPageDiv(t){return t!==this._pageDiv&&(this._pageDiv=t,this._pageRect=t.getBoundingClientRect()),this}getDomBounds(t){const e=t.getBoundingClientRect();return e.x-=this._pageRect.x,e.y-=this._pageRect.y,e}}class DB{constructor(){}export(t,e,r){if("function"!=typeof r)return;const s=()=>{if(i.canExport()||i.prepare(A)){const t=i.toXml().toString(),e=(new TextEncoder).encode(t);null==r||r(e)}else setTimeout((()=>{s()}),300)},A=5,i=this.$_build(t,e);s()}$_build(t,e){const r=new QB(!0);if(e){(new Hw).build(t,e,r)}return r}}class LB extends v{constructor(){super()}_doDispose(){super._doDispose()}export(t,e,r){console.log("export to document",r);const s=r.type||"hwp",A=r.fileName||"realreport";try{if("hwp"===s){(new DB).export(t,e,(t=>{x_(t,A+".hwp")}))}else if("docx"===s){(new Tm).exportBlob(t,e,(t=>{x_(t,A+".docx")}))}}catch(t){console.error(t),alert("내보내기 실패: "+t)}}}const UB=72/D.HTMLDPI;class HB extends v{constructor(t,e,r){super(),this._report=t,this.elementCreator=r,this._imageLoader=new cm,this._pages=this.$_build(t,e)}_doDispose(){super._doDispose()}getModel(t){return this._report.models[t.dataset._m_]}getParent(t){for(;t;){if(t instanceof HTMLElement){if(this._report.models[t.dataset._m_])return t}t=t.parentElement}}addImage(t,e){this._imageLoader.add(t,e)}getImage(t){return this._imageLoader.get(t)}prepare(t){return this._imageLoader.load(t)}canExport(){return this._imageLoader.loaded}write(t,e,r){this._doc=t,this._font=e,this._fontBold=r;for(let e=0;e<this._pages.length;e++){const r=this._pages[e];this._offsetX=r.offsetX,this._offsetY=r.offsetY,r.write(this),e<this._pages.length-1&&t.addPage()}}getBounds(t){const e=t.getBoundingClientRect();return e.x-=this._offsetX,e.y-=this._offsetY,e.x*=UB,e.y*=UB,e.width*=UB,e.height*=UB,e}getBox(t){const e=t.getBBox();return e.x*=UB,e.y*=UB,e.width*=UB,e.height*=UB,e}text(t,e,r,s,A){t=this.$_css(t);const i=this._doc,n=t.textDecoration,o=this.$_color(t.color),a=t.fontSize;let h=parseFloat(a);if(A={lineBreak:!1,lineGap:h<13?-1:-2,...A},"italic"===t.fontStyle&&(A.oblique=!0),isNaN(h)?h=HB.FONT_SIZE:a.endsWith("px")&&(ot.isMac?h=Math.floor(h*UB)-(h<13?1:0):h*=UB),i.save(),i.fontSize(h),parseFloat(t.fontWeight)>=700?i.font(this._fontBold):i.font(this._font),o&&i.fillColor(o.color,o.opacity),0!=s&&i.rotate(s,{origin:[e.x+e.width/2,e.y+e.height/2]}),e.y-=.15*h,i.text(r,e.x,e.y,A),n&&n.startsWith("underline")){const t=i.widthOfString(r),s=i.currentLineHeight()-1;i.underline(e.x,e.y,t,s,{color:"black"})}return i.restore(),this}save(){return this._doc.save(),this}restore(){return this._doc.restore(),this}transformSvg(t){return this._doc.transform(t.a,t.b,t.c,t.d,t.e*UB,t.f*UB),this}translate(t,e){return this._doc.translate(t,e),this}scale(t,e){return this._doc.scale(t,e),this}clip(t){const e=this.getBounds(t);return this._doc.rect(e.x,e.y,e.width,e.height).clip(),this}clipRect(t){return this._doc.rect(t.x,t.y,t.width,t.height).clip(),this}path(t,e){return this.$_render(t,((t,r)=>{const s=this.$_color(r.fill),A=this.$_color(r.stroke),i=parseFloat(r.strokeWidth);(s||A&&i>0)&&(A&&i>0&&t.path(e).lineWidth(i).strokeColor(A.color,A.opacity).stroke(),s&&t.path(e).fillColor(s.color,s.opacity).fill())})),this}dline(t,e,r,s,A){return this.$_render(t,((t,i)=>{this.$_border(i,"top")&&t.moveTo(e,r).lineTo(s,A).stroke()})),this}rect(t,e){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this.$_render(t,((t,s)=>{const A=this.$_color(r?s.fill:s.backgroundColor);A&&(t.fillColor(A.color,A.opacity),t.rect(e.x,e.y,e.width,e.height).fill())})),this}polygon(t,e){return this.$_render(t,((t,r)=>{const s=parseFloat(r.strokeWidth),A=this.$_color(r.fill);if(A&&(t.fillColor(A.color,A.opacity),t.polygon(...e).fill()),s>0){const A=this.$_color(r.stroke);A&&(t.strokeColor(A.color,A.opacity).lineWidth(s*UB),t.polygon(...e).stroke())}})),this}border(t,e){return this.$_render(t,((t,r)=>{this.$_border(r,"top")&&t.moveTo(e.x,e.y).lineTo(e.x+e.width,e.y).stroke(),this.$_border(r,"bottom")&&t.moveTo(e.x,e.y+e.height).lineTo(e.x+e.width,e.y+e.height).stroke(),this.$_border(r,"left")&&t.moveTo(e.x,e.y).lineTo(e.x,e.y+e.height).stroke(),this.$_border(r,"right")&&t.moveTo(e.x+e.width,e.y).lineTo(e.x+e.width,e.y+e.height).stroke()})),this}image(t,e,r){return this.$_render(t,((t,s)=>{t.image(e,r.x,r.y,{width:r.width,height:r.height})})),this}$_build(t,e){const r=[];for(let t of e){const e=new MB(this,t);r.push(e)}return r}$_render(t,e){t=this.$_css(t),this._doc.save(),e(this._doc,t),this._doc.restore()}$_css(t){return t instanceof Element&&(t=getComputedStyle(t)),t}$_color(t){let e=t,r=1;if(t.startsWith("#"));else{if(!t.startsWith("rgb"))return null;{const s=t.substring(t.startsWith("rgb(")?4:5,t.length-1).split(/\s*\,\s*/g);e="#";for(let t=0;t<3;t++)e+=ot.pad16(parseInt(s[t]),2);s.length>3&&(r=parseFloat(s[3]))}}return r>0?{color:e,opacity:r}:null}$_border(t,e){const r="border"+ot.capitalize(e),s=parseFloat(t[r+"Width"]);if(s>0){const e=this.$_color(t[r+"Color"]);if(e){const A=t[r+"Style"],i="dotted"===A?1:"dashed"===A?2:0;return this._doc.strokeColor(e.color,e.opacity).lineWidth(s*UB),i>0&&this._doc.dash(i),!0}}}}HB.FONT_SIZE=10;class NB{}class MB extends NB{constructor(t,e){super();const r=e.page.getBoundingClientRect();this.offsetX=r.x,this.offsetY=r.y,this._page=e,this._elements=this.$_build(t)}write(t){for(let e of this._elements)e.write(t)}$_build(t){const e=this._page,r=[];r.push(new kB(t,e.background)),r.push(new kB(t,e.pageHeader));for(let s of e.contents){const e=s instanceof HTMLElement&&t.getModel(s),A=t.elementCreator(t,e,s);A&&r.push(A)}return r.push(new kB(t,e.pageFooter)),r.push(new kB(t,e.foreground)),r}}class kB extends NB{constructor(t,e){super(),this._dom=e,this._elements=this._build(t,e)}write(t){if(this._doBeginWrite(t,this._dom),this._doWrite(t,this._dom),this._elements)for(let e of this._elements)e.write(t);this._doEndWrite(t,this._dom)}_doBeginWrite(t,e){}_doEndWrite(t,e){}_doWrite(t,e){const r=t.getModel(e),s=t.getBounds(e),A=getComputedStyle(e);if(e instanceof HTMLSpanElement){let i=e.textContent;i&&(r instanceof zs&&r.wrap?t.text(A,s,i,0,{width:s.width+2,align:A.textAlign}):"right"===A.textAlign?t.text(A,s,i,0,{width:s.width,align:"right"}):t.text(A,s,i,0))}else(r instanceof ws||r instanceof zs||r instanceof nn)&&t.rect(A,s).border(A,s)}_build(t,e){const r=[],s=e.children;for(let e=0;e<s.length;e++){const A=s[e],i=A instanceof HTMLElement&&t.getModel(A),n=t.elementCreator(t,i,A);n&&r.push(n)}return r}}class VB extends kB{_needClip(){return!1}_doBeginWrite(t,e){this._needClip()&&(t.save(),t.clip(e))}_doEndWrite(t,e){this._needClip()&&t.restore()}_doWrite(t,e){const r=t.getBounds(e),s=getComputedStyle(e);t.rect(s,r),t.border(s,r)}}class GB extends kB{constructor(t,e,r){super(t,e),this._model=r}_build(t,e){}_doWrite(t,e){const r=t.getBounds(e);t.rect(e,r)}}class KB extends kB{constructor(t,e){super(t,e)}_build(t,e){}_doWrite(t,e){const r=e.toDataURL();if(r){const s=t.getBounds(e);t.image(e,r,s)}}}class WB extends kB{constructor(t,e,r){super(t,e),this._model=r}_build(t,e){}_doWrite(t,e){const r=t.getBounds(e),s=this._model.getChecked(this._model.checked),A="0"===s?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAACXBIWXMAAA/XAAAP1wHWM14/AAAFFmlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNi4wLWMwMDIgNzkuMTY0NDYwLCAyMDIwLzA1LzEyLTE2OjA0OjE3ICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgMjEuMiAoV2luZG93cykiIHhtcDpDcmVhdGVEYXRlPSIyMDIxLTAzLTMwVDE5OjA2OjQzKzA5OjAwIiB4bXA6TW9kaWZ5RGF0ZT0iMjAyMS0wMy0zMFQxOTowNzozMCswOTowMCIgeG1wOk1ldGFkYXRhRGF0ZT0iMjAyMS0wMy0zMFQxOTowNzozMCswOTowMCIgZGM6Zm9ybWF0PSJpbWFnZS9wbmciIHBob3Rvc2hvcDpDb2xvck1vZGU9IjMiIHBob3Rvc2hvcDpJQ0NQcm9maWxlPSJzUkdCIElFQzYxOTY2LTIuMSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDo1ZmUyOTFjMy1iNTM0LTIwNGMtODYyNC0wMTE3MmEzYjJhZTMiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NWZlMjkxYzMtYjUzNC0yMDRjLTg2MjQtMDExNzJhM2IyYWUzIiB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6NWZlMjkxYzMtYjUzNC0yMDRjLTg2MjQtMDExNzJhM2IyYWUzIj4gPHhtcE1NOkhpc3Rvcnk+IDxyZGY6U2VxPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0iY3JlYXRlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDo1ZmUyOTFjMy1iNTM0LTIwNGMtODYyNC0wMTE3MmEzYjJhZTMiIHN0RXZ0OndoZW49IjIwMjEtMDMtMzBUMTk6MDY6NDMrMDk6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCAyMS4yIChXaW5kb3dzKSIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7vzoxhAAAOmElEQVR4nO3d3+v2d0HH8dd7u9fWXKkD++Eii7DsF4QdFBvVrHApZUoHri2CgiBnRgQdhVEnUUEHY2FiURGRkVMcTHIOm2ZBsHL9PMicSgc21y83JbzV7d3B9ZXcD+/d9319v/f7e31ej8df8Dr7PK/r+rzf15hzBgDoctnqAQDApScAAKCQAACAQgIAAAoJAAAoJAAAoJAAAIBCAgAACgkAACgkAACgkAAAgEICAAAKCQAAKCQAAKCQAACAQgIAAAoJAAAoJAAAoJAAAIBCAgAACgkAACgkAACgkAAAgEICAAAKCQAAKCQAAKCQAACAQgIAAAoJAAAoJAAAoJAAAIBCAgAACgkAACgkAACgkAAAgEICAAAKCQAAKCQAAKCQAACAQgIAAAoJAAAoJAAAoJAAAIBCAgAACo0kv7Z6BACb8ViS2+ecD68ewrmNJHP1CAA24WySH5tz3rl6CM/szOoBAGzCo0leOee8b/UQzo8AAGBfH0vysjnnA6uHcP4EAAD7eDDJTXPOB1cP4cI4BQDAxXogyQ0e/odJAABwMe5LcuOc82Orh3BxBAAAF+rO7H7zf3T1EC6eAADgQvx2klfPOc+uHsJ+BAAA5+uX55y3zTkfXz2E/TkFAMAzeTzJa+ecb1w9hOMjAAA4l7NJbp1zvnX1EI6XAADgC3k0yQ/POd+zegjHTwAA8HQeyu5N/79bPYSTIQAAeLIHk7x0zvmh1UM4OU4BAPD53p/keg//7RMAAHzOn2d3u9/Dq4dw8gQAAEnylux+8//E6iFcGgIAgDckuXnO+enVQ7h0BABAt1+ac77W7X59nAIA6PR4ktfMOd+0eghrCACAPmeT3DLnfNvqIawjAAC6PJLd7X7vXT2EtQQAQI+HkvzAnPPvVw9hPQEA0OGD2d3u9+HVQzgdnAIA2L6/TXKDhz+fTwAAbNu7k7zE7X48mQAA2K4/TfJyt/vxdAQAwDb9VpIfdbsfX4gAANie1885X+d2P87FKQCA7Xgsu9v9fmf1EE4/AQCwDZ/K7iv/t68ewmEQAACH75Ekr5hz/sXqIRwOAQBw2P49u9v9/mH1EA6LAAA4XP+a3e1+H1k9hMPjFADAYfqb7G73+8jqIRwmAQBweO7N7na//1g9hMMlAAAOy58k+cE55ydXD+GwCQCAw3FHklvc7sdxEAAAh+EX55w/O+ecq4ewDU4BAJxujyX56Tnn764ewrYIAIDT61NJbp5z3rV6CNsjAABOp49nd7vf+1YPYZsEAMDp89Hsbvf7x9VD2C4BAHC6fCDJTS744aQ5BQBwetwft/txiQgAgNPhXUm+d875n6uH0EEAAKz35rjdj0tMAACsdXuSW+ecn1k9hC5beAnwgSS3rR4BcBE+Ped8/+oRdNpCADw65/zr1SMA4JD4CQAACgkAACgkAACgkAAAgEICAAAKCQAAKCQAAKCQAACAQgIAAAoJAAAoJAAAoJAAAIBCAgAACgkAACgkAACgkAAAgEICAAAKCQAAKCQAAKCQAACAQgIAAAoJAAAoJAAAoJAAAIBCAgAACgkAACgkAACgkAAAgEICAAAKCQAAKCQAAKCQAACAQgIAAAoJAAAoJAAAoJAAAIBCAgAACgkAACgkAACgkAAAgEICAAAKCQAAKCQAAKCQAACAQgIAAAoJAAAoJAAAoJAAAIBCAgAACgkAACgkAACgkAAAgEICAAAKCQAAKCQAAKCQAACAQgIAAAoJAAAoJAAAoJAAAIBCAgAACgkAACgkAACgkAAAgEICAAAKCQAAKCQAAKCQAACAQgIAAAoJAAAoJAAAoJAAAIBCAgAACgkAACgkAAA4pzHGWL2B43dm9QAATqfPPfjnnHP1Fo6fbwAAeIoxxpXzyOotnAwBAMATjDGePec8u3oHJ0sAAJAkGWNcPsZ4/pzzkdVbOHkCAICMMa5K8tVzzo+u3rKvMcZzVm84BAIAoNwY47lJnj/n/PDqLfsaY3xLkreu3nEInAIANmmMMbzAdm5Hb/lfl+SyOeeHVu/Z1xjj+iR3J3l49ZZD4BsAYHPGGFcned7qHQfgG5J8ds75b6uH7GuM8bIk9yZ57uoth0IAAJty9Kn2hUm+dPWW02rsvDjJw3POh1bv2dcY45YkdyW5evWWQyIAgE05+tr/n5N8fPGUU2mMcVmSG5J8YM7536v37GuM8TNJ/ijJFau3HBoBAGzOnPOzSf7r6GHHkTHGmSTfn+T+OecnV+/Z1xjjV5LckcRVxRfBS4DAJh19E+AlwCNHx/xuTHLvnPOxxXP2chR2dyS5bfWWQyYAADZujPHFSb57zvnO1Vv2Nca4IskfJrl59ZZDJwAANmyMcU2Sb59z3rN6y77GGM/K7oz/Tau3bIEAANioowfmN84537t6y77GGNcmeUeS71y9ZSsEAMAGHX3y/5o55/2rt+xrjHFdknuSfPPqLVsiAAA25uiFv6+Yc/7T6i37GmO8MLsLfl6wesvWOCIDsCFHL8ldO+f84Oot+zq6rOgv4+F/IgQAwEaMMS5Pcs1G/tHvxiT3JfmytUu2SwAAbMDR2fgr55z/s3rLvsYYr0zyZ3Gd84kSAAAH7uj/Dy6fc/7v6i37GmP8RJI7k1y1esvWCQCAwzfmnJ9ZPWJfY4xfSPJ7SS5fvaWBAAA4cHPOx1dv2NcY49eT/MbqHU0cAwRgmaMXF9+U5CdXb2kjAABYYoxxZZI3J3nV6i2NBAAAl9wY40uS3JXkJau3tBIAAFxSY4znJXlnkhev3tJMAABwyYwxXpDkXUm+fvWWdk4BAHBJjDG+KclfxcP/VBAAAJy4McZ3JHlfkutWb2FHAABwosYYL03y7iTXrt7C/xMAAJyYMcark9yd5Fmrt/BEAgCAEzHGeE2SP05yxeotPJUAAODYjTFen+QN8Zw5tRwDBODYHP0z4e1JXrd6C+cmAAA4FmOMK5L8fpJbV2/hmQkAAPY2xrg6yVuSvHz1Fs6PAABgL2OM5yR5R5LrF0/hAggAAC7aGOMrk9yT5FtXb+HCCAAALsoY4+uS3Jvka1dv4cI5ngHABRtjfFt29/p7+B8oAQDABRljfFeS9yT58sVT2IMAAOC8jTF+KLu/83326i3sRwAAcF7GGD+e5G1Jrlq9hf0JAACe0Rjj55P8Qbw8vhkCAIBzGmP8apLfTDJWb+H4KDkAntYY47Ikb0zyU6u3cPwEAABPMcb4ouz+yvdHVm/hZAgAAJ5gjHFNkrcn+b7FUzhBAgCAJ7s7yfesHsHJ8hIgAE/2otUDOHkCAAAKCQAAKCQAAKCQAACAQgIAAAoJAAAoJAAAoJAAAIBCAgAACgkAACgkAACgkAAAgEICAAAKCQAAKCQAAKCQAACAQgIAAAoJAAAoJAAAoJAAAIBCAgAACgkAACgkAACgkAAAgEICAAAKCQAAKCQAAKCQAACAQgIAAAoJAAAoJAAAoJAAAIBCAgAACgkAACgkAACgkAAAgEICAAAKCQAAKCQAAKCQAACAQgIAAAoJAAAoJAAAoJAAAIBCAgAACgkAACgkAACgkAAAgEICAAAKCQAAKCQAAKCQAACAQgIAAAoJAAAoJAAAoJAAAIBCAgAACgkAACgkAACgkAAAgEICAAAKCQAAKCQAAKCQAACAQgIAAAoJAAAoJAAAoJAAAIBCAgAACgkAACgkAACgkAAAgEICAAAKCQAAKCQAAKCQAACAQgIAAAoJAAAoJAAAoJAAAIBCAgAACgkAACgkAACgkAAAgEICAAAKCQAAKCQAAKCQAACAQgIAAAoJAAAoJAAAoJAAAIBCAgAACgkAACgkAACgkAAAgEICAAAKCQAAKCQAAKCQAACAQgIAAAoJAAAoJAAAoJAAAIBCAgAACgkAACgkAACgkAAAgEICAAAKCQAAKCQAAKCQAACAQgIAAAoJAAAoJAAAoJAAAIBCAgAACgkAACgkAACgkAAAgEICAAAKCQAAKCQAAKCQAACAQgIAAAoJAAAoJAAAoJAAAIBCAgAACgkAACgkAACgkAAAgEICAAAKCQAAKCQAAKCQAACAQgIAAAoJAAAoJAAAoJAAAIBCAgAACgkAACgkAACgkAAAgEICAAAKCQAAKCQAAKCQAACAQgIAAAoJAAAoJAAAoJAAAIBCAgAACgkAACgkAACgkAAAgEICAAAKCQAAKCQAAKCQAACAQgIAAAoJAAAoJAAAoJAAAIBCAgAACgkAACgkAACgkAAAgEICAAAKCQAAKCQAAKCQAACAQgIAAAoJAAAoJAAAoJAAAIBCAgAACgkAACgkAACgkAAAgEICAAAKCQAAKCQAAKCQAACAQgIAAAoJAAAoJAAAoJAAAIBCAgAACgkAACgkAACgkAAAgEICAAAKCQAAKCQAAKCQAACAQgIAAAoJAAAoJAAAoJAAAIBCAgAACgkAACgkAACgkAAAgEICAAAKCQAAKCQAAKCQAACAQgIAAAoJAAAoJAAAoJAAAIBCAgAACp1ZPeAYfNUY4+dWjwDYkKtXD+DkjSRz9QgAOEb/Mud80eoRp52fAACgkAAAgEICAAAKCQAAKCQAAKCQAACAQgIAAAoJAAAoJAAAoJAAAIBCAgAACgkAACgkAACgkAAAgEICAAAKCQAAKCQAAKCQAACAQgIAAAoJAAAoJAAAoJAAAIBCAgAACgkAACgkAACgkAAAgEICAAAKCQAAKCQAAKCQAACAQgIAAAoJAAAoJAAAoJAAAIBCAgAACgkAACgkAACgkAAAgEICAAAKCQAAKCQAAKCQAACAQgIAAAoJAAAoJAAAoJAAAIBCAgAACp1J8qrVIwDgGH1i9YBDMOacqzcAAJeYnwAAoJAAAIBCAgAACgkAACgkAACgkAAAgEICAAAKCQAAKCQAAKCQAACAQgIAAAoJAAAoJAAAoJAAAIBCAgAACgkAACgkAACgkAAAgEICAAAKCQAAKCQAAKCQAACAQgIAAAoJAAAoJAAAoJAAAIBC/wcVCcUnTpFFpAAAAABJRU5ErkJggg==":"-1"===s?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAACXBIWXMAAA/XAAAP1wHWM14/AAAFFmlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNi4wLWMwMDIgNzkuMTY0NDYwLCAyMDIwLzA1LzEyLTE2OjA0OjE3ICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgMjEuMiAoV2luZG93cykiIHhtcDpDcmVhdGVEYXRlPSIyMDIxLTAzLTMwVDE5OjA2OjQzKzA5OjAwIiB4bXA6TW9kaWZ5RGF0ZT0iMjAyMS0wMy0zMFQxOTowOTowNCswOTowMCIgeG1wOk1ldGFkYXRhRGF0ZT0iMjAyMS0wMy0zMFQxOTowOTowNCswOTowMCIgZGM6Zm9ybWF0PSJpbWFnZS9wbmciIHBob3Rvc2hvcDpDb2xvck1vZGU9IjMiIHBob3Rvc2hvcDpJQ0NQcm9maWxlPSJzUkdCIElFQzYxOTY2LTIuMSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpiMzI0ZTM5OS1iZmU1LTA5NDAtOGFjOS1hYzc2YWZmYTU0NWUiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6YjMyNGUzOTktYmZlNS0wOTQwLThhYzktYWM3NmFmZmE1NDVlIiB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6YjMyNGUzOTktYmZlNS0wOTQwLThhYzktYWM3NmFmZmE1NDVlIj4gPHhtcE1NOkhpc3Rvcnk+IDxyZGY6U2VxPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0iY3JlYXRlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDpiMzI0ZTM5OS1iZmU1LTA5NDAtOGFjOS1hYzc2YWZmYTU0NWUiIHN0RXZ0OndoZW49IjIwMjEtMDMtMzBUMTk6MDY6NDMrMDk6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCAyMS4yIChXaW5kb3dzKSIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7jm/kdAAAVl0lEQVR4nO3dvY8l2VkH4LfnYwdsvDK7CBBgI2PYtu8KAYYAZAnWJBCtWJGQkRghUgKEhEREAEgkgLBwiMgcICQSCBD4T7Dlwhe0AsmkuzIIix0vM03Q0zs9PdPd9+PU+XqfJ117uvreqvP7nbfq3j45OzsLACCXO60PAACoTwEAgIQUAABISAEAgIQUAABISAEAgIQUAABISAEAgIQUAABISAEAgIQUAABISAEAgIQUAABISAEAgIQUAABISAEAgIQUAABISAEAgIQUAABISAEAgIQUAABISAEAgIQUAABISAEAgIQUAABISAEAgIQUAABISAEAgIQUAABISAEAgIQUAABISAEAgIQUAABISAEAgIQUAABISAEAgIQUAABISAEAgIQUAABISAEAgIQUAABISAEAgIQUAABISAEAgITubZflrPVBADCdk5Y//HSzafnjh2ACAEBpTcOf3SgAAJQk/AehAABQivAfiAIAQAnCfzAKAADHEv4DUgAAOIbwH5QCAMChhP/AFAAADiH8B3ev9QEAMBTBPwkTAAB2JfwnogAAsAvhPxkFAIDbCP8JKQAA3ET4T0oBAOA6wn9iCgAALyL8J6cAAHDV0OF/utm0PoQhKAAAXCb8k1AAALgg/BPxTYAADB38EcL/ECYAALkJ/6RMAADyGjr8Bf9xTAAAchL+ySkAAPkIfxQAgGSEPxHhGQCATIYNf8FfngkAQA7Cn2coAADzE/48RwEAmJvw54U8AwAwJ8HPjUwAAOYzbPhTjwkAwFyGDX87/7pMAADmIfzZmQIAMAfhz14UAIDxCX/2pgAAjE34cxAFAGBcwp+DKQAAYxL+HEUBABiP8OdovgcAYBzDBn+E8O+NCQDAGIQ/RSkAAP0T/hSnAAD0TfizCgUAoF/Cn9UoAAB9Ev6sSgEA6I/wZ3UKAEBfhD9VKAAA/RD+VOOLgAD6MGz4C/4xKQAAbQ0b/BHCf2SzFIChLyCAEQn/sXkGAIC9Cf/xKQAA7EX4z0EBAGBnwn8eszwDAMCKBP98TAAAICETAACuZec/LxMAAF5I+M9NAQDgOcJ/fgoAAM8Q/jkoAAB8QPjn4SFAAAR/QiYAAMkJ/5xMAACSEvy5KQAwsdsW+O2yVDoSeiP8UQBgAhZz9uF8IUIBgCFYsCnBecRlCgB0xALNWpxbXKUAAExM8HMdBQAqshhTk/ONmygAkNjlgPCJgHkIfnahAMABZlxgZ/yd9jFLAcr+PrI7BQBuYUGd2yzBH+FcZT8KAOlZNJmB85h9KQCkYYHkMjt/svPHgAAGJvw5lAkAw7HgcYiZdvwRrgOOpwDQNYscPM91QQkKAF2woMFuXCuUogBQhUWLFoz94XoKAEVZoGAdri1KUwA4mAWJ3sy247/gWmMNCgC3svhAG6491qQAYJGBDrkuWZsCkICFhNnNNvp3zVKDAtCQixy4zJpATQoA0L3ZdvgvIvypTQEAaEjw04o/BgTQiPCnJQUAoAHhT2sKAEBlwp8eeAYAoBLBT09MAAAqEP70RgEAWJnwryvDx0ZLcAsA6NboC7ngr2/0c6YmEwCAFQj/+oT/fkwAgO6MvpAL//pGP2daMAEAKEj41yf8D2MCADQ3ywIu/Oub5dxpwQQAoADhX5/wP44JAMABBH5bwv94CgDAjoR+e4K/HAUAaGaExVzo92OE82UkngEAuIbw74fwL88EAKiu98Vc8Pej93NlZCYAAJcI/34I/3WZAACrGW0BF/79GO3cGZEJAEAI/54I/zpMAIDUBH8/BH9dJgBAWsK/H8K/PhMA4CijLtzCvw+jnj8zMAEA0hH+fRD+bSkAQCrCvw/Cvz23AICDjLiAC//2RjxvZqUAADsbefEW/u2NfP7MyC0AYHrCvz3h3x8TAIpxgd9MCLXhdW/LutAvBYCjucB3c/l16jmUvJ+U4lzqmwLAQVzYjKDnojU7a0T/FAB25oIu5+K1FFDr8dq2YZ0YhwIwKBcZXE/4t2FdGosCMBgX2FxaTAJmP4eEf32zn1OzUgASuGlBdOEyE+FfnzVkXArAAA65wHZdCK/+71zMjEr412e9GJsCMJljF8GL/78Lu67tsgiwI3jt6rI+zEEB6Ng+F1npBfB0s3GRT2D291Dw1zf7OZWJAjC4NRdA0wB6Iuzbsg7MRwHo1C4XW60F0TSgjl1uA2R6HwR+PzKdd5koAIOqvTgqAdQg9Pvimp+bAjCg3hbJXY7HQrKbzA8DZv29e+R6zUEB6MxtF17LRfLyFGDf4/A8AdcR/H2Z5Bo9i4iT1gfROwVgID0slKU+ZhgxzULDEXo4p3lqkmvyrPUBjOJO6wPgqZsuvhkXyhl/pxImWYRv5f3vx3ZZTiY574T/HkwAGprkgjuKhwuv53Whhu2y3I2IR62PowDhvycTgAHMvlOa/fc7xOzh7z3vw3ZZXg7hn5YC0LksC2WW3xPvdQ+ejPw/FRH/3fpYChD+B1IAOpZtocz2+0IL22W5FxFvRsTXWx9LAcL/CApAp4QhUNp2Wb4rIn43Iv629bEc6SyE/9EUALqi+MzN+9vOdlk+GRH/ExF/0PpYjiT4C/EpgA5ZJIFStstyJyJ+PiL+qfGhlCD8CzIBAJjUdlm+MyJ+M4Q/L6AAdMbu32sAx3rylP8PRMQfRcQXWh9PAcJ/BW4BdETwMTPndx3bZTmJiJ+J83v9v9T4cEoQ/isxAQCYxJNv9fu1iPirEP7cQgHohN3Rs7we85n92w1b2y7LhyPi9yPizyPi040PpwThvzK3AAAGt12W742IP4mIX42IDzU+nBKEfwUKQAfsdoFDbZflE3H+oN8vRsRLjQ+nBOFfiQLQmPAHDvHkYb/XI+JP4/xz/jOs58K/Is8A0CX3i+fkfS3qMxHxxRD+HGiGk2ZYdv/Avp7s/H82Iv4szkvA6Bs5wd+IAgAwiCfh/9k4v+f/440PpwTh39DozXFYdv9k5TbAYZ6E/y+E8KcQBYDuCIg+nW42xYqr9/ggPxcRfxHCn0LcAmjA7p/e3XSOvui/CfR1bZflNM7v+c+weAj/TigAwAcOLacX/79di4ASvLvtsnwkIv4wIn669bEUIPw74hYAXbGTbKPUeF+wl/Xkvv+vR8RbrY+lAOHfGROAyiyQ1xP+9a1xPt42DXAN7OVH4/y7/Ucn/DtkAgCs4pqgP6l9HKPaLstLEfFvrY+jAOHfKQUAEir5RP9tP+eS7z7dbITBDp6M/r/d+jgK8H53TAGoyOjzesb/9TQ6Dz8aEd9s8YMHNUNwzvA7TM0zAHThcigpA+toVUCf/NxvNvnhA5rg/Bf8g1AA6M7VoJpgQWzO9GkME5zrwn8gCgDd2/cz5jwl+Mcxwfkt/AfjGYBKLMTH8xrux+s1DuFPCwpAJRNc4F2o9fT6yLxGY5lgbRD+g1IAKrEgU4PzjMqE/8AUAIYk6J7nNRnLdllG3/0L/8EpAAxL4J0z8h/P4MEfIfynoAAwtOzBl/33H5HwpxcKAAxK+I9H+NMTBYDhZQtCI/8xCX96owBUMsHFTwcE/3gmeNgvQvhPyTcBwiCE/3gEPz0zAWAKs4fj7L8fXRL+k1MAoHPCf0yD7/6FfwIKQEWDLwg0IPyBtSgA0CnhPy5lnxF4CBA6I/iBGkwAKrMz4CbCf3yucUahAEAnhP/4hD8jUQAasEhwlfAHavMMAOlcDtseypjwn0MP5xLsQwFoZLssFv5Kbnqdr/632ou4c2AOwp8RKQANKQHlvGgBPuS1rTkd8N7PQfgzKs8ANGbxWEeJcF0zoIU/0JoJAFMpHawX/17Joib856HAMzITgA5M8udCm7l47UbYsQv/ebhmGd3J17/2tRn+6MNJ6wMoSUj065hF3/s6jwThP3wunG42U+XCGkwAoALhP48E4U8SCkCH3BLo17GfLADohQLQsYsioAz0ZZ9AF/5zcS0yE58CGMTVheeGL7C5f7rZvF/nqLiJ8J+L8Gc2CsCgbliM3t8uy8npZjP8Qzw9O91sbgwE4Q/0zi2AOQn/hoT/fOz+mZECAAUJ//n0Hv6nm43zjoMoAJPqfdGCEfR8HQl+jqUAwIGuLr4W47n0HP5QgocAoQDhTw3OM0oyAZiYHUwdFuX5jHbtjHa89EEBmJyFYV3Cfz49XjPu97MGBSCBHhc0ANpSAJJQAuB2vV0ndv6sSQEAiP7CH9bmUwCJXCxwdhTwrN7C3zVKDQpAQooAPNVT+LsmqcktgMR6WvgAqEsBSE4JILNezv9jHvbr5XdgPAoAkJLgJDvPABDbZXHvkVR6CH/XHK2ZABARfSyIUINzHc6ZAABp9BD+dv70wgSAD/SwOAJQhwLAM5QAZtX63Pa1vvRGAeA5rRdKKK3lOS346ZUCwAspAczCuQwvpgBwLQsno7Pzh+spANxICQCYk48BAlNqVV7t+hmFCQC3MgUAmI8JADCd2qXVrp8RmQCwE1MARlHzXPWgHyNTAAAgIQWAnZkC0DvnKOxOAWAvFlh65dyE/XgIkL1tl8V9T7pSK/yd98zEBCCZUguY3Ra9WPtcvHjQT/gzGwUgoVKLmRJAa9nPwey/P8dxCyCJtXYvFwuQ3RG11dj5w8wUgInVXMA8F0ANdrxQjgKQ2NXAPnZxPXQasF2Wk4i4d7rZvH/UATAtwQ/lKQA3sKM9zIsW68uv5UXgR8RHIuJjEfHpiPjWdln+7nSzOat0mHTKH/GBOhQAPnCxAK6xAF/8m2dnZ791cnLyckR8f0R8PCJ+OCJejYh/jIi/j4hvF//hDMNOH+pRAKjq5OTkC48fP37nzp07DyLipYi4GxFnEfGpiPi+iPhGy+OjnRbhb9dPZj4GyHPW/szznTt3Xn348OH9iLgf5+fg3Yj4oYj4zGo/lK7Z+UN9CgBNPHjw4ME77777X2dnH9zyfzUi3tguy/2Gh0UDrXb+dv9kpwBwrbUXyVdfeeWjy7L8++PHjyMiviMiPhsRP7baDyQ9wQ9PKQA09frrr//IP3/5y1959OjR3Yj4ZET8ynZZPJuSwHZZjP6hIQWAW629a/rcG2/8xNtvv/2NiHg5It6MiJ9c7YfRBcEP7SkAdOG11177+KNHj07i/DsBPr9dlldaHxPrEP7QB6NWdnbly3yK//t37969FxGPI+KXI+JftsvyxdPN5n+L/yBScK8fbmYCQG/uRMQPRsRvRMRb22V50Ph4KKjG7t+DfrAbBYCDrLzI3o+I04j47Yh4c7ssH1rrB1GP0T/0xS0AjrLi1wffj/OvBf69iHhluyxfOt1s3i39Q6ij1s4f2J0CQM9eioj3I+J3IuIT22X564j419PNxt8LADiSAkARK08CHsf5MwE/FRFf2i7LP0TEf55uNo9L/zDKWnvnb9cPh1MAGMGdOP+DQZ+L848Jfiwi/jgivtXyoGhH8MPxFIAbbJfFQrOnFT8qeBLnJeB7IuLDEfF/Jf9xyvPQH/RNAWA1K9wWOImIdyLiP+L82QA6tVb4K+RQjgLAaF6NiLfifBpAh0qHv9CHdSgArK7UJOBSEPzNcUfEWoz9YRy+CIhq7OTmtkb4O2dgPQoAcDQ7fxiPAgAcRfjDmBQA4GDCH8blIcBb+C6Ask43G6ExiRLvo2sL2jEBAICEFACq8/fax2eKA+NTAHZgsYNz22VxPcAkFAAASEgBoBm3AcZi598X7wfH8ikA4FYFv8YZ6IQJAE0Jhv7ZacKcFADgWsIf5qUAAC8k/GFungGgOd8O2B/f8gfzMwEAnqGMQQ4KAF3w7YB9EP6QhwIARITwh2wUgB1ZHJmZ8xvyUQDoilsB9Ql/yEkBgMSEP+SlANAlU4D1Cf8x+YuMlKIAQEICBFAA6JbnAdYh/IEIBWAvFk5GVnN0rLhB/3wVMN0TJgDlmQBAAqZXwFUKAExO+AMvogDAxIQ/cB0FYE8WVEbQ8rPintmAMSgAMBklFdiFAgATEf7ArnwMECbROvyN/tfX+j1mLiYAMAHBAOzLBAAG1kvw2/3DeEwAYFC9hD8wJhMAGIzgB0owAYCB9Bj+xv8wJgUABtFj+APjcgsABtBj+Nv5w9hMAKBzPYY/9TkPKM0EADrV84Jv9w/jMwGADvUc/sAcFADojPAHanALADoxQvAb/cM8TACgAyOEPzAXEwDogJ01UJsJAAAkpAAAdM4tItagAABAQgoAACSkAABAQgoAACSkAABAQgoAACSkAABAQgoAACSkAABAQgoAACTkjwExLF+PWp4/SgR5KACA4IeE3AIAgIRMACAxO3/ISwFgWMeEl+cHgOwUAEjIzh/wDAAAJGQCAEnY9QOXKQCkJAyB7NwCAICEFAAASEgBAICEFAAASEgBAICEFAAASEgBAICEFAAASEgBAICEFAAASEgBAICEFAAASEgBAICEFAAASEgBAICEFAAASEgBAICEFAAASEgBAICEFAAASEgBAICEFAAASEgBAOjYdllaHwKTUgAAICEFAAASutf6AABqMU6HpxQAYEjCHI6jAADdEe6wPgUAqEKoQ18UAKAIAQ9jUQCAZwhyyEEBgASEOnCVAgADEujAsRQAaECAA60pAHANIQ3MTAFgWgIc4HoKAMMQ6ADlKAB0Q8AD1KMAsCqhDtAnfw4YABIyAeAodvgAY1IAuJZwB5iXApCYgAfISwGYgCAHYF8KwAAEPAClKQCNCXcAWlAAKhL2APRCAViZ0AegRwrAnk43m2v/m7AHYBQKwJGEPgAjUgD2JPABmIG/BQAACSkAAJCQAgAACSkAAJCQAgAACSkAAJCQAgAACSkAAJCQAgAACSkAAJCQAgAACSkAAJCQAgAACSkAAJCQAgAACSkAAJCQAgAACSkAAJCQAgAACSkAAJCQAgAACd1rfQCFnLU+AAAYiQkAACSkAABAQgoAACSkAABAQgoAACSkAABAQgoAACSkAABAQgoAACSkAABAQgoAACSkAABAQgoAACSkAABAQgoAACSkAABAQgoAACSkAABAQgoAACSkAABAQgoAACSkAABAQgoAACSkAABAQgoAACSkAABAQgoAACSkAABAQgoAACSkAABAQgoAACSkAABAQgoAACSkAABAQgoAACSkAABAQgoAACSkAABAQgoAACSkAABAQgoAACSkAABAQgoAACSkAABAQgoAACSkAABAQgoAACSkAAAwlYcPH561PoYRKAAATOO999575ytf/epftj6OEZycnSlKAJCNCQAAJKQAAEBCCgAAJKQAAEBCCgAAJKQAAEBCCgAAJKQAAEBCCgAAJKQAAEBCCgAAJKQAAEBCCgAAJKQAAEBCCgAAJKQAAEBCCgAAJKQAAEBCCgAAJKQAAEBCCgAAJKQAAEBCCgAAJKQAAEBCCgAAJKQAAEBC/w+cQjvNwRAEYgAAAABJRU5ErkJggg==":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAP0QAAD9EBVjAapAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAACAASURBVHic7d1nmG11eb/x+7G3RFM0Go2ixt67EVRQAQFRigqCEsWKgD0kxlhjibFSLLEEe0NREEFQaQLRvwVb7ChW7Aoi0s55/i/WHnKEc6btvedZa/3uzzvxnJnvdeHlumdm72ciM5EkSW25XPUASZK09gwASZIaZABIktQgA0CSpAYZAJIkNcgAkCSpQQaAJEkNMgAkSWqQASBJUoMMAEmSGmQASJLUIANAkqQGGQCSJDXIAJAkqUEGgCRJDTIAJElqkAEgSVKDDABJkhpkAEiS1CADQJKkBhkAkiQ1yACQJKlBBoAkSQ0yACRJapABIElSgwwASZIaZABIkrQGIuKKEfHX1TsWGACSJM1ZRFwdOAo4NSKuX70HIDKzeoMkSaM1+ar/aOBuk390BrBVZv6obpUBIEnS3ETEjYBjgVtc6r86ky4CzlzrTQv8EYAkSXMQEbcFTuOyD3+AzYCTIuKmazpqAwaAJEkzFhFbAJ8G/naRP3ZDugi4+dqs+lMGgCRJMxQRDwaOA661jD9+fboIuNV8V12WASBJ0oxExN7A4cBVV/DXrgucOPmRwZoxACRJmoGIeDbwVuDyq/jr1wFOiIg7znbVpvkuAEmSphARAbwGeOoMPtxvgG0y8wsz+FiLMgAkSVqliLgi8HbgETP8sL8DHpiZn53hx7wMA0CSpFWIiGsAHwK2mcOHPwfYLjNPm8PHBgwASZJWbCPX/ebhXGCHzDx5Hh/cFwFKkrQCEbEZcCrzffgDXAM4JiLuN48PbgBIkrRMEXE7uof/Wh3vuRpwVETM/McMBoAkScsQEfcGTmbx637zcFXgyIjYYZYf1ACQJGkJEfEQln/dbx6uDBw+2TETBoAkSYuIiMfRvdr/KsVTrgQcFhG7zuKDBfAfs/hAkiQB64ADM/MX1UNmISL+FXhJ9Y5LuRh4VGa+b5oPEoDvA5QkzcIFwCMz84PVQ6Y1ue53ILB/9ZZNWAc8JjPfudoPYABIkmbhHGCnzDyhesi0IuJKdNf9dq/esoT1wOMy89DV/GUDQJI0rZ/TXa07vXrItCbX/Q4Htq7eskwJPCkz37TSv2gASJKmcQawbWaeUT1kWhFxbbrrfnet3rJCCeyfma9byV/yXQCSpNU6Hdh8JA//zegO/Azt4Q/dF/OHRMTTV/KXDABJ0mqcAGyZmT+vHjKtiLg9cBpws+otU3p1RByw3D9sAEiSVuqDdD/zP6d6yLQi4j501/2uV71lRl4eEc9Zzh80ACRJK/EGYLfMvKB6yLQiYifgWOCa1Vtm7MUR8cKl/pABIElarhdk5pMzc331kGlFxOPpvpNRfd1vXp4XES9d7A/4LgBJ0lLWA/tm5hurh8zC5FvkL67esUZelZnP2th/YQBIkhZzAbBnZn6oesi0IuJydNf99qvessYOysynXvofGgCSpE05B3hIZp5YPWRak+t+7wB2q95S5A1038W55JlvAEiSNuZndK/0/1L1kGlNrvt9GHhA9ZZibwGesBABBoAk6dLOALbJzO9VD5nW5LrfMcBdqrf0xNuBvTNzvQEgSdrQF+m+8h/8r/ONiBvTvc1v6Ad+Zu09wF5XqF4hSeqN4+l+o9/vq4dMKyLuQPeV/1gO/MzSHkB6B0CSBHAY3Vf+Y3j43xc4CR/+m3Ie8B4DQJL0emD3zLywesi0ImJn4OOM77rfrPwW2DozjzYAJKltz8vMfUdy3e8JdN/JGOt1v2mdBdw3M08D8DUAktSm9cA+mfmm6iGzEBHPBV5UvaPHvkv3zo7vL/wDA0CS2nMBsEdmHl49ZFqT634HAftWb+mx04EHXvqdHQaAJLXlbLrrfidVD5nW5LrfO4GHV2/psZOAB2/sVzcbAJLUjp/RfSX45eoh04qIP6O77nf/6i09dgTdizvP39h/6YsAJakN3wXuNZKH/3WAE/Hhv5hDgV039fAHA0CSWvAFYPMNXwA2VJPrfqcCd67e0mOvyMy9M3PdYn/IAJCkcfsUsNVITvveATgN+PvqLT12QGYesJw/aABI0nh9ANh+ZNf9rlu9pafW0f2Sn1cs9y8YAJI0TocAjxjJdb9d6H6pj9f9Nu58up/3H7qSv2QASNL4PDcz9x/Jdb8n0l33u3L1lp46h+6dHUes9C/6NkBJGo91dNf93lw9ZBYi4nnAC6t39NjP6X6B0+mr+csGgCSNw/l03/L/SPWQaU2u+x0MPLl6S499n+6073dX+wEMAEkavrPprr2dXD1kWpPrfu8CHla9pce+CmybmWdN80EMAEkatrPofgb8leoh05pc9/sIcL/qLT12GvCgzPzttB/IFwFK0nB9h+663xge/gvX/Xz4b9rRwNazePiDASBJQ/V5uut+Z1YPmVZE3ITuK1uv+23au+h+idN5s/qABoAkDc8n6K77/bJ6yLQi4o50p31vWr2lxw4E9srMi2f5QQ0ASRqW99H9DPjc6iHTiogt8brfUv4tM5+WmTnrD2wASNJwHAzsMZLrfrsCHwf+vHpLT60HnpSZL5nXJzAAJGkYnpOZT5nHV4JrLSKeRPd7Crzut3EXArtl5n/N85P4NkBJ6rd1dF8JvqV6yCxExPOBF1Tv6LFzgZ0z85Pz/kQGgCT11/nA7qu58943k+t+hwD7VG/psV/R/fbGz63FJzMAJKmffkd33e/T1UOmFRFXpnsb20Ort/TYj+hO+35zrT6hASBJ/fNTuut+X60eMq2I+HO6635bVW/psW/QPfx/vJaf1ACQpH75Nt2d9zOrh0wrIv4GOAa4U/WWHvt/dN/2//Vaf2LfBSBJ/fE5xnPd76Z0B358+G/aJ4D7VTz8wQCQpL44ju5h8KvqIdOKiDvhdb+lfIDuoNMfqgYYAJJU772M57rfVnS/1Odviqf02RuAR1QfdDIAJKnWgcCemXlR9ZBpRcRD6X7m73W/Tfv3zHxyZq6vHjKGFwGeDjy5eoQkrcKFmfnF6hGzEBH70L3P3y8sNy6Bp2bmwdVDFowhAM7JzM9Uj5CkVkXEC4DnV+/osYuAR2fme6qHbGgMASBJKjC57vc64EnVW3rsPOChmXlM9ZBLMwAkSSs2ue73bmDX6i099ltgh8z8n+ohG2MASJJWZHLd7whgy+IpffZTuut+/1s9ZFMMAEnSskXEdele6X/H6i099h26h/+Z1UMW46s1JUnLssF1Px/+m/ZFYIu+P/zBAJAkLcMG1/1uUr2lx04EtsrMX1QPWQ4DQJK0qIi4H3ASXvdbzIfpfoPjOdVDlssAkCRtUkQ8jO5n/n9WvaXH3go8LDMvqB6yEgaAJGmjIuLJwPuAK1Vv6bGXZ+bjMnNd9ZCVMgAkSZcRES+kO/Ljc2LjEnhWZv5L9ZDV8m2AkqRLTK77vR54YvWWHrsYeFxmvr16yDQMAEkScMl1v/cAu1Rv6bHzgd0y88jqIdMyACRJC9f9jgTuW72lx84GHpyZJ1cPmQUDQJIaN7nu93HgDtVbeuznwLaZ+eXqIbNiAEhSwyLi74HjgBtXb+mx79Gd9j2jesgs+epOSWpURNyZ7rqfD/9N+wrdad9RPfzBAJCkJkXE/elO116neEqfnQLcNzPPqh4yDwaAJDUmIh4OHI3X/RZzFN23/X9XPWReDABJakhE7Au8F6/7LeadwM6Z+cfqIfNkAEhSIyLiRcAh+P/9i3kN8I+ZeXH1kHnzXQCSNHIRcXm6635PqN7Sc8/JzJdWj1grBoAkjVhEXIXuut/O1Vt6bD3wpMx8c/WQtWQASNJIRcQ1gSPwut9iLgD2zMwPVQ9ZawaAJI1QRFwPOAav+y3m98BOmXl89ZAKBoAkjUxE3Aw4Fg/8LOaXwPaZ+fnqIVUMAEkakYi4C917/D3ws2k/pHuP/7eqh1TyrSCSNBIR8QDgBHz4L+brwOatP/zBAJCkUYiI3YCP4XW/xXwWuHdm/rh6SB8YAJI0cBGxH91b/bzut2nHAvfPzN9UD+kLA0CSBiwi/h04GP//fDHvA3bMzD9UD+kTXwQoSQM0ue73BuDx1Vt67nXAUzJzffWQvjEAJGlgJtf93gvsVL2l516YmS+oHtFXBoAkDcjkut+RwH2qt/TYerqv+l9XPaTPDABJGojJdb+PA7ev3tJjFwF7Zeb7qof0nQEgSQMwue53HLBZ8ZQ++wOwa2YeWz1kCAwASeq5iLgr3XW/a1dv6bHfADtk5meqhwyFbxuRpB6LiK3prvv58N+0n9Ad+PHhvwIGgCT1VETsDhwFXKN6S499m+6079erhwyNASBJPRQR++N1v6V8AdgiM39QPWSIDABJ6pmIeAlwEBDVW3rseGCrzPxl9ZCh8kWAktQTk+t+bwQeV72l5w4H9sjMC6qHDJkBIEk9MLnu9z7gIdVbeu7NwD6Zua56yND5IwBJKhYR16J7j78P/8W9LDOf4MN/NvwOgCQVioi/pbvud7vqLT2WwDMz8zXVQ8bEAJCkIhFxc7rfU79Z8ZQ+uxh4bGa+o3rI2BgAklQgIu4GfAwP/Czmj8DDM/Oo6iFjZABI0hqbXPc7HA/8LOZ3wI6ZeUr1kLHyRYCStIYi4hF0X/n78N+0nwH39eE/XwaAJK2RiHgK8G7gitVbeuwMutO+X6keMnYGgCStgYh4KXAgXvdbzJfpTvt+r3pIC3wNgCTN0eS6338Bj63e0nOfpvuZ/9nVQ1phAEjSnETEVemu+z24ekvPfZTu1f7nVw9piT8CkKQ52OC6nw//xb0d2MWH/9ozACRpxibX/T4NbFG9pedeBTwmMy+uHtIiA0CSZigibgGcBty2ekvPPTszn5WZWT2kVb4GQJJmZHLd72jgr6u39Ng64EmZ+ZbqIa0zACRpBiJiG7rrflev3tJjFwCPyMwPVw+RPwKQpKlFxB7AUfjwX8zvge18+PeHASBJU4iIpwHvwut+i/klsGVmnlA9RP/HAJCkVYqIlwGvwet+i/kB3XW/L1YP0Z/yNQCStEKT635vBh5TvaXn/hfYNjN/Uj1El2UASNIKTK77vR/YsXpLz/0P8KDM/E31EG2cASBJyxQRf0F3tnbz6i0993Fg18w8r3qINs3XAEjSMkTE9YGT8eG/lPcCD/bh338GgCQtwet+y3YIsGdmXlQ9REszACRpERFxd+AU4IbVW3ru+Zm5v6d9h8PXAEjSJkTEtsCH8MDPYtYD+2fm66uHaGUMAEnaiIjYEzgUD/ws5kJgr8x8f/UQrZw/ApCkS4mIpwPvxIf/Yv4A7OjDf7j8DoAkbSAi/gP45+odPfdrYIfM/Gz1EK2eASBJQERcge6636OLp/Tdj4FtMvMb1UM0HQNAUvMm1/0+ADyoekvPfYvu4f/D6iGangEgqWmT635HAfeq3tJzn6f7db6/qh6i2fBFgJKaNbnu92l8+C/lU8BWPvzHxQCQ1KSIuCXddb/bVG/puQ8C22fmudVDNFsGgKTmRMQ98LrfcrwJ2C0zL6weotkzACQ1JSIeSPct7b+q3tJzL8nMJ2bm+uohmg8DQFIzIuKRwJF42ncxCTw9M/+teojmywCQ1ISIeAbwDrzut5iL6U77vrZ6iObPAJA0ehHxcuBVQFRv6bE/Ajtl5ruqh0wrIq5VvWEIDABJoxURV4iItwEHVG/pud8BW2fmx6qHTCsibkv3Gxy1BA8BSRqlyXW/w4Adqrf03FnAtpn51eoh04qIe9EddfpF9ZYh8DsAkkYnIv4S+CQ+/JfyXWDzkTz8twM+AfxF9ZahMAAkjUpE3ACv+y3Hl4AtMvP71UOmFRF7AEcAV6veMiQGgKTRiIhb0V33u3X1lp47GbhvZv68esi0ImI/4F347o4VMwAkjUJE3JPuK/+/q97Sc0fQ/cz/nOoh04qIFwIH47s7VsUAkDR4k5//et1vaYcCu2bm+dVDphERl4uI1wHPq94yZAaApEGLiEfRXffz57+Le2Vm7p2Z66qHTCMirgi8G3hy9ZahMwAkDVZEPBN4O76leSn/nJn/VD1iWhFxdeCjwO7VW8bAABARsWNEXKN6h7Rc0flP4JX489/FrAMem5n/WT1kWhu8tXPb6i1jYQA0LiL2pntR0DFGgIYgIq4AvA0Y/Fe0c3Y+8NDM/O/qIdOKiOvTvXPhntVbxsQAaNjk4f8Wuq+gtgA+HhF/VrtK2rSIuBpdsO5VvaXnzgG2y8yPVA+ZVkTcDDgVuE31lrExABp1qYf/gs3pvhNgBKh3NvgW8PbVW3ruF8CWmXli9ZBpRcSdgVOAG1VvGSMDoEGbePgv2By/E6Ce2eC63z9Ub+m5M+mu+51ePWRaEbElcAJwneIpo2UANGaJh/+Ce2EEqCe87rdsX6O76/+d6iHTioidgGOAP6/eMmYGQEOW+fBfcC/gWCNAlSbX/U7B635LOQ24T2b+tHrItCLiMcAHgatUbxk7A6ARK3z4L/gHugiwwrXmImJ7uut+f1m9peeOAbbOzN9WD5lWRPwT8N/A5au3tMAAaMAqH/4LjACtuYjYC3+723K8G3hIZp5XPWRaEfFyYPD3CobEABi5KR/+C+6JEaA1EhHPonufv9f9FncQ8KjMvKh6yDQi4vIR8VbggOotrTEARmxGD/8F9wSOMwI0L5Prfq8EXoHX/Zby3Mx8amZm9ZBpRMSVgcOAvau3tMgAGKkZP/wX3IMuAq45w48pLVz3ezvwzOotPbce2CczX1w9ZFqTFxgfA+xcvaVVBsAIzenhv+AedD8OMAI0E5PrfkcCj6re0nMXArtn5hurh0wrIq4NnAhsVTylaQbAyMz54b/A7wRoJibX/T4FbFe9pefOBXbIzMOqh0wrIm5E99bOO1dvaZ0BMCJr9PBfcHeMAE0hIv6O7kHgL3hZ3K+B+2XmJ6uHTCsibk131//m1VtkAIzGGj/8F9wd+IQRoJWaPAhOA25VvaXnfkR32vdz1UOmFRH3oDvnfP3qLeoYACNQ9PBfcDe6CLhWwefWAEXEP9A9CG5QvaXnvkl32veb1UOmFRHb4FGn3jEABq744b/ACNCyRMQOdL/RzwfB4j5H95X/j6qHTCsidgOOAq5evUV/ygAYsJ48/BfcFSNAi4iIfwQ+gtf9lvJJup/5/7p6yLQiYh/gPcAVq7fosgyAgerZw3+BEaCNmtx4PxSv+y3lMLpX+59bPWRaEfFc4PX4nOkt/8UMUE8f/gvuCnwyIv6ieojqTa77vYruxnsf//faJ2+ke5//hdVDpjH5d34Q8KLqLVqcATAwPX/4L7gL3XcCjICGRcQVgXcAz6jeMgAvzsx9MnN99ZBpTP6dvxPYv3qLlmYADMhAHv4L7oLfCWhWRFyd7rf5PbJ6S88l8NTMfG71kGlNLjp+BNizeouWxwAYiIE9/BfcGSOgORHxV3jdbzkuovttfgdVD5nW5HU/nwC2r96i5TMABmCgD/8FdwY+NTn5qpGLiBvSXfe7R/WWnjsPeEhmvrt6yLQi4nrAycC9qrdoZQyAnhv4w3/Bnei+E2AEjFhE3IbuzOstq7f03G+BrTPzmOoh04qIm9L9O79d9RatnAHQYyN5+C8wAkYsIu6F1/2W46fAfTLztOoh04qIO9I9/G9cvUWrYwD01Mge/gvuhD8OGJ2IeBDd8Rpf67G479Cd9v1a9ZBpRcS96X6d798UT9EUDIAeGunDf8Ed6SLgr6qHaHoR8Wjgw8BVi6f03el0p33PrB4yrYjYETgO8JeADZwB0DMjf/gvMAJGICIOwOt+y3EisGVm/qJ6yLQiYi/gcOAq1Vs0PQOgRxp5+C+4A0bAIE0uvb0aeHn1lgH4CLBdZp5TPWRaEfEM4G0YfKNhAPREYw//BXcAjo+Iv64eouXZ4NLb06u3DMB/Aw/NzPOrh0wrIl4KvIq2/v9p9AyAHoiIe9Dew3/B7em+E2AE9Nzkut+ReOltOf4zMx+bmeuqh0wjIi4XEW8Cnl29RbNnAPRAZn4WOLB6RyEjoOcmP6o5Hnhg9ZaeS+CfMvOfq4dMKyKuBHwAeHz1Fs2HAdATmfl04LXVOwrdHn8c0EsbXPe7e/WWnlsH7J2Zr6weMq2IuAZwNLBr9RbNjwHQI0YAt6OLgGtXD1Fnct3vNLzut5TzgV0y823VQ2bkKOD+1SM0XwZAzxgBRkBfRMTmdNf9rl+9pefOBrbNzCOrh8yQwdcAA6CHjABuixFQanLs5RN43W8pP6d7j//J1UOklTIAesoIMAKqRMRj8Lrfcnyf7rTvl6qHSKthAPSYEcBtgRMi4jrVQ1oREf9C9/71y1dv6bmv0j38z6geIq2WAdBzkwho+S2Ct6H7ToARMEeT636vAV5WvWUATqX7jX5nVQ+RpmEADEBmPg0jwO8EzMnkut+7gKdVbxmAjwFbZ+bvqodI0zIABsII4NZ0EeCvH52hyXW/jwJ7VG8ZgHcBO2XmH6uHSLNgAAyIEcCt6X4cYATMwOTo0vHAttVbBuC1wF6ZeXH1EGlWDICBMQL8TsAsRMSN8Lrfcj0nM5+emVk9RJolA2CAjABuhRGwahFxW7rrfreo3tJz64EnZuZLq4dI82AADJQRcEkEXLd6yJBExBZ01/3+tnpLz10I7JaZb6oeIs2LATBgRoARsBIR8WDgOOBa1Vt67lxg+8z8YPUQaZ4MgIEzArglRsCSImJv4HC87reUXwFbZeanqodI82YAjIARwC2BEyPietVD+iging28Fa/7LeWHwBaZ+fnqIdJaMABGwgjgFnTfCTACJibX/V4L+CK2pX2D7rTvt6qHSGvFABgRI8AIWDC57vdu4KnVWwbgs8C9M/PH1UOktWQAjIwRwC3ofhzQ7KvcI+IawFHAI6q3DMBxwP0z89fVQ6S1ZgCMkBHAzem+E9BcBGxw3W+b6i0D8H5gx8z8Q/UQqYIBMFJGQHsRMLnudypwt+otA/B6YI/MvLB6iFTFABgxI4Cb08iPAyLidnTX/W5evWUAXpSZ+2bm+uohUiUDYOQmEXBQ9Y5CN6OLgOtXD5mXiLg3cDJe91tKAvtn5vOrh0h9YAA0IDOfihEwygiIiIfgdb/luAjYMzMPqR4i9YUB0AgjgL9nZBEQEY8FPgRcpXpLz50HPDgz31s9ROoTA6AhRsAlEXCD6iHTioh/Bd6C1/2W8hu6t/l9vHqI1DcGQGOMgGFHwOS634HAS6q3DMBPgPtk5meqh0h9ZAA0yAjgpgwwAibX/d4DPKV6ywB8m+607/9WD5H6ygBolBFwSQT8XfWQ5Zhc9/sYsHv1lgH4It0v9flB9RCpzwyAhhkBw4iAiLg2cAKwdfWWATgB2DIzf1k9ROo7A6BxRgA3occREBGbAacAd61dMgiHA9tl5u+rh0hDYADICPi/CLhh9ZANRcTt8brfcr0FeHhmXlA9RBoKA0CAEUDPImBy3e8koPlfbbwM/5GZj8/MddVDpCExAHQJI4Ab04MIiIid8LrfciTwzMx8dvUQaYgMAP0JI+CSCLhRxSePiMcBH8Trfku5GHhMZr66eog0VAaALsMIqImAiHgO8Ga87reUPwK7ZObbq4dIQ2YAaKOMADZjjSIgIi4XEQcBL5735xqBs4FtM/Oj1UOkoTMAtElGwCURsNm8PkFEXInuut/+8/ocI/Iz4L6Z+enqIdIYGABa1CQCDq7eUWgz5hQBG1z3223WH3uEvkd32vfL1UOksTAAtKTMfAptR8CNmHEETK77nQg8YFYfc8S+Qvfw/171EGlMDAAtixHAjYCTIuLG036gycc4FbjL1KvG7xS63+j3s+oh0tgYAFo2I4Ab0n0nYNURMLnudypws5mtGq+jgG0y8+zqIdIYGQBaESNg9REQEfcBTsbrfsvxDmDnzPxj9RBprAwArZgRcEkE3GS5fyEidgaOBa45t1Xj8Wrg0Zl5cfUQacwMAK2KEbD8CIiIxwOH4XW/5fjXzHxmZmb1EGnsDACtmhHA37FEBETEvwFvwut+S1kHPD4zX1Y9RGqFAaCpGAGXRMBNN/yHk+t+BwP/XjNrUC6g+1W+b6keIrXEANDUjIA/jYDJdb/3AvuVrhqG3wPbZ+bh1UOk1hgAmgkjgBvQRcCdgKOBhxfvGYJfAltl5vHVQ6QWXaF6gMYjM58SEdDuXfsbAF8AonrIAPyA7j3+364eIrXK7wBopvxOgA//Zfg63WlfH/5SIQNAM2cEaBGfAe6dmT+pHiK1zgDQXBgB2ohjgQdk5m+qh0gyADRHRoA28F5gx8z8Q/UQSR0DQHM1iYBDqneo1CHAnpl5UfUQSf/HANDcZeb+GAGtekFm7u9pX6l/fBug1kRm7j95i6DHcdqwHtg/M19fPUTSxhkAWjNGQDMuAh6Vme+vHiJp0wwArSkjYPT+AOySmcdVD5G0OANAa84IGK3f0N31/2z1EElL80WAKuELA0fnx3QHfnz4SwNhAKiMETAa36I77fv16iGSls8AUCkjYPA+D2yRmT+sHiJpZQwAlTMCBut44H6Z+avqIZJWzgBQLxgBg/Mhuhf8/b56iKTVMQDUG0bAYLwJeHhmXlA9RNLqGQDqFSOg916amU/MzPXVQyRNxzsA6h3vBPRSAs/IzNdWD5E0GwaAeskI6JWLgb0z853VQyTNjgGg3jICeuGPwMMy82PVQyTNlgGgXptEQAD7Vm9p0O+AHTPzlOohkmbPAFDvZeZ+k+8EGAFr5yzggZn5leohkubDdwFoEDJzP+B11TsacQbdaV8f/tKIGQAaDCNgTXyJ7uH//eohkubLANCgGAFzdTKwZWb+vHqIpPkzADQ4RsBcHAlsm5lnVw+RtDYMAA2SETBTbwN2yczzq4dIWjsGgAbLCJiJV9Ed+VlXPUTS2jIANGhGwFT+JTOflZlZPUTS2vMOgAbPOwErtg54Yma+tXqIpDoGgEbBCFi2C4DdM/Mj1UMk1TIANBpGwJLOAR6SmSdWD5FUzwDQqBgBm/QLYLvM/GL1EEn94IwjvAAABmFJREFU4IsANTq+MPAyzgS28OEvaUMGgEbJCLjE1+hO+36neoikfjEANFpGAP8D3Cczf1o9RFL/GAAatUkEvL56R4FjgAdk5m+rh0jqJwNAo5eZ+9JWBLyH7tX+51UPkdRfBoCa0FAEHAw8MjMvqh4iqd8MADWjgQh4XmY+xdO+kpbDOwBqSmbuO7kT8OTqLTO0HtgvM99QPUTScBgAas7IIuBC4FGZ+YHqIZKGxQBQk0YSAecCu2TmJ6qHSBoeA0DNGngE/BrYPjP/X/UQScPkiwDVtIG+MPBHwL19+EuahgGg5g0sAr5Jd9r3G9VDJA2bASB1hnAx8HN0X/n/qHqIpOEzACRg8t75PkfAJ4H7ZeavqodIGgcDQJrocQQcBuyQmedWD5E0HgaAtIEeRsB/Abtn5oXVQySNiwEgXUqPIuDFmfmkzFxfvEPSCHkHQNqIzMyI2G/yH9f6TkACT8/MA9f480pqiAEgbcIGERDAPmv0aS8GHp2Z716jzyepUQaAtIhJBOw7+Y/zjoDzgIdl5tFz/jySZABIS1mjCPgt8KDMPG1OH1+S/oQBIC3DnCPgLGCbzPzajD+uJG2S7wKQlmny7oB9gTfM8MN+l+60rw9/SWvKAJBWYMYRcDrdw//7M/hYkrQiBoC0QjOKgJOALTPzF7NZJUkrYwBIqzBlBBwBPDAzz5ntKklaPgNAWqVVRsChwK6Zef58VknS8hgA0hRWGAGvyMy9M3PdnGdJ0pIMAGlKy4yAAzLzgDWaJElL8g6ANAOL3AlYBzw+Mw8tmCVJm2QASDOykQg4n+5X+R5ROEuSNsoAkGZogwg4D/hoZp5UvUmSNsYAkGZs8pqAZ1XvkKTF+CJASZIaZABIktQgA0CSpAYZAJIkNcgAkCSpQQaAJEkNMgAkSWqQASBJUoMMAEmSGmQASJLUIANAkqQGGQCSJDXIAJAkqUEGgCRJDTIAJElqkAEgSVKDDABJkhpkAEiS1CADQJKkBhkAkiQ1yACQJKlBBoAkSQ0yACRJapABIElSgwwASZIaZABIktQgA0CSpAYZAJIkNcgAkCSpQQaAJEkNMgAkSWqQASBJUoMMAEmSGmQASJLUIANAkqQGGQCSJDXIAJAkqUEGgCRJDTIAJElqkAEgSVKDDABJkhpkAEiS1CADQJKkBhkAkiQ1yACQJKlBBoAkSQ0yACRJapABIElSgwwASZIaZABIktQgA0CSpAYZAJIkNcgAkCSpQQaAJEkNMgAkSWqQASBJUoMMAEmSGmQASJLUIANAkqQGGQCSJDXIAJAkqUEGgCRJDTIAJElqkAEgSVKDDABJkhpkAEiS1CADQJKkBhkAkiQ1yACQJKlBBoAkSQ0yACRJapABIElSgwwASZIaZABIktQgA0CSpAYZAJIkNcgAkCSpQQaAJEkNMgAkSWqQASBJUoMMAEmSGmQASJLUIANAkqQGGQCSJDXIAJAkqUEGgCRJDTIAJElqkAEgSVKDDABJkhpkAEiS1CADQJKkBhkAkiQ1yACQJKlBBoAkSQ0yACRJapABIElSgwwASZIaZABIktQgA0CSpAZdoXrADNwgIp5WPUKSRuRq1QM0fwFk9QhJkmboW5l5y+oRfeePACRJapABIElSgwwASZIaZABIktQgA0CSpAYZAJIkNcgAkCSpQQaAJEkNMgAkSWqQASBJUoMMAEmSGmQASJLUIANAkqQGGQCSJDXIAJAkqUEGgCRJDTIAJElqkAEgSVKDDABJkhpkAEiS1CADQJKkBhkAkiQ1yACQJKlBBoAkSQ0yACRJapABIElSgwwASZIaZABIktQgA0CSpAYZAJIkNcgAkCSpQQaAJEkNMgAkSWqQASBJUoMMAEmSGmQASJLUIANAkqQGGQCSJDXIAJAkqUEGgCRJDTIAJElqkAEgSVKDDABJkhpkAEiS1CADQJKkBhkAkiQ1yACQJKlBVwB2rh4hSdIM/b56wBBEZlZvkCRJa8wfAUiS1CADQJKkBhkAkiQ1yACQJKlBBoAkSQ0yACRJapABIElSgwwASZIaZABIktQgA0CSpAYZAJIkNcgAkCSpQQaAJEkNMgAkSWqQASBJUoMMAEmSGmQASJLUIANAkqQGGQCSJDXIAJAkqUEGgCRJDTIAJElqkAEgSVKDDABJkhpkAEiS1CADQJKkBv1/W+egEDHxZx0AAAAASUVORK5CYII=";t.image(e,A,r)}}class zB extends kB{constructor(t,e){super(t,e)}_build(t,e){}_doWrite(t,e){const r=t.getModel(e),s=t.getBounds(e);r.reversed?t.dline(e,s.x+s.width,s.y,s.x,s.y+s.height):t.dline(e,s.x,s.y,s.x+s.width,s.y+s.height)}}class XB extends kB{constructor(t,e){super(t,e)}_build(t,e){const r=getComputedStyle(e),s=ot.getImageUrl(r);s.startsWith("data:image")?this._data=s:s.startsWith("http")&&t.addImage(this._url=s,r.opacity)}_doWrite(t,e){const r=this._data||t.getImage(this._url);if(r){const s=t.getBounds(e);t.image(e,r,s)}}}class JB extends kB{constructor(t,e,r){let s=arguments.length>3&&void 0!==arguments[3]&&arguments[3];super(t,e||t.getParent(r)),this._svg=r,this._hidden=s}_build(t,e){}_doWrite(t,e){t.save();const r=t.getBounds(e);if(this._hidden){const s=e.getBoundingClientRect(),A=this._svg.getBBox(),i=s.width/A.width,n=s.height/A.height,o=Math.min(i,n),a=(s.width-A.width*o)/2*UB,h=(s.height-A.height*o)/2*UB;t.translate(r.x+a,r.y+h),t.scale(o,o)}else t.translate(r.x,r.y);this.$_write(t,this._svg),t.restore()}$_write(t,e){const r=e.children;for(let e=0;e<r.length;e++){const s=r[e];if(s instanceof SVGGraphicsElement){t.save();const e=s.transform.baseVal,r=e.length>0?e.getItem(0):null;r&&t.transformSvg(r.matrix),"g"===s.tagName?this.$_write(t,s):s instanceof SVGTextElement?this.$_text(t,s):s instanceof SVGPathElement?this.$_path(t,s):s instanceof SVGRectElement?this.$_rect(t,s):s instanceof SVGLineElement?this.$_line(t,s):s instanceof SVGPolygonElement&&this.$_polygon(t,s),t.restore()}}}$_rotation(t){const e=t.split("(")[1].split(")")[0].split(","),r=+e[0],s=+e[1];return Math.round(Math.atan2(s,r)*(180/Math.PI))}$_text(t,e){const r=e.textContent;if(r){const s=getComputedStyle(e),A=t.getBox(e),i={},n=s.transform&&s.transform.startsWith("matrix(")&&this.$_rotation(s.transform)||0;t.text(s,A,r,n,i)}}$_path(t,e){const r=e.getAttribute("d");if(r){const s=getComputedStyle(e);t.scale(UB,UB),t.path(s,r)}}$_rect(t,e){const r=t.getBox(e),s=getComputedStyle(e);t.rect(s,r,!0)}$_line(t,e){}$_polygon(t,e){const r=getComputedStyle(e),s=e.points,A=[];t.scale(UB,UB);for(let t=0;t<s.length;t++){const e=s.getItem(t);A.push([e.x,e.y])}t.polygon(r,A)}}class YB extends VB{_needClip(){return!0}}class $B extends kB{constructor(t,e){super(t,e)}_doWrite(t,e){const r=t.getBounds(e);t.getModel(e);const s=getComputedStyle(e);t.border(s,r);const A=e.rows;for(let e=0;e<A.length;e++)this.$_writeRow(t,A[e])}$_writeRow(t,e){const r=t.getBounds(e),s=e.cells,A=getComputedStyle(e);t.rect(e,r),t.border(A,r);for(let e=0;e<s.length;e++)this.$_writeCell(t,s[e])}$_writeCell(t,e){const r=getComputedStyle(e);if("none"!==r.display){const s=t.getBounds(e);t.rect(e,s),t.border(r,s)}}}class jB extends v{constructor(){super(),this._elementCreator=(t,e,r)=>{let s;if(e instanceof Ci)r.style.opacity=e.styles.opcaity,s=new XB(t,r);else if(e instanceof Xi){const e=r._svg_;r.innerHTML=e.substring(e.indexOf("<svg")),this._svgs.push(r);const A=r.firstElementChild;A.style.visibility="hidden",s=new JB(t,r,A,!0)}else r instanceof HTMLSpanElement?s=e instanceof yi?new WB(t,r,e):e instanceof nn?new GB(t,r,e):e instanceof js?new zB(t,r):new kB(t,r):r instanceof HTMLTableElement?s=new $B(t,r):r instanceof HTMLTableCellElement?s=new YB(t,r):r instanceof SVGSVGElement?s=new JB(t,null,r):r instanceof HTMLCanvasElement?s=new KB(t,r):r instanceof HTMLElement&&(s=new kB(t,r));return s}}_doDispose(){super._doDispose()}_base64ToArrayBuffer(t){for(var e=window.atob(t),r=e.length,s=new Uint8Array(r),A=0;A<r;A++)s[A]=e.charCodeAt(A);return s.buffer}export(t,e,r,s,A){const i=()=>{n.canExport()||n.prepare(o)?this.$_export(t,n,r,s,A):setTimeout((()=>{i()}),300)};this._svgs=[];const n=new HB(t,e,this._elementCreator),o=5;i()}$_export(t,e,r,s,A){const i=new window.PDFDocument({size:t.paper.size,layout:t.paper.orientation}),n=i.pipe(s||new window.blobStream);let o,a;if(!(r&&r.length>0))throw new Error("Pdf 출력용 폰트가 설정돼야 합니다.");for(let t of r)t.content&&i.registerFont(t.name,this._base64ToArrayBuffer(t.content));o=r[0].name,a=r[1].name||o,e.write(i,o,a);for(let t of this._svgs)t.removeChild(t.firstElementChild);i.end(),s?null==A||A(s):n.on("finish",(function(){const e=n.toBlob("application/pdf");let r=document.createElement("a"),s=window.URL.createObjectURL(e);document.body.appendChild(r),r.href=s,r.download=(t.info.name||"rrpt")+".pdf",r.style.position="fixed",r.target="_blank",r.click(),document.body.removeChild(r)}))}}var ZB={zoom:1},qB=function(t){function r(e,r,s,A){void 0===A&&(A=ZB);var n=t.call(this)||this;return e||i(213,!0),n._container=new qa(e),n._container&&(n._container.zoom=A.zoom,n.reportSource=r,n.dataSet=s),n}return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function s(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(s.prototype=r.prototype,new s)}(r,t),Object.defineProperty(r.prototype,"zoom",{get:function(){return this._container.zoom},set:function(t){this._container.zoom=t},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"pageCount",{get:function(){return this._container.pageCount},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"page",{get:function(){return this._container.page},set:function(t){t!==this._container.page&&(this._container.page=t)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"reportSource",{get:function(){return this._reportSource},set:function(t){this._report&&(this._report=null),this._reportSource=t,this._report=(new Jn).load(t)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"dataSet",{get:function(){return this._dataSet},set:function(t){this._reportData&&(this._reportData=null),this._dataSet=t,this._reportData=(new th).load(t)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"reportHtml",{get:function(){return this._checkReport(),this._container.getPrintHtml()},enumerable:!1,configurable:!0}),r.prototype.preview=function(){var t;this._checkReport(),null===(t=this._container)||void 0===t||t.print(this._report,this._reportData,!0)},r.prototype.getHtml=function(){return this._checkReport(),this._container.getPrintHtml()},r.prototype.first=function(){this._checkPrintContainer(),this._container.page=0},r.prototype.prev=function(){this._checkPrintContainer(),this._container.page--},r.prototype.next=function(){this._checkPrintContainer(),this._container.page++},r.prototype.last=function(){this._checkPrintContainer(),this._container.page=this._container.pageCount-1},r.prototype.zoomIn=function(t){void 0===t&&(t=.1),this._checkPrintContainer(),this._container.zoom+=t},r.prototype.zoomOut=function(t){void 0===t&&(t=.1),this._checkPrintContainer(),this._container.zoom-=t},r.prototype.fitToHeight=function(){this._checkPrintContainer(),this._container.fitToHeight()},r.prototype.fitToPage=function(){this._checkPrintContainer(),this._container.fitToPage()},r.prototype.fitToWidth=function(){this._checkPrintContainer(),this._container.fitToWidth()},r.prototype.exportPdf=function(t){this._checkPrintContainer(),(new jB).export(this._report,this._container.pages,t)},r.prototype.exportImage=function(t){void 0===t&&(t={type:"png"}),this._checkPrintContainer(),(new hm).export(this._report,this._container.pages,t)},r.prototype.exportDocument=function(t){void 0===t&&(t={type:"hwp"}),this._checkPrintContainer(),(new LB).export(this._report,this._container.pages,t)},r.prototype._checkPrintContainer=function(){this._container.pages||i(217,!0,"Page does not exist in the viewer")},r.prototype._checkReport=function(){this._report||i(216,!0,"RealReport did not load")},r}(B);t.ReportViewer=qB,Object.defineProperty(t,"__esModule",{value:!0})}));