gbs-fwk-buildingblock 1.3.21 → 1.3.23-script-block

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.
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react"),e=require("@syncfusion/ej2-react-calendars"),i=require("@syncfusion/ej2-react-dropdowns"),r=require("@syncfusion/ej2-react-popups"),n=require("@syncfusion/ej2-react-grids"),o=require("react-bootstrap"),s=require("axios"),a=require("gbs-fwk-core"),u=require("xlsx"),c=require("@syncfusion/ej2-react-notifications"),h=require("@syncfusion/ej2-react-pdfviewer"),l=require("@syncfusion/ej2-react-documenteditor"),p=require("react-pdf");require("react-pdf/dist/esm/Page/AnnotationLayer.css"),require("react-pdf/dist/esm/Page/TextLayer.css");var g=require("react-slick");function d(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}function f(t){if(t&&t.__esModule)return t;var e=Object.create(null);return t&&Object.keys(t).forEach(function(i){if("default"!==i){var r=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,r.get?r:{enumerable:!0,get:function(){return t[i]}})}}),e.default=t,Object.freeze(e)}require("slick-carousel/slick/slick.css"),require("slick-carousel/slick/slick-theme.css");var M=d(t),y=f(t),m=d(s),N=f(u),j=d(g);function D(t,e){var i=e;return i.unshift(void 0),new(Function.prototype.bind.apply(t,i))}function S(t){var e,i=new Uint16Array(5);(window.msCrypto||window.crypto).getRandomValues(i);var r="ej2"+function(t){for(var e="",i=0;i<5;i++)e+=(i?",":"")+t[parseInt(i.toString(),10)];return e}(i),n=function(i){i.source===window&&"string"==typeof i.data&&i.data.length<=32&&i.data===r&&(t(),e())};return window.addEventListener("message",n,!1),window.postMessage(r,"*"),e=function(){window.removeEventListener("message",n),t=n=r=void 0}}function v(t,e){for(var i=e,r=t.replace(/\[/g,".").replace(/\]/g,"").split("."),n=0;n<r.length&&!A(i);n++)i=i[r[parseInt(n.toString(),10)]];return i}function I(t,e,i){var r,n,o=t.replace(/\[/g,".").replace(/\]/g,"").split("."),s=i||{},a=s,u=o.length;for(r=0;r<u;r++)n=o[parseInt(r.toString(),10)],r+1===u?a[""+n]=void 0===e?{}:e:L(a[""+n])&&(a[""+n]={}),a=a[""+n];return s}function z(t,e){delete t[""+e]}var b="undefined"!=typeof window?window:{};function w(t){return!L(t)&&t.constructor==={}.constructor}function O(t,e){if(!L(e))for(var i=t,r=e,n="deepMerge",o=0,s=Object.keys(e);o<s.length;o++){var a=s[o];L(i[""+n])||-1===i[""+n].indexOf(a)||!w(r[""+a])&&!Array.isArray(r[""+a])?i[""+a]=r[""+a]:T(i[""+a],i[""+a],r[""+a],!0)}}function T(t,e,i,r){var n=t&&"object"==typeof t?t:{},o=arguments.length;r&&(o-=1);for(var s=function(t){if(!a[t])return"continue";var e=a[t];Object.keys(e).forEach(function(t){var i,o=n[""+t],s=e[""+t];Array.isArray(s)&&Array.isArray(o)&&(s.length,o.length);r&&(w(s)||Array.isArray(s))?w(s)?(i=o||{},Array.isArray(i)&&i.hasOwnProperty("isComplexArray")?T(i,{},s,r):n[""+t]=T(i,{},s,r)):(i=o||[],n[""+t]=T([],i,s,i&&i.length||s&&s.length)):n[""+t]=s})},a=arguments,u=1;u<o;u++)s(u);return n}function L(t){return null==t}function A(t){return void 0===t}function x(t,e){return t===e||!(t===document||!t)&&x(t.parentNode,e)}function C(t){try{throw new Error(t)}catch(t){throw t.message+"\n"+t.stack}}function E(){return false}var k,P={latn:{_digits:"0123456789",_type:"numeric"}},U={decimal:".",group:",",percentSign:"%",plusSign:"+",minusSign:"-",infinity:"∞",nan:"NaN",exponential:"E"},Q=[0,1,2,3,4,5,6,7,8,9],Y=function(){function t(){}return t.getMainObject=function(t,e){return v("main."+e,t)},t.getNumberingSystem=function(t){return v("supplemental.numberingSystems",t)||this.numberingSystems},t.reverseObject=function(t,e){for(var i={},r=0,n=e||Object.keys(t);r<n.length;r++){var o=n[r];i.hasOwnProperty(t[o])||(i[t[o]]=o)}return i},t.getSymbolRegex=function(t){var e=t.map(function(t){return t.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}).join("|");return new RegExp(e,"g")},t.getSymbolMatch=function(t){for(var e={},i=0,r=Object.keys(U);i<r.length;i++){var n=r[i];e[t[n]]=U[n]}return e},t.constructRegex=function(t){for(var e=t.length,i="",r=0;r<e;r++)i+=r!==e-1?t[parseInt(r.toString(),10)]+"|":t[parseInt(r.toString(),10)];return i},t.convertValueParts=function(t,e,i){return t.replace(e,function(t){return i[t]})},t.getDefaultNumberingSystem=function(t){var e={};return e.obj=v("numbers",t),e.nSystem=v("defaultNumberingSystem",e.obj),e},t.getCurrentNumericOptions=function(t,e,i,r){var n={},o=this.getDefaultNumberingSystem(t);if(!A(o.nSystem)||r){var s=r?v("obj.mapperDigits",o):v(o.nSystem+"._digits",e);if(!A(s)){n.numericPair=this.reverseObject(s,Q);var a=RegExp;n.numberParseRegex=new a(this.constructRegex(s),"g"),n.numericRegex="["+s[0]+"-"+s[9]+"]",i&&(n.numericRegex=s[0]+"-"+s[9],n.symbolNumberSystem=v(r?"numberSymbols":"symbols-numberSystem-"+o.nSystem,o.obj),n.symbolMatch=this.getSymbolMatch(n.symbolNumberSystem),n.numberSystem=o.nSystem)}}return n},t.getNumberMapper=function(t,e,i){var r={mapper:{}},n=this.getDefaultNumberingSystem(t);if(!A(n.nSystem)){r.numberSystem=n.nSystem,r.numberSymbols=v("symbols-numberSystem-"+n.nSystem,n.obj),r.timeSeparator=v("timeSeparator",r.numberSymbols);var o=v(n.nSystem+"._digits",e);if(!A(o))for(var s=0,a=Q;s<a.length;s++){var u=a[s];r.mapper[u]=o[u]}}return r},t.nPair="numericPair",t.nRegex="numericRegex",t.numberingSystems=P,t}(),R={DJF:"Fdj",ERN:"Nfk",ETB:"Br",NAD:"$",ZAR:"R",XAF:"FCFA",GHS:"GH₵",XDR:"XDR",AED:"د.إ.",BHD:"د.ب.",DZD:"د.ج.",EGP:"ج.م.",ILS:"₪",IQD:"د.ع.",JOD:"د.ا.",KMF:"CF",KWD:"د.ك.",LBP:"ل.ل.",LYD:"د.ل.",MAD:"د.م.",MRU:"أ.م.",OMR:"ر.ع.",QAR:"ر.ق.",SAR:"ر.س.",SDG:"ج.س.",SOS:"S",SSP:"£",SYP:"ل.س.",TND:"د.ت.",YER:"ر.ي.",CLP:"$",INR:"₹",TZS:"TSh",EUR:"€",AZN:"₼",RUB:"₽",BYN:"Br",ZMW:"K",BGN:"лв.",NGN:"₦",XOF:"CFA",BDT:"৳",CNY:"¥",BAM:"КМ",UGX:"USh",USD:"$",CZK:"Kč",GBP:"£",DKK:"kr.",KES:"Ksh",CHF:"CHF",MVR:"ރ.",BTN:"Nu.",XCD:"EC$",AUD:"$",BBD:"$",BIF:"FBu",BMD:"$",BSD:"$",BWP:"P",BZD:"$",CAD:"$",NZD:"$",FJD:"$",FKP:"£",GIP:"£",GMD:"D",GYD:"$",HKD:"$",IDR:"Rp",JMD:"$",KYD:"$",LRD:"$",MGA:"Ar",MOP:"MOP$",MUR:"Rs",MWK:"MK",MYR:"RM",PGK:"K",PHP:"₱",PKR:"Rs",RWF:"RF",SBD:"$",SCR:"SR",SEK:"kr",SGD:"$",SHP:"£",SLL:"Le",ANG:"NAf.",SZL:"E",TOP:"T$",TTD:"$",VUV:"VT",WST:"WS$",ARS:"$",BOB:"Bs",BRL:"R$",COP:"$",CRC:"₡",CUP:"$",DOP:"$",GTQ:"Q",HNL:"L",MXN:"$",NIO:"C$",PAB:"B/.",PEN:"S/",PYG:"₲",UYU:"$",VES:"Bs.S",IRR:"ريال",GNF:"FG",CDF:"FC",HTG:"G",XPF:"FCFP",HRK:"kn",HUF:"Ft",AMD:"֏",ISK:"kr",JPY:"¥",GEL:"₾",CVE:"​",KZT:"₸",KHR:"៛",KPW:"₩",KRW:"₩",KGS:"сом",AOA:"Kz",LAK:"₭",MZN:"MTn",MKD:"ден",MNT:"₮",BND:"$",MMK:"K",NOK:"kr",NPR:"रु",AWG:"Afl.",SRD:"$",PLN:"zł",AFN:"؋",STN:"Db",MDL:"L",RON:"lei",UAH:"₴",LKR:"රු.",ALL:"Lekë",RSD:"дин.",TJS:"смн",THB:"฿",TMT:"m.",TRY:"₺",UZS:"сўм",VND:"₫",TWD:"NT$"};!function(t){var e=[28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990];t.getHijriDate=function(t){var i=t.getDate(),r=t.getMonth(),n=t.getFullYear(),o=r+1,s=n;o<3&&(s-=1,o+=12);var a=Math.floor(s/100),u=a-Math.floor(a/4)-2,c=Math.floor(365.25*(s+4716))+Math.floor(30.6001*(o+1))+i-u-1524,h=c+(u=(a=Math.floor((c-1867216.25)/36524.25))-Math.floor(a/4)+1)+1524,l=Math.floor((h-122.1)/365.25),p=Math.floor(365.25*l),g=Math.floor((h-p)/30.6001);i=h-p-Math.floor(30.6001*g),(r=Math.floor((h-p)/20.6001))>13&&(l+=1,r-=12),r-=1,n=l-4716;var d=c-24e5,f=10631/30,M=c-1948084,y=Math.floor(M/10631);M-=10631*y;var m=Math.floor((M-.1335)/f),N=30*y+m;M-=Math.floor(m*f+.1335);var j=Math.floor((M+28.5001)/29.5);13===j&&(j=12);for(var D=M-Math.floor(29.5001*j-29),S=0;S<e.length&&!(e[parseInt(S.toString(),10)]>d);S++);var v=S+16260,I=Math.floor((v-1)/12),z=I+1,b=v-12*I,w=d-e[S-1]+1;return(w+"").length>2&&(w=D,b=j,z=N),{year:z,month:b,date:w}},t.toGregorian=function(t,i,r){var n=r+e[12*(t-1)+1+(i-1)-16260-1]-1+24e5,o=Math.floor(n+.5),s=Math.floor((o-1867216.25)/36524.25),a=(s=o+1+s-Math.floor(s/4))+1524,u=Math.floor((a-122.1)/365.25),c=Math.floor(365.25*u),h=Math.floor((a-c)/30.6001),l=a-c-Math.floor(30.6001*h),p=h-(h>13.5?13:1),g=u-(p>2.5?4716:4715);return g<=0&&p--,new Date(g+"/"+p+"/"+l)}}(k||(k={}));var V,F=/\/MMMMM|MMMM|MMM|a|LLLL|LLL|EEEEE|EEEE|E|K|cccc|ccc|WW|W|G+|z+/gi,B="stand-alone",W=["sun","mon","tue","wed","thu","fri","sat"],G={m:"getMinutes",h:"getHours",H:"getHours",s:"getSeconds",d:"getDate",f:"getMilliseconds"},H=function(){function t(){}return t.dateFormat=function(t,e,i){var r=this,n=V.getDependables(i,t,e.calendar);v("parserObject.numbers",n);var o=n.dateObject,s={isIslamic:V.islamicRegex.test(e.calendar)},a=e.format||V.getResultantPattern(e.skeleton,n.dateObject,e.type,!1,"");if(s.dateSeperator=V.getDateSeparator(n.dateObject),A(a))C("Format options or type given must be invalid");else{a=V.ConvertDateToWeekFormat(a),s.pattern=a,s.numMapper=Y.getNumberMapper(n.parserObject,Y.getNumberingSystem(i));for(var u=0,c=a.match(F)||[];u<c.length;u++){var h=c[u],l=h.length,p=h[0];switch("K"===p&&(p="h"),p){case"E":case"c":s.weekday=n.dateObject[V.days][B][V.monthIndex[l]];break;case"M":case"L":s.month=n.dateObject[V.month][B][V.monthIndex[l]];break;case"a":s.designator=v("dayPeriods.format.wide",o);break;case"G":var g=l<=3?"eraAbbr":4===l?"eraNames":"eraNarrow";s.era=v("eras."+g,n.dateObject);break;case"z":s.timeZone=v("dates.timeZoneNames",n.parserObject)}}}return function(t){return isNaN(t.getDate())?null:r.intDateFormatter(t,s)}},t.intDateFormatter=function(t,e){for(var i="",r=e.pattern.match(V.dateParseRegex),n=this.getCurrentDateValue(t,e.isIslamic),o=0,s=r;o<s.length;o++){var a=s[o],u=a.length,c=a[0];"K"===c&&(c="h");var h=void 0,l="",p=void 0,g=void 0,d="";switch(c){case"M":case"L":h=n.month,u>2?i+=e.month[h]:p=!0;break;case"E":case"c":i+=e.weekday[W[t.getDay()]];break;case"H":case"h":case"m":case"s":case"d":case"f":if(p=!0,"d"===c)h=n.date;else if("f"===c){p=!1,g=!0;var f=(l=(l=t[G[c]]().toString()).substring(0,u)).length;if(u!==f){if(u>3)continue;for(var M=0;M<u-f;M++)l="0"+l.toString()}d+=l}else h=t[G[c]]();"h"===c&&(h=h%12||12);break;case"y":g=!0,d+=n.year,2===u&&(d=d.substr(d.length-2));break;case"a":var y=t.getHours()<12?"am":"pm";i+=e.designator[y];break;case"G":var m=t.getFullYear()<0?0:1,N=e.era[m];L(N)&&(N=e.era[m?0:1]),i+=N||"";break;case"'":i+="''"===a?"'":a.replace(/'/g,"");break;case"z":var j=t.getTimezoneOffset(),D=u<4?"+H;-H":e.timeZone.hourFormat;D=D.replace(/:/g,e.numMapper.timeSeparator),0===j?i+=e.timeZone.gmtZeroFormat:(g=!0,d=this.getTimeZoneValue(j,D)),d=e.timeZone.gmtFormat.replace(/\{0\}/,d);break;case":":i+=e.numMapper.numberSymbols.timeSeparator;break;case"/":i+=e.dateSeperator;break;case"W":p=!0,h=V.getWeekOfYear(t);break;default:i+=a}p&&(g=!0,d=this.checkTwodigitNumber(h,u)),g&&(i+=Y.convertValueParts(d,V.latnParseRegex,e.numMapper.mapper))}return i},t.getCurrentDateValue=function(t,e){return e?k.getHijriDate(t):{year:t.getFullYear(),month:t.getMonth()+1,date:t.getDate()}},t.checkTwodigitNumber=function(t,e){var i=t+"";return 2===e&&2!==i.length?"0"+i:i},t.getTimeZoneValue=function(t,e){var i=this,r=e.split(";")[t>0?1:0],n=Math.abs(t);return r.replace(/HH?|mm/g,function(t){var e=t.length,r=-1!==t.indexOf("H");return i.checkTwodigitNumber(Math.floor(r?n/60:n%60),e)})},t}(),q={ms:"minimumSignificantDigits",ls:"maximumSignificantDigits",mf:"minimumFractionDigits",lf:"maximumFractionDigits"},_=["infinity","nan","group","decimal","exponential"],J=function(){function t(){}return t.numberFormatter=function(t,e,i){var r,n=this,o=T({},e),s={},a={},u=V.getDependables(i,t,"",!0);u.numericObject,a.numberMapper=Y.getNumberMapper(u.parserObject,Y.getNumberingSystem(i),!0),a.currencySymbol=V.getCurrencySymbol(u.numericObject,o.currency||X,e.altSymbol),a.percentSymbol=a.numberMapper.numberSymbols.percentSign,a.minusSymbol=a.numberMapper.numberSymbols.minusSign;var c=a.numberMapper.numberSymbols;if(e.format&&!V.formatRegex.test(e.format))s=V.customFormat(e.format,a,u.numericObject);else{T(o,V.getProperNumericSkeleton(e.format||"N")),o.isCurrency="currency"===o.type,o.isPercent="percent"===o.type,r=V.getSymbolPattern(o.type,a.numberMapper.numberSystem,u.numericObject,o.isAccount),o.groupOne=this.checkValueRange(o.maximumSignificantDigits,o.minimumSignificantDigits,!0),this.checkValueRange(o.maximumFractionDigits,o.minimumFractionDigits,!1,!0),A(o.fractionDigits)||(o.minimumFractionDigits=o.maximumFractionDigits=o.fractionDigits),A(o.useGrouping)&&(o.useGrouping=!0),o.isCurrency&&(r=r.replace(/\u00A4/g,V.defaultCurrency));var h=r.split(";");if(s.nData=V.getFormatData(h[1]||"-"+h[0],!0,a.currencySymbol),s.pData=V.getFormatData(h[0],!1,a.currencySymbol),o.useGrouping&&(o.groupSeparator=c[_[2]],o.groupData=this.getGroupingDetails(h[0])),A(o.minimumFractionDigits)&&(o.minimumFractionDigits=s.nData.minimumFraction),A(o.maximumFractionDigits)){var l=s.nData.maximumFraction;o.maximumFractionDigits=A(l)&&o.isPercent?0:l}var p=o.minimumFractionDigits,g=o.maximumFractionDigits;A(p)||A(g)||p>g&&(o.maximumFractionDigits=p)}return T(s.nData,o),T(s.pData,o),function(t){return isNaN(t)?c[_[1]]:isFinite(t)?n.intNumberFormatter(t,s,a,e):c[_[0]]}},t.getGroupingDetails=function(t){var e={},i=t.match(V.negativeDataRegex);if(i&&i[4]){var r=i[4],n=r.lastIndexOf(",");if(-1!==n){var o=r.split(".")[0];e.primary=o.length-n-1;var s=r.lastIndexOf(",",n-1);-1!==s&&(e.secondary=n-1-s)}}return e},t.checkValueRange=function(t,e,i,r){var n=r?"f":"s",o=0,s=q["l"+n],a=q["m"+n];if(A(t)||(this.checkRange(t,s,r),o++),A(e)||(this.checkRange(e,a,r),o++),2===o){if(!(t<e))return!0;C(a+"specified must be less than the"+s)}else i&&1===o&&C("Both"+a+"and"+a+"must be present");return!1},t.checkRange=function(t,e,i){var r=i?[0,20]:[1,21];(t<r[0]||t>r[1])&&C(e+"value must be within the range"+r[0]+"to"+r[1])},t.intNumberFormatter=function(t,e,i,r){var n;if(!A(e.nData.type)){t<0?(t*=-1,n=e.nData):n=0===t&&e.zeroData||e.pData;var o="";if(n.isPercent&&(t*=100),n.groupOne)o=this.processSignificantDigits(t,n.minimumSignificantDigits,n.maximumSignificantDigits);else if(o=this.processFraction(t,n.minimumFractionDigits,n.maximumFractionDigits,r),n.minimumIntegerDigits&&(o=this.processMinimumIntegers(o,n.minimumIntegerDigits)),i.isCustomFormat&&n.minimumFractionDigits<n.maximumFractionDigits&&/\d+\.\d+/.test(o)){for(var s=o.split("."),a=s[1],u=a.length-1;u>=0&&("0"===a[""+u]&&u>=n.minimumFractionDigits);u--)a=a.slice(0,u);o=s[0]+"."+a}return"scientific"===n.type&&(o=(o=t.toExponential(n.maximumFractionDigits)).replace("e",i.numberMapper.numberSymbols[_[4]])),o=o.replace(".",i.numberMapper.numberSymbols[_[3]]),o="#,###,,;(#,###,,)"===n.format?this.customPivotFormat(parseInt(o,10)):o,n.useGrouping&&(o=this.groupNumbers(o,n.groupData.primary,n.groupSeparator||",",i.numberMapper.numberSymbols[_[3]]||".",n.groupData.secondary)),o=Y.convertValueParts(o,V.latnParseRegex,i.numberMapper.mapper),"N/A"===n.nlead?n.nlead:"0"===o&&r&&"0"===r.format?o+n.nend:n.nlead+o+n.nend}},t.processSignificantDigits=function(t,e,i){var r=t+"";return r.length<e?t.toPrecision(e):+(r=t.toPrecision(i))+""},t.groupNumbers=function(t,e,i,r,n){for(var o=!L(n)&&0!==n,s=t.split(r),a=s[0],u=a.length,c="";u>e;)c=a.slice(u-e,u)+(c.length?i+c:""),u-=e,o&&(e=n,o=!1);return s[0]=a.slice(0,u)+(c.length?i:"")+c,s.join(r)},t.processFraction=function(t,e,i,r){var n=(t+"").split(".")[1],o=n?n.length:0;if(e&&o<e){var s="";if(0!==o){s+=t;for(var a=0;a<e-o;a++)s+="0";return s}return s=t.toFixed(e),t.toFixed(e)}if(!L(i)&&(o>i||0===i))return t.toFixed(i);var u=t+"";return"0"===u[0]&&r&&"###.00"===r.format&&(u=u.slice(1)),u},t.processMinimumIntegers=function(t,e){var i=t.split("."),r=i[0],n=r.length;if(n<e){for(var o=0;o<e-n;o++)r="0"+r;i[0]=r}return i.join(".")},t.customPivotFormat=function(t){if(t>=5e5){var e=(t/=1e6).toString().split(".");e[0];var i=e[1];return i&&+i.substring(0,1)>=5?Math.ceil(t).toString():Math.floor(t).toString()}return""},t}(),Z=function(){function t(t){this.ranArray=[],this.boundedEvents={},L(t)||(this.context=t)}return t.prototype.on=function(t,e,i,r){if(!L(e)){var n=i||this.context;this.notExist(t)?this.boundedEvents[""+t]=[{handler:e,context:n,id:r}]:L(r)?this.isHandlerPresent(this.boundedEvents[""+t],e)||this.boundedEvents[""+t].push({handler:e,context:n}):-1===this.ranArray.indexOf(r)&&(this.ranArray.push(r),this.boundedEvents[""+t].push({handler:e,context:n,id:r}))}},t.prototype.off=function(t,e,i){if(!this.notExist(t)){var r=v(t,this.boundedEvents);if(e){for(var n=0;n<r.length;n++)if(i){if(r[parseInt(n.toString(),10)].id===i){r.splice(n,1);var o=this.ranArray.indexOf(i);-1!==o&&this.ranArray.splice(o,1);break}}else if(e===r[parseInt(n.toString(),10)].handler){r.splice(n,1);break}}else delete this.boundedEvents[""+t]}},t.prototype.notify=function(t,e,i,r){if(this.notExist(t))i&&i.call(this,e);else{e&&(e.name=t);var n=v(t,this.boundedEvents).slice(0);if(window.Blazor)return this.blazorCallback(n,e,i,r,0);for(var o=0,s=n;o<s.length;o++){var a=s[o];a.handler.call(a.context,e)}i&&i.call(this,e)}},t.prototype.blazorCallback=function(t,e,i,r,n){var o=this,s=n===t.length-1;if(n<t.length){var a=t[parseInt(n.toString(),10)],u=a.handler.call(a.context,e);if(u&&"function"==typeof u.then){if(!i)return u;u.then(function(u){if(u="string"==typeof u&&o.isJson(u)?JSON.parse(u,o.dateReviver):u,T(e,e,u,!0),!i||!s)return o.blazorCallback(t,e,i,r,n+1);i.call(a.context,e)}).catch(function(t){r&&r.call(a.context,"string"==typeof t&&o.isJson(t)?JSON.parse(t,o.dateReviver):t)})}else{if(!i||!s)return this.blazorCallback(t,e,i,r,n+1);i.call(a.context,e)}}},t.prototype.dateReviver=function(t,e){return E&&"string"==typeof e&&null!==e.match(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/)?new Date(e):e},t.prototype.isJson=function(t){try{JSON.parse(t)}catch(t){return!1}return!0},t.prototype.destroy=function(){this.boundedEvents=this.context=void 0},t.prototype.offIntlEvents=function(){var t=this.boundedEvents.notifyExternalChange;if(t){for(var e=0;e<t.length;e++){var i=t[""+e].context;i&&i.detectFunction&&i.randomId&&!i.isRendered&&(this.off("notifyExternalChange",i.detectFunction,i.randomId),e--)}this.boundedEvents.notifyExternalChange.length||delete this.boundedEvents.notifyExternalChange}},t.prototype.notExist=function(t){return!1===this.boundedEvents.hasOwnProperty(t)||this.boundedEvents[t].length<=0},t.prototype.isHandlerPresent=function(t,e){for(var i=0,r=t;i<r.length;i++){if(r[i].handler===e)return!0}return!1},t}(),K=new Z,X="USD",$=RegExp,tt={"en-US":{d:"M/d/y",D:"EEEE, MMMM d, y",f:"EEEE, MMMM d, y h:mm a",F:"EEEE, MMMM d, y h:mm:s a",g:"M/d/y h:mm a",G:"M/d/yyyy h:mm:ss tt",m:"MMMM d",M:"MMMM d",r:"ddd, dd MMM yyyy HH':'mm':'ss 'GMT'",R:"ddd, dd MMM yyyy HH':'mm':'ss 'GMT'",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"h:mm tt",T:"h:m:s tt",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",U:"dddd, MMMM d, yyyy h:mm:ss tt",y:"MMMM yyyy",Y:"MMMM yyyy"}};!function(t){t.negativeDataRegex=/^(('[^']+'|''|[^*#@0,.E])*)(\*.)?((([#,]*[0,]*0+)(\.0*[0-9]*#*)?)|([#,]*@+#*))(E\+?0+)?(('[^']+'|''|[^*#@0,.E])*)$/,t.customRegex=/^(('[^']+'|''|[^*#@0,.])*)(\*.)?((([0#,]*[0,]*[0#]*[0#\ ]*)(\.[0#]*)?)|([#,]*@+#*))(E\+?0+)?(('[^']+'|''|[^*#@0,.E])*)$/,t.latnParseRegex=/0|1|2|3|4|5|6|7|8|9/g;var e=/[0-9]/g;t.defaultCurrency="$";var i=["infinity","nan","group","decimal"],r=/G|M|L|H|c|'| a|yy|y|EEEE|E/g,n={G:"",M:"m",L:"m",H:"h",c:"d","'":'"'," a":" AM/PM",yy:"yy",y:"yyyy",EEEE:"dddd",E:"ddd"};t.dateConverterMapper=/dddd|ddd/gi;t.islamicRegex=/^islamic/;var o={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};t.formatRegex=new $("(^[ncpae]{1})([0-1]?[0-9]|20)?$","i"),t.currencyFormatRegex=new $("(^[ca]{1})([0-1]?[0-9]|20)?$","i"),t.curWithoutNumberRegex=/(c|a)$/gi;var s={$:"isCurrency","%":"isPercent","-":"isNegative",0:"nlead",1:"nend"};function a(e,i,r,n,o){var s,a=r||"date";if(o)s=l({skeleton:e},o).format||l({skeleton:"d"},"en-US").format;else{if(-1!==t.basicPatterns.indexOf(e)){if(s=v(a+"Formats."+e,i),"dateTime"===a){var u=v("dateFormats."+e,i),c=v("timeFormats."+e,i);s=s.replace("{1}",u).replace("{0}",c)}}else s=v("dateTimeFormats.availableFormats."+e,i);A(s)&&"yMd"===e&&(s="M/d/y")}return s}function u(e,i,r,n){var o={},s=r||"gregorian";if(o.parserObject=Y.getMainObject(e,i)||t.defaultObject,n)o.numericObject=v("numbers",o.parserObject);else{var a="dates.calendars."+s;o.dateObject=v(a,o.parserObject)}return o}function c(t,e,i,r){return v(t+"Formats-numberSystem-"+e+(r?".accounting":".standard"),i)||(r?v(t+"Formats-numberSystem-"+e+".standard",i):"")}function h(e){e.match(t.dateConverterMapper);return e}function l(t,e){var i=t.format||t.skeleton,r=v((e||"en-US")+"."+i,tt);return r||(r=v("en-US."+i,tt)),r&&(r=h(r),t.format=r.replace(/tt/,"a")),t}function p(e){var i=e.match(t.formatRegex),r={},n=i[1].toUpperCase();return r.isAccount="A"===n,r.type=t.patternMatcher[n],e.length>1&&(r.fractionDigits=parseInt(i[2],10)),r}function g(i,r,n,o){var s=o?{}:{nlead:"",nend:""},a=i.match(t.customRegex);if(a){o||(s.nlead=d(a[1],n),s.nend=d(a[10],n),s.groupPattern=a[4]);var u=a[7];if(u&&r){var c=u.match(e);L(c)?s.minimumFraction=0:s.minimumFraction=c.length,s.maximumFraction=u.length-1}}return s}function d(e,i){return e?(e=e.replace(t.defaultCurrency,i),""===i?e.trim():e):""}function f(t,e,i){return v("currencies."+e+(i?"."+i:".symbol"),t)||v("currencies."+e+".symbol-alt-narrow",t)||"$"}function M(e,r,n){var o={type:"decimal",minimumFractionDigits:0,maximumFractionDigits:0},s=e.match(t.customRegex);if(L(s)||""===s[5]&&"N/A"!==e)return o.type=void 0,o;o.nlead=s[1],o.nend=s[10];var a=s[6],u=!!a.match(/\ $/g),h=-1!==a.replace(/\ $/g,"").indexOf(" ");o.useGrouping=-1!==a.indexOf(",")||h,a=a.replace(/,/g,"");var l=s[7];if(-1!==a.indexOf("0")&&(o.minimumIntegerDigits=a.length-a.indexOf("0")),L(l)||(o.minimumFractionDigits=l.lastIndexOf("0"),o.maximumFractionDigits=l.lastIndexOf("#"),-1===o.minimumFractionDigits&&(o.minimumFractionDigits=0),(-1===o.maximumFractionDigits||o.maximumFractionDigits<o.minimumFractionDigits)&&(o.maximumFractionDigits=o.minimumFractionDigits)),L(r)?T(o,y([o.nlead,o.nend],"%","%")):(r.isCustomFormat=!0,T(o,y([o.nlead,o.nend],"$",r.currencySymbol)),o.isCurrency||T(o,y([o.nlead,o.nend],"%",r.percentSymbol))),!L(n)){var p=c(o.type,r.numberMapper.numberSystem,n,!1);o.useGrouping&&(o.groupSeparator=h?" ":r.numberMapper.numberSymbols[i[2]],o.groupData=J.getGroupingDetails(p.split(";")[0])),o.nlead=o.nlead.replace(/'/g,""),o.nend=u?" "+o.nend.replace(/'/g,""):o.nend.replace(/'/g,"")}return o}function y(t,e,i){for(var r={nlead:t[0],nend:t[1]},n=0;n<2;n++){var o=t[parseInt(n.toString(),10)],a=o.indexOf(e);if(-1!==a&&(a<o.indexOf("'")||a>o.lastIndexOf("'"))){r[s[n]]=o.substr(0,a)+i+o.substr(a+1),r[s[e]]=!0,r.type=r.isCurrency?"currency":"percent";break}}return r}function m(t,e,i){t+=".";for(var r=0;r<e;r++)t+="0";if(e<i)for(var n=i-e,o=0;o<n;o++)t+="#";return t}function N(t,e){for(var i=t.split("."),r="",n=0;n<e;n++)r+="0";return i[1]?r+"."+i[1]:r}function j(t){var e=t.split("."),i=e[0],r=3-i.length%3;t="";for(var n=(i=(r&&1===r?"#":2===r?"##":"")+i).length-1;n>0;n-=3)t=","+i[n-2]+i[n-1]+i[parseInt(n.toString(),10)]+t;return t=t.slice(1),e[1]?t+"."+e[1]:t}t.dateParseRegex=/([a-z])\1*|'([^']|'')+'|''|./gi,t.basicPatterns=["short","medium","long","full"],t.defaultObject={dates:{calendars:{gregorian:{months:{"stand-alone":{abbreviated:{1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"May",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Oct",11:"Nov",12:"Dec"},narrow:{1:"J",2:"F",3:"M",4:"A",5:"M",6:"J",7:"J",8:"A",9:"S",10:"O",11:"N",12:"D"},wide:{1:"January",2:"February",3:"March",4:"April",5:"May",6:"June",7:"July",8:"August",9:"September",10:"October",11:"November",12:"December"}}},days:{"stand-alone":{abbreviated:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},narrow:{sun:"S",mon:"M",tue:"T",wed:"W",thu:"T",fri:"F",sat:"S"},short:{sun:"Su",mon:"Mo",tue:"Tu",wed:"We",thu:"Th",fri:"Fr",sat:"Sa"},wide:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"}}},dayPeriods:{format:{wide:{am:"AM",pm:"PM"}}},eras:{eraNames:{0:"Before Christ","0-alt-variant":"Before Common Era",1:"Anno Domini","1-alt-variant":"Common Era"},eraAbbr:{0:"BC","0-alt-variant":"BCE",1:"AD","1-alt-variant":"CE"},eraNarrow:{0:"B","0-alt-variant":"BCE",1:"A","1-alt-variant":"CE"}},dateFormats:{full:"EEEE, MMMM d, y",long:"MMMM d, y",medium:"MMM d, y",short:"M/d/yy"},timeFormats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateTimeFormats:{full:"{1} 'at' {0}",long:"{1} 'at' {0}",medium:"{1}, {0}",short:"{1}, {0}",availableFormats:{d:"d",E:"ccc",Ed:"d E",Ehm:"E h:mm a",EHm:"E HH:mm",Ehms:"E h:mm:ss a",EHms:"E HH:mm:ss",Gy:"y G",GyMMM:"MMM y G",GyMMMd:"MMM d, y G",GyMMMEd:"E, MMM d, y G",h:"h a",H:"HH",hm:"h:mm a",Hm:"HH:mm",hms:"h:mm:ss a",Hms:"HH:mm:ss",hmsv:"h:mm:ss a v",Hmsv:"HH:mm:ss v",hmv:"h:mm a v",Hmv:"HH:mm v",M:"L",Md:"M/d",MEd:"E, M/d",MMM:"LLL",MMMd:"MMM d",MMMEd:"E, MMM d",MMMMd:"MMMM d",ms:"mm:ss",y:"y",yM:"M/y",yMd:"M/d/y",yMEd:"E, M/d/y",yMMM:"MMM y",yMMMd:"MMM d, y",yMMMEd:"E, MMM d, y",yMMMM:"MMMM y"}}},islamic:{months:{"stand-alone":{abbreviated:{1:"Muh.",2:"Saf.",3:"Rab. I",4:"Rab. II",5:"Jum. I",6:"Jum. II",7:"Raj.",8:"Sha.",9:"Ram.",10:"Shaw.",11:"Dhuʻl-Q.",12:"Dhuʻl-H."},narrow:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12"},wide:{1:"Muharram",2:"Safar",3:"Rabiʻ I",4:"Rabiʻ II",5:"Jumada I",6:"Jumada II",7:"Rajab",8:"Shaʻban",9:"Ramadan",10:"Shawwal",11:"Dhuʻl-Qiʻdah",12:"Dhuʻl-Hijjah"}}},days:{"stand-alone":{abbreviated:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},narrow:{sun:"S",mon:"M",tue:"T",wed:"W",thu:"T",fri:"F",sat:"S"},short:{sun:"Su",mon:"Mo",tue:"Tu",wed:"We",thu:"Th",fri:"Fr",sat:"Sa"},wide:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"}}},dayPeriods:{format:{wide:{am:"AM",pm:"PM"}}},eras:{eraNames:{0:"AH"},eraAbbr:{0:"AH"},eraNarrow:{0:"AH"}},dateFormats:{full:"EEEE, MMMM d, y G",long:"MMMM d, y G",medium:"MMM d, y G",short:"M/d/y GGGGG"},timeFormats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateTimeFormats:{full:"{1} 'at' {0}",long:"{1} 'at' {0}",medium:"{1}, {0}",short:"{1}, {0}",availableFormats:{d:"d",E:"ccc",Ed:"d E",Ehm:"E h:mm a",EHm:"E HH:mm",Ehms:"E h:mm:ss a",EHms:"E HH:mm:ss",Gy:"y G",GyMMM:"MMM y G",GyMMMd:"MMM d, y G",GyMMMEd:"E, MMM d, y G",h:"h a",H:"HH",hm:"h:mm a",Hm:"HH:mm",hms:"h:mm:ss a",Hms:"HH:mm:ss",M:"L",Md:"M/d",MEd:"E, M/d",MMM:"LLL",MMMd:"MMM d",MMMEd:"E, MMM d",MMMMd:"MMMM d",ms:"mm:ss",y:"y G",yyyy:"y G",yyyyM:"M/y GGGGG",yyyyMd:"M/d/y GGGGG",yyyyMEd:"E, M/d/y GGGGG",yyyyMMM:"MMM y G",yyyyMMMd:"MMM d, y G",yyyyMMMEd:"E, MMM d, y G",yyyyMMMM:"MMMM y G",yyyyQQQ:"QQQ y G",yyyyQQQQ:"QQQQ y G"}}}},timeZoneNames:{hourFormat:"+HH:mm;-HH:mm",gmtFormat:"GMT{0}",gmtZeroFormat:"GMT"}},numbers:{currencies:{USD:{displayName:"US Dollar",symbol:"$","symbol-alt-narrow":"$"},EUR:{displayName:"Euro",symbol:"€","symbol-alt-narrow":"€"},GBP:{displayName:"British Pound","symbol-alt-narrow":"£"}},defaultNumberingSystem:"latn",minimumGroupingDigits:"1","symbols-numberSystem-latn":{decimal:".",group:",",list:";",percentSign:"%",plusSign:"+",minusSign:"-",exponential:"E",superscriptingExponent:"×",perMille:"‰",infinity:"∞",nan:"NaN",timeSeparator:":"},"decimalFormats-numberSystem-latn":{standard:"#,##0.###"},"percentFormats-numberSystem-latn":{standard:"#,##0%"},"currencyFormats-numberSystem-latn":{standard:"¤#,##0.00",accounting:"¤#,##0.00;(¤#,##0.00)"},"scientificFormats-numberSystem-latn":{standard:"#E0"}}},t.blazorDefaultObject={numbers:{mapper:{0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9"},mapperDigits:"0123456789",numberSymbols:{decimal:".",group:",",plusSign:"+",minusSign:"-",percentSign:"%",nan:"NaN",timeSeparator:":",infinity:"∞"},timeSeparator:":",currencySymbol:"$",currencypData:{nlead:"$",nend:"",groupSeparator:",",groupData:{primary:3},maximumFraction:2,minimumFraction:2},percentpData:{nlead:"",nend:"%",groupSeparator:",",groupData:{primary:3},maximumFraction:2,minimumFraction:2},percentnData:{nlead:"-",nend:"%",groupSeparator:",",groupData:{primary:3},maximumFraction:2,minimumFraction:2},currencynData:{nlead:"($",nend:")",groupSeparator:",",groupData:{primary:3},maximumFraction:2,minimumFraction:2},decimalnData:{nlead:"-",nend:"",groupData:{primary:3},maximumFraction:2,minimumFraction:2},decimalpData:{nlead:"",nend:"",groupData:{primary:3},maximumFraction:2,minimumFraction:2}},dates:{dayPeriods:{am:"AM",pm:"PM"},dateSeperator:"/",days:{abbreviated:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},short:{sun:"Su",mon:"Mo",tue:"Tu",wed:"We",thu:"Th",fri:"Fr",sat:"Sa"},wide:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"}},months:{abbreviated:{1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"May",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Oct",11:"Nov",12:"Dec"},wide:{1:"January",2:"February",3:"March",4:"April",5:"May",6:"June",7:"July",8:"August",9:"September",10:"October",11:"November",12:"December"}},eras:{1:"AD"}}},t.monthIndex={3:"abbreviated",4:"wide",5:"narrow",1:"abbreviated"},t.month="months",t.days="days",t.patternMatcher={C:"currency",P:"percent",N:"decimal",A:"currency",E:"scientific"},t.getResultantPattern=a,t.getDependables=u,t.getSymbolPattern=c,t.ConvertDateToWeekFormat=h,t.compareBlazorDateFormats=l,t.getProperNumericSkeleton=p,t.getFormatData=g,t.changeCurrencySymbol=d,t.getCurrencySymbol=f,t.customFormat=function(t,e,i){for(var r={},n=t.split(";"),o=["pData","nData","zeroData"],s=0;s<n.length;s++)r[o[s]]=M(n[s],e,i);return L(r.nData)&&(r.nData=T({},r.pData),r.nData.nlead=L(e)?"-"+r.nData.nlead:e.minusSymbol+r.nData.nlead),r},t.customNumberFormat=M,t.isCurrencyPercent=y,t.getDateSeparator=function(t){var e=(v("dateFormats.short",t)||"").match(/[d‏M‏]([^d‏M])[d‏M‏]/i);return e?e[1]:"/"},t.getActualDateTimeFormat=function(t,e,i,o){var s=u(i,t,e.calendar),c=e.format||a(e.skeleton,s.dateObject,e.type);if(o){if(c=c.replace(r,function(t){return n[t]}),-1!==c.indexOf("z")){var h=c.match(/z/g).length,l=void 0,p={timeZone:{}};p.numMapper=Y.getNumberMapper(s.parserObject,Y.getNumberingSystem(i)),p.timeZone=v("dates.timeZoneNames",s.parserObject);var g=(new Date).getTimezoneOffset(),d=h<4?"+H;-H":p.timeZone.hourFormat;d=d.replace(/:/g,p.numMapper.timeSeparator),0===g?l=p.timeZone.gmtZeroFormat:(l=H.getTimeZoneValue(g,d),l=p.timeZone.gmtFormat.replace(/\{0\}/,l)),c=c.replace(/[z]+/,'"'+l+'"')}c=c.replace(/ $/,"")}return c},t.getActualNumberFormat=function(e,i,r,n){var o,s=u(r,e,"",!0),a={custom:!0};s.numericObject;var h={},l=(i.format||"").match(t.currencyFormatRegex);!t.formatRegex.test(i.format)||p(i.format||"N");var d,M={};if(l){M.numberMapper=Y.getNumberMapper(s.parserObject,Y.getNumberingSystem(r),!0);var y=f(s.numericObject,i.currency||X,i.altSymbol),D=c("currency",M.numberMapper.numberSystem,s.numericObject,/a/i.test(i.format)),S=(D=D.replace(/\u00A4/g,y)).split(";");h.hasNegativePattern=S.length>1,h.nData=g(S[1]||"-"+S[0],!0,y),h.pData=g(S[0],!1,y),l[2]||i.minimumFractionDigits||i.maximumFractionDigits||(o=g(D.split(";")[0],!0,"",!0).minimumFraction)}if(t.formatRegex.test(i.format)||!i.format){if(T(a,p(i.format||"N")),a.custom=!1,d="###0",a.fractionDigits||i.minimumFractionDigits||i.maximumFractionDigits||o){a.fractionDigits&&(i.minimumFractionDigits=i.maximumFractionDigits=a.fractionDigits),d=m(d,o||a.fractionDigits||i.minimumFractionDigits||0,i.maximumFractionDigits||0)}if(i.minimumIntegerDigits&&(d=N(d,i.minimumIntegerDigits)),i.useGrouping&&(d=j(d)),"currency"===a.type||(a.type,0)){var I=d;d=h.pData.nlead+I+h.pData.nend,h.hasNegativePattern&&(d+=";"+h.nData.nlead+I+h.nData.nend)}"percent"===a.type&&(d+=" %")}else d=i.format.replace(/'/g,'"');return Object.keys(M).length>0&&(d=n?d:function(t,e){if(-1!==t.indexOf(",")){var i=t.split(",");t=i[0]+v("numberMapper.numberSymbols.group",e)+i[1].replace(".",v("numberMapper.numberSymbols.decimal",e))}else t=t.replace(".",v("numberMapper.numberSymbols.decimal",e));return t}(d,M)),d},t.fractionDigitsPattern=m,t.minimumIntegerPattern=N,t.groupingPattern=j,t.getWeekData=function(t,e){var i="sun",r=v("supplemental.weekData.firstDay",e),n=t;return/en-/.test(n)&&(n=n.slice(3)),n=n.slice(0,2).toUpperCase()+n.substr(2),r&&(i=r[""+n]||r[n.slice(0,2)]||"sun"),o[""+i]},t.replaceBlazorCurrency=function(t,e,i){var r=v(i||"",R);if(e!==r)for(var n=0,o=t;n<o.length;n++){var s=o[n];s.nend=s.nend.replace(e,r),s.nlead=s.nlead.replace(e,r)}},t.getWeekOfYear=function(t){var e,i=new Date(t.getFullYear(),0,1),r=i.getDay();r=r>=0?r:r+7;var n=Math.floor((t.getTime()-i.getTime()-6e4*(t.getTimezoneOffset()-i.getTimezoneOffset()))/864e5)+1;if(r<4){if((e=Math.floor((n+r-1)/7)+1)>52){var o=new Date(t.getFullYear()+1,0,1).getDay();e=(o=o>=0?o:o+7)<4?1:53}}else e=Math.floor((n+r-1)/7);return e}}(V||(V={}));var et=function(){function t(t,e,i){this.type="GET",this.emitError=!0,"string"==typeof t?(this.url=t,this.type=L(e)?this.type:e.toUpperCase(),this.contentType=i):w(t)&&Object.keys(t).length>0&&O(this,t),this.contentType=L(this.contentType)?"application/json; charset=utf-8":this.contentType}return t.prototype.send=function(t){var e=this,i={"application/json":"json","multipart/form-data":"formData","application/octet-stream":"blob","application/x-www-form-urlencoded":"formData"};try{L(this.fetchRequest)&&"GET"===this.type?this.fetchRequest=new Request(this.url,{method:this.type}):L(this.fetchRequest)&&(this.data=L(t)?this.data:t,this.fetchRequest=new Request(this.url,{method:this.type,headers:{"Content-Type":this.contentType},body:this.data}));var r={cancel:!1,fetchRequest:this.fetchRequest};return this.triggerEvent(this.beforeSend,r),r.cancel?null:(this.fetchResponse=fetch(this.fetchRequest),this.fetchResponse.then(function(t){if(e.triggerEvent(e.onLoad,t),!t.ok)throw t;for(var r="text",n=0,o=Object.keys(i);n<o.length;n++){var s=o[n];t.headers.get("Content-Type")&&-1!==t.headers.get("Content-Type").indexOf(s)&&(r=i[s])}return t[r]()}).then(function(t){return e.triggerEvent(e.onSuccess,t,e),t}).catch(function(t){var i={};return e.emitError&&(e.triggerEvent(e.onFailure,t),i=Promise.reject(t)),i}))}catch(t){return t}},t.prototype.triggerEvent=function(t,e,i){L(t)||"function"!=typeof t||t(e,i)},t}(),it=/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini|mobile/i,rt=/msie|trident/i,nt=/Trident\/7\./,ot=/(ipad|iphone|ipod touch)/i,st=/(ipad|iphone|ipod touch);.*os 7_\d|(ipad|iphone|ipod touch);.*os 8_\d/i,at=/android/i,ut=/trident|windows phone|edge/i,ct=/(version)[ /]([\w.]+)/i,ht={OPERA:/(opera|opr)(?:.*version|)[ /]([\w.]+)/i,EDGE:/(edge)(?:.*version|)[ /]([\w.]+)/i,CHROME:/(chrome|crios)[ /]([\w.]+)/i,PANTHOMEJS:/(phantomjs)[ /]([\w.]+)/i,SAFARI:/(safari)[ /]([\w.]+)/i,WEBKIT:/(webkit)[ /]([\w.]+)/i,MSIE:/(msie|trident) ([\w.]+)/i,MOZILLA:/(mozilla)(?:.*? rv:([\w.]+)|)/i};"undefined"!=typeof window&&(window.browserDetails=window.browserDetails||{});var lt=function(){function t(){}return t.extractBrowserDetail=function(){for(var e={culture:{}},i=[],r=0,n=Object.keys(ht);r<n.length;r++){var o=n[r];if(i=t.userAgent.match(ht[""+o])){if(e.name="opr"===i[1].toLowerCase()?"opera":i[1].toLowerCase(),e.name="crios"===i[1].toLowerCase()?"chrome":e.name,e.version=i[2],e.culture.name=e.culture.language=navigator.language,t.userAgent.match(nt)){e.name="msie";break}var s=t.userAgent.match(ct);"safari"===e.name&&s&&(e.version=s[2]);break}}return e},t.getEvent=function(e){var i={start:{isPointer:"pointerdown",isTouch:"touchstart",isDevice:"mousedown"},move:{isPointer:"pointermove",isTouch:"touchmove",isDevice:"mousemove"},end:{isPointer:"pointerup",isTouch:"touchend",isDevice:"mouseup"},cancel:{isPointer:"pointercancel",isTouch:"touchcancel",isDevice:"mouseleave"}};return t.isPointer?i[""+e].isPointer:t.isTouch?i[""+e].isTouch+(t.isDevice?"":" "+i[""+e].isDevice):i[""+e].isDevice},t.getTouchStartEvent=function(){return t.getEvent("start")},t.getTouchEndEvent=function(){return t.getEvent("end")},t.getTouchMoveEvent=function(){return t.getEvent("move")},t.getTouchCancelEvent=function(){return t.getEvent("cancel")},t.isSafari=function(){return t.isDevice&&t.isIos&&t.isTouch&&"undefined"!=typeof window&&-1===window.navigator.userAgent.toLowerCase().indexOf("iphone")&&window.navigator.userAgent.toLowerCase().indexOf("safari")>-1},t.getValue=function(e,i){var r="undefined"!=typeof window?window.browserDetails:{};return"undefined"!=typeof navigator&&"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1&&!0===t.isTouch&&!ht.CHROME.test(navigator.userAgent)&&(r.isIos=!0,r.isDevice=!0,r.isTouch=!0,r.isPointer=!0),void 0===r[""+e]?r[""+e]=i.test(t.userAgent):r[""+e]},Object.defineProperty(t,"userAgent",{get:function(){return t.uA},set:function(e){t.uA=e,window.browserDetails={}},enumerable:!0,configurable:!0}),Object.defineProperty(t,"info",{get:function(){return A(window.browserDetails.info)?window.browserDetails.info=t.extractBrowserDetail():window.browserDetails.info},enumerable:!0,configurable:!0}),Object.defineProperty(t,"isIE",{get:function(){return t.getValue("isIE",rt)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"isTouch",{get:function(){return A(window.browserDetails.isTouch)?window.browserDetails.isTouch="ontouchstart"in window.navigator||window&&window.navigator&&window.navigator.maxTouchPoints>0||"ontouchstart"in window:window.browserDetails.isTouch},enumerable:!0,configurable:!0}),Object.defineProperty(t,"isPointer",{get:function(){return A(window.browserDetails.isPointer)?window.browserDetails.isPointer="pointerEnabled"in window.navigator:window.browserDetails.isPointer},enumerable:!0,configurable:!0}),Object.defineProperty(t,"isMSPointer",{get:function(){return A(window.browserDetails.isMSPointer)?window.browserDetails.isMSPointer="msPointerEnabled"in window.navigator:window.browserDetails.isMSPointer},enumerable:!0,configurable:!0}),Object.defineProperty(t,"isDevice",{get:function(){return t.getValue("isDevice",it)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"isIos",{get:function(){return t.getValue("isIos",ot)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"isIos7",{get:function(){return t.getValue("isIos7",st)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"isAndroid",{get:function(){return t.getValue("isAndroid",at)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"isWebView",{get:function(){return A(window.browserDetails.isWebView)?(window.browserDetails.isWebView=!(A(window.cordova)&&A(window.PhoneGap)&&A(window.phonegap)&&"object"!==window.forge),window.browserDetails.isWebView):window.browserDetails.isWebView},enumerable:!0,configurable:!0}),Object.defineProperty(t,"isWindows",{get:function(){return t.getValue("isWindows",ut)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"touchStartEvent",{get:function(){return A(window.browserDetails.touchStartEvent)?window.browserDetails.touchStartEvent=t.getTouchStartEvent():window.browserDetails.touchStartEvent},enumerable:!0,configurable:!0}),Object.defineProperty(t,"touchMoveEvent",{get:function(){return A(window.browserDetails.touchMoveEvent)?window.browserDetails.touchMoveEvent=t.getTouchMoveEvent():window.browserDetails.touchMoveEvent},enumerable:!0,configurable:!0}),Object.defineProperty(t,"touchEndEvent",{get:function(){return A(window.browserDetails.touchEndEvent)?window.browserDetails.touchEndEvent=t.getTouchEndEvent():window.browserDetails.touchEndEvent},enumerable:!0,configurable:!0}),Object.defineProperty(t,"touchCancelEvent",{get:function(){return A(window.browserDetails.touchCancelEvent)?window.browserDetails.touchCancelEvent=t.getTouchCancelEvent():window.browserDetails.touchCancelEvent},enumerable:!0,configurable:!0}),t.uA="undefined"!=typeof navigator?navigator.userAgent:"",t}(),pt=function(){function t(){}return t.addOrGetEventData=function(t){return"__eventList"in t?t.__eventList.events:(t.__eventList={},t.__eventList.events=[])},t.add=function(e,i,r,n,o){var s,a,u,c,h=t.addOrGetEventData(e);o?(a=r,u=o,s=function(){var t=this,e=arguments;clearTimeout(c),c=setTimeout(function(){return c=null,a.apply(t,e)},u)}):s=r,n&&(s=s.bind(n));for(var l=i.split(" "),p=0;p<l.length;p++)h.push({name:l[parseInt(p.toString(),10)],listener:r,debounce:s}),lt.isIE?e.addEventListener(l[parseInt(p.toString(),10)],s):e.addEventListener(l[parseInt(p.toString(),10)],s,{passive:!1});return s},t.remove=function(e,i,r){for(var n=t.addOrGetEventData(e),o=i.split(" "),s=function(t){var i,s=-1;n&&0!==n.length&&n.some(function(e,n){return e.name===o[parseInt(t.toString(),10)]&&e.listener===r&&(s=n,i=e.debounce,!0)}),-1!==s&&n.splice(s,1),i&&e.removeEventListener(o[parseInt(t.toString(),10)],i)},a=0;a<o.length;a++)s(a)},t.clearEvents=function(e){var i,r;r=T([],r,i=t.addOrGetEventData(e));for(var n=0;n<r.length;n++){var o=r[parseInt(n.toString(),10)];e.removeEventListener(o.name,o.debounce),i.shift()}},t.trigger=function(e,i,r){for(var n=0,o=t.addOrGetEventData(e);n<o.length;n++){var s=o[n];s.name===i&&s.debounce.call(this,r)}},t}(),gt=/^svg|^path|^g/;function dt(t,e){var i=gt.test(t)?document.createElementNS("http://www.w3.org/2000/svg",t):document.createElement(t);return void 0===e||(i.innerHTML=e.innerHTML?e.innerHTML:"",void 0!==e.className&&(i.className=e.className),void 0!==e.id&&(i.id=e.id),void 0!==e.styles&&i.setAttribute("style",e.styles),void 0!==e.attrs&&function(t,e){for(var i=Object.keys(e),r=t,n=0,o=i;n<o.length;n++){var s=o[n];if(w(r)){var a=s;"tabindex"===s&&(a="tabIndex"),r.attributes[""+a]=e[""+s]}else r.setAttribute(s,e[""+s])}}(i,e.attrs)),i}function ft(t,e){for(var i=yt(e),r=RegExp,n=0,o=t;n<o.length;n++)for(var s=o[n],a=0,u=i;a<u.length;a++){var c=u[a];if(w(s)){var h=v("attributes.className",s);L(h)?I("attributes.className",c,s):new r("\\b"+c+"\\b","i").test(h)||I("attributes.className",h+" "+c,s)}else s.classList.contains(c)||s.classList.add(c)}return t}function Mt(t,e){for(var i=yt(e),r=0,n=t;r<n.length;r++){var o=n[r],s=w(o);if(s?v("attributes.className",o):""!==o.className)for(var a=0,u=i;a<u.length;a++){var c=u[a];if(s){var h=v("attributes.className",o).split(" "),l=h.indexOf(c);-1!==l&&h.splice(l,1),I("attributes.className",h.join(" "),o)}else o.classList.remove(c)}}return t}function yt(t){var e=[];return"string"==typeof t?e.push(t):e=t,e}function mt(t){var e=t;return""===e.style.visibility&&e.offsetWidth>0}function Nt(t,e,i){return void 0===e&&(e=document),t=jt(t),e.querySelector(t)}function jt(t){var e=/(!|"|\$|%|&|'|\(|\)|\*|\/|:|;|<|=|\?|@|\]|\^|`|{|}|\||\+|~)/g;if(t.match(/#[0-9]/g)||t.match(e)){for(var i=t.split(","),r=0;r<i.length;r++){for(var n=i[parseInt(r.toString(),10)].split(" "),o=0;o<n.length;o++)if(n[parseInt(o.toString(),10)].indexOf("#")>-1&&!n[parseInt(o.toString(),10)].match(/\[.*\]/)){var s=n[parseInt(o.toString(),10)].split("#");if(s[1].match(/^\d/)||s[1].match(e)){var a=n[parseInt(o.toString(),10)].split(".");a[0]=a[0].replace(/#/,"[id='")+"']",n[parseInt(o.toString(),10)]=a.join(".")}}i[parseInt(r.toString(),10)]=n.join(" ")}return i.join(",")}return t}function Dt(t,e){var i=t;if("function"==typeof i.closest)return i.closest(e);for(;i&&1===i.nodeType;){if(vt(i,e))return i;i=i.parentNode}return null}function St(t,e){void 0!==e&&Object.keys(e).forEach(function(i){t.style[i]=e[i]})}function vt(t,e){var i=t.matches||t.msMatchesSelector||t.webkitMatchesSelector;return i?i.call(t,e):-1!==[].indexOf.call(document.querySelectorAll(e),t)}var It=new RegExp("]"),zt=function(){function t(t,e){this.isRendered=!1,this.isComplexArraySetter=!1,this.isServerRendered=!1,this.allowServerDataBinding=!0,this.isProtectedOnChange=!0,this.properties={},this.changedProperties={},this.oldProperties={},this.bulkChanges={},this.refreshing=!1,this.ignoreCollectionWatch=!1,this.finalUpdate=function(){},this.childChangedProperties={},this.modelObserver=new Z(this),A(e)||(this.element="string"==typeof e?document.querySelector(e):e,L(this.element)||(this.isProtectedOnChange=!1,this.addInstance())),A(t)||this.setProperties(t,!0),this.isDestroyed=!1}return t.prototype.setProperties=function(t,e){var i=this.isProtectedOnChange;this.isProtectedOnChange=!!e,O(this,t),!0!==e&&(O(this.changedProperties,t),this.dataBind()),this.finalUpdate(),this.changedProperties={},this.oldProperties={},this.isProtectedOnChange=i},t.callChildDataBind=function(t,e){for(var i=0,r=Object.keys(t);i<r.length;i++){var n=r[i];if(e[""+n]instanceof Array)for(var o=0,s=e[""+n];o<s.length;o++){var a=s[o];void 0!==a.dataBind&&a.dataBind()}else e[""+n].dataBind()}},t.prototype.clearChanges=function(){this.finalUpdate(),this.changedProperties={},this.oldProperties={},this.childChangedProperties={}},t.prototype.dataBind=function(){if(t.callChildDataBind(this.childChangedProperties,this),Object.getOwnPropertyNames(this.changedProperties).length){var e=this.isProtectedOnChange,i=this.changedProperties,r=this.oldProperties;this.clearChanges(),this.isProtectedOnChange=!0,this.onPropertyChanged(i,r),this.isProtectedOnChange=e}},t.prototype.serverDataBind=function(t){},t.prototype.saveChanges=function(t,e,i){this.isProtectedOnChange||(this.oldProperties[""+t]=i,this.changedProperties[""+t]=e,this.finalUpdate(),this.finalUpdate=S(this.dataBind.bind(this)))},t.prototype.addEventListener=function(t,e){this.modelObserver.on(t,e)},t.prototype.removeEventListener=function(t,e){this.modelObserver.off(t,e)},t.prototype.trigger=function(t,e,i,r){var n=this;if(!0!==this.isDestroyed){var o=this.isProtectedOnChange;this.isProtectedOnChange=!1;var s=this.modelObserver.notify(t,e,i,r);if(It.test(t)){var a=v(t,this);if(a){if(window.Blazor){var u=a.call(this,e);u&&"function"==typeof u.then?i?u.then(function(t){i&&(t="string"==typeof t&&n.modelObserver.isJson(t)?JSON.parse(t):t,i.call(n,t))}).catch(function(t){r&&(t="string"==typeof t&&n.modelObserver.isJson(t)?JSON.parse(t):t,r.call(n,t))}):s=u:i&&i.call(this,e)}else a.call(this,e),i&&i.call(this,e)}else i&&i.call(this,e)}return this.isProtectedOnChange=o,s}},t.prototype.addInstance=function(){var t="e-"+this.getModuleName().toLowerCase();ft([this.element],["e-lib",t]),L(this.element.ej2_instances)?I("ej2_instances",[this],this.element):this.element.ej2_instances.push(this)},t.prototype.destroy=function(){var t=this;this.element.ej2_instances=this.element.ej2_instances?this.element.ej2_instances.filter(function(e){return e!==t}):[],Mt([this.element],["e-"+this.getModuleName()]),0===this.element.ej2_instances.length&&Mt([this.element],["e-lib"]),this.clearChanges(),this.modelObserver.destroy(),this.isDestroyed=!0},t}();function bt(t,e,i,r){return t.properties.hasOwnProperty(e)&&t.properties[e]instanceof r||(t.properties[""+e]=D(r,[t,e,i])),t.properties[""+e]}function wt(t,e){return function(){return this.properties.hasOwnProperty(e)||(this.properties[""+e]=t),this.properties[""+e]}}function Ot(t,e){return function(i){if(this.properties[""+e]!==i){var r=this.properties.hasOwnProperty(e)?this.properties[e]:t;this.saveChanges(e,i,r),this.properties[""+e]=i}}}function Tt(t,e,i){return function(){return bt(this,e,t,i)}}function Lt(t,e,i){return function(r){bt(this,e,t,i).setProperties(r)}}function At(t){return function(e,i){var r={set:Ot(t,i),get:wt(t,i),enumerable:!0,configurable:!0};Object.defineProperty(e,i,r),kt(e,i,"prop",t)}}function xt(t,e){return function(i,r){var n={set:Lt(t,r,e),get:Tt(t,r,e),enumerable:!0,configurable:!0};Object.defineProperty(i,r,n),kt(i,r,"complexProp",t,e)}}function Ct(){return function(t,e){var i={set:function(t){var i=this.properties[""+e];if(i!==t){var r=Pt(this,e);!1===A(i)&&r.context.removeEventListener(r.prefix,i),r.context.addEventListener(r.prefix,t),this.properties[""+e]=t}},get:wt(void 0,e),enumerable:!0,configurable:!0};Object.defineProperty(t,e,i),kt(t,e,"event")}}function Et(t){}function kt(t,e,i,r,n){A(t.propList)&&(t.propList={props:[],complexProps:[],colProps:[],events:[],propNames:[],complexPropNames:[],colPropNames:[],eventNames:[]}),t.propList[i+"s"].push({propertyName:e,defaultValue:r,type:n}),t.propList[i+"Names"].push(e)}function Pt(t,e){if(!1===t.hasOwnProperty("parentObj"))return{context:t,prefix:e};var i=v("propName",t);return i&&(e=i+"-"+e),Pt(v("parentObj",t),e)}var Ut,Qt,Yt=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Rt=function(t,e,i,r){var n,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,i,s):n(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s};!function(t){function e(e){var i=t.call(this,e,void 0)||this;return i.easing={ease:"cubic-bezier(0.250, 0.100, 0.250, 1.000)",linear:"cubic-bezier(0.250, 0.250, 0.750, 0.750)",easeIn:"cubic-bezier(0.420, 0.000, 1.000, 1.000)",easeOut:"cubic-bezier(0.000, 0.000, 0.580, 1.000)",easeInOut:"cubic-bezier(0.420, 0.000, 0.580, 1.000)",elasticInOut:"cubic-bezier(0.5,-0.58,0.38,1.81)",elasticIn:"cubic-bezier(0.17,0.67,0.59,1.81)",elasticOut:"cubic-bezier(0.7,-0.75,0.99,1.01)"},i}var i;Yt(e,t),i=e,e.prototype.animate=function(t,e){e=e||{};var r,n,o=this.getModel(e);if("string"==typeof t)for(var s=0,a=Array.prototype.slice.call((r=t,void 0===(n=document)&&(n=document),r=jt(r),n.querySelectorAll(r)));s<a.length;s++){var u=a[s];o.element=u,i.delayAnimation(o)}else o.element=t,i.delayAnimation(o)},e.stop=function(t,e){t.style.animation="",t.removeAttribute("e-animate");var i=t.getAttribute("e-animation-id");if(i){var r=parseInt(i,10);cancelAnimationFrame(r),t.removeAttribute("e-animation-id")}e&&e.end&&e.end.call(this,e)},e.delayAnimation=function(t){Ut===Qt.Disable?(t.begin&&t.begin.call(this,t),t.end&&t.end.call(this,t)):t.delay?setTimeout(function(){i.applyAnimation(t)},t.delay):i.applyAnimation(t)},e.applyAnimation=function(t){var e=this;t.timeStamp=0;var i=0,r=0,n=0,o=t.duration;t.element.setAttribute("e-animate","true");var s=function(a){try{if(a){n=0===n?a:n,t.timeStamp=a+t.timeStamp-n,n=a,!i&&t.begin&&t.begin.call(e,t),i+=1;var u=t.timeStamp/i;t.timeStamp<o&&t.timeStamp+u<o&&t.element.getAttribute("e-animate")?(t.element.style.animation=t.name+" "+t.duration+"ms "+t.timingFunction,t.progress&&t.progress.call(e,t),requestAnimationFrame(s)):(cancelAnimationFrame(r),t.element.removeAttribute("e-animation-id"),t.element.removeAttribute("e-animate"),t.element.style.animation="",t.end&&t.end.call(e,t))}else r=requestAnimationFrame(s),t.element.setAttribute("e-animation-id",r.toString())}catch(i){cancelAnimationFrame(r),t.element.removeAttribute("e-animation-id"),t.fail&&t.fail.call(e,i)}};s()},e.prototype.getModel=function(t){return{name:t.name||this.name,delay:t.delay||this.delay,duration:void 0!==t.duration?t.duration:this.duration,begin:t.begin||this.begin,end:t.end||this.end,fail:t.fail||this.fail,progress:t.progress||this.progress,timingFunction:this.easing[t.timingFunction]?this.easing[t.timingFunction]:t.timingFunction||this.easing[this.timingFunction]}},e.prototype.onPropertyChanged=function(t,e){},e.prototype.getModuleName=function(){return"animation"},e.prototype.destroy=function(){},Rt([At("FadeIn")],e.prototype,"name",void 0),Rt([At(400)],e.prototype,"duration",void 0),Rt([At("ease")],e.prototype,"timingFunction",void 0),Rt([At(0)],e.prototype,"delay",void 0),Rt([Ct()],e.prototype,"progress",void 0),Rt([Ct()],e.prototype,"begin",void 0),Rt([Ct()],e.prototype,"end",void 0),Rt([Ct()],e.prototype,"fail",void 0),e=i=Rt([Et],e)}(zt),function(t){t.Default="Default",t.Enable="Enable",t.Disable="Disable"}(Qt||(Qt={}));var Vt,Ft=function(){function t(t){this.loadedModules=[],this.parent=t}return t.prototype.inject=function(t,e){var i=t.length;if(0!==i){this.loadedModules.length&&this.clearUnusedModule(t);for(var r=0;r<i;r++)for(var n=t[parseInt(r.toString(),10)],o=0,s=e;o<s.length;o++){var a=s[o],u=n.member;if(a&&a.prototype.getModuleName()===n.member&&!this.isModuleLoaded(u)){var c=D(a,n.args),h=this.getMemberName(u);n.isProperty?I(h,a,this.parent):I(h,c,this.parent);var l=n;l.member=h,this.loadedModules.push(l)}}}else this.clean()},t.prototype.clean=function(){for(var t=0,e=this.loadedModules;t<e.length;t++){var i=e[t];i.isProperty||v(i.member,this.parent).destroy()}this.loadedModules=[]},t.prototype.getNonInjectedModules=function(t){var e=this;return t.filter(function(t){return!e.isModuleLoaded(t.member)})},t.prototype.clearUnusedModule=function(t){for(var e=this,i=t.map(function(t){return e.getMemberName(t.member)}),r=0,n=this.loadedModules.filter(function(t){return-1===i.indexOf(t.member)});r<n.length;r++){var o=n[r];o.isProperty||v(o.member,this.parent).destroy(),this.loadedModules.splice(this.loadedModules.indexOf(o),1),z(this.parent,o.member)}},t.prototype.getMemberName=function(t){return t[0].toLowerCase()+t.substring(1)+"Module"},t.prototype.isModuleLoaded=function(t){for(var e=0,i=this.loadedModules;e<i.length;e++){if(i[e].member===this.getMemberName(t))return!0}return!1},t}(),Bt=function(){function t(t,e,i,r){this.isComplexArraySetter=!1,this.properties={},this.changedProperties={},this.childChangedProperties={},this.oldProperties={},this.finalUpdate=function(){},this.callChildDataBind=v("callChildDataBind",zt),this.parentObj=t,this.controlParent=this.parentObj.controlParent||this.parentObj,this.propName=e,this.isParentArray=r,this.setProperties(i,!0)}return t.prototype.updateChange=function(t,e){!0===t?this.parentObj.childChangedProperties[""+e]=t:delete this.parentObj.childChangedProperties[""+e],this.parentObj.updateChange&&this.parentObj.updateChange(t,this.parentObj.propName)},t.prototype.updateTimeOut=function(){if(this.parentObj.updateTimeOut)this.parentObj.finalUpdate(),this.parentObj.updateTimeOut();else{var t=setTimeout(this.parentObj.dataBind.bind(this.parentObj));this.finalUpdate=function(){clearTimeout(t)}}},t.prototype.clearChanges=function(){this.finalUpdate(),this.updateChange(!1,this.propName),this.oldProperties={},this.changedProperties={}},t.prototype.setProperties=function(t,e){!0===e?(O(this,t),this.updateChange(!1,this.propName),this.clearChanges()):O(this,t)},t.prototype.dataBind=function(){if(this.callChildDataBind(this.childChangedProperties,this),this.isParentArray){var t=this.parentObj[this.propName].indexOf(this);Object.keys(this.changedProperties).length&&(I(this.propName+"."+t,this.changedProperties,this.parentObj.changedProperties),I(this.propName+"."+t,this.oldProperties,this.parentObj.oldProperties))}else this.parentObj.changedProperties[this.propName]=this.changedProperties,this.parentObj.oldProperties[this.propName]=this.oldProperties;this.clearChanges()},t.prototype.saveChanges=function(t,e,i,r){this.controlParent.isProtectedOnChange||(r||this.serverDataBind(t,e,!0),this.oldProperties[""+t]=i,this.changedProperties[""+t]=e,this.updateChange(!0,this.propName),this.finalUpdate(),this.updateTimeOut())},t.prototype.serverDataBind=function(t,e,i,r){},t.prototype.getParentKey=function(t){var e="",i=this.propName;if(this.isParentArray){e=this.parentObj[this.propName].indexOf(this);var r=this.parentObj[this.propName].length;r=t?r:r>0?r-1:0,i+=e=-1!==e?"-"+e:"-"+r}return this.controlParent!==this.parentObj&&(i=this.parentObj.getParentKey()+"."+this.propName+e),i},t}(),Wt=["grid","pivotview","treegrid","spreadsheet","rangeNavigator","DocumentEditor","listbox","inplaceeditor","PdfViewer","richtexteditor","DashboardLayout","chart","stockChart","circulargauge","diagram","heatmap","lineargauge","maps","slider","smithchart","barcode","sparkline","treemap","bulletChart","kanban","daterangepicker","schedule","gantt","signature","query-builder","drop-down-tree","carousel","filemanager","uploader","accordion","tab","treeview"],Gt=[115,121,110,99,102,117,115,105,111,110,46,105,115,76,105,99,86,97,108,105,100,97,116,101,100],Ht=function(){function t(t){var e;this.isValidated=!1,this.isLicensed=!0,this.version="25",this.platform=/JavaScript|ASPNET|ASPNETCORE|ASPNETMVC|FileFormats|essentialstudio/i,this.errors={noLicense:"<span>This application was built using a trial version of Syncfusion Essential Studio. To remove the license validation message permanently, a valid license key must be included.</span>",trailExpired:"<span>This application was built using a trial version of Syncfusion Essential Studio. To remove the license validation message permanently, a valid license key must be included.</span>",versionMismatched:"<span>The included Syncfusion license key is invalid.</span>",platformMismatched:"<span>The included Syncfusion license key is invalid.</span>",invalidKey:"<span>The included Syncfusion license key is invalid.</span>"},this.manager=(e=null,{setKey:function(t){e=t},getKey:function(){return e}}),this.npxManager={getKey:function(){return"npxKeyReplace"}},this.manager.setKey(t)}return t.prototype.validate=function(){if(!this.isValidated&&b&&!v(_t(Gt),b)&&!v("Blazor",b)){var t=void 0,e=void 0;if(this.manager&&this.manager.getKey()||this.npxManager&&"npxKeyReplace"!==this.npxManager.getKey()){var i=this.getInfoFromKey();if(i&&i.length)for(var r=0,n=i;r<n.length;r++){var o=n[r];if(!this.platform.test(o.platform)||o.invalidPlatform)t=this.errors.platformMismatched;else if(-1===o.version.indexOf(this.version))t=(t=(t=this.errors.versionMismatched).replace("##LicenseVersion",o.version)).replace("##Requireversion",this.version+".x");else if(o.expiryDate){var s=new Date(o.expiryDate),a=new Date;if(!(s!==a&&s<a))break;t=this.errors.trailExpired}}else t=this.errors.invalidKey}else{var u=v(_t([115,121,110,99,102,117,115,105,111,110,46,108,105,99,101,110,115,101,67,111,110,116,101,110,116]),b);e=v(_t([115,121,110,99,102,117,115,105,111,110,46,99,108,97,105,109,65,99,99,111,117,110,116,85,82,76]),b),t=u&&""!==u?u:this.errors.noLicense}if(t&&"undefined"!=typeof document&&!L(document)){var c=dt("div",{innerHTML:"<img src='data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzE5OV80KSI+CjxwYXRoIGQ9Ik0xMiAyMUMxNi45NzA2IDIxIDIxIDE2Ljk3MDYgMjEgMTJDMjEgNy4wMjk0NCAxNi45NzA2IDMgMTIgM0M3LjAyOTQ0IDMgMyA3LjAyOTQ0IDMgMTJDMyAxNi45NzA2IDcuMDI5NDQgMjEgMTIgMjFaIiBzdHJva2U9IiM3MzczNzMiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik0xMS4yNSAxMS4yNUgxMlYxNi41SDEyLjc1IiBmaWxsPSIjNjE2MDYzIi8+CjxwYXRoIGQ9Ik0xMS4yNSAxMS4yNUgxMlYxNi41SDEyLjc1IiBzdHJva2U9IiM3MzczNzMiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik0xMS44MTI1IDlDMTIuNDMzOCA5IDEyLjkzNzUgOC40OTYzMiAxMi45Mzc1IDcuODc1QzEyLjkzNzUgNy4yNTM2OCAxMi40MzM4IDYuNzUgMTEuODEyNSA2Ljc1QzExLjE5MTIgNi43NSAxMC42ODc1IDcuMjUzNjggMTAuNjg3NSA3Ljg3NUMxMC42ODc1IDguNDk2MzIgMTEuMTkxMiA5IDExLjgxMjUgOVoiIGZpbGw9IiM3MzczNzMiLz4KPC9nPgo8ZGVmcz4KPGNsaXBQYXRoIGlkPSJjbGlwMF8xOTlfNCI+CjxyZWN0IHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0id2hpdGUiLz4KPC9jbGlwUGF0aD4KPC9kZWZzPgo8L3N2Zz4K' style=\"top: 6px;\n position: absolute;\n left: 16px;\n width: 24px;\n height: 24px;\"/>"+t+' <a style="text-decoration: none;color: #0D6EFD;font-weight: 500;" href='+(Vt=e&&""!==e?e:"https://www.syncfusion.com/account/claim-license-key?pl=SmF2YVNjcmlwdA==&vs=MjU=&utm_source=es_license_validation_banner&utm_medium=listing&utm_campaign=license-information")+">Claim your free account</a>"});c.setAttribute("style","position: fixed;\n top: 10px;\n left: 10px;\n right: 10px;\n font-size: 14px;\n background: #EEF2FF;\n color: #222222;\n z-index: 999999999;\n text-align: left;\n border: 1px solid #EEEEEE;\n padding: 10px 11px 10px 50px;\n border-radius: 8px;\n font-family: Helvetica Neue, Helvetica, Arial;"),document.body.appendChild(c),this.isLicensed=!1}this.isValidated=!0,I(_t(Gt),this.isValidated,b)}return this.isLicensed},t.prototype.getDecryptedData=function(t){try{return atob(t)}catch(t){return""}},t.prototype.getInfoFromKey=function(){try{var t="",e=[5439488,7929856,5111808,6488064,4587520,7667712,5439488,6881280,5177344,7208960,4194304,4456448,6619136,7733248,5242880,7077888,6356992,7602176,4587520,7274496,7471104,7143424],i=[],r=[],n=!1,o=!1;this.manager.getKey()?t=this.manager.getKey():(o=!0,t=this.npxManager.getKey().split("npxKeyReplace")[1]);for(var s=t.split(";"),a=0,u=s;a<u.length;a++){var c=u[a],h=this.getDecryptedData(c);if(h){var l=0,p="";if(o){var g=h[h.length-1],d=[];for(f=0;f<h.length;f++)d[""+f]=h[""+f].charCodeAt(0)-g.charCodeAt(0);for(f=0;f<d.length;f++)p+=String.fromCharCode(d[parseInt(f.toString(),10)])}else for(var f=0;f<h.length;f++,l++){l===e.length&&(l=0);var M=h.charCodeAt(f);p+=String.fromCharCode(M^e[parseInt(l.toString(),10)]>>16)}this.platform.test(p)?(i=p.split(";"),n=!1,i.length>3&&r.push({platform:i[0],version:i[1],expiryDate:i[2]})):p&&p.split(";").length>3&&(n=!0)}}return n&&!r.length?[{invalidPlatform:n}]:r.length?r:null}catch(t){return null}},t}(),qt=new Ht;function _t(t){for(var e="",i=0,r=t;i<r.length;i++){var n=r[i];e+=String.fromCharCode(n)}return e}var Jt,Zt=function(t){return t&&function(t){qt=new Ht(t)}(t),qt.validate()},Kt=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Xt=function(t,e,i,r){var n,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,i,s):n(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s},$t=0,te=0,ee=0,ie=!0,re=!1;!function(t){function e(e,i){var r=t.call(this,e,i)||this;return r.randomId=function(){if("undefined"!=typeof window){var t=new Uint16Array(5);return(window.msCrypto||window.crypto).getRandomValues(t)}}(),r.isStringTemplate=!1,r.needsID=!1,r.isReactHybrid=!1,L(r.enableRtl)&&r.setProperties({enableRtl:false},!0),L(r.locale)&&r.setProperties({locale:"en-US"},!0),r.moduleLoader=new Ft(r),r.localObserver=new Z(r),K.on("notifyExternalChange",r.detectFunction,r,r.randomId),"undefined"==typeof window||"undefined"==typeof document||Zt()||-1!==Wt.indexOf(r.getModuleName())&&(ee+=1)>5&&(ie=!1),A(i)||r.appendTo(),r}Kt(e,t),e.prototype.requiredModules=function(){return[]},e.prototype.destroy=function(){this.isDestroyed||(this.enablePersistence&&(this.setPersistData(),this.detachUnloadEvent()),this.localObserver.destroy(),this.refreshing||(Mt([this.element],["e-control"]),this.trigger("destroyed",{cancel:!1}),t.prototype.destroy.call(this),this.moduleLoader.clean(),K.off("notifyExternalChange",this.detectFunction,this.randomId)))},e.prototype.refresh=function(){this.refreshing=!0,this.moduleLoader.clean(),this.destroy(),this.clearChanges(),this.localObserver=new Z(this),this.preRender(),this.injectModules(),this.render(),this.refreshing=!1},e.prototype.accessMount=function(){this.mount&&!this.isReactHybrid&&this.mount()},e.prototype.getRootElement=function(){return this.isReactHybrid?this.actualElement:this.element},e.prototype.getLocalData=function(){var t=this.getModuleName()+this.element.id;return window.localStorage.getItem(t)},e.prototype.attachUnloadEvent=function(){this.handleUnload=this.handleUnload.bind(this),window.addEventListener("unload",this.handleUnload)},e.prototype.handleUnload=function(){this.setPersistData()},e.prototype.detachUnloadEvent=function(){window.removeEventListener("unload",this.handleUnload)},e.prototype.appendTo=function(e){if(L(e)||"string"!=typeof e?L(e)||(this.element=e):this.element=Nt(e,document),!L(this.element)){var i="e-"+this.getModuleName().toLowerCase();ft([this.element],["e-control",i]),this.isProtectedOnChange=!1,this.needsID&&!this.element.id&&(this.element.id=this.getUniqueID(this.getModuleName())),this.enablePersistence&&(this.mergePersistData(),this.attachUnloadEvent());var r=v("ej2_instances",this.element);r&&-1!==r.indexOf(this)||t.prototype.addInstance.call(this),this.preRender(),this.injectModules();var n={schedule:"all",diagram:"all",PdfViewer:"all",grid:["logger"],richtexteditor:["link","table","image","audio","video","formatPainter","emojiPicker","pasteCleanup","htmlEditor","toolbar"],treegrid:["filter"],gantt:["tooltip"],chart:["Export","Zoom"],accumulationchart:["Export"]},o=this.getModuleName();if(this.requiredModules&&(!n[""+o]||"all"!==n[""+o]))for(var s=this.requiredModules(),a=0,u=this.moduleLoader.getNonInjectedModules(s);a<u.length;a++){var c=u[a],h=c.name?c.name:c.member;if(!n[""+o]||-1===n[""+o].indexOf(c.member)){var l=o.charAt(0).toUpperCase()+o.slice(1);console.warn('[WARNING] :: Module "'+h+'" is not available in '+l+" component! You either misspelled the module name or forgot to load it.")}}ie||re||(!function(){var t='\n <div style="\n position: fixed;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: rgba(0, 0, 0, 0.5);\n z-index: 99999;\n ">\n <div style="\n background: #FFFFFF;\n height: 455px;\n width: 840px;\n font-family: Helvetica Neue, Helvetica, Arial;\n color: #000000;\n box-shadow: 0px 4.8px 14.4px rgb(0 0 0 / 18%), 0px 25.6px 57.6px rgb(0 0 0 / 22%);\n display: block;\n margin: 8% auto;\n border-radius: 20px;\n ">\n <div style="\n position: absolute;\nwidth: 838px;\nheight: 62px;\nbackground-color: #F9F9F9;\nborder: 1px solid #EEEEEE;\nborder-top-left-radius: 20px;\nborder-top-right-radius: 20px;\n">\n <img src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQ2IiBoZWlnaHQ9IjMyIiB2aWV3Qm94PSIwIDAgMTQ2IDMyIiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJNNDAuNTk2NSAxNS4wMDc4SDMyLjQyNUMzMS41NTU3IDE1LjAwNzggMzAuOTAzNyAxNS4xODEyIDMwLjUxMjUgMTUuNDg0NkMzMC4xMjEzIDE1LjgzMTQgMjkuOTA0IDE2LjMwODIgMjkuOTA0IDE3LjA0NTFDMjkuOTA0IDE3LjYwODYgMzAuMDc3OCAxOC4wNDIxIDMwLjQyNTYgMTguMzAyMkMzMC43NzMzIDE4LjYwNTYgMzEuMjk0OSAxOC43MzU2IDMxLjk5MDMgMTguNzM1NkgzNi4zMzY5QzM4LjExODkgMTguNzM1NiA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zU0NUMxNDQuNjUzIDE1LjY1NzkgMTQ0LjQ3OSAxNS44NzQ3IDE0NC4xNzQgMTUuOTYxNEwxNDQuODcgMTYuOTE1Wk0xNDQuMDQ0IDE1LjY1NzlDMTQ0LjI2MSAxNS42NTc5IDE0NC4zOTIgMTUuNTI3OSAxNDQuMzkyIDE1LjM1NDVDMTQ0LjM5MiAxNS4xMzc4IDE0NC4yNjEgMTUuMDUxMSAxNDQuMDAxIDE1LjA1MTFIMTQzLjkxNFYxNS42NTc5SDE0NC4wNDRaIiBmaWxsPSIjMzU0M0E4Ii8+Cjwvc3ZnPgo=" style="\n text-align: left;\n width: 146px;\n position: absolute;\n top: 14px;\n left: 31px;\n">\n </div>\n <div style="\n position: relative;\n top: 80px;\n left: 32px;\n font-size: 20px;\n text-align: left;\n font-weight: 700;\n letter-spacing: 0.02em;\n font-style: normal;\n line-height: 125%;\n ">Claim your FREE account and get a key in less than a minute</div>\n <ul style="\n font-size: 15px;\n font-weight: 400;\n color: #333333;\n letter-spacing: 0.01em;\n position: relative;\n left: 32px;\n top: 88px;\n line-height: 180%;\n ">\n <li><span>Access to a 30-day free trial of any of our products.</span></li>\n <li><span>Access to 24x5 support by developers via the <a href="https://support.syncfusion.com/create?utm_source=es_license_validation_banner&utm_medium=listing&utm_campaign=license-information" style="text-decoration: none;\n color: #0D6EFD;\n font-weight: 500;">support tickets</a>, <a href="https://www.syncfusion.com/forums?utm_source=es_license_validation_banner&utm_medium=listing&utm_campaign=license-information" style="text-decoration: none;\n color: #0D6EFD;\n font-weight: 500;">forum</a>, <a href="https://www.syncfusion.com/feedback?utm_source=es_license_validation_banner&utm_medium=listing&utm_campaign=license-information\n " style="text-decoration: none;\n color: #0D6EFD;\n font-weight: 500;">feature &amp; feedback page</a> and chat.</span></li>\n <li><span>200+ <a href="https://www.syncfusion.com/succinctly-free-ebooks?utm_source=es_license_validation_banner&utm_medium=listing&utm_campaign=license-information" style="text-decoration: none;\n color: #0D6EFD;\n font-weight: 500;">ebooks </a>on the latest technologies, industry trends, and research topics.</span>\n </li>\n <li><span>Largest collection of over 7,000 flat and wireframe icons for free with Syncfusion <a href="https://www.syncfusion.com/downloads/metrostudio?utm_source=es_license_validation_banner&utm_medium=listing&utm_campaign=license-information\n " style="text-decoration: none;\n color: #0D6EFD;\n font-weight: 500;">Metro Studio.</a></span></li>\n <li><span>Free and unlimited access to Syncfusion technical <a href="https://www.syncfusion.com/blogs/?utm_source=es_license_validation_banner&utm_medium=listing&utm_campaign=license-information\n " style="text-decoration: none;\n color: #0D6EFD;\n font-weight: 500;">blogs</a> and <a href="https://www.syncfusion.com/resources/techportal/whitepapers?utm_source=es_license_validation_banner&utm_medium=listing&utm_campaign=license-information" style="text-decoration: none;\n color: #0D6EFD;\n font-weight: 500;">whitepapers.</a></span></li>\n </ul>\n <div style="\n font-size: 18px;\n font-weight: 700;\n position: relative;\n line-height: 125%;\n letter-spacing: 0.02em;\n top: 90px;\n left: 32px;\n ">Syncfusion is trusted by 29,000+ businesses worldwide</div>\n <img src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODIwIiBoZWlnaHQ9IjU2IiB2aWV3Qm94PSIwIDAgODIwIDU2IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPg0KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik00MjcuNjE3IDIyLjU2NTlWMjQuNzIyNkM0MjYuNTU4IDI0LjM2MzggNDI1LjM5OCAyNC4xNTQ0IDQyNC40NzQgMjQuMTU0NEM0MjMuMzMzIDI0LjE1NDQgNDIyLjY5OCAyNC40OTEyIDQyMi42OTggMjUuMDk2M0M0MjIuNjk4IDI1LjQ4MjQgNDIyLjk3NiAyNS43MzgzIDQyMy43NzMgMjYuMDg1NEw0MjUuOTE3IDI3LjAxNzRDNDI3LjYzMyAyNy43NjM5IDQyOC40OTcgMjguODUzIDQyOC40OTcgMzAuM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ative;\n top: 107px;\n left: 32px;\n ">\n <a href='+Vt+' style="\n float: left;\n border-radius: 56px;\n background: #0D6EFD;\n padding-top: 8px;\n width: 280px;\n height: 38px;\n text-align: center;\n position: relative;\n top: 127px;\n left: 274px;\n font-size: 16px;\n color: white;\n text-decoration: none;\n letter-spacing: 0.02em;\n ">Claim your FREE account</a>\n <div style="\n font-size: 14px;\n position: relative;\n top: 180px;\n left: 19px;\n letter-spacing: 0.02em;\n font-weight: 500;\n line-height: 125%;\n">have a Syncfusion account? <a href="https://www.syncfusion.com/account/login?ReturnUrl=/account/login" style="text-decoration: none;\ncolor: #0D6EFD;\nfont-weight: 500;">Sign In</a></div>\n </div>\n </div>';if("undefined"!=typeof document&&!L(document)){var e=dt("div",{innerHTML:t});document.body.appendChild(e)}}(),re=!0),this.render(),this.mount?this.accessMount():this.trigger("created")}},e.prototype.renderComplete=function(t){this.isRendered=!0},e.prototype.dataBind=function(){this.injectModules(),t.prototype.dataBind.call(this)},e.prototype.on=function(t,e,i){if("string"==typeof t)this.localObserver.on(t,e,i);else for(var r=0,n=t;r<n.length;r++){var o=n[r];this.localObserver.on(o.event,o.handler,o.context)}},e.prototype.off=function(t,e){if("string"==typeof t)this.localObserver.off(t,e);else for(var i=0,r=t;i<r.length;i++){var n=r[i];this.localObserver.off(n.event,n.handler)}},e.prototype.notify=function(t,e){!0!==this.isDestroyed&&this.localObserver.notify(t,e)},e.prototype.getInjectedModules=function(){return this.injectedModules},e.Inject=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.prototype.injectedModules||(this.prototype.injectedModules=[]);for(var i=0;i<t.length;i++)-1===this.prototype.injectedModules.indexOf(t[parseInt(i.toString(),10)])&&this.prototype.injectedModules.push(t[parseInt(i.toString(),10)])},e.prototype.createElement=function(t,e,i){return dt(t,e)},e.prototype.triggerStateChange=function(t,e){this.isReactHybrid&&(this.setState(),this.currentContext={calls:t,args:e})},e.prototype.injectModules=function(){this.injectedModules&&this.injectedModules.length&&this.moduleLoader.inject(this.requiredModules(),this.injectedModules)},e.prototype.detectFunction=function(t){var e=Object.keys(t);e.length&&(this[e[0]]=t[e[0]])},e.prototype.mergePersistData=function(){var t;L(t=window.localStorage.getItem(this.getModuleName()+this.element.id))||""===t||this.setProperties(JSON.parse(t),!0)},e.prototype.setPersistData=function(){this.isDestroyed||window.localStorage.setItem(this.getModuleName()+this.element.id,this.getPersistData())},e.prototype.renderReactTemplates=function(t){L(t)||t()},e.prototype.clearTemplate=function(t,e){},e.prototype.getUniqueID=function(t){return this.isHistoryChanged()&&($t=0),Jt=this.pageID(location.href),te=history.length,t+"_"+Jt+"_"+$t++},e.prototype.pageID=function(t){var e=0;if(0===t.length)return e;for(var i=0;i<t.length;i++){e=(e<<5)-e+t.charCodeAt(i),e&=e}return Math.abs(e)},e.prototype.isHistoryChanged=function(){return Jt!==this.pageID(location.href)||te!==history.length},e.prototype.addOnPersist=function(t){for(var e=this,i={},r=0,n=t;r<n.length;r++){var o,s=n[r];A(o=v(s,this))||I(s,this.getActualProperties(o),i)}return JSON.stringify(i,function(t,i){return e.getActualProperties(i)})},e.prototype.getActualProperties=function(t){return t instanceof Bt?v("properties",t):t},e.prototype.ignoreOnPersist=function(t){return JSON.stringify(this.iterateJsonProperties(this.properties,t))},e.prototype.iterateJsonProperties=function(t,e){for(var i={},r=function(r){if(-1===e.indexOf(r)){var o=t[r];if("object"!=typeof o||o instanceof Array)i[""+r]=o;else{var s=e.filter(function(t){return new RegExp(r+".").test(t)}).map(function(t){return t.replace(r+".","")});i[""+r]=n.iterateJsonProperties(n.getActualProperties(o),s)}}},n=this,o=0,s=Object.keys(t);o<s.length;o++){r(s[o])}return i},Xt([At(!1)],e.prototype,"enablePersistence",void 0),Xt([At()],e.prototype,"enableRtl",void 0),Xt([At()],e.prototype,"locale",void 0),e=Xt([Et],e)}(zt),"undefined"!=typeof window&&window.addEventListener("popstate",function(){$t=0});var ne=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),oe=function(t,e,i,r){var n,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,i,s):n(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s},se={left:0,top:0,bottom:0,right:0},ae={isDragged:!1},ue=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ne(e,t),oe([At(0)],e.prototype,"left",void 0),oe([At(0)],e.prototype,"top",void 0),e}(Bt);!function(t){function e(e,r){var n=t.call(this,r,e)||this;return n.dragLimit=i.getDefaultPosition(),n.borderWidth=i.getDefaultPosition(),n.padding=i.getDefaultPosition(),n.diffX=0,n.prevLeft=0,n.prevTop=0,n.dragProcessStarted=!1,n.eleTop=0,n.tapHoldTimer=0,n.externalInitialize=!1,n.diffY=0,n.parentScrollX=0,n.parentScrollY=0,n.droppables={},n.bind(),n}var i;ne(e,t),i=e,e.prototype.bind=function(){this.toggleEvents(),lt.isIE&&ft([this.element],"e-block-touch"),this.droppables[this.scope]={}},e.getDefaultPosition=function(){return T({},se)},e.prototype.toggleEvents=function(t){var e;A(this.handle)||(e=Nt(this.handle,this.element));var i=this.enableTapHold&&lt.isDevice&&lt.isTouch?this.mobileInitialize:this.initialize;t?pt.remove(e||this.element,lt.isSafari()?"touchstart":lt.touchStartEvent,i):pt.add(e||this.element,lt.isSafari()?"touchstart":lt.touchStartEvent,i,this)},e.prototype.mobileInitialize=function(t){var e=this,i=t.currentTarget;this.tapHoldTimer=setTimeout(function(){e.externalInitialize=!0,e.removeTapholdTimer(),e.initialize(t,i)},this.tapHoldThreshold),pt.add(document,lt.isSafari()?"touchmove":lt.touchMoveEvent,this.removeTapholdTimer,this),pt.add(document,lt.isSafari()?"touchend":lt.touchEndEvent,this.removeTapholdTimer,this)},e.prototype.removeTapholdTimer=function(){clearTimeout(this.tapHoldTimer),pt.remove(document,lt.isSafari()?"touchmove":lt.touchMoveEvent,this.removeTapholdTimer),pt.remove(document,lt.isSafari()?"touchend":lt.touchEndEvent,this.removeTapholdTimer)},e.prototype.getScrollableParent=function(t,e){return L(t)?null:t[{vertical:"scrollHeight",horizontal:"scrollWidth"}[""+e]]>t[{vertical:"clientHeight",horizontal:"clientWidth"}[""+e]]&&("vertical"===e?t.scrollTop>0:t.scrollLeft>0)?("vertical"===e?(this.parentScrollY=this.parentScrollY+(0===this.parentScrollY?t.scrollTop:t.scrollTop-this.parentScrollY),this.tempScrollHeight=t.scrollHeight):(this.parentScrollX=this.parentScrollX+(0===this.parentScrollX?t.scrollLeft:t.scrollLeft-this.parentScrollX),this.tempScrollWidth=t.scrollWidth),L(t)?t:this.getScrollableParent(t.parentNode,e)):this.getScrollableParent(t.parentNode,e)},e.prototype.getScrollableValues=function(){this.parentScrollX=0,this.parentScrollY=0,this.element.classList.contains("e-dialog")&&this.element.classList.contains("e-dlg-modal"),this.getScrollableParent(this.element.parentNode,"vertical"),this.getScrollableParent(this.element.parentNode,"horizontal")},e.prototype.initialize=function(t,e){if(this.currentStateTarget=t.target,!this.isDragStarted()){if(this.isDragStarted(!0),this.externalInitialize=!1,this.target=t.currentTarget||e,this.dragProcessStarted=!1,this.abort){var i=this.abort;"string"==typeof i&&(i=[i]);for(var r=0;r<i.length;r++)if(!L(Dt(t.target,i[parseInt(r.toString(),10)])))return void(this.isDragStarted()&&this.isDragStarted(!0))}this.preventDefault&&!A(t.changedTouches)&&"touchstart"!==t.type&&t.preventDefault(),this.element.setAttribute("aria-grabbed","true");var n=this.getCoordinates(t);if(this.initialPosition={x:n.pageX,y:n.pageY},!this.clone){var o=this.element.getBoundingClientRect();this.getScrollableValues(),t.clientX===t.pageX&&(this.parentScrollX=0),t.clientY===t.pageY&&(this.parentScrollY=0),this.relativeXPosition=n.pageX-(o.left+this.parentScrollX),this.relativeYPosition=n.pageY-(o.top+this.parentScrollY)}this.externalInitialize?this.intDragStart(t):(pt.add(document,lt.isSafari()?"touchmove":lt.touchMoveEvent,this.intDragStart,this),pt.add(document,lt.isSafari()?"touchend":lt.touchEndEvent,this.intDestroy,this)),this.toggleEvents(!0),"touchstart"!==t.type&&this.isPreventSelect&&document.body.classList.add("e-prevent-select"),this.externalInitialize=!1,pt.trigger(document.documentElement,lt.isSafari()?"touchstart":lt.touchStartEvent,t)}},e.prototype.intDragStart=function(t){this.removeTapholdTimer();var e=!A(t.changedTouches);if(!e||1===t.changedTouches.length){var i,r=this.getCoordinates(t),n=getComputedStyle(this.element);this.margin={left:parseInt(n.marginLeft,10),top:parseInt(n.marginTop,10),right:parseInt(n.marginRight,10),bottom:parseInt(n.marginBottom,10)};var o=this.element;if(this.clone&&this.dragTarget){var s=Dt(t.target,this.dragTarget);L(s)||(o=s)}this.isReplaceDragEle&&(o=this.currentStateCheck(t.target,o)),this.offset=this.calculateParentPosition(o),this.position=this.getMousePosition(t,this.isDragScroll);var a=this.initialPosition.x-r.pageX,u=this.initialPosition.y-r.pageY;if(Math.sqrt(a*a+u*u)>=this.distance||this.externalInitialize){var c=this.getHelperElement(t);if(!c||L(c))return;e&&t.preventDefault();var h=this.helperElement=c;if(this.parentClientRect=this.calculateParentPosition(h.offsetParent),this.dragStart){var l={event:t,element:o,target:this.getProperTargetElement(t),bindEvents:null,dragElement:h};this.trigger("dragStart",l)}this.dragArea?this.setDragArea():(this.dragLimit={left:0,right:0,bottom:0,top:0},this.borderWidth={top:0,left:0}),i={left:this.position.left-this.parentClientRect.left,top:this.position.top-this.parentClientRect.top},this.clone&&!this.enableTailMode&&(this.diffX=this.position.left-this.offset.left,this.diffY=this.position.top-this.offset.top),this.getScrollableValues();var p=getComputedStyle(o),g=parseFloat(p.marginTop);this.clone&&0!==g&&(i.top+=g),this.eleTop=isNaN(parseFloat(p.top))?0:parseFloat(p.top)-this.offset.top,this.enableScrollHandler&&!this.clone&&(i.top-=this.parentScrollY,i.left-=this.parentScrollX);var d=this.getProcessedPositionValue({top:i.top-this.diffY+"px",left:i.left-this.diffX+"px"});this.dragArea&&"string"!=typeof this.dragArea&&this.dragArea.classList.contains("e-kanban-content")&&"relative"===this.dragArea.style.position&&(i.top+=this.dragArea.scrollTop),this.dragElePosition={top:i.top,left:i.left},St(h,this.getDragPosition({position:"absolute",left:d.left,top:d.top})),pt.remove(document,lt.isSafari()?"touchmove":lt.touchMoveEvent,this.intDragStart),pt.remove(document,lt.isSafari()?"touchend":lt.touchEndEvent,this.intDestroy),this.bindDragEvents(h)}}},e.prototype.bindDragEvents=function(t){mt(t)?(pt.add(document,lt.isSafari()?"touchmove":lt.touchMoveEvent,this.intDrag,this),pt.add(document,lt.isSafari()?"touchend":lt.touchEndEvent,this.intDragStop,this),this.setGlobalDroppables(!1,this.element,t)):(this.toggleEvents(),document.body.classList.remove("e-prevent-select"))},e.prototype.elementInViewport=function(t){for(this.top=t.offsetTop,this.left=t.offsetLeft,this.width=t.offsetWidth,this.height=t.offsetHeight;t.offsetParent;)t=t.offsetParent,this.top+=t.offsetTop,this.left+=t.offsetLeft;return this.top>=window.pageYOffset&&this.left>=window.pageXOffset&&this.top+this.height<=window.pageYOffset+window.innerHeight&&this.left+this.width<=window.pageXOffset+window.innerWidth},e.prototype.getProcessedPositionValue=function(t){return this.queryPositionInfo?this.queryPositionInfo(t):t},e.prototype.calculateParentPosition=function(t){if(L(t))return{left:0,top:0};var e=t.getBoundingClientRect(),i=getComputedStyle(t);return{left:e.left+window.pageXOffset-parseInt(i.marginLeft,10),top:e.top+window.pageYOffset-parseInt(i.marginTop,10)}},e.prototype.intDrag=function(t){if(A(t.changedTouches)||1===t.changedTouches.length){var e,i;this.clone&&t.changedTouches&&lt.isDevice&&lt.isTouch&&t.preventDefault(),this.position=this.getMousePosition(t,this.isDragScroll);var r=this.getDocumentWidthHeight("Height");r<this.position.top&&(this.position.top=r);var n=this.getDocumentWidthHeight("Width");if(n<this.position.left&&(this.position.left=n),this.drag){var o=this.getProperTargetElement(t);this.trigger("drag",{event:t,element:this.element,target:o})}var s=this.checkTargetElement(t);if(s.target&&s.instance){var a=!0;this.hoverObject&&(this.hoverObject.instance!==s.instance?this.triggerOutFunction(t,s):a=!1),a&&(s.instance.dragData[this.scope]=this.droppables[this.scope],s.instance.intOver(t,s.target),this.hoverObject=s)}else this.hoverObject&&this.triggerOutFunction(t,s);var u=this.droppables[this.scope].helper;this.parentClientRect=this.calculateParentPosition(this.helperElement.offsetParent);var c=this.parentClientRect.left,h=this.parentClientRect.top,l=this.getCoordinates(t),p=l.pageX,g=l.pageY,d=this.position.left-this.diffX,f=this.position.top-this.diffY,M=getComputedStyle(u);if(this.dragArea){if(this.enableAutoScroll&&this.setDragArea(),this.pageX!==p||this.skipDistanceCheck){var y=u.offsetWidth+(parseFloat(M.marginLeft)+parseFloat(M.marginRight));e=this.dragLimit.left>d&&d>0?this.dragLimit.left:this.dragLimit.right+window.pageXOffset<d+y&&d>0?d-(d-this.dragLimit.right)+window.pageXOffset-y:d<0?this.dragLimit.left:d}if(this.pageY!==g||this.skipDistanceCheck){var m=u.offsetHeight+(parseFloat(M.marginTop)+parseFloat(M.marginBottom));i=this.dragLimit.top>f&&f>0?this.dragLimit.top:this.dragLimit.bottom+window.pageYOffset<f+m&&f>0?f-(f-this.dragLimit.bottom)+window.pageYOffset-m:f<0?this.dragLimit.top:f}}else e=d,i=f;var N,j,D=h+this.borderWidth.top,S=c+this.borderWidth.left;if(this.dragProcessStarted&&(L(i)&&(i=this.prevTop),L(e)&&(e=this.prevLeft)),this.helperElement.classList.contains("e-treeview"))this.dragArea?(this.dragLimit.top=this.clone?this.dragLimit.top:0,N=i-D<0?this.dragLimit.top:i-this.borderWidth.top,j=e-S<0?this.dragLimit.left:e-this.borderWidth.left):(N=i-this.borderWidth.top,j=e-this.borderWidth.left);else if(this.dragArea){var v=this.helperElement.classList.contains("e-dialog");this.dragLimit.top=this.clone?this.dragLimit.top:0,N=i-D<0?this.dragLimit.top:i-D,j=e-S<0?v?e-(S-this.borderWidth.left):this.dragElePosition.left:e-S}else N=i-D,j=e-S;var I=parseFloat(getComputedStyle(this.element).marginTop);if(I>0&&(this.clone&&(N+=I,f<0&&(I+f>=0?N=I+f:N-=I),this.dragArea&&(N=this.dragLimit.bottom<N?this.dragLimit.bottom:N)),i-D<0))if(f+I+(u.offsetHeight-D)>=0){var z=this.dragLimit.top+f-D;z+I+D<0?N-=I+D:N=z}else N-=I+D;if(this.dragArea&&this.helperElement.classList.contains("e-treeview"))N=N+(m=u.offsetHeight+(parseFloat(M.marginTop)+parseFloat(M.marginBottom)))>this.dragLimit.bottom?this.dragLimit.bottom-m:N;this.enableScrollHandler&&!this.clone&&(N-=this.parentScrollY,j-=this.parentScrollX),this.dragArea&&"string"!=typeof this.dragArea&&this.dragArea.classList.contains("e-kanban-content")&&"relative"===this.dragArea.style.position&&(N+=this.dragArea.scrollTop);var b=this.getProcessedPositionValue({top:N+"px",left:j+"px"});St(u,this.getDragPosition(b)),this.elementInViewport(u)||!this.enableAutoScroll||this.helperElement.classList.contains("e-treeview")||this.helperElement.scrollIntoView();var w=document.querySelectorAll(":hover");if(this.enableAutoScroll&&this.helperElement.classList.contains("e-treeview")){0===w.length&&(w=this.getPathElements(t));var O=this.getScrollParent(w,!1);this.elementInViewport(this.helperElement)?this.getScrollPosition(O,N):this.elementInViewport(this.helperElement)||(0===(w=[].slice.call(document.querySelectorAll(":hover"))).length&&(w=this.getPathElements(t)),O=this.getScrollParent(w,!0),this.getScrollPosition(O,N))}this.dragProcessStarted=!0,this.prevLeft=e,this.prevTop=i,this.position.left=e,this.position.top=i,this.pageX=p,this.pageY=g}},e.prototype.getScrollParent=function(t,e){for(var i,r=e?t.reverse():t,n=r.length-1;n>=0;n--)if(("auto"===(i=window.getComputedStyle(r[parseInt(n.toString(),10)])["overflow-y"])||"scroll"===i)&&r[parseInt(n.toString(),10)].scrollHeight>r[parseInt(n.toString(),10)].clientHeight)return r[parseInt(n.toString(),10)];if("visible"===(i=window.getComputedStyle(document.scrollingElement)["overflow-y"]))return document.scrollingElement.style.overflow="auto",document.scrollingElement},e.prototype.getScrollPosition=function(t,e){if(t&&t===document.scrollingElement)t.clientHeight+document.scrollingElement.scrollTop-this.helperElement.clientHeight<e&&t.getBoundingClientRect().height+this.parentClientRect.top>e?t.scrollTop+=this.helperElement.clientHeight:t.scrollTop>e-this.helperElement.clientHeight&&(t.scrollTop-=this.helperElement.clientHeight);else if(t&&t!==document.scrollingElement){var i=document.scrollingElement.scrollTop,r=this.helperElement.clientHeight;t.clientHeight+t.getBoundingClientRect().top-r+i<e?t.scrollTop+=this.helperElement.clientHeight:t.getBoundingClientRect().top>e-r-i&&(t.scrollTop-=this.helperElement.clientHeight)}},e.prototype.getPathElements=function(t){var e=t.clientX>0?t.clientX:0,i=t.clientY>0?t.clientY:0;return document.elementsFromPoint(e,i)},e.prototype.triggerOutFunction=function(t,e){this.hoverObject.instance.intOut(t,e.target),this.hoverObject.instance.dragData[this.scope]=null,this.hoverObject=null},e.prototype.getDragPosition=function(t){var e=T({},t);return this.axis&&("x"===this.axis?delete e.top:"y"===this.axis&&delete e.left),e},e.prototype.getDocumentWidthHeight=function(t){var e=document.body,i=document.documentElement;return Math.max(e["scroll"+t],i["scroll"+t],e["offset"+t],i["offset"+t],i["client"+t])},e.prototype.intDragStop=function(t){if(this.dragProcessStarted=!1,A(t.changedTouches)||1===t.changedTouches.length){if(-1!==["touchend","pointerup","mouseup"].indexOf(t.type)){if(this.dragStop){var e=this.getProperTargetElement(t);this.trigger("dragStop",{event:t,element:this.element,target:e,helper:this.helperElement})}this.intDestroy(t)}else this.element.setAttribute("aria-grabbed","false");var i=this.checkTargetElement(t);i.target&&i.instance&&(i.instance.dragStopCalled=!0,i.instance.dragData[this.scope]=this.droppables[this.scope],i.instance.intDrop(t,i.target)),this.setGlobalDroppables(!0),document.body.classList.remove("e-prevent-select")}},e.prototype.intDestroy=function(t){this.dragProcessStarted=!1,this.toggleEvents(),document.body.classList.remove("e-prevent-select"),this.element.setAttribute("aria-grabbed","false"),pt.remove(document,lt.isSafari()?"touchmove":lt.touchMoveEvent,this.intDragStart),pt.remove(document,lt.isSafari()?"touchend":lt.touchEndEvent,this.intDragStop),pt.remove(document,lt.isSafari()?"touchend":lt.touchEndEvent,this.intDestroy),pt.remove(document,lt.isSafari()?"touchmove":lt.touchMoveEvent,this.intDrag),this.isDragStarted()&&this.isDragStarted(!0)},e.prototype.onPropertyChanged=function(t,e){},e.prototype.getModuleName=function(){return"draggable"},e.prototype.isDragStarted=function(t){return t&&(ae.isDragged=!ae.isDragged),ae.isDragged},e.prototype.setDragArea=function(){var t,e,i,r=0,n=0;if(i="string"===typeof this.dragArea?Nt(this.dragArea):this.dragArea){var o=i.getBoundingClientRect();t=i.scrollWidth?i.scrollWidth:o.right-o.left,e=i.scrollHeight?this.dragArea&&!L(this.helperElement)&&this.helperElement.classList.contains("e-treeview")?i.clientHeight:i.scrollHeight:o.bottom-o.top;for(var s=["Top","Left","Bottom","Right"],a=getComputedStyle(i),u=0;u<s.length;u++){var c=s[parseInt(u.toString(),10)],h=a["border"+c+"Width"],l=a["padding"+c],p=c.toLowerCase();this.borderWidth[""+p]=isNaN(parseFloat(h))?0:parseFloat(h),this.padding[""+p]=isNaN(parseFloat(l))?0:parseFloat(l)}r=this.dragArea&&!L(this.helperElement)&&this.helperElement.classList.contains("e-treeview")?o.top+document.scrollingElement.scrollTop:o.top,n=o.left,this.dragLimit.left=n+this.borderWidth.left+this.padding.left,this.dragLimit.top=i.offsetTop+this.borderWidth.top+this.padding.top,this.dragLimit.right=n+t-(this.borderWidth.right+this.padding.right),this.dragLimit.bottom=r+e-(this.borderWidth.bottom+this.padding.bottom)}},e.prototype.getProperTargetElement=function(t){var e,i=this.getCoordinates(t),r=this.helperElement.style.pointerEvents||"",n=-1!==t.type.indexOf("pointer")&&"safari"===lt.info.name&&parseInt(lt.info.version,10)>12;return x(t.target,this.helperElement)||-1!==t.type.indexOf("touch")||n?(this.helperElement.style.pointerEvents="none",e=document.elementFromPoint(i.clientX,i.clientY),this.helperElement.style.pointerEvents=r):e=t.target,e},e.prototype.currentStateCheck=function(t,e){return L(this.currentStateTarget)||this.currentStateTarget===t?L(e)?t:e:this.currentStateTarget},e.prototype.getMousePosition=function(t,e){var i,r,n=void 0!==t.srcElement?t.srcElement:t.target,o=this.getCoordinates(t),s=L(n.offsetParent);if(e?(i=this.clone?o.pageX:o.pageX+(s?0:n.offsetParent.scrollLeft)-this.relativeXPosition,r=this.clone?o.pageY:o.pageY+(s?0:n.offsetParent.scrollTop)-this.relativeYPosition):(i=this.clone?o.pageX:o.pageX+window.pageXOffset-this.relativeXPosition,r=this.clone?o.pageY:o.pageY+window.pageYOffset-this.relativeYPosition),document.scrollingElement&&!e&&!this.clone){var a=document.scrollingElement,u=a.scrollHeight>0&&a.scrollHeight>a.clientHeight&&a.scrollTop>0;i=a.scrollWidth>0&&a.scrollWidth>a.clientWidth&&a.scrollLeft>0?i-a.scrollLeft:i,r=u?r-a.scrollTop:r}return{left:i-(this.margin.left+this.cursorAt.left),top:r-(this.margin.top+this.cursorAt.top)}},e.prototype.getCoordinates=function(t){return t.type.indexOf("touch")>-1?t.changedTouches[0]:t},e.prototype.getHelperElement=function(t){var e;return this.clone?this.helper?e=this.helper({sender:t,element:this.target}):(e=dt("div",{className:"e-drag-helper e-block-touch",innerHTML:"Draggable"}),document.body.appendChild(e)):e=this.element,e},e.prototype.setGlobalDroppables=function(t,e,i){this.droppables[this.scope]=t?null:{draggable:e,helper:i,draggedElement:this.element}},e.prototype.checkTargetElement=function(t){var e=this.getProperTargetElement(t),i=this.getDropInstance(e);if(!i&&e&&!L(e.parentNode)){var r=Dt(e.parentNode,".e-droppable")||e.parentElement;r&&(i=this.getDropInstance(r))}return{target:e,instance:i}},e.prototype.getDropInstance=function(t){var e,i=t&&t.ej2_instances;if(i)for(var r=0,n=i;r<n.length;r++){var o=n[r];if("droppable"===o.getModuleName()){e=o;break}}return e},e.prototype.destroy=function(){this.toggleEvents(!0),t.prototype.destroy.call(this)},oe([xt({},ue)],e.prototype,"cursorAt",void 0),oe([At(!0)],e.prototype,"clone",void 0),oe([At()],e.prototype,"dragArea",void 0),oe([At()],e.prototype,"isDragScroll",void 0),oe([At()],e.prototype,"isReplaceDragEle",void 0),oe([At(!0)],e.prototype,"isPreventSelect",void 0),oe([Ct()],e.prototype,"drag",void 0),oe([Ct()],e.prototype,"dragStart",void 0),oe([Ct()],e.prototype,"dragStop",void 0),oe([At(1)],e.prototype,"distance",void 0),oe([At()],e.prototype,"handle",void 0),oe([At()],e.prototype,"abort",void 0),oe([At()],e.prototype,"helper",void 0),oe([At("default")],e.prototype,"scope",void 0),oe([At("")],e.prototype,"dragTarget",void 0),oe([At()],e.prototype,"axis",void 0),oe([At()],e.prototype,"queryPositionInfo",void 0),oe([At(!1)],e.prototype,"enableTailMode",void 0),oe([At(!1)],e.prototype,"skipDistanceCheck",void 0),oe([At(!0)],e.prototype,"preventDefault",void 0),oe([At(!1)],e.prototype,"enableAutoScroll",void 0),oe([At(!1)],e.prototype,"enableTapHold",void 0),oe([At(750)],e.prototype,"tapHoldThreshold",void 0),oe([At(!1)],e.prototype,"enableScrollHandler",void 0),e=i=oe([Et],e)}(zt);var ce=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),he=function(t,e,i,r){var n,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,i,s):n(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s};!function(t){function e(e,i){var r=t.call(this,i,e)||this;return r.mouseOver=!1,r.dragData={},r.dragStopCalled=!1,r.bind(),r}ce(e,t),e.prototype.bind=function(){this.wireEvents()},e.prototype.wireEvents=function(){pt.add(this.element,lt.isSafari()?"touchend":lt.touchEndEvent,this.intDrop,this)},e.prototype.onPropertyChanged=function(t,e){},e.prototype.getModuleName=function(){return"droppable"},e.prototype.intOver=function(t,e){if(!this.mouseOver){var i=this.dragData[this.scope];this.trigger("over",{event:t,target:e,dragData:i}),this.mouseOver=!0}},e.prototype.intOut=function(t,e){this.mouseOver&&(this.trigger("out",{evt:t,target:e}),this.mouseOver=!1)},e.prototype.intDrop=function(t,e){if(this.dragStopCalled){this.dragStopCalled=!1;var i,r=!0,n=this.dragData[this.scope],o=!!n&&(n.helper&&mt(n.helper));o&&(i=this.isDropArea(t,n.helper,e),this.accept&&(r=vt(n.helper,this.accept))),o&&this.drop&&i.canDrop&&r&&this.trigger("drop",{event:t,target:i.target,droppedElement:n.helper,dragData:n}),this.mouseOver=!1}},e.prototype.isDropArea=function(t,e,i){var r={canDrop:!0,target:i||t.target},n="touchend"===t.type;if(n||r.target===e){e.style.display="none";var o=n?t.changedTouches[0]:t,s=document.elementFromPoint(o.clientX,o.clientY);r.canDrop=!1,r.canDrop=x(s,this.element),r.canDrop&&(r.target=s),e.style.display=""}return r},e.prototype.destroy=function(){pt.remove(this.element,lt.isSafari()?"touchend":lt.touchEndEvent,this.intDrop),t.prototype.destroy.call(this)},he([At()],e.prototype,"accept",void 0),he([At("default")],e.prototype,"scope",void 0),he([Ct()],e.prototype,"drop",void 0),he([Ct()],e.prototype,"over",void 0),he([Ct()],e.prototype,"out",void 0),e=he([Et],e)}(zt);var le=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),pe=function(t,e,i,r){var n,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,i,s):n(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s},ge={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,space:32,escape:27,pageup:33,pagedown:34,end:35,home:36,leftarrow:37,uparrow:38,rightarrow:39,downarrow:40,insert:45,delete:46,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,semicolon:186,plus:187,comma:188,minus:189,dot:190,forwardslash:191,graveaccent:192,openbracket:219,backslash:220,closebracket:221,singlequote:222};!function(t){function e(e,r){var n=t.call(this,r,e)||this;return n.keyPressHandler=function(t){for(var e=t.altKey,r=t.ctrlKey,o=t.shiftKey,s=t.which,a=0,u=Object.keys(n.keyConfigs);a<u.length;a++)for(var c=u[a],h=0,l=n.keyConfigs[""+c].split(",");h<l.length;h++){var p=l[h],g=i.getKeyConfigData(p.trim());e===g.altKey&&r===g.ctrlKey&&o===g.shiftKey&&s===g.keyCode&&(t.action=c,n.keyAction&&n.keyAction(t))}},n.bind(),n}var i;le(e,t),i=e,e.prototype.destroy=function(){this.unwireEvents(),t.prototype.destroy.call(this)},e.prototype.onPropertyChanged=function(t,e){},e.prototype.bind=function(){this.wireEvents()},e.prototype.getModuleName=function(){return"keyboard"},e.prototype.wireEvents=function(){this.element.addEventListener(this.eventName,this.keyPressHandler)},e.prototype.unwireEvents=function(){this.element.removeEventListener(this.eventName,this.keyPressHandler)},e.getKeyConfigData=function(t){if(t in this.configCache)return this.configCache[""+t];var e=t.toLowerCase().split("+"),r={altKey:-1!==e.indexOf("alt"),ctrlKey:-1!==e.indexOf("ctrl"),shiftKey:-1!==e.indexOf("shift"),keyCode:null};return e[e.length-1].length>1&&Number(e[e.length-1])?r.keyCode=Number(e[e.length-1]):r.keyCode=i.getKeyCode(e[e.length-1]),i.configCache[""+t]=r,r},e.getKeyCode=function(t){return ge[""+t]||t.toUpperCase().charCodeAt(0)},e.configCache={},pe([At({})],e.prototype,"keyConfigs",void 0),pe([At("keyup")],e.prototype,"eventName",void 0),pe([Ct()],e.prototype,"keyAction",void 0),e=i=pe([Et],e)}(zt);var de=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),fe=function(t,e,i,r){var n,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,i,s):n(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s},Me=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return de(e,t),fe([At(50)],e.prototype,"swipeThresholdDistance",void 0),e}(Bt),ye=/(Up|Down)/;!function(t){function e(e,i){var r=t.call(this,i,e)||this;return r.touchAction=!0,r.tapCount=0,r.startEvent=function(t){if(!0===r.touchAction){var e=r.updateChangeTouches(t);void 0!==t.changedTouches&&(r.touchAction=!1),r.isTouchMoved=!1,r.movedDirection="",r.startPoint=r.lastMovedPoint={clientX:e.clientX,clientY:e.clientY},r.startEventData=e,r.hScrollLocked=r.vScrollLocked=!1,r.tStampStart=Date.now(),r.timeOutTapHold=setTimeout(function(){r.tapHoldEvent(t)},r.tapHoldThreshold),pt.add(r.element,lt.touchMoveEvent,r.moveEvent,r),pt.add(r.element,lt.touchEndEvent,r.endEvent,r),pt.add(r.element,lt.touchCancelEvent,r.cancelEvent,r)}},r.moveEvent=function(t){var e=r.updateChangeTouches(t);r.movedPoint=e,r.isTouchMoved=!(e.clientX===r.startPoint.clientX&&e.clientY===r.startPoint.clientY);var i={};r.isTouchMoved&&(clearTimeout(r.timeOutTapHold),r.calcScrollPoints(t),i=T(i,{},{startEvents:r.startEventData,originalEvent:t,startX:r.startPoint.clientX,startY:r.startPoint.clientY,distanceX:r.distanceX,distanceY:r.distanceY,scrollDirection:r.scrollDirection,velocity:r.getVelocity(e)}),r.trigger("scroll",i),r.lastMovedPoint={clientX:e.clientX,clientY:e.clientY})},r.cancelEvent=function(t){clearTimeout(r.timeOutTapHold),clearTimeout(r.timeOutTap),r.tapCount=0,r.swipeFn(t),pt.remove(r.element,lt.touchCancelEvent,r.cancelEvent)},r.endEvent=function(t){r.swipeFn(t),r.isTouchMoved||"function"==typeof r.tap&&(r.trigger("tap",{originalEvent:t,tapCount:++r.tapCount}),r.timeOutTap=setTimeout(function(){r.tapCount=0},r.tapThreshold)),r.modeclear()},r.swipeFn=function(t){clearTimeout(r.timeOutTapHold),clearTimeout(r.timeOutTap);var e=r.updateChangeTouches(t),i=e.clientX-r.startPoint.clientX,n=e.clientY-r.startPoint.clientY;i=Math.floor(i<0?-1*i:i),n=Math.floor(n<0?-1*n:i),r.isTouchMoved=i>1||n>1,/Firefox/.test(lt.userAgent)&&0===e.clientX&&0===e.clientY&&"mouseup"===t.type&&(r.isTouchMoved=!1),r.endPoint=e,r.calcPoints(t);var o={originalEvent:t,startEvents:r.startEventData,startX:r.startPoint.clientX,startY:r.startPoint.clientY,distanceX:r.distanceX,distanceY:r.distanceY,swipeDirection:r.movedDirection,velocity:r.getVelocity(e)};if(r.isTouchMoved){var s=void 0,a=r.swipeSettings.swipeThresholdDistance;s=T(s,r.defaultArgs,o);var u=!1,c=r.element,h=r.isScrollable(c),l=ye.test(r.movedDirection);(a<r.distanceX&&!l||a<r.distanceY&&l)&&(u=!h||r.checkSwipe(c,l)),u&&r.trigger("swipe",s)}r.modeclear()},r.modeclear=function(){r.modeClear=setTimeout(function(){r.touchAction=!0},"function"!=typeof r.tap?0:20),r.lastTapTime=(new Date).getTime(),pt.remove(r.element,lt.touchMoveEvent,r.moveEvent),pt.remove(r.element,lt.touchEndEvent,r.endEvent),pt.remove(r.element,lt.touchCancelEvent,r.cancelEvent)},r.bind(),r}de(e,t),e.prototype.onPropertyChanged=function(t,e){},e.prototype.bind=function(){this.wireEvents(),lt.isIE&&this.element.classList.add("e-block-touch")},e.prototype.destroy=function(){this.unwireEvents(),t.prototype.destroy.call(this)},e.prototype.wireEvents=function(){pt.add(this.element,lt.touchStartEvent,this.startEvent,this)},e.prototype.unwireEvents=function(){pt.remove(this.element,lt.touchStartEvent,this.startEvent)},e.prototype.getModuleName=function(){return"touch"},e.prototype.isScrollable=function(t){var e=getComputedStyle(t),i=e.overflow+e.overflowX+e.overflowY;return!!/(auto|scroll)/.test(i)},e.prototype.tapHoldEvent=function(t){var e;this.tapCount=0,this.touchAction=!0,pt.remove(this.element,lt.touchMoveEvent,this.moveEvent),pt.remove(this.element,lt.touchEndEvent,this.endEvent),e={originalEvent:t},this.trigger("tapHold",e),pt.remove(this.element,lt.touchCancelEvent,this.cancelEvent)},e.prototype.calcPoints=function(t){var e=this.updateChangeTouches(t);this.defaultArgs={originalEvent:t},this.distanceX=Math.abs(Math.abs(e.clientX)-Math.abs(this.startPoint.clientX)),this.distanceY=Math.abs(Math.abs(e.clientY)-Math.abs(this.startPoint.clientY)),this.distanceX>this.distanceY?this.movedDirection=e.clientX>this.startPoint.clientX?"Right":"Left":this.movedDirection=e.clientY<this.startPoint.clientY?"Up":"Down"},e.prototype.calcScrollPoints=function(t){var e=this.updateChangeTouches(t);this.defaultArgs={originalEvent:t},this.distanceX=Math.abs(Math.abs(e.clientX)-Math.abs(this.lastMovedPoint.clientX)),this.distanceY=Math.abs(Math.abs(e.clientY)-Math.abs(this.lastMovedPoint.clientY)),(this.distanceX>this.distanceY||!0===this.hScrollLocked)&&!1===this.vScrollLocked?(this.scrollDirection=e.clientX>this.lastMovedPoint.clientX?"Right":"Left",this.hScrollLocked=!0):(this.scrollDirection=e.clientY<this.lastMovedPoint.clientY?"Up":"Down",this.vScrollLocked=!0)},e.prototype.getVelocity=function(t){var e=t.clientX,i=t.clientY,r=Date.now(),n=e-this.startPoint.clientX,o=i-this.startPoint.clientX,s=r-this.tStampStart;return Math.sqrt(n*n+o*o)/s},e.prototype.checkSwipe=function(t,e){var i=["scroll","offset"],r=e?["Height","Top"]:["Width","Left"];return t[i[0]+r[0]]<=t[i[1]+r[0]]||(0===t[i[0]+r[1]]||t[i[1]+r[0]]+t[i[0]+r[1]]>=t[i[0]+r[0]])},e.prototype.updateChangeTouches=function(t){return t.changedTouches&&0!==t.changedTouches.length?t.changedTouches[0]:t},fe([Ct()],e.prototype,"tap",void 0),fe([Ct()],e.prototype,"tapHold",void 0),fe([Ct()],e.prototype,"swipe",void 0),fe([Ct()],e.prototype,"scroll",void 0),fe([At(350)],e.prototype,"tapThreshold",void 0),fe([At(750)],e.prototype,"tapHoldThreshold",void 0),fe([xt({},Me)],e.prototype,"swipeSettings",void 0),e=fe([Et],e)}(zt);var me=new RegExp("\\n|\\r|\\s\\s+","g"),Ne=new RegExp(/'|"/g),je=new RegExp("if ?\\("),De=new RegExp("else if ?\\("),Se=new RegExp("else"),ve=new RegExp("for ?\\("),Ie=new RegExp("(/if|/for)"),ze=new RegExp("\\((.*)\\)",""),be=new RegExp("^[0-9]+$","g"),we=new RegExp("[\\w\"'.\\s+]+","g"),Oe=new RegExp('"(.*?)"',"g"),Te=new RegExp("[\\w\"'@#$.\\s-+]+","g"),Le=new RegExp("\\${([^}]*)}","g"),Ae=/^\..*/gm,xe=/\\/gi,Ce=/\\\\/gi,Ee=new RegExp("[\\w\"'@#$.\\s+]+","g"),ke=/\window\./gm;function Pe(t,e,i){if("function"==typeof t)return t;var r="data",n=function(t,e,i,r){var n=0,o=[],s=t.match(/class="([^"]+|)\s{2}/g),a="";s&&s.forEach(function(e){a=e.replace(/\s\s+/g," "),t=t.replace(e,a)});if(Le.test(t)){for(var u=!1,c="",h=0;h<t.length;h++)"$"===t[h+""]&&"{"===t[h+1]?u=!0:"}"===t[h+""]&&(u=!1),c+='"'!==t[h+""]||u?t[h+""]:'\\"';t=c}else t=t.replace(/\\?"/g,'\\"');return t.replace(me,"").replace(Oe,"'$1'").replace(Le,function(t,s,a,u){var c=/@|#|\$/gm,h=s.match(ze);if(h){var l=h[1];if(De.test(s))s='";} '+s.replace(h[1],l.replace(we,function(t){return Ue(t=t.trim(),!Ne.test(t)&&-1===o.indexOf(t),e,o,r)}))+'{ \n str = str + "';else if(je.test(s))s='"; '+s.replace(h[1],l.replace(Te,function(t){return Re(t,e,o,r)}))+'{ \n str = str + "';else if(ve.test(s)){var p=h[1].split(" of ");s='"; '+s.replace(h[1],function(t){return o.push(p[0]),o.push(p[0]+"Index"),"var i"+(n+=1)+"=0; i"+n+" < "+Ue(p[1],!0,e,o,r)+".length; i"+n+"++"})+"{ \n "+p[0]+"= "+Ue(p[1],!0,e,o,r)+"[i"+n+"]; \n var "+p[0]+"Index=i"+n+'; \n str = str + "'}else{var g=s.split("("),d=i&&i.hasOwnProperty(g[0])?"this.":"global";d=/\./.test(g[0])?"":d;var f=h[1].split(",");0===h[1].length||/data/.test(f[0])||/window./.test(f[0])||(h[1]="global"===d?e+"."+h[1]:h[1]);var M=/@|\$|#/gm,y=/\]\./gm;if(ke.test(s)&&y.test(s)||M.test(s))/@|\$|#|\]\./gm.test(s)&&(s='"+ '+("global"===d?"":d)+s.replace(h[1],l.replace(Ee,function(t){return Re(t,e,o,r)}))+'+ "');else s='" + '+("global"===d?"":d)+s.replace(l,Ue(h[1].replace(/,( |)data.|,/gi,","+e+".").replace(/,( |)data.window/gi,",window"),"global"!==d,e,o,r))+'+"'}}else Se.test(s)?s='"; '+s.replace(Se,'} else { \n str = str + "'):s.match(Ie)?s=s.replace(Ie,'"; \n } \n str = str + "'):c.test(s)?(s.match(xe)&&(s=Ye(s)),s='"+'+Qe(s,-1===o.indexOf(s),e,o)+'"]+"'):s=s.match(xe)?'"+'+Qe(s=Ye(s),-1===o.indexOf(s),e,o)+'"]+"':""!==s?'"+'+Ue(s.replace(/,/gi,"+"+e+"."),-1===o.indexOf(s),e,o,r)+'+"':"${}";return s})}(t,r,e,i);return new Function(r,'var str="'+n+"\";var valueRegEx = (/value=\\'([A-Za-z0-9 _]*)((.)([\\w)(!-;?-■\\s]+)['])/g);\n var hrefRegex = (/(?:href)([\\s='\"./]+)([\\w-./?=&\\\\#\"]+)((.)([\\w)(!-;/?-■\\s]+)['])/g);\n if(str.match(valueRegEx)){\n var check = str.match(valueRegEx);\n var str1 = str;\n for (var i=0; i < check.length; i++) {\n var check1 = str.match(valueRegEx)[i].split('value=')[1];\n var change = check1.match(/^'/) !== null ? check1.replace(/^'/, '\"') : check1;\n change =change.match(/.$/)[0] === '\\'' ? change.replace(/.$/,'\"') : change;\n str1 = str1.replace(check1, change);\n }\n str = str.replace(str, str1);\n }\n else if (str.match(/(?:href='')/) === null) {\n if(str.match(hrefRegex)) {\n var check = str.match(hrefRegex);\n var str1 = str;\n for (var i=0; i < check.length; i++) {\n var check1 = str.match(hrefRegex)[i].split('href=')[1];\n if (check1) {\n var change = check1.match(/^'/) !== null ? check1.replace(/^'/, '\"') : check1;\n change =change.match(/.$/)[0] === '\\'' ? change.replace(/.$/,'\"') : change;\n str1 = str1.replace(check1, change);\n }\n }\n str = str.replace(str, str1);\n }\n }\n return str;").bind(e)}function Ue(t,e,i,r,n){return!e||be.test(t)||-1!==r.indexOf(t.split(".")[0])||n||"true"===t||"false"===t?t:i+"."+t}function Qe(t,e,i,r){return e&&!be.test(t)&&-1===r.indexOf(t.split(".")[0])?i+'["'+t:t}function Ye(t){return t.match(Ce)||(t=t.replace(xe,"\\\\")),t}function Re(t,e,i,r){t=t.trim();if(/\window\./gm.test(t))return t;var n=/'|"/gm;return/@|\$|#/gm.test(t)&&(t=Qe(t,-1===i.indexOf(t),e,i)+'"]'),Ae.test(t)?function(t,e,i,r){return!e||be.test(t)||-1!==r.indexOf(t.split(".")[0])||/^\..*/gm.test(t)?t:i+"."+t}(t,!n.test(t)&&-1===i.indexOf(t),e,i):Ue(t,!n.test(t)&&-1===i.indexOf(t),e,i,r)}(new(function(){function t(){}return t.prototype.compile=function(t,e,i){return void 0===e&&(e={}),Pe(t,e)},t}())).compile;var Ve=function(t,e){return Ve=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},Ve(t,e)};var Fe=function(){return Fe=Object.assign||function(t){for(var e,i=1,r=arguments.length;i<r;i++)for(var n in e=arguments[i])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},Fe.apply(this,arguments)};function Be(t,e,i,r){return new(i||(i=Promise))(function(n,o){function s(t){try{u(r.next(t))}catch(t){o(t)}}function a(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?n(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}u((r=r.apply(t,e||[])).next())})}function We(t,e){var i,r,n,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(u){return function(a){if(i)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(o=0)),o;)try{if(i=1,r&&(n=2&a[0]?r.return:a[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,a[1])).done)return n;switch(r=0,n&&(a=[2&a[0],n.value]),a[0]){case 0:case 1:n=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(n=o.trys,(n=n.length>0&&n[n.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]<n[3])){o.label=a[1];break}if(6===a[0]&&o.label<n[1]){o.label=n[1],n=a;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(a);break}n[2]&&o.ops.pop(),o.trys.pop();continue}a=e.call(t,o)}catch(t){a=[6,t],r=0}finally{i=n=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}}function Ge(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError;var He=function(){function t(t){return this.subQuery=null,this.isChild=!1,this.distincts=[],this.queries=[],this.key="",this.fKey="","string"==typeof t?this.fromTable=t:t&&t instanceof Array&&(this.lookups=t),this.expands=[],this.sortedColumns=[],this.groupedColumns=[],this.subQuery=null,this.isChild=!1,this.params=[],this.lazyLoad=[],this}return t.prototype.setKey=function(t){return this.key=t,this},t.prototype.using=function(t){return this.dataManager=t,this},t.prototype.execute=function(t,e,i,r){return(t=t||this.dataManager)?t.executeQuery(this,e,i,r):Je.throwError('Query - execute() : dataManager needs to be is set using "using" function or should be passed as argument')},t.prototype.executeLocal=function(t){return(t=t||this.dataManager)?t.executeLocal(this):Je.throwError('Query - executeLocal() : dataManager needs to be is set using "using" function or should be passed as argument')},t.prototype.clone=function(){var e=new t;return e.queries=this.queries.slice(0),e.key=this.key,e.isChild=this.isChild,e.dataManager=this.dataManager,e.fromTable=this.fromTable,e.params=this.params.slice(0),e.expands=this.expands.slice(0),e.sortedColumns=this.sortedColumns.slice(0),e.groupedColumns=this.groupedColumns.slice(0),e.subQuerySelector=this.subQuerySelector,e.subQuery=this.subQuery,e.fKey=this.fKey,e.isCountRequired=this.isCountRequired,e.distincts=this.distincts.slice(0),e.lazyLoad=this.lazyLoad.slice(0),e},t.prototype.from=function(t){return this.fromTable=t,this},t.prototype.addParams=function(t,e){return"function"==typeof e?this.params.push({key:t,fn:e}):this.params.push({key:t,value:e}),this},t.prototype.distinct=function(t){return this.distincts="string"==typeof t?[].slice.call([t],0):t.slice(0),this},t.prototype.expand=function(t){return this.expands="string"==typeof t?[].slice.call([t],0):t.slice(0),this},t.prototype.where=function(t,e,i,r,n,o){e=e?e.toLowerCase():null;var s=null;return"string"==typeof t?s=new qe(t,e,i,r,n,o):t instanceof qe&&(s=t),this.queries.push({fn:"onWhere",e:s}),this},t.prototype.search=function(t,e,i,r,n){"string"==typeof e&&(e=[e]),i&&"none"!==i||(i="contains");var o=Je.fnOperators[i];return this.queries.push({fn:"onSearch",e:{fieldNames:e,operator:i,searchKey:t,ignoreCase:r,ignoreAccent:n,comparer:o}}),this},t.prototype.sortBy=function(t,e,i){return this.sortByForeignKey(t,e,i)},t.prototype.sortByForeignKey=function(e,i,r,n){var o,s,a=L(n)?"ascending":n;if("string"==typeof e&&Je.endsWith(e.toLowerCase()," desc")&&(e=e.replace(/ desc$/i,""),i="descending"),i&&"string"!=typeof i||(a=i?i.toLowerCase():"ascending",i=Je.fnSort(i)),r){o=t.filterQueries(this.queries,"onSortBy");for(var u=0;u<o.length;u++)if("string"==typeof(s=o[u].e.fieldName)){if(s===e)return this}else if(s instanceof Array)for(var c=0;c<s.length;c++)if(s[c]===e||e.toLowerCase()===s[c]+" desc")return this}return this.queries.push({fn:"onSortBy",e:{fieldName:e,comparer:i,direction:a}}),this},t.prototype.sortByDesc=function(t){return this.sortBy(t,"descending")},t.prototype.group=function(t,e,i){return this.sortBy(t,null,!0),this.queries.push({fn:"onGroup",e:{fieldName:t,comparer:e||null,format:i||null}}),this},t.prototype.page=function(t,e){return this.queries.push({fn:"onPage",e:{pageIndex:t,pageSize:e}}),this},t.prototype.range=function(t,e){return this.queries.push({fn:"onRange",e:{start:t,end:e}}),this},t.prototype.take=function(t){return this.queries.push({fn:"onTake",e:{nos:t}}),this},t.prototype.skip=function(t){return this.queries.push({fn:"onSkip",e:{nos:t}}),this},t.prototype.select=function(t){return"string"==typeof t&&(t=[].slice.call([t],0)),this.queries.push({fn:"onSelect",e:{fieldNames:t}}),this},t.prototype.hierarchy=function(t,e){return this.subQuerySelector=e,this.subQuery=t,this},t.prototype.foreignKey=function(t){return this.fKey=t,this},t.prototype.requiresCount=function(){return this.isCountRequired=!0,this},t.prototype.aggregate=function(t,e){return this.queries.push({fn:"onAggregates",e:{field:e,type:t}}),this},t.filterQueries=function(t,e){return t.filter(function(t){return t.fn===e})},t.filterQueryLists=function(t,e){for(var i=t.filter(function(t){return-1!==e.indexOf(t.fn)}),r={},n=0;n<i.length;n++)r[i[n].fn]||(r[i[n].fn]=i[n].e);return r},t}(),qe=function(){function t(e,i,r,n,o,s){return void 0===n&&(n=!1),this.ignoreAccent=!1,this.isComplex=!1,"string"==typeof e?(this.field=e,this.operator=i.toLowerCase(),this.value=r,this.matchCase=s,this.ignoreCase=n,this.ignoreAccent=o,this.isComplex=!1,this.comparer=Je.fnOperators.processOperator(this.operator)):(e instanceof t&&r instanceof t||r instanceof Array)&&(this.isComplex=!0,this.condition=i.toLowerCase(),this.predicates=[e],this.matchCase=e.matchCase,this.ignoreCase=e.ignoreCase,this.ignoreAccent=e.ignoreAccent,r instanceof Array?[].push.apply(this.predicates,r):this.predicates.push(r)),this}return t.and=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.combinePredicates([].slice.call(e,0),"and")},t.prototype.and=function(e,i,r,n,o){return t.combine(this,e,i,r,"and",n,o)},t.or=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.combinePredicates([].slice.call(e,0),"or")},t.prototype.or=function(e,i,r,n,o){return t.combine(this,e,i,r,"or",n,o)},t.ornot=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.combinePredicates([].slice.call(e,0),"or not")},t.prototype.ornot=function(e,i,r,n,o){return t.combine(this,e,i,r,"ornot",n,o)},t.andnot=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.combinePredicates([].slice.call(e,0),"and not")},t.prototype.andnot=function(e,i,r,n,o){return t.combine(this,e,i,r,"andnot",n,o)},t.fromJson=function(t){if(t instanceof Array){for(var e=[],i=0,r=t.length;i<r;i++)e.push(this.fromJSONData(t[i]));return e}var n=t;return this.fromJSONData(n)},t.prototype.validate=function(t){var e,i,r=this.predicates?this.predicates:[];if(!this.isComplex&&this.comparer)return this.condition&&-1!==this.condition.indexOf("not")?(this.condition=""===this.condition.split("not")[0]?void 0:this.condition.split("not")[0],!this.comparer.call(this,Je.getObject(this.field,t),this.value,this.ignoreCase,this.ignoreAccent)):this.comparer.call(this,Je.getObject(this.field,t),this.value,this.ignoreCase,this.ignoreAccent);i=this.condition&&-1!==this.condition.indexOf("not")?-1!==this.condition.indexOf("and"):"and"===this.condition;for(var n=0;n<r.length;n++)if(n>0&&this.condition&&-1!==this.condition.indexOf("not")&&(r[n].condition=r[n].condition?r[n].condition+"not":"not"),e=r[n].validate(t),i){if(!e)return!1}else if(e)return!0;return i},t.prototype.toJson=function(){var t,e;if(this.isComplex){t=[],e=this.predicates;for(var i=0;i<e.length;i++)t.push(e[i].toJson())}return{isComplex:this.isComplex,field:this.field,operator:this.operator,value:this.value,ignoreCase:this.ignoreCase,ignoreAccent:this.ignoreAccent,condition:this.condition,predicates:t,matchCase:this.matchCase}},t.combinePredicates=function(e,i){if(1===e.length){if(!(e[0]instanceof Array))return e[0];e=e[0]}return new t(e[0],i,e.slice(1))},t.combine=function(e,i,r,n,o,s,a){return i instanceof t?t[o](e,i):"string"==typeof i?t[o](e,new t(i,r,n,s,a)):Je.throwError("Predicate - "+o+" : invalid arguments")},t.fromJSONData=function(e){for(var i=e.predicates||[],r=i.length,n=[],o=0;o<r;o++)n.push(this.fromJSONData(i[o]));return e.isComplex?new t(n[0],e.condition,n.slice(1)):new t(e.field,e.operator,e.value,e.ignoreCase,e.ignoreAccent)},t}(),_e={GroupGuid:"{271bbba0-1ee7}"},Je=function(){function t(){}return t.getValue=function(t,e){return"function"==typeof t?t.call(e||{}):t},t.endsWith=function(t,e){return t.slice&&t.slice(-e.length)===e},t.notEndsWith=function(t,e){return t.slice&&t.slice(-e.length)!==e},t.startsWith=function(t,e){return t.slice(0,e.length)===e},t.notStartsWith=function(t,e){return t.slice(0,e.length)!==e},t.wildCard=function(t,e){var i,r;if(-1!==e.indexOf("[")&&(e=e.split("[").join("[[]")),-1!==e.indexOf("(")&&(e=e.split("(").join("[(]")),-1!==e.indexOf(")")&&(e=e.split(")").join("[)]")),-1!==e.indexOf("\\")&&(e=e.split("\\").join("[\\\\]")),-1!==e.indexOf("*")){"*"!==e.charAt(0)&&(e="^"+e),"*"!==e.charAt(e.length-1)&&(e+="$"),i=e.split("*");for(var n=0;n<i.length;n++)-1===i[n].indexOf(".")?i[n]=i[n]+".*":i[n]=i[n]+"*";e=i.join("")}return-1===e.indexOf("%3f")&&-1===e.indexOf("?")||(r=-1!==e.indexOf("%3f")?e.split("%3f"):e.split("?"),e=r.join(".")),new RegExp(e,"g").test(t)},t.like=function(e,i){return-1!==i.indexOf("%")&&("%"===i.charAt(0)&&i.lastIndexOf("%")<2?(i=i.substring(1,i.length),t.startsWith(t.toLowerCase(e),t.toLowerCase(i))):"%"===i.charAt(i.length-1)&&i.indexOf("%")>i.length-3?(i=i.substring(0,i.length-1),t.endsWith(t.toLowerCase(e),t.toLowerCase(i))):i.lastIndexOf("%")!==i.indexOf("%")&&i.lastIndexOf("%")>i.indexOf("%")+1?(i=i.substring(i.indexOf("%")+1,i.lastIndexOf("%")),-1!==e.indexOf(i)):-1!==e.indexOf(i))},t.fnSort=function(e){return"ascending"===(e=e?t.toLowerCase(e):"ascending")?this.fnAscending:this.fnDescending},t.fnAscending=function(t,e){return L(t)&&L(e)||null==e?-1:"string"==typeof t?t.localeCompare(e):null==t?1:t-e},t.fnDescending=function(t,e){return L(t)&&L(e)?-1:null==e?1:"string"==typeof t?-1*t.localeCompare(e):null==t?-1:e-t},t.extractFields=function(t,e){for(var i={},r=0;r<e.length;r++)i=this.setValue(e[r],this.getObject(e[r],t),i);return i},t.select=function(t,e){for(var i=[],r=0;r<t.length;r++)i.push(this.extractFields(t[r],e));return i},t.group=function(e,i,r,n,o,s,a){n=n||1;var u=e,c="GroupGuid";if(u.GroupGuid===_e[c]){for(var h=function(t){if(L(o))u[t].items=l.group(u[t].items,i,r,u.level+1,null,s,a),u[t].count=u[t].items.length;else{var e,n=o.filter(function(e){return e.key===u[t].key});e=o.indexOf(n[0]),u[t].items=l.group(u[t].items,i,r,u.level+1,o[e].items,s,a),u[t].count=o[e].count}},l=this,p=0;p<u.length;p++)h(p);return u.childLevels+=1,u}var g={},d=[];d.GroupGuid=_e[c],d.level=n,d.childLevels=0,d.records=u;for(var f=function(t){var e=M.getVal(u,t,i);if(L(s)||(e=s(e,i)),!g[e]&&(g[e]={key:e,count:0,items:[],aggregates:{},field:i},d.push(g[e]),!L(o))){var n=o.filter(function(t){return t.key===g[e].key});g[e].count=n[0].count}g[e].count=L(o)?g[e].count+=1:g[e].count,(!a||a&&r.length)&&g[e].items.push(u[t])},M=this,y=0;y<u.length;y++)f(y);if(r&&r.length){var m=function(e){for(var i={},n=void 0,s=r,a=0;a<r.length;a++)if(n=t.aggregates[r[a].type],L(o))n&&(i[s[a].field+" - "+s[a].type]=n(d[e].items,s[a].field));else{var u=o.filter(function(t){return t.key===d[e].key});n&&(i[s[a].field+" - "+s[a].type]=n(u[0].items,s[a].field))}d[e].aggregates=i};for(y=0;y<d.length;y++)m(y)}if(a&&d.length&&r.length)for(y=0;y<d.length;y++)d[y].items=[];return u.length&&d||u},t.buildHierarchy=function(t,e,i,r,n){var o,s={};for(r.result&&(r=r.result),r.GroupGuid&&this.throwError("DataManager: Do not have support Grouping in hierarchy"),o=0;o<r.length;o++){(s[a=this.getObject(t,r[o])]||(s[a]=[])).push(r[o])}for(o=0;o<i.length;o++){var a=this.getObject(n||t,i[o]);i[o][e]=s[a]}},t.getFieldList=function(t,e,i){if(void 0===i&&(i=""),null==e)return this.getFieldList(t,[],i);for(var r=t,n=0,o=Object.keys(t);n<o.length;n++){var s=o[n];"object"!=typeof r[s]||r[s]instanceof Array?e.push(i+s):this.getFieldList(r[s],e,i+s+".")}return e},t.getObject=function(t,e){if(!t)return e;if(e){if(-1===t.indexOf(".")){var i=t.charAt(0).toLowerCase()+t.slice(1),r=t.charAt(0).toUpperCase()+t.slice(1);return L(e[t])?L(e[i])?L(e[r])?null:e[r]:e[i]:e[t]}for(var n=e,o=t.split("."),s=0;s<o.length&&null!=n;s++){if(void 0===(n=n[o[s]])){var a=o[s].charAt(0).toUpperCase()+o[s].slice(1);n=e[a]||e[a.charAt(0).toLowerCase()+a.slice(1)]||null}e=n}return n}},t.setValue=function(t,e,i){var r,n,o=t.toString().split("."),s=i||{},a=s,u=o.length;for(r=0;r<u;r++)n=o[r],r+1===u?a[n]=void 0===e?void 0:e:L(a[n])&&(a[n]={}),a=a[n];return s},t.sort=function(t,e,i){if(t.length<=1)return t;var r=parseInt((t.length/2).toString(),10),n=t.slice(0,r),o=t.slice(r);return n=this.sort(n,e,i),o=this.sort(o,e,i),this.merge(n,o,e,i)},t.ignoreDiacritics=function(e){return"string"!=typeof e?e:e.split("").map(function(e){return e in t.diacritics?t.diacritics[e]:e}).join("")},t.merge=function(t,e,i,r){for(var n,o=[];t.length>0||e.length>0;)n=t.length>0&&e.length>0?r?r(this.getVal(t,0,i),this.getVal(e,0,i),t[0],e[0])<=0?t:e:t[0][i]<t[0][i]?t:e:t.length>0?t:e,o.push(n.shift());return o},t.getVal=function(t,e,i){return i?this.getObject(i,t[e]):t[e]},t.toLowerCase=function(t){return t?"string"==typeof t?t.toLowerCase():t.toString():0===t||!1===t?t.toString():""},t.callAdaptorFunction=function(t,e,i,r){if(e in t){var n=t[e](i,r);L(n)||(i=n)}return i},t.getAddParams=function(e,i,r){var n={};return t.callAdaptorFunction(e,"addParams",{dm:i,query:r,params:r.params,reqParams:n}),n},t.isPlainObject=function(t){return!!t&&t.constructor===Object},t.isCors=function(){var t=null;try{t=new window.XMLHttpRequest}catch(t){}return!!t&&"withCredentials"in t},t.getGuid=function(t){var e;return(t||"")+"00000000-0000-4000-0000-000000000000".replace(/0/g,function(t,i){if("crypto"in window&&"getRandomValues"in crypto){var r=new Uint8Array(1);window.crypto.getRandomValues(r),e=r[0]%16|0}else e=16*Math.random()|0;return"0123456789abcdef"[19===i?3&e|8:e]})},t.isNull=function(t){return null==t},t.getItemFromComparer=function(e,i,r){var n,o,s,a=0,u="string"==typeof t.getVal(e,0,i);if(e.length)for(;L(n)&&a<e.length;)n=t.getVal(e,a,i),s=e[a++];for(;a<e.length;a++)L(o=t.getVal(e,a,i))||(u&&(n=+n,o=+o),r(n,o)>0&&(n=o,s=e[a]));return s},t.distinct=function(e,i,r){r=!L(r)&&r;var n,o=[],s={};return e.forEach(function(a,u){(n="object"==typeof e[u]?t.getVal(e,u,i):e[u])in s||(o.push(r?e[u]:n),s[n]=1)}),o},t.processData=function(t,e){var i=this.prepareQuery(t),r=new oi(e);t.requiresCounts&&i.requiresCount();var n=r.executeLocal(i),o={result:t.requiresCounts?n.result:n,count:n.count,aggregates:JSON.stringify(n.aggregates)};return t.requiresCounts?o:n},t.prepareQuery=function(e){var i=this,r=new He;(e.select&&r.select(e.select),e.where)&&t.parse.parseJson(e.where).filter(function(t){if(L(t.condition))r.where(t.field,t.operator,t.value,t.ignoreCase,t.ignoreAccent);else{var e=[];t.field?e.push(new qe(t.field,t.operator,t.value,t.ignoreCase,t.ignoreAccent)):e=e.concat(i.getPredicate(t.predicates)),"or"===t.condition?r.where(qe.or(e)):"and"===t.condition&&r.where(qe.and(e))}});e.search&&t.parse.parseJson(e.search).filter(function(t){return r.search(t.key,t.fields,t.operator,t.ignoreCase,t.ignoreAccent)});return e.aggregates&&e.aggregates.filter(function(t){return r.aggregate(t.type,t.field)}),e.sorted&&e.sorted.filter(function(t){return r.sortBy(t.name,t.direction)}),e.skip&&r.skip(e.skip),e.take&&r.take(e.take),e.group&&e.group.filter(function(t){return r.group(t)}),r},t.getPredicate=function(t){for(var e=[],i=0;i<t.length;i++){var r=t[i];if(r.field)e.push(new qe(r.field,r.operator,r.value,r.ignoreCase,r.ignoreAccent));else{for(var n=[],o=this.getPredicate(r.predicates),s=0,a=Object.keys(o);s<a.length;s++){var u=a[s];n.push(o[u])}e.push("or"===r.condition?qe.or(n):qe.and(n))}}return e},t.serverTimezoneOffset=null,t.timeZoneHandling=!0,t.throwError=function(t){try{throw new Error(t)}catch(t){throw t.message+"\n"+t.stack}},t.aggregates={sum:function(e,i){for(var r,n=0,o="number"!=typeof t.getVal(e,0,i),s=0;s<e.length;s++)r=t.getVal(e,s,i),isNaN(r)||null===r||(o&&(r=+r),n+=r);return n},average:function(e,i){return t.aggregates.sum(e,i)/e.length},min:function(e,i){var r;return"function"==typeof i&&(r=i,i=null),t.getObject(i,t.getItemFromComparer(e,i,r||t.fnAscending))},max:function(e,i){var r;return"function"==typeof i&&(r=i,i=null),t.getObject(i,t.getItemFromComparer(e,i,r||t.fnDescending))},truecount:function(t,e){return new oi(t).executeLocal((new He).where(e,"equal",!0,!0)).length},falsecount:function(t,e){return new oi(t).executeLocal((new He).where(e,"equal",!1,!0)).length},count:function(t,e){return t.length}},t.operatorSymbols={"<":"lessthan",">":"greaterthan","<=":"lessthanorequal",">=":"greaterthanorequal","==":"equal","!=":"notequal","*=":"contains","$=":"endswith","^=":"startswith"},t.odBiOperator={"<":" lt ",">":" gt ","<=":" le ",">=":" ge ","==":" eq ","!=":" ne ",lessthan:" lt ",lessthanorequal:" le ",greaterthan:" gt ",greaterthanorequal:" ge ",equal:" eq ",notequal:" ne "},t.odUniOperator={"$=":"endswith","^=":"startswith","*=":"substringof",endswith:"endswith",startswith:"startswith",contains:"substringof",doesnotendwith:"not endswith",doesnotstartwith:"not startswith",doesnotcontain:"not substringof",wildcard:"wildcard",like:"like"},t.odv4UniOperator={"$=":"endswith","^=":"startswith","*=":"contains",endswith:"endswith",startswith:"startswith",contains:"contains",doesnotendwith:"not endswith",doesnotstartwith:"not startswith",doesnotcontain:"not contains",wildcard:"wildcard",like:"like"},t.diacritics={"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"},t.fnOperators={equal:function(e,i,r,n){return n&&(e=t.ignoreDiacritics(e),i=t.ignoreDiacritics(i)),r?t.toLowerCase(e)===t.toLowerCase(i):e===i},notequal:function(e,i,r,n){return n&&(e=t.ignoreDiacritics(e),i=t.ignoreDiacritics(i)),!t.fnOperators.equal(e,i,r)},lessthan:function(e,i,r){return r?t.toLowerCase(e)<t.toLowerCase(i):(L(e)&&(e=void 0),e<i)},greaterthan:function(e,i,r){return r?t.toLowerCase(e)>t.toLowerCase(i):e>i},lessthanorequal:function(e,i,r){return r?t.toLowerCase(e)<=t.toLowerCase(i):(L(e)&&(e=void 0),e<=i)},greaterthanorequal:function(e,i,r){return r?t.toLowerCase(e)>=t.toLowerCase(i):e>=i},contains:function(e,i,r,n){return n&&(e=t.ignoreDiacritics(e),i=t.ignoreDiacritics(i)),r?!L(e)&&!L(i)&&-1!==t.toLowerCase(e).indexOf(t.toLowerCase(i)):!L(e)&&!L(i)&&-1!==e.toString().indexOf(i)},doesnotcontain:function(e,i,r,n){return n&&(e=t.ignoreDiacritics(e),i=t.ignoreDiacritics(i)),r?!L(e)&&!L(i)&&-1===t.toLowerCase(e).indexOf(t.toLowerCase(i)):!L(e)&&!L(i)&&-1===e.toString().indexOf(i)},isnotnull:function(t){return null!=t},isnull:function(t){return null==t},startswith:function(e,i,r,n){return n&&(e=t.ignoreDiacritics(e),i=t.ignoreDiacritics(i)),r?e&&i&&t.startsWith(t.toLowerCase(e),t.toLowerCase(i)):e&&i&&t.startsWith(e,i)},doesnotstartwith:function(e,i,r,n){return n&&(e=t.ignoreDiacritics(e),i=t.ignoreDiacritics(i)),r?e&&i&&t.notStartsWith(t.toLowerCase(e),t.toLowerCase(i)):e&&i&&t.notStartsWith(e,i)},like:function(e,i,r,n){return n&&(e=t.ignoreDiacritics(e),i=t.ignoreDiacritics(i)),r?e&&i&&t.like(t.toLowerCase(e),t.toLowerCase(i)):e&&i&&t.like(e,i)},isempty:function(t){return void 0===t||""===t},isnotempty:function(t){return void 0!==t&&""!==t},wildcard:function(e,i,r,n){return n&&(e=t.ignoreDiacritics(e),i=t.ignoreDiacritics(i)),r?(e||"boolean"==typeof e)&&i&&"object"!=typeof e&&t.wildCard(t.toLowerCase(e),t.toLowerCase(i)):(e||"boolean"==typeof e)&&i&&t.wildCard(e,i)},endswith:function(e,i,r,n){return n&&(e=t.ignoreDiacritics(e),i=t.ignoreDiacritics(i)),r?e&&i&&t.endsWith(t.toLowerCase(e),t.toLowerCase(i)):e&&i&&t.endsWith(e,i)},doesnotendwith:function(e,i,r,n){return n&&(e=t.ignoreDiacritics(e),i=t.ignoreDiacritics(i)),r?e&&i&&t.notEndsWith(t.toLowerCase(e),t.toLowerCase(i)):e&&i&&t.notEndsWith(e,i)},processSymbols:function(e){var i=t.operatorSymbols[e];return i?t.fnOperators[i]:t.throwError("Query - Process Operator : Invalid operator")},processOperator:function(e){var i=t.fnOperators[e];return i||t.fnOperators.processSymbols(e)}},t.parse={parseJson:function(e){return"string"!=typeof e||!/^[\s]*\[|^[\s]*\{(.)+:/g.test(e)&&-1!==e.indexOf('"')?e instanceof Array?t.parse.iterateAndReviveArray(e):"object"==typeof e&&null!==e&&t.parse.iterateAndReviveJson(e):e=JSON.parse(e,t.parse.jsonReviver),e},iterateAndReviveArray:function(e){for(var i=0;i<e.length;i++)"object"==typeof e[i]&&null!==e[i]?t.parse.iterateAndReviveJson(e[i]):"string"!=typeof e[i]||/^[\s]*\[|^[\s]*\{(.)+:|\"/g.test(e[i])&&-1!==e[i].toString().indexOf('"')?e[i]=t.parse.parseJson(e[i]):e[i]=t.parse.jsonReviver("",e[i])},iterateAndReviveJson:function(e){for(var i,r=0,n=Object.keys(e);r<n.length;r++){var o=n[r];t.startsWith(o,"__")||("object"==typeof(i=e[o])?i instanceof Array?t.parse.iterateAndReviveArray(i):i&&t.parse.iterateAndReviveJson(i):e[o]=t.parse.jsonReviver(e[o],i))}},jsonReviver:function(e,i){if("string"==typeof i){var r=/^\/Date\(([+-]?[0-9]+)([+-][0-9]{4})?\)\/$/.exec(i),n=t.timeZoneHandling?t.serverTimezoneOffset:null;if(r)return t.dateParse.toTimeZone(new Date(parseInt(r[1],10)),n,!0);if(/^(\d{4}\-\d\d\-\d\d([tT][\d:\.]*){1})([zZ]|([+\-])(\d\d):?(\d\d))?$/.test(i)){var o=i.indexOf("Z")>-1||i.indexOf("z")>-1,s=i.split(/[^0-9.]/);if(o){if(s[5].indexOf(".")>-1){var a=s[5].split(".");s[5]=a[0],s[6]=new Date(i).getUTCMilliseconds().toString()}else s[6]="00";i=t.dateParse.toTimeZone(new Date(parseInt(s[0],10),parseInt(s[1],10)-1,parseInt(s[2],10),parseInt(s[3],10),parseInt(s[4],10),parseInt(s[5]?s[5]:"00",10),parseInt(s[6],10)),t.serverTimezoneOffset,!1)}else{var u=new Date(parseInt(s[0],10),parseInt(s[1],10)-1,parseInt(s[2],10),parseInt(s[3],10),parseInt(s[4],10),parseInt(s[5]?s[5]:"00",10)),c=parseInt(s[6],10),h=parseInt(s[7],10);if(isNaN(c)&&isNaN(h))return u;i.indexOf("+")>-1?u.setHours(u.getHours()-c,u.getMinutes()-h):u.setHours(u.getHours()+c,u.getMinutes()+h),i=t.dateParse.toTimeZone(u,t.serverTimezoneOffset,!1)}null==t.serverTimezoneOffset&&(i=t.dateParse.addSelfOffset(i))}}return i},isJson:function(e){return"string"==typeof e[0]?e:t.parse.parseJson(e)},isGuid:function(t){return null!=/[A-Fa-f0-9]{8}(?:-[A-Fa-f0-9]{4}){3}-[A-Fa-f0-9]{12}/i.exec(t)},replacer:function(e,i){return t.isPlainObject(e)?t.parse.jsonReplacer(e,i):e instanceof Array?t.parse.arrayReplacer(e):e instanceof Date?t.parse.jsonReplacer({val:e},i).val:e},jsonReplacer:function(e,i){for(var r,n=0,o=Object.keys(e);n<o.length;n++){var s=o[n];if((r=e[s])instanceof Date){var a=r;null==t.serverTimezoneOffset?e[s]=t.dateParse.toTimeZone(a,null).toJSON():(a=new Date(+a+36e5*t.serverTimezoneOffset),e[s]=t.dateParse.toTimeZone(t.dateParse.addSelfOffset(a),null).toJSON())}}return e},arrayReplacer:function(e){for(var i=0;i<e.length;i++)t.isPlainObject(e[i])?e[i]=t.parse.jsonReplacer(e[i]):e[i]instanceof Date&&(e[i]=t.parse.jsonReplacer({date:e[i]}).date);return e},jsonDateReplacer:function(e,i){if("value"===e&&i){if("string"==typeof i){var r=/^\/Date\(([+-]?[0-9]+)([+-][0-9]{4})?\)\/$/.exec(i);if(r)i=t.dateParse.toTimeZone(new Date(parseInt(r[1],10)),null,!0);else if(/^(\d{4}\-\d\d\-\d\d([tT][\d:\.]*){1})([zZ]|([+\-])(\d\d):?(\d\d))?$/.test(i)){var n=i.split(/[^0-9]/);i=t.dateParse.toTimeZone(new Date(parseInt(n[0],10),parseInt(n[1],10)-1,parseInt(n[2],10),parseInt(n[3],10),parseInt(n[4],10),parseInt(n[5],10)),null,!0)}}if(i instanceof Date)return i=t.dateParse.addSelfOffset(i),null===t.serverTimezoneOffset?t.dateParse.toTimeZone(t.dateParse.addSelfOffset(i),null).toJSON():(i=t.dateParse.toTimeZone(i,i.getTimezoneOffset()/60-t.serverTimezoneOffset,!1)).toJSON()}return i}},t.dateParse={addSelfOffset:function(t){return new Date(+t-6e4*t.getTimezoneOffset())},toUTC:function(t){return new Date(+t+6e4*t.getTimezoneOffset())},toTimeZone:function(e,i,r){if(null===i)return e;var n=r?t.dateParse.toUTC(e):e;return new Date(+n-36e5*i)},toLocalTime:function(t){var e=t,i=-e.getTimezoneOffset(),r=i>=0?"+":"-",n=function(t){var e=Math.floor(Math.abs(t));return(e<10?"0":"")+e};return e.getFullYear()+"-"+n(e.getMonth()+1)+"-"+n(e.getDate())+"T"+n(e.getHours())+":"+n(e.getMinutes())+":"+n(e.getSeconds())+r+n(i/60)+":"+n(i%60)}},t}(),Ze=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Ke={GroupGuid:"{271bbba0-1ee7}"},Xe=function(){function t(e){this.options={from:"table",requestType:"json",sortBy:"sorted",select:"select",skip:"skip",group:"group",take:"take",search:"search",count:"requiresCounts",where:"where",aggregates:"aggregates",expand:"expand"},this.type=t,this.dataSource=e,this.pvt={}}return t.prototype.processResponse=function(t,e,i,r){return t},t}(),$e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ze(e,t),e.prototype.processQuery=function(t,e){for(var i,r,n,o=t.dataSource.json.slice(0),s=o.length,a=!0,u={},c=0,h=[],l=0;l<e.lazyLoad.length;l++)c++,u[e.lazyLoad[l].key]=e.lazyLoad[l].value;var p={};for(l=0;l<e.queries.length;l++)"onPage"!==(r=e.queries[l]).fn&&"onGroup"!==r.fn||!e.lazyLoad.length?(i=this[r.fn].call(this,o,r.e,e),"onAggregates"===r.fn?p[r.e.field+" - "+r.e.type]=i:o=void 0!==i?i:o,"onPage"!==r.fn&&"onSkip"!==r.fn&&"onTake"!==r.fn&&"onRange"!==r.fn||(a=!1),a&&(s=o.length)):("onGroup"===r.fn&&h.push(r.e),"onPage"===r.fn&&(n=r.e));if(c){var g={query:e,lazyLoad:u,result:o,group:h,page:n},d=this.lazyLoadGroup(g);o=d.result,s=d.count}return e.isCountRequired&&(o={result:o,count:s,aggregates:p}),o},e.prototype.lazyLoadGroup=function(t){var e=0,i=this.getAggregate(t.query),r=t.result;if(L(t.lazyLoad.onDemandGroupInfo)){s=t.group[0].fieldName;e=(r=Je.group(r,s,i,null,null,t.group[0].comparer,!0)).length;a=r;t.page&&(r=this.onPage(r,t.page,t.query)),this.formGroupResult(r,a)}else{for(var n=t.lazyLoad.onDemandGroupInfo,o=n.where.length-1;o>=0;o--)r=this.onWhere(r,n.where[o]);if(t.group.length!==n.level){var s=t.group[n.level].fieldName;r=Je.group(r,s,i,null,null,t.group[0].comparer,!0)}e=r.length;var a=r;r=(r=r.slice(n.skip)).slice(0,n.take),t.group.length!==n.level&&this.formGroupResult(r,a)}return{result:r,count:e}},e.prototype.formGroupResult=function(t,e){if(t.length&&e.length){var i="GroupGuid",r="childLevels",n="level",o="records";t[i]=e[i],t[r]=e[r],t[n]=e[n],t[o]=e[o]}return t},e.prototype.getAggregate=function(t){var e=He.filterQueries(t.queries,"onAggregates"),i=[];if(e.length)for(var r=void 0,n=0;n<e.length;n++)r=e[n].e,i.push({type:r.type,field:Je.getValue(r.field,t)});return i},e.prototype.batchRequest=function(t,e,i){var r,n=e.deletedRecords.length;for(r=0;r<e.addedRecords.length;r++)this.insert(t,e.addedRecords[r]);for(r=0;r<e.changedRecords.length;r++)this.update(t,i.key,e.changedRecords[r]);for(r=0;r<n;r++)this.remove(t,i.key,e.deletedRecords[r]);return e},e.prototype.onWhere=function(t,e){return t&&t.length?t.filter(function(t){if(e)return e.validate(t)}):t},e.prototype.onAggregates=function(t,e){var i=Je.aggregates[e.type];return t&&i&&0!==t.length?i(t,e.field):null},e.prototype.onSearch=function(t,e){return t&&t.length?(0===e.fieldNames.length&&Je.getFieldList(t[0],e.fieldNames),t.filter(function(t){for(var i=0;i<e.fieldNames.length;i++)if(e.comparer.call(t,Je.getObject(e.fieldNames[i],t),e.searchKey,e.ignoreCase,e.ignoreAccent))return!0;return!1})):t},e.prototype.onSortBy=function(t,e,i){if(!t||!t.length)return t;var r,n=Je.getValue(e.fieldName,i);if(!n)return t.sort(e.comparer);if(n instanceof Array){for(var o=(n=n.slice(0)).length-1;o>=0;o--)n[o]&&(r=e.comparer,Je.endsWith(n[o]," desc")&&(r=Je.fnSort("descending"),n[o]=n[o].replace(" desc","")),t=Je.sort(t,n[o],r));return t}return Je.sort(t,n,e.comparer)},e.prototype.onGroup=function(t,e,i){if(!t||!t.length)return t;var r=this.getAggregate(i);return Je.group(t,Je.getValue(e.fieldName,i),r,null,null,e.comparer)},e.prototype.onPage=function(t,e,i){var r=Je.getValue(e.pageSize,i),n=(Je.getValue(e.pageIndex,i)-1)*r,o=n+r;return t&&t.length?t.slice(n,o):t},e.prototype.onRange=function(t,e){return t&&t.length?t.slice(Je.getValue(e.start),Je.getValue(e.end)):t},e.prototype.onTake=function(t,e){return t&&t.length?t.slice(0,Je.getValue(e.nos)):t},e.prototype.onSkip=function(t,e){return t&&t.length?t.slice(Je.getValue(e.nos)):t},e.prototype.onSelect=function(t,e){return t&&t.length?Je.select(t,Je.getValue(e.fieldNames)):t},e.prototype.insert=function(t,e,i,r,n){return L(n)?t.dataSource.json.push(e):t.dataSource.json.splice(n,0,e)},e.prototype.remove=function(t,e,i,r){var n,o=t.dataSource.json;for("object"!=typeof i||i instanceof Date||(i=Je.getObject(e,i)),n=0;n<o.length&&Je.getObject(e,o[n])!==i;n++);return n!==o.length?o.splice(n,1):null},e.prototype.update=function(t,e,i,r){var n,o,s=t.dataSource.json;for(L(e)||(o=v(e,i)),n=0;n<s.length&&(L(e)||v(e,s[n])!==o);n++);return n<s.length?O(s[n],i):null},e}(Xe),ti=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ze(e,t),e.prototype.processQuery=function(t,e,i){var r,n,o=this.getQueryRequest(e),s=He.filterQueryLists(e.queries,["onSelect","onPage","onSkip","onTake","onRange"]),a=e.params,u=t.dataSource.url,c=null,h=this.options,l={sorts:[],groups:[],filters:[],searches:[],aggregates:[]};"onPage"in s?(r=s.onPage,n=((n=Je.getValue(r.pageIndex,e))-1)*(c=Je.getValue(r.pageSize,e))):"onRange"in s&&(n=(r=s.onRange).start,c=r.end-r.start);for(var p=0;p<o.sorts.length;p++)r=Je.getValue(o.sorts[p].e.fieldName,e),l.sorts.push(Je.callAdaptorFunction(this,"onEachSort",{name:r,direction:o.sorts[p].e.direction},e));i&&(r=this.getFiltersFrom(i,e))&&l.filters.push(Je.callAdaptorFunction(this,"onEachWhere",r.toJson(),e));for(p=0;p<o.filters.length;p++){var g=Je.callAdaptorFunction(this,"onEachWhere",o.filters[p].e.toJson(),e);this.getModuleName&&"ODataV4Adaptor"===this.getModuleName()&&!L(o.filters[p].e.key)&&o.filters.length>1&&(g="("+g+")"),l.filters.push(g);for(var d=0,f="object"==typeof l.filters[p]?Object.keys(l.filters[p]):[];d<f.length;d++){var M=f[d];Je.isNull(l[M])&&delete l[M]}}for(p=0;p<o.searches.length;p++)r=o.searches[p].e,l.searches.push(Je.callAdaptorFunction(this,"onEachSearch",{fields:r.fieldNames,operator:r.operator,key:r.searchKey,ignoreCase:r.ignoreCase},e));for(p=0;p<o.groups.length;p++)l.groups.push(Je.getValue(o.groups[p].e.fieldName,e));for(p=0;p<o.aggregates.length;p++)r=o.aggregates[p].e,l.aggregates.push({type:r.type,field:Je.getValue(r.field,e)});var y={};if(this.getRequestQuery(h,e,s,l,y),Je.callAdaptorFunction(this,"addParams",{dm:t,query:e,params:a,reqParams:y}),e.lazyLoad.length)for(p=0;p<e.lazyLoad.length;p++)y[e.lazyLoad[p].key]=e.lazyLoad[p].value;for(var m=0,N=Object.keys(y);m<N.length;m++){M=N[m];(Je.isNull(y[M])||""===y[M]||0===y[M].length)&&delete y[M]}h.skip in y&&h.take in y||null===c||(y[h.skip]=Je.callAdaptorFunction(this,"onSkip",n,e),y[h.take]=Je.callAdaptorFunction(this,"onTake",c,e));var j=this.pvt;return this.pvt={},"json"===this.options.requestType?{data:JSON.stringify(y,Je.parse.jsonDateReplacer),url:u,pvtData:j,type:"POST",contentType:"application/json; charset=utf-8"}:(r=this.convertToQueryString(y,e,t),{type:"GET",url:(r=(-1!==t.dataSource.url.indexOf("?")?"&":"/")+r).length?u.replace(/\/*$/,r):u,pvtData:j})},e.prototype.getRequestQuery=function(t,e,i,r,n){var o=n;o[t.from]=e.fromTable,t.apply&&e.distincts.length&&(o[t.apply]="onDistinct"in this?Je.callAdaptorFunction(this,"onDistinct",e.distincts):""),!e.distincts.length&&t.expand&&(o[t.expand]="onExpand"in this&&"onSelect"in i?Je.callAdaptorFunction(this,"onExpand",{selects:Je.getValue(i.onSelect.fieldNames,e),expands:e.expands},e):e.expands),o[t.select]="onSelect"in i&&!e.distincts.length?Je.callAdaptorFunction(this,"onSelect",Je.getValue(i.onSelect.fieldNames,e),e):"",o[t.count]=e.isCountRequired?Je.callAdaptorFunction(this,"onCount",e.isCountRequired,e):"",o[t.search]=r.searches.length?Je.callAdaptorFunction(this,"onSearch",r.searches,e):"",o[t.skip]="onSkip"in i?Je.callAdaptorFunction(this,"onSkip",Je.getValue(i.onSkip.nos,e),e):"",o[t.take]="onTake"in i?Je.callAdaptorFunction(this,"onTake",Je.getValue(i.onTake.nos,e),e):"",o[t.where]=r.filters.length||r.searches.length?Je.callAdaptorFunction(this,"onWhere",r.filters,e):"",o[t.sortBy]=r.sorts.length?Je.callAdaptorFunction(this,"onSortBy",r.sorts,e):"",o[t.group]=r.groups.length?Je.callAdaptorFunction(this,"onGroup",r.groups,e):"",o[t.aggregates]=r.aggregates.length?Je.callAdaptorFunction(this,"onAggregates",r.aggregates,e):"",o.param=[]},e.prototype.convertToQueryString=function(t,e,i){return""},e.prototype.processResponse=function(t,e,i,r,n,o){if(r&&r.headers.get("Content-Type")&&-1!==r.headers.get("Content-Type").indexOf("application/json")){var s=Je.timeZoneHandling;e&&!e.timeZoneHandling&&(Je.timeZoneHandling=!1),t=Je.parse.parseJson(t),Je.timeZoneHandling=s}var a=n,u=a.pvtData||{},c=t?t.groupDs:[];if(r&&r.headers.get("Content-Type")&&-1!==r.headers.get("Content-Type").indexOf("xml"))return i.isCountRequired?{result:[],count:0}:[];var h=JSON.parse(a.data);if(h&&"batch"===h.action&&t&&t.addedRecords)return o.addedRecords=t.addedRecords,o;t&&t.d&&(t=t.d);var l={};t&&"count"in t&&(l.count=t.count),l.result=t&&t.result?t.result:t;var p=!1;if(Array.isArray(t.result)&&t.result.length){if(L(t.result[0].key)||(l.result=this.formRemoteGroupedData(l.result,1,u.groups.length-1)),i&&i.lazyLoad.length&&u.groups.length)for(var g=0;g<i.lazyLoad.length;g++)if("onDemandGroupInfo"===i.lazyLoad[g].key){var d=i.lazyLoad[g].value.level;u.groups.length===d&&(p=!0)}}return p||this.getAggregateResult(u,t,l,c,i),Je.isNull(l.count)?l.result:{result:l.result,count:l.count,aggregates:l.aggregates}},e.prototype.formRemoteGroupedData=function(t,e,i){for(var r=0;r<t.length;r++)t[r].items.length&&Object.keys(t[r].items[0]).indexOf("key")>-1&&this.formRemoteGroupedData(t[r].items,e+1,i-1);var n="GroupGuid",o="records";return t[n]=Ke[n],t.level=e,t.childLevels=i,t[o]=t[0].items.length?this.getGroupedRecords(t,!L(t[0].items[o])):[],t},e.prototype.getGroupedRecords=function(t,e){for(var i=[],r=0;r<t.length;r++)if(e)i=i.concat(t[r].items.records);else for(var n=0;n<t[r].items.length;n++)i.push(t[r].items[n]);return i},e.prototype.onGroup=function(t){return this.pvt.groups=t,t},e.prototype.onAggregates=function(t){this.pvt.aggregates=t},e.prototype.batchRequest=function(t,e,i,r,n){return{type:"POST",url:t.dataSource.batchUrl||t.dataSource.crudUrl||t.dataSource.removeUrl||t.dataSource.url,contentType:"application/json; charset=utf-8",dataType:"json",data:JSON.stringify(T({},{changed:e.changedRecords,added:e.addedRecords,deleted:e.deletedRecords,action:"batch",table:i[undefined],key:i[undefined]},Je.getAddParams(this,t,r)))}},e.prototype.beforeSend=function(t,e){},e.prototype.insert=function(t,e,i,r){return{url:t.dataSource.insertUrl||t.dataSource.crudUrl||t.dataSource.url,data:JSON.stringify(T({},{value:e,table:i,action:"insert"},Je.getAddParams(this,t,r)))}},e.prototype.remove=function(t,e,i,r,n){return{type:"POST",url:t.dataSource.removeUrl||t.dataSource.crudUrl||t.dataSource.url,data:JSON.stringify(T({},{key:i,keyColumn:e,table:r,action:"remove"},Je.getAddParams(this,t,n)))}},e.prototype.update=function(t,e,i,r,n){return{type:"POST",url:t.dataSource.updateUrl||t.dataSource.crudUrl||t.dataSource.url,data:JSON.stringify(T({},{value:i,action:"update",keyColumn:e,key:Je.getObject(e,i),table:r},Je.getAddParams(this,t,n)))}},e.prototype.getFiltersFrom=function(t,e){var i,r=e.fKey,n=r,o=e.key,s=[];"object"!=typeof t[0]&&(n=null);for(var a=0;a<t.length;a++)i="object"==typeof t[0]?Je.getObject(o||n,t[a]):t[a],s.push(new qe(r,"equal",i));return qe.or(s)},e.prototype.getAggregateResult=function(t,e,i,r,n){var o=e;if(e&&e.result&&(o=e.result),t&&t.aggregates&&t.aggregates.length){var s=t.aggregates,a=void 0,u=o,c={};e.aggregate&&(u=e.aggregate);for(var h=0;h<s.length;h++)(a=Je.aggregates[s[h].type])&&(c[s[h].field+" - "+s[h].type]=a(u,s[h].field));i.aggregates=c}var l=Array.isArray(e.result)&&e.result.length&&!L(e.result[0].key);if(t&&t.groups&&t.groups.length&&!l){var p=t.groups;for(h=0;h<p.length;h++){L(r)||(r=Je.group(r,p[h]));var g=He.filterQueries(n.queries,"onGroup")[h].e;o=Je.group(o,p[h],t.aggregates,null,r,g.comparer)}i.result=o}return i},e.prototype.getQueryRequest=function(t){var e={sorts:[],groups:[],filters:[],searches:[],aggregates:[]};return e.sorts=He.filterQueries(t.queries,"onSortBy"),e.groups=He.filterQueries(t.queries,"onGroup"),e.filters=He.filterQueries(t.queries,"onWhere"),e.searches=He.filterQueries(t.queries,"onSearch"),e.aggregates=He.filterQueries(t.queries,"onAggregates"),e},e.prototype.addParams=function(t){var e=t.reqParams;t.params.length&&(e.params={});for(var i=0,r=t.params;i<r.length;i++){var n=r[i];if(e[n.key])throw new Error("Query() - addParams: Custom Param is conflicting other request arguments");e[n.key]=n.value,n.fn&&(e[n.key]=n.fn.call(t.query,n.key,t.query,t.dm)),e.params[n.key]=e[n.key]}},e}(Xe),ei=function(t){function e(e){var i=t.call(this)||this;return i.options=T({},i.options,{requestType:"get",accept:"application/json;odata=light;q=1,application/json;odata=verbose;q=0.5",multipartAccept:"multipart/mixed",sortBy:"$orderby",select:"$select",skip:"$skip",take:"$top",count:"$inlinecount",where:"$filter",expand:"$expand",batch:"$batch",changeSet:"--changeset_",batchPre:"batch_",contentId:"Content-Id: ",batchContent:"Content-Type: multipart/mixed; boundary=",changeSetContent:"Content-Type: application/http\nContent-Transfer-Encoding: binary ",batchChangeSetContentType:"Content-Type: application/json; charset=utf-8 ",updateType:"PUT"}),T(i.options,e||{}),i}return Ze(e,t),e.prototype.getModuleName=function(){return"ODataAdaptor"},e.prototype.onPredicate=function(t,i,r){var n,o,s="",a=t.value,u=typeof a,c=t.field?e.getField(t.field):null;if(a instanceof Date&&(a="datetime'"+Je.parse.replacer(a)+"'"),"string"===u&&(a=a.replace(/'/g,"''"),t.ignoreCase&&(a=a.toLowerCase()),"like"!==t.operator&&(a=encodeURIComponent(a)),"wildcard"!==t.operator&&"like"!==t.operator&&(a="'"+a+"'"),r&&(c="cast("+c+", 'Edm.String')"),Je.parse.isGuid(a)&&(o="guid"),t.ignoreCase&&(o||(c="tolower("+c+")"),a=a.toLowerCase())),"isempty"===t.operator||"isnull"===t.operator||"isnotempty"===t.operator||"isnotnull"===t.operator?(n=-1!==t.operator.indexOf("isnot")?Je.odBiOperator.notequal:Je.odBiOperator.equal,a="isnull"===t.operator||"isnotnull"===t.operator?null:"''"):n=Je.odBiOperator[t.operator],n)return s+=c,s+=n,o&&(s+=o),s+a;if("like"===(n=L(this.getModuleName)||"ODataV4Adaptor"!==this.getModuleName()?Je.odUniOperator[t.operator]:Je.odv4UniOperator[t.operator]))-1!==a.indexOf("%")&&("%"===a.charAt(0)&&a.lastIndexOf("%")<2?(a=a.substring(1,a.length),n=L(this.getModuleName)||"ODataV4Adaptor"!==this.getModuleName()?Je.odUniOperator.startswith:Je.odv4UniOperator.startswith):"%"===a.charAt(a.length-1)&&a.indexOf("%")>a.length-3?(a=a.substring(0,a.length-1),n=L(this.getModuleName)||"ODataV4Adaptor"!==this.getModuleName()?Je.odUniOperator.endswith:Je.odv4UniOperator.endswith):a.lastIndexOf("%")!==a.indexOf("%")&&a.lastIndexOf("%")>a.indexOf("%")+1?(a=a.substring(a.indexOf("%")+1,a.lastIndexOf("%")),n=L(this.getModuleName)||"ODataV4Adaptor"!==this.getModuleName()?Je.odUniOperator.contains:Je.odv4UniOperator.contains):n=L(this.getModuleName)||"ODataV4Adaptor"!==this.getModuleName()?Je.odUniOperator.contains:Je.odv4UniOperator.contains),a="'"+(a=encodeURIComponent(a))+"'";else if("wildcard"===n)if(-1!==a.indexOf("*")){var h=a.split("*"),l=void 0,p=0;if(0!==a.indexOf("*")&&-1===h[0].indexOf("%3f")&&-1===h[0].indexOf("?")&&(l="'"+(l=h[0])+"'",s+=(n=L(this.getModuleName)||"ODataV4Adaptor"!==this.getModuleName()?Je.odUniOperator.startswith:Je.odv4UniOperator.startswith)+"(",s+=c+",",o&&(s+=o),s+=l+")",p++),a.lastIndexOf("*")!==a.length-1&&-1===h[h.length-1].indexOf("%3f")&&-1===h[h.length-1].indexOf("?")&&(l="'"+(l=h[h.length-1])+"'",p>0&&(s+=" and "),s+=(n=L(this.getModuleName)||"ODataV4Adaptor"!==this.getModuleName()?Je.odUniOperator.endswith:Je.odv4UniOperator.endswith)+"(",s+=c+",",o&&(s+=o),s+=l+")",p++),h.length>2)for(var g=1;g<h.length-1;g++)if(-1===h[g].indexOf("%3f")&&-1===h[g].indexOf("?")){if(l="'"+(l=h[g])+"'",p>0&&(s+=" and "),"substringof"===(n=L(this.getModuleName)||"ODataV4Adaptor"!==this.getModuleName()?Je.odUniOperator.contains:Je.odv4UniOperator.contains)||"not substringof"===n){var d=l;l=c,c=d}s+=n+"(",s+=c+",",o&&(s+=o),s+=l+")",p++}0===p?(n=L(this.getModuleName)||"ODataV4Adaptor"!==this.getModuleName()?Je.odUniOperator.contains:Je.odv4UniOperator.contains,-1===a.indexOf("?")&&-1===a.indexOf("%3f")||(a=-1!==a.indexOf("?")?a.split("?").join(""):a.split("%3f").join("")),a="'"+a+"'"):n="wildcard"}else n=L(this.getModuleName)||"ODataV4Adaptor"!==this.getModuleName()?Je.odUniOperator.contains:Je.odv4UniOperator.contains,-1===a.indexOf("?")&&-1===a.indexOf("%3f")||(a=-1!==a.indexOf("?")?a.split("?").join(""):a.split("%3f").join("")),a="'"+a+"'";if("substringof"===n||"not substringof"===n){d=a;a=c,c=d}return"wildcard"!==n&&(s+=n+"(",s+=c+",",o&&(s+=o),s+=a+")"),s},e.prototype.addParams=function(e){t.prototype.addParams.call(this,e),delete e.reqParams.params},e.prototype.onComplexPredicate=function(t,e,i){for(var r=[],n=0;n<t.predicates.length;n++)r.push("("+this.onEachWhere(t.predicates[n],e,i)+")");return r.join(" "+t.condition+" ")},e.prototype.onEachWhere=function(t,e,i){return t.isComplex?this.onComplexPredicate(t,e,i):this.onPredicate(t,e,i)},e.prototype.onWhere=function(t){return this.pvt.search&&t.push(this.onEachWhere(this.pvt.search,null,!0)),t.join(" and ")},e.prototype.onEachSearch=function(t){t.fields&&0===t.fields.length&&Je.throwError("Query() - Search : oData search requires list of field names to search");for(var e=this.pvt.search||[],i=0;i<t.fields.length;i++)e.push(new qe(t.fields[i],t.operator,t.key,t.ignoreCase));this.pvt.search=e},e.prototype.onSearch=function(t){return this.pvt.search=qe.or(this.pvt.search),""},e.prototype.onEachSort=function(t){var i=[];if(t.name instanceof Array)for(var r=0;r<t.name.length;r++)i.push(e.getField(t.name[r])+("descending"===t.direction?" desc":""));else i.push(e.getField(t.name)+("descending"===t.direction?" desc":""));return i.join(",")},e.prototype.onSortBy=function(t){return t.reverse().join(",")},e.prototype.onGroup=function(t){return this.pvt.groups=t,[]},e.prototype.onSelect=function(t){for(var i=0;i<t.length;i++)t[i]=e.getField(t[i]);return t.join(",")},e.prototype.onAggregates=function(t){return this.pvt.aggregates=t,""},e.prototype.onCount=function(t){return!0===t?"allpages":""},e.prototype.beforeSend=function(t,e,i){Je.endsWith(i.url,this.options.batch)&&"post"===i.type.toLowerCase()?(e.headers.set("Accept",this.options.multipartAccept),e.headers.set("DataServiceVersion","2.0")):e.headers.set("Accept",this.options.accept),e.headers.set("DataServiceVersion","2.0"),e.headers.set("MaxDataServiceVersion","2.0")},e.prototype.processResponse=function(t,e,i,r,n,o){var s="odata.metadata";if(n&&"GET"===n.type&&!this.rootUrl&&t[s]){var a=t[s].split("/$metadata#");this.rootUrl=a[0],this.resourceTableName=a[1]}if(!L(t.d)){var u=i&&i.isCountRequired?t.d.results:t.d,c="__metadata";if(!L(u))for(var h=0;h<u.length;h++)L(u[h][c])||delete u[h][c]}var l=n&&n.pvtData,p=this.processBatchResponse(t,i,r,n,o);if(p)return p;var g=r&&n.fetchRequest.headers.get("DataServiceVersion"),d=null,f=g&&parseInt(g,10)||2;if(i&&i.isCountRequired){var M="__count";(t[M]||t["odata.count"])&&(d=t[M]||t["odata.count"]),t.d&&(t=t.d),(t[M]||t["odata.count"])&&(d=t[M]||t["odata.count"])}3===f&&t.value&&(t=t.value),t.d&&(t=t.d),f<3&&t.results&&(t=t.results);var y={};return y.count=d,y.result=t,this.getAggregateResult(l,t,y,null,i),Je.isNull(d)?y.result:{result:y.result,count:y.count,aggregates:y.aggregates}},e.prototype.convertToQueryString=function(t,e,i){var r=[],n="table",o=t[n]||"";delete t[n],i.dataSource.requiresFormat&&(t.$format="json");for(var s=0,a=Object.keys(t);s<a.length;s++){var u=a[s];r.push(u+"="+t[u])}return r=r.join("&"),i.dataSource.url&&-1!==i.dataSource.url.indexOf("?")&&!o?r:r.length?o+"?"+r:o||""},e.prototype.localTimeReplacer=function(t,e){for(var i=0,r=L(e)?[]:Object.keys(e);i<r.length;i++){var n=r[i];e[n]instanceof Date&&(e[n]=Je.dateParse.toLocalTime(e[n]))}return e},e.prototype.insert=function(t,e,i){return{url:(t.dataSource.insertUrl||t.dataSource.url).replace(/\/*$/,i?"/"+i:""),data:JSON.stringify(e,this.options.localTime?this.localTimeReplacer:null)}},e.prototype.remove=function(t,e,i,r){var n;return n="string"!=typeof i||Je.parse.isGuid(i)?"("+i+")":"('"+i+"')",{type:"DELETE",url:(t.dataSource.removeUrl||t.dataSource.url).replace(/\/*$/,r?"/"+r:"")+n}},e.prototype.update=function(t,e,i,r,n,o){var s;return"PATCH"!==this.options.updateType||L(o)||(i=this.compareAndRemove(i,o,e)),s="string"!=typeof i[e]||Je.parse.isGuid(i[e])?"("+i[e]+")":"('"+i[e]+"')",{type:this.options.updateType,url:(t.dataSource.updateUrl||t.dataSource.url).replace(/\/*$/,r?"/"+r:"")+s,data:JSON.stringify(i,this.options.localTime?this.localTimeReplacer:null),accept:this.options.accept}},e.prototype.batchRequest=function(t,e,i,r,n){var o=i.guid=Je.getGuid(this.options.batchPre),s=this.rootUrl?this.rootUrl+"/"+this.options.batch:t.dataSource.url.replace(/\/*$/,"/"+this.options.batch);i.url=this.resourceTableName?this.resourceTableName:i.url;var a={url:i.url,key:i.key,cid:1,cSet:Je.getGuid(this.options.changeSet)},u="--"+o+"\n";return u+="Content-Type: multipart/mixed; boundary="+a.cSet.replace("--","")+"\n",this.pvt.changeSet=0,u+=this.generateInsertRequest(e.addedRecords,a,t),u+=this.generateUpdateRequest(e.changedRecords,a,t,n?n.changedRecords:[]),u+=this.generateDeleteRequest(e.deletedRecords,a,t),u+=a.cSet+"--\n",{type:"POST",url:s,dataType:"json",contentType:"multipart/mixed; charset=UTF-8;boundary="+o,data:u+="--"+o+"--"}},e.prototype.generateDeleteRequest=function(t,e,i){if(!t)return"";var r={method:"DELETE ",url:function(t,e,i){var r=Je.getObject(i,t[e]);return"number"==typeof r||Je.parse.isGuid(r)?"("+r+")":r instanceof Date?"("+t[e][i].toJSON()+")":"('"+r+"')"},data:function(t,e){return""}};return this.generateBodyContent(t,e,r,i)+"\n"},e.prototype.generateInsertRequest=function(t,e,i){if(!t)return"";var r={method:"POST ",url:function(t,e,i){return""},data:function(t,e){return JSON.stringify(t[e])+"\n\n"}};return this.generateBodyContent(t,e,r,i)},e.prototype.generateUpdateRequest=function(t,e,i,r){var n=this;if(!t)return"";t.forEach(function(t){return t=n.compareAndRemove(t,r.filter(function(i){return Je.getObject(e.key,i)===Je.getObject(e.key,t)})[0],e.key)});var o={method:this.options.updateType+" ",url:function(t,e,i){return"number"==typeof t[e][i]||Je.parse.isGuid(t[e][i])?"("+t[e][i]+")":t[e][i]instanceof Date?"("+t[e][i].toJSON()+")":"('"+t[e][i]+"')"},data:function(t,e){return JSON.stringify(t[e])+"\n\n"}};return this.generateBodyContent(t,e,o,i)},e.getField=function(t){return t.replace(/\./g,"/")},e.prototype.generateBodyContent=function(t,e,i,r){for(var n="",o=0;o<t.length;o++)n+="\n"+e.cSet+"\n",n+=this.options.changeSetContent+"\n\n",n+=i.method,"POST "===i.method?n+=(r.dataSource.insertUrl||r.dataSource.crudUrl||e.url)+i.url(t,o,e.key)+" HTTP/1.1\n":"PUT "===i.method||"PATCH "===i.method?n+=(r.dataSource.updateUrl||r.dataSource.crudUrl||e.url)+i.url(t,o,e.key)+" HTTP/1.1\n":"DELETE "===i.method&&(n+=(r.dataSource.removeUrl||r.dataSource.crudUrl||e.url)+i.url(t,o,e.key)+" HTTP/1.1\n"),n+="Accept: "+this.options.accept+"\n",n+="Content-Id: "+this.pvt.changeSet+++"\n",n+=this.options.batchChangeSetContentType+"\n",L(t[o]["@odata.etag"])?n+="\n":(n+="If-Match: "+t[o]["@odata.etag"]+"\n\n",delete t[o]["@odata.etag"]),n+=i.data(t,o);return n},e.prototype.processBatchResponse=function(t,e,i,r,n){if(i&&i.headers.get("Content-Type")&&-1!==i.headers.get("Content-Type").indexOf("xml"))return e.isCountRequired?{result:[],count:0}:[];if(r&&this.options.batch&&Je.endsWith(r.url,this.options.batch)&&"post"===r.type.toLowerCase()){var o=i.headers.get("Content-Type"),s=void 0,a=void 0,u=t+"";if(o=o.substring(o.indexOf("=batchresponse")+1),(u=u.split(o)).length<2)return{};u=u[1];var c=/(?:\bContent-Type.+boundary=)(changesetresponse.+)/i.exec(u);c&&u.replace(c[0],"");for(var h=c?c[1]:"",l=(u=u.split(h)).length;l>-1;l--)/\bContent-ID:/i.test(u[l])&&/\bHTTP.+201/.test(u[l])&&(s=parseInt(/\bContent-ID: (\d+)/i.exec(u[l])[1],10),n.addedRecords[s]&&(a=Je.parse.parseJson(/^\{.+\}/m.exec(u[l])[0]),T({},n.addedRecords[s],this.processResponse(a))));return n}return null},e.prototype.compareAndRemove=function(t,e,i){var r=this;return L(e)||Object.keys(t).forEach(function(n){n!==i&&"@odata.etag"!==n&&(Je.isPlainObject(t[n])?(r.compareAndRemove(t[n],e[n]),0===Object.keys(t[n]).filter(function(t){return"@odata.etag"!==t}).length&&delete t[n]):(t[n]===e[n]||t[n]&&e[n]&&t[n].valueOf()===e[n].valueOf())&&delete t[n])}),t},e}(ti);!function(t){function e(e){var i=t.call(this,e)||this;return i.options=T({},i.options,{requestType:"get",accept:"application/json, text/javascript, */*; q=0.01",multipartAccept:"multipart/mixed",sortBy:"$orderby",select:"$select",skip:"$skip",take:"$top",count:"$count",search:"$search",where:"$filter",expand:"$expand",batch:"$batch",changeSet:"--changeset_",batchPre:"batch_",contentId:"Content-Id: ",batchContent:"Content-Type: multipart/mixed; boundary=",changeSetContent:"Content-Type: application/http\nContent-Transfer-Encoding: binary ",batchChangeSetContentType:"Content-Type: application/json; charset=utf-8 ",updateType:"PATCH",localTime:!1,apply:"$apply"}),T(i.options,e||{}),i}Ze(e,t),e.prototype.getModuleName=function(){return"ODataV4Adaptor"},e.prototype.onCount=function(t){return!0===t?"true":""},e.prototype.onPredicate=function(e,i,r){var n="",o=e.value,s=o instanceof Date;if(i instanceof He)for(var a=this.getQueryRequest(i),u=0;u<a.filters.length;u++)a.filters[u].e.key===e.value&&(r=!0);return n=t.prototype.onPredicate.call(this,e,i,r),s&&(n=n.replace(/datetime'(.*)'$/,"$1")),Je.parse.isGuid(o)&&(n=n.replace("guid","").replace(/'/g,"")),n},e.prototype.onEachSearch=function(t){var e=this.pvt.searches||[];e.push(t.key),this.pvt.searches=e},e.prototype.onSearch=function(t){return this.pvt.searches.join(" OR ")},e.prototype.onExpand=function(t){var e=this,i={},r={},n=t.expands.slice(),o=[];return t.selects.filter(function(t){return t.indexOf(".")>-1}).forEach(function(t){var r=t.split(".");if(r[0]in i||(i[r[0]]=[]),2===r.length)i[r[0]].length&&-1!==Object.keys(i).indexOf(r[0])?-1!==i[r[0]][0].indexOf("$expand")&&-1===i[r[0]][0].indexOf(";$select=")?i[r[0]][0]=i[r[0]][0]+";$select="+r[1]:i[r[0]][0]=i[r[0]][0]+","+r[1]:i[r[0]].push("$select="+r[1]);else{for(var n="$select="+r[r.length-1],o="",s="",a=1;a<r.length-1;a++)o=o+"$expand="+r[a]+"(",s+=")";var u=o+n+s;if(i[r[0]].length&&-1!==Object.keys(i).indexOf(r[0])&&e.expandQueryIndex(i[r[0]],!0)){var c=e.expandQueryIndex(i[r[0]]);i[r[0]][c]=i[r[0]][c]+u.replace("$expand=",",")}else i[r[0]].push(u)}}),Object.keys(i).forEach(function(t){-1===n.indexOf(t)&&n.push(t)}),n.forEach(function(t){r[t]=t in i?t+"("+i[t].join(";")+")":t}),Object.keys(r).forEach(function(t){return o.push(r[t])}),o.join(",")},e.prototype.expandQueryIndex=function(t,e){for(var i=0;i<t.length;i++)if(-1!==t[i].indexOf("$expand"))return!!e||i;return!e&&0},e.prototype.onDistinct=function(t){return"groupby(("+t.map(function(t){return ei.getField(t)}).join(",")+"))"},e.prototype.onSelect=function(e){return t.prototype.onSelect.call(this,e.filter(function(t){return-1===t.indexOf(".")}))},e.prototype.beforeSend=function(t,e,i){"POST"!==i.type&&"PUT"!==i.type&&"PATCH"!==i.type||e.headers.set("Prefer","return=representation"),e.headers.set("Accept",this.options.accept)},e.prototype.processResponse=function(e,i,r,n,o,s){var a="@odata.context",u="@context";if(o&&"GET"===o.type&&!this.rootUrl&&(e[a]||e[u])){var c=e[a]?e[a].split("/$metadata#"):e[u].split("/$metadata#");this.rootUrl=c[0],this.resourceTableName=c[1]}var h=o&&o.pvtData,l=t.prototype.processBatchResponse.call(this,e,r,n,o,s);if(l)return l;var p=null,g="@odata.count",d="@count";r&&r.isCountRequired&&(g in e?p=e[g]:d in e&&(p=e[d])),e=L(e.value)?e:e.value;var f={};return f.count=p,f.result=e,this.getAggregateResult(h,e,f,null,r),Je.isNull(p)?f.result:{result:f.result,count:p,aggregates:f.aggregates}}}(ei),function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Ze(e,t),e.prototype.getModuleName=function(){return"WebApiAdaptor"},e.prototype.insert=function(t,e,i){return{type:"POST",url:t.dataSource.url,data:JSON.stringify(e)}},e.prototype.remove=function(t,e,i,r){return{type:"DELETE",url:t.dataSource.url+"/"+i,data:JSON.stringify(i)}},e.prototype.update=function(t,e,i,r){return{type:"PUT",url:t.dataSource.url,data:JSON.stringify(i)}},e.prototype.batchRequest=function(t,e,i){var r=this,n=i.guid=Je.getGuid(this.options.batchPre),o=t.dataSource.url.replace(/\/*$/,"/"+this.options.batch);i.url=this.resourceTableName?this.resourceTableName:i.url;for(var s=[],a=function(r,o){e.addedRecords.forEach(function(o,a){var u=function(t,e,i){return""};s.push("--"+n),s.push("Content-Type: application/http; msgtype=request",""),s.push("POST /api/"+(t.dataSource.insertUrl||t.dataSource.crudUrl||i.url)+u(e.addedRecords,r,i.key)+" HTTP/1.1"),s.push("Content-Type: application/json; charset=utf-8"),s.push("Host: "+location.host),s.push("",o?JSON.stringify(o):"")})},u=0,c=e.addedRecords.length;u<c;u++)a(u);var h=function(o,a){e.changedRecords.forEach(function(a,u){r.options.updateType;var c=function(t,e,i){return""};s.push("--"+n),s.push("Content-Type: application/http; msgtype=request",""),s.push("PUT /api/"+(t.dataSource.updateUrl||t.dataSource.crudUrl||i.url)+c(e.changedRecords,o,i.key)+" HTTP/1.1"),s.push("Content-Type: application/json; charset=utf-8"),s.push("Host: "+location.host),s.push("",a?JSON.stringify(a):"")})};for(u=0,c=e.changedRecords.length;u<c;u++)h(u);var l=function(r,o){e.deletedRecords.forEach(function(o,a){var u=function(t,e,i){var r=Je.getObject(i,t[e]);return"number"==typeof r||Je.parse.isGuid(r)?"/"+r:r instanceof Date?"/"+t[e][i].toJSON():"/'"+r+"'"};s.push("--"+n),s.push("Content-Type: application/http; msgtype=request",""),s.push("DELETE /api/"+(t.dataSource.removeUrl||t.dataSource.crudUrl||i.url)+u(e.deletedRecords,r,i.key)+" HTTP/1.1"),s.push("Content-Type: application/json; charset=utf-8"),s.push("Host: "+location.host),s.push("",o?JSON.stringify(o):"")})};for(u=0,c=e.deletedRecords.length;u<c;u++)l(u);return s.push("--"+n+"--",""),{type:"POST",url:o,contentType:"multipart/mixed; boundary="+n,data:s.join("\r\n")}},e.prototype.beforeSend=function(t,e,i){e.headers.set("Accept","application/json, text/javascript, */*; q=0.01")},e.prototype.processResponse=function(t,e,i,r,n,o){var s=n&&n.pvtData,a=null,u={};if(n&&"post"!==n.type.toLowerCase()){var c=r&&n.fetchRequest.headers.get("DataServiceVersion"),h=c&&parseInt(c,10)||2;i&&i.isCountRequired&&(Je.isNull(t.Count)||(a=t.Count)),h<3&&t.Items&&(t=t.Items),u.count=a,u.result=t,this.getAggregateResult(s,t,u,null,i)}return u.result=u.result||t,Je.isNull(a)?u.result:{result:u.result,count:u.count,aggregates:u.aggregates}}}(ei),function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Ze(e,t),e.prototype.processQuery=function(t,e,i){var r=(new ti).processQuery(t,e,i),n=Je.parse.parseJson(r.data),o={};if(n.param)for(var s=0;s<n.param.length;s++){var a=n.param[s],u=Object.keys(a)[0];o[u]=a[u]}o.value=n;return{data:JSON.stringify(o),url:r.url,pvtData:r.pvtData,type:"POST",contentType:"application/json; charset=utf-8"}}}(ti);var ii=function(t){function e(){var e=t.call(this)||this;return I("beforeSend",ti.prototype.beforeSend,e),e}return Ze(e,t),e.prototype.insert=function(t,e,i,r,n){return this.pvt.position=n,this.updateType="add",{url:t.dataSource.insertUrl||t.dataSource.crudUrl||t.dataSource.url,data:JSON.stringify(T({},{value:e,table:i,action:"insert"},Je.getAddParams(this,t,r)))}},e.prototype.remove=function(e,i,r,n,o){return t.prototype.remove.call(this,e,i,r),{type:"POST",url:e.dataSource.removeUrl||e.dataSource.crudUrl||e.dataSource.url,data:JSON.stringify(T({},{key:r,keyColumn:i,table:n,action:"remove"},Je.getAddParams(this,e,o)))}},e.prototype.update=function(t,e,i,r,n){return this.updateType="update",this.updateKey=e,{type:"POST",url:t.dataSource.updateUrl||t.dataSource.crudUrl||t.dataSource.url,data:JSON.stringify(T({},{value:i,action:"update",keyColumn:e,key:i[e],table:r},Je.getAddParams(this,t,n)))}},e.prototype.processResponse=function(e,i,r,n,o,s,a){var u;if(e="batch"===(o?JSON.parse(o.data):e).action?Je.parse.parseJson(e):e,"add"===this.updateType&&t.prototype.insert.call(this,i,e,null,null,this.pvt.position),"update"===this.updateType&&t.prototype.update.call(this,i,this.updateKey,e),this.updateType=void 0,e.added)for(u=0;u<e.added.length;u++)t.prototype.insert.call(this,i,e.added[u]);if(e.changed)for(u=0;u<e.changed.length;u++)t.prototype.update.call(this,i,a.key,e.changed[u]);if(e.deleted)for(u=0;u<e.deleted.length;u++)t.prototype.remove.call(this,i,a.key,e.deleted[u]);return e},e.prototype.batchRequest=function(t,e,i,r,n){return{type:"POST",url:t.dataSource.batchUrl||t.dataSource.crudUrl||t.dataSource.url,contentType:"application/json; charset=utf-8",dataType:"json",data:JSON.stringify(T({},{changed:e.changedRecords,added:e.addedRecords,deleted:e.deletedRecords,action:"batch",table:i.url,key:i.key},Je.getAddParams(this,t,r)))}},e.prototype.addParams=function(t){(new ti).addParams(t)},e}($e),ri=function(t){function e(e){var i=t.call(this)||this;return i.options=T({},i.options,{getData:new Function,addRecord:new Function,updateRecord:new Function,deleteRecord:new Function,batchUpdate:new Function}),T(i.options,e||{}),i}return Ze(e,t),e.prototype.getModuleName=function(){return"CustomDataAdaptor"},e}(ti);!function(t){function e(e){var i=t.call(this)||this;return i.opt=e,i.schema=i.opt.response,i.query=i.opt.query,i.getVariables=i.opt.getVariables?i.opt.getVariables:function(){},i.getQuery=function(){return i.query},i}Ze(e,t),e.prototype.getModuleName=function(){return"GraphQLAdaptor"},e.prototype.processQuery=function(e,i){var r=t.prototype.processQuery.apply(this,arguments),n=JSON.parse(r.data),o={};["skip","take","sorted","table","select","where","search","requiresCounts","aggregates","params"].filter(function(t){o[t]="searchwhereparams".indexOf(t)>-1?JSON.stringify(n[t]):n[t]});var s=this.getVariables()||{};s.datamanager=o;var a=JSON.stringify({query:this.getQuery(),variables:s});return r.data=a,r},e.prototype.processResponse=function(t,e,i,r,n){var o,s,a=t,u=v(this.schema.result,a.data);this.schema.count&&(o=v(this.schema.count,a.data)),this.schema.aggregates&&(s=L(s=v(this.schema.aggregates,a.data))?s:Je.parse.parseJson(s));var c=n.pvtData||{},h={result:u,aggregates:s},l=h;return c&&c.groups&&c.groups.length&&this.getAggregateResult(c,l,h,null,i),L(o)?h.result:{result:h.result,count:o,aggregates:s}},e.prototype.insert=function(){var e=t.prototype.insert.apply(this,arguments);return this.generateCrudData(e,"insert")},e.prototype.update=function(){var e=t.prototype.update.apply(this,arguments);return this.generateCrudData(e,"update")},e.prototype.remove=function(){var e=t.prototype.remove.apply(this,arguments);return this.generateCrudData(e,"remove")},e.prototype.batchRequest=function(e,i,r,n,o){var s=t.prototype.batchRequest.apply(this,arguments),a=JSON.parse(s.data);return a.key=r.key,s.data=JSON.stringify(a),this.generateCrudData(s,"batch")},e.prototype.generateCrudData=function(t,e){var i=JSON.parse(t.data);return t.data=JSON.stringify({query:this.opt.getMutation(e),variables:i}),t}}(ti);var ni=function(t){function e(e,i,r){var n=t.call(this)||this;n.isCrudAction=!1,n.isInsertAction=!1,L(e)||(n.cacheAdaptor=e),n.pageSize=r,n.guidId=Je.getGuid("cacheAdaptor");window.localStorage.setItem(n.guidId,JSON.stringify({keys:[],results:[]}));var o=n.guidId;return L(i)||setInterval(function(){for(var t=Je.parse.parseJson(window.localStorage.getItem(o)),e=[],r=0;r<t.results.length;r++){var n=+new Date,s=+new Date(t.results[r].timeStamp);t.results[r].timeStamp=n-s,n-s>i&&e.push(r)}for(r=0;r<e.length;r++)t.results.splice(e[r],1),t.keys.splice(e[r],1);window.localStorage.removeItem(o),window.localStorage.setItem(o,JSON.stringify(t))},i),n}return Ze(e,t),e.prototype.generateKey=function(t,e){var i=this.getQueryRequest(e),r=He.filterQueryLists(e.queries,["onSelect","onPage","onSkip","onTake","onRange"]),n=t,o="onPage";o in r&&(n+=r[o].pageIndex),i.sorts.forEach(function(t){n+=t.e.direction+t.e.fieldName}),i.groups.forEach(function(t){n+=t.e.fieldName}),i.searches.forEach(function(t){n+=t.e.searchKey});for(var s=0;s<i.filters.length;s++){var a=i.filters[s];if(a.e.isComplex){var u=e.clone();u.queries=[];for(var c=0;c<a.e.predicates.length;c++)u.queries.push({fn:"onWhere",e:a.e.predicates[c],filter:e.queries.filter});n+=a.e.condition+this.generateKey(t,u)}else n+=a.e.field+a.e.operator+a.e.value}return n},e.prototype.processQuery=function(t,e,i){var r=this.generateKey(t.dataSource.url,e),n=Je.parse.parseJson(window.localStorage.getItem(this.guidId)),o=n?n.results[n.keys.indexOf(r)]:null;return null==o||this.isCrudAction||this.isInsertAction?(this.isCrudAction=null,this.isInsertAction=null,this.cacheAdaptor.processQuery.apply(this.cacheAdaptor,[].slice.call(arguments,0))):o},e.prototype.processResponse=function(t,e,i,r,n,o){if(this.isInsertAction||n&&this.cacheAdaptor.options.batch&&Je.endsWith(n.url,this.cacheAdaptor.options.batch)&&"post"===n.type.toLowerCase())return this.cacheAdaptor.processResponse(t,e,i,r,n,o);t=this.cacheAdaptor.processResponse.apply(this.cacheAdaptor,[].slice.call(arguments,0));var s=i?this.generateKey(e.dataSource.url,i):e.dataSource.url,a={},u=(a=Je.parse.parseJson(window.localStorage.getItem(this.guidId))).keys.indexOf(s);for(-1!==u&&(a.results.splice(u,1),a.keys.splice(u,1)),a.results[a.keys.push(s)-1]={keys:s,result:t.result,timeStamp:new Date,count:t.count};a.results.length>this.pageSize;)a.results.splice(0,1),a.keys.splice(0,1);return window.localStorage.setItem(this.guidId,JSON.stringify(a)),t},e.prototype.beforeSend=function(t,e,i){!L(this.cacheAdaptor.options.batch)&&Je.endsWith(i.url,this.cacheAdaptor.options.batch)&&"post"===i.type.toLowerCase()&&e.headers.set("Accept",this.cacheAdaptor.options.multipartAccept),t.dataSource.crossDomain||e.headers.set("Accept",this.cacheAdaptor.options.accept)},e.prototype.update=function(t,e,i,r){return this.isCrudAction=!0,this.cacheAdaptor.update(t,e,i,r)},e.prototype.insert=function(t,e,i){return this.isInsertAction=!0,this.cacheAdaptor.insert(t,e,i)},e.prototype.remove=function(t,e,i,r){return this.isCrudAction=!0,this.cacheAdaptor.remove(t,e,i,r)},e.prototype.batchRequest=function(t,e,i){return this.cacheAdaptor.batchRequest(t,e,i)},e}(ti),oi=function(){function t(t,e,i){var r,n=this;return this.dateParse=!0,this.timeZoneHandling=!0,this.persistQuery={},this.isInitialLoad=!1,this.requests=[],this.isInitialLoad=!0,t||this.dataSource||(t=[]),i=i||t.adaptor,t&&!1===t.timeZoneHandling&&(this.timeZoneHandling=t.timeZoneHandling),t instanceof Array?r={json:t,offline:!0}:"object"==typeof t?(t.json||(t.json=[]),t.enablePersistence||(t.enablePersistence=!1),t.id||(t.id=""),t.ignoreOnPersist||(t.ignoreOnPersist=[]),r={url:t.url,insertUrl:t.insertUrl,removeUrl:t.removeUrl,updateUrl:t.updateUrl,crudUrl:t.crudUrl,batchUrl:t.batchUrl,json:t.json,headers:t.headers,accept:t.accept,data:t.data,timeTillExpiration:t.timeTillExpiration,cachingPageSize:t.cachingPageSize,enableCaching:t.enableCaching,requestType:t.requestType,key:t.key,crossDomain:t.crossDomain,jsonp:t.jsonp,dataType:t.dataType,offline:void 0!==t.offline?t.offline:!(t.adaptor instanceof ii||t.adaptor instanceof ri)&&!t.url,requiresFormat:t.requiresFormat,enablePersistence:t.enablePersistence,id:t.id,ignoreOnPersist:t.ignoreOnPersist}):Je.throwError("DataManager: Invalid arguments"),void 0!==r.requiresFormat||Je.isCors()||(r.requiresFormat=!!L(r.crossDomain)||r.crossDomain),void 0===r.dataType&&(r.dataType="json"),this.dataSource=r,this.defaultQuery=e,this.dataSource.enablePersistence&&this.dataSource.id&&window.addEventListener("unload",this.setPersistData.bind(this)),r.url&&r.offline&&!r.json.length?(this.isDataAvailable=!1,this.adaptor=i||new ei,this.dataSource.offline=!1,this.ready=this.executeQuery(e||new He),this.ready.then(function(t){n.dataSource.offline=!0,n.isDataAvailable=!0,r.json=t.result,n.adaptor=new $e})):this.adaptor=r.offline?new $e:new ei,!r.jsonp&&this.adaptor instanceof ei&&(r.jsonp="callback"),this.adaptor=i||this.adaptor,r.enableCaching&&(this.adaptor=new ni(this.adaptor,r.timeTillExpiration,r.cachingPageSize)),this}return t.prototype.getPersistedData=function(t){var e=localStorage.getItem(t||this.dataSource.id);return JSON.parse(e)},t.prototype.setPersistData=function(t,e,i){localStorage.setItem(e||this.dataSource.id,JSON.stringify(i||this.persistQuery))},t.prototype.setPersistQuery=function(t){var e=this,i=this.getPersistedData();if(this.isInitialLoad&&i&&Object.keys(i).length){this.persistQuery=i,this.persistQuery.queries=this.persistQuery.queries.filter(function(t){if(e.dataSource.ignoreOnPersist&&e.dataSource.ignoreOnPersist.length&&t.fn&&e.dataSource.ignoreOnPersist.some(function(e){return t.fn===e}))return!1;if("onWhere"===t.fn){var i=t.e;if(i&&i.isComplex&&i.predicates instanceof Array){var r=i.predicates.map(function(t){if(t.predicates&&t.predicates instanceof Array){var e=t.predicates.map(function(t){var e=t.field,i=t.operator,r=t.value,n=t.ignoreCase,o=t.ignoreAccent,s=t.matchCase;return new qe(e,i,r,n,o,s)});return"and"===t.condition?qe.and(e):qe.or(e)}var i=t.field,r=t.operator,n=t.value,o=t.ignoreCase,s=t.ignoreAccent,a=t.matchCase;return new qe(i,r,n,o,s,a)});t.e=new qe(r[0],i.condition,r.slice(1))}}return!0});var r=T(new He,this.persistQuery);return this.isInitialLoad=!1,r}return this.persistQuery=t,this.isInitialLoad=!1,t},t.prototype.setDefaultQuery=function(t){return this.defaultQuery=t,this},t.prototype.executeLocal=function(e){this.defaultQuery||e instanceof He||Je.throwError("DataManager - executeLocal() : A query is required to execute"),this.dataSource.json||Je.throwError("DataManager - executeLocal() : Json data is required to execute"),this.dataSource.enablePersistence&&this.dataSource.id&&(e=this.setPersistQuery(e)),e=e||this.defaultQuery;var i=this.adaptor.processQuery(this,e);if(e.subQuery){var r=e.subQuery.fromTable,n=e.subQuery.lookups,o=e.isCountRequired?i.result:i;n&&n instanceof Array&&Je.buildHierarchy(e.subQuery.fKey,r,o,n,e.subQuery.key);for(var s=0;s<o.length;s++)o[s][r]instanceof Array&&(o[s]=T({},{},o[s]),o[s][r]=this.adaptor.processResponse(e.subQuery.using(new t(o[s][r].slice(0))).executeLocal(),this,e))}return this.adaptor.processResponse(i,this,e)},t.prototype.executeQuery=function(e,i,r,n){var o=this,s="makeRequest";this.dataSource.enablePersistence&&this.dataSource.id&&(e=this.setPersistQuery(e)),"function"==typeof e&&(n=r,r=i,i=e,e=null),e||(e=this.defaultQuery),e instanceof He||Je.throwError("DataManager - executeQuery() : A query is required to execute");var a=new si,u={query:e};if(!this.dataSource.offline&&void 0!==this.dataSource.url&&""!==this.dataSource.url||!L(this.adaptor[s])||this.isCustomDataAdaptor(this.adaptor)){var c=this.adaptor.processQuery(this,e);L(this.adaptor[s])?!L(c.url)||this.isCustomDataAdaptor(this.adaptor)?(this.requests=[],this.makeRequest(c,a,u,e)):(u=t.getDeferedArgs(e,c,u),a.resolve(u)):this.adaptor[s](c,a,u,e)}else t.nextTick(function(){var i=o.executeLocal(e);u=t.getDeferedArgs(e,i,u),a.resolve(u)});return(i||r)&&a.promise.then(i,r),n&&a.promise.then(n,n),a.promise},t.getDeferedArgs=function(t,e,i){return t.isCountRequired?(i.result=e.result,i.count=e.count,i.aggregates=e.aggregates):i.result=e,i},t.nextTick=function(t){(window.setImmediate||window.setTimeout)(t,0)},t.prototype.extendRequest=function(t,e,i){return T({},{type:"GET",dataType:this.dataSource.dataType,crossDomain:this.dataSource.crossDomain,jsonp:this.dataSource.jsonp,cache:!0,processData:!1,onSuccess:e,onFailure:i},t)},t.prototype.makeRequest=function(t,e,i,r){var n=this,o=!!r.subQuerySelector,s=function(t){i.error=t,e.reject(i)},a=function(t,r,n,o,s,a,u){i.xhr=n,i.count=r?parseInt(r.toString(),10):0,i.result=t,i.request=o,i.aggregates=a,i.actual=s,i.virtualSelectRecords=u,e.resolve(i)},u=function(t,e){var u=new si,c={parent:i};r.subQuery.isChild=!0;var h=n.adaptor.processQuery(n,r.subQuery,t?n.adaptor.processResponse(t):e),l=n.makeRequest(h,u,c,r.subQuery);return o||u.then(function(e){t&&(Je.buildHierarchy(r.subQuery.fKey,r.subQuery.fromTable,t,e,r.subQuery.key),a(t,e.count,e.xhr))},s),l},c=this.extendRequest(t,function(t,e){if(n.isGraphQLAdaptor(n.adaptor)&&!L(t.errors))return s(t.errors);n.isCustomDataAdaptor(n.adaptor)&&(e=T({},n.fetchReqOption,e)),-1===e.contentType.indexOf("xml")&&n.dateParse&&(t=Je.parse.parseJson(t));var i=n.adaptor.processResponse(t,n,r,e.fetchRequest,e),c=0,h=null,l=t.virtualSelectRecords;r.isCountRequired&&(c=i.count,h=i.aggregates,i=i.result),r.subQuery?o||u(i,e):a(i,c,e.fetchRequest,e.type,t,h,l)},s);if(this.isCustomDataAdaptor(this.adaptor)){this.fetchReqOption=c;var h=c;this.adaptor.options.getData({data:h.data,onSuccess:h.onSuccess,onFailure:h.onFailure})}else{var l=new et(c);l.beforeSend=function(){n.beforeSend(l.fetchRequest,l)},(c=l.send()).catch(function(t){return!0}),this.requests.push(l)}if(o){var p=r.subQuerySelector.call(this,{query:r.subQuery,parent:r});p&&p.length?Promise.all([c,u(null,p)]).then(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var i=t[0],s=n.adaptor.processResponse(i[0],n,r,n.requests[0].fetchRequest,n.requests[0]),u=0;r.isCountRequired&&(u=s.count,s=s.result);var c=n.adaptor.processResponse(i[1],n,r.subQuery,n.requests[1].fetchRequest,n.requests[1]);u=0,r.subQuery.isCountRequired&&(u=c.count,c=c.result),Je.buildHierarchy(r.subQuery.fKey,r.subQuery.fromTable,s,c,r.subQuery.key),o=!1,a(s,u,n.requests[0].fetchRequest)}):o=!1}return c},t.prototype.beforeSend=function(t,e){this.adaptor.beforeSend(this,t,e);for(var i,r=this.dataSource.headers,n=0;r&&n<r.length;n++){i=[];for(var o=0,s=Object.keys(r[n]);o<s.length;o++){var a=s[o];i.push(a),t.headers.set(a,r[n][a])}}},t.prototype.saveChanges=function(t,e,i,r,n){var o=this;i instanceof He&&(r=i,i=null);var s={url:i,key:e||this.dataSource.key},a=this.adaptor.batchRequest(this,t,s,r||new He,n),u="dofetchRequest";if(this.dataSource.offline)return a;if(L(this.adaptor[u])){if(this.isCustomDataAdaptor(this.adaptor))return this.dofetchRequest(a,this.adaptor.options.batchUpdate);var c=new si,h=new et(a);return h.beforeSend=function(){o.beforeSend(h.fetchRequest,h)},h.onSuccess=function(e,i){o.isGraphQLAdaptor(o.adaptor)&&(L(e.errors)||h.onFailure(JSON.stringify(e.errors))),c.resolve(o.adaptor.processResponse(e,o,null,i.fetchRequest,i,t,s))},h.onFailure=function(t){c.reject([{error:t}])},h.send().catch(function(t){return!0}),c.promise}return this.adaptor[u](a)},t.prototype.insert=function(t,e,i,r){e instanceof He&&(i=e,e=null);var n=this.adaptor.insert(this,t,e,i,r),o="dofetchRequest";return this.dataSource.offline?n:L(this.adaptor[o])?this.dofetchRequest(n,this.adaptor.options.addRecord):this.adaptor[o](n)},t.prototype.remove=function(t,e,i,r){"object"==typeof e&&(e=Je.getObject(t,e)),i instanceof He&&(r=i,i=null);var n=this.adaptor.remove(this,t,e,i,r),o="dofetchRequest";if(this.dataSource.offline)return n;if(L(this.adaptor[o])){var s=this.adaptor.options.deleteRecord;return this.dofetchRequest(n,s)}return this.adaptor[o](n)},t.prototype.update=function(t,e,i,r,n){i instanceof He&&(r=i,i=null);var o=this.adaptor.update(this,t,e,i,r,n),s="dofetchRequest";if(this.dataSource.offline)return o;if(L(this.adaptor[s])){var a=this.adaptor.options.updateRecord;return this.dofetchRequest(o,a)}return this.adaptor[s](o)},t.prototype.isCustomDataAdaptor=function(t){return this.adaptor.getModuleName&&"CustomDataAdaptor"===this.adaptor.getModuleName()},t.prototype.isGraphQLAdaptor=function(t){return this.adaptor.getModuleName&&"GraphQLAdaptor"===this.adaptor.getModuleName()},t.prototype.successFunc=function(t,e){if(this.isGraphQLAdaptor(this.adaptor)){var i="object"==typeof t?t:JSON.parse(t);L(i.errors)||this.failureFunc(JSON.stringify(i.errors))}this.isCustomDataAdaptor(this.adaptor)&&(e=T({},this.fetchReqOption,e));try{Je.parse.parseJson(t)}catch(e){t=[]}t=this.adaptor.processResponse(Je.parse.parseJson(t),this,null,e.fetchRequest,e),this.fetchDeffered.resolve(t)},t.prototype.failureFunc=function(t){this.fetchDeffered.reject([{error:t}])},t.prototype.dofetchRequest=function(t,e){var i=this;if(t=T({},{type:"POST",contentType:"application/json; charset=utf-8",processData:!1},t),this.fetchDeffered=new si,this.isCustomDataAdaptor(this.adaptor))this.fetchReqOption=t,e.call(this,{data:t.data,onSuccess:this.successFunc.bind(this),onFailure:this.failureFunc.bind(this)});else{var r=new et(t);r.beforeSend=function(){i.beforeSend(r.fetchRequest,r)},r.onSuccess=this.successFunc.bind(this),r.onFailure=this.failureFunc.bind(this),r.send().catch(function(t){return!0})}return this.fetchDeffered.promise},t.prototype.clearPersistence=function(){window.removeEventListener("unload",this.setPersistData.bind(this)),this.dataSource.enablePersistence=!1,this.persistQuery={},window.localStorage.setItem(this.dataSource.id,"[]")},t}(),si=function(){var t=this;this.promise=new Promise(function(e,i){t.resolve=e,t.reject=i}),this.then=this.promise.then.bind(this.promise),this.catch=this.promise.catch.bind(this.promise)},ai=function(t){var e=t.className,i=void 0===e?"":e,r=t.children,n=t.title,o=void 0===n?"":n,s=t.iconClass,a=void 0===s?"":s,u=t.show,c=void 0!==u&&u,h=t.onClose,l=t.closeBtn,p=void 0===l||l;return M.default.createElement(M.default.Fragment,null,c&&M.default.createElement("div",{id:"results",className:"search-results "+i},M.default.createElement("div",{className:"popup"},M.default.createElement("div",{className:"popup-layout"},M.default.createElement("div",{className:"popup-header"},M.default.createElement("div",{className:"popHeadWrap"},M.default.createElement("div",{className:"IconWrap"},a&&M.default.createElement("i",{className:a})),M.default.createElement("div",{className:"popup-header-caption"},o)),M.default.createElement("div",{className:p?"":"hidden"},M.default.createElement("div",{className:"popup-header-close"},M.default.createElement("i",{className:"bi bi-x-lg",onClick:h})))),M.default.createElement("div",{className:"popup-body"},M.default.createElement("div",{className:"popup-form-inner-layout row"},M.default.createElement(M.default.Fragment,null,r)))))))},ui=1048576,ci=function(e){var i=e.documentId,r=e.documentAPI,n=e.documentName,o=e.actualPath,s=e.downloadPdfFile,a=t.useState({documentAPI:"",documentId:"",readOnly:!1,documentName:"",actualPath:"",downloadPdfFile:!1}),u=a[0],c=a[1];t.useEffect(function(){p()},[]),t.useEffect(function(){if(""!=u.documentAPI&&""!=u.documentId)document.getElementById("pdfviewer-container").ej2_instances[0].load(u.documentId,null),l();else if(""!=u.actualPath){document.getElementById("pdfviewer-container").ej2_instances[0].load(u.actualPath,null),l()}},[u.documentAPI,u.actualPath]);var l=function(){String(document.body.children[2].getAttribute("style")).indexOf("font-family: Helvetica Neue, Helvetica, Arial;")>-1&&(document.body.children[2].style.display="none");setTimeout(function(){var t,e=document.getElementById("pdfviewer-container_toolbarItemsContainer"),i=document.getElementById("pdfviewer-container_submitFormContainer");if(i&&(i.style.display="none"),e&&e.children.length>0){for(var r=e.children[0],n=!1,o='<div class="pdf-action-container" style="float: right">',s=0;s<r.children.length;s++)"savePdfBtn"==r.children[s].id&&(n=!0);n||(o+='<div id="closePdfBtn" class="e-toolbar-item e-pv-pan-tool-container e-popup-text action-btn-sep" aria-disabled="false" style="color: #5c636a; " title="Close" >\n <svg id="closePdftbSVG" width="20" height="20" style="width: 18px" fill="currentColor" class="bi bi-close" viewBox="0 0 16 16">\n <path d="M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8 2.146 2.854Z"/>\n </svg>\n </div> \n <div class="e-toolbar-item e-pv-pan-separator-container e-separator" aria-disabled="false"></div>',o+="</div>",r.insertAdjacentHTML("beforeend",o+"</div>")),null===(t=document.getElementById("closePdfBtn"))||void 0===t||t.addEventListener("click",function(){return t="closeDoc",e=JSON.stringify({message:t,date:Date.now()}),void window.postMessage(e,"*");var t,e})}},2e3)},p=function(){c({documentAPI:r,documentId:i,readOnly:u.readOnly,documentName:n,actualPath:o||"",downloadPdfFile:s||!1})};return M.default.createElement(M.default.Fragment,null,""!=u.documentAPI&&M.default.createElement(M.default.Fragment,null,M.default.createElement("div",{className:"control-section"},M.default.createElement(h.PdfViewerComponent,{id:"pdfviewer-container",documentPath:"",serviceUrl:u.documentAPI+"api/PdfViewer",style:{height:"100vh"},downloadFileName:n,enableDownload:u.downloadPdfFile,contextMenuOption:"None"},M.default.createElement(h.Inject,{services:[h.Toolbar,h.Magnification,h.Navigation,h.Annotation,h.LinkAnnotation,h.BookmarkView,h.ThumbnailView,h.Print,h.TextSearch,h.FormFields,h.FormDesigner]})))))},hi=function(e){var i=e.documentId,r=e.documentAPI,n=e.documentName,o=e.downloadImageFile,s=t.useState(""),u=s[0],c=s[1],h=t.useState({documentAPI:"",documentId:"",readOnly:!1,documentName:"",downloadImageFile:!1}),l=h[0],p=h[1];t.useEffect(function(){g()},[]);var g=function(){p({documentAPI:r,documentId:i,documentName:n,readOnly:!1,downloadImageFile:o||!1})};t.useEffect(function(){d(l.documentId)},[l.documentId]);var d=function(t){return Be(void 0,void 0,void 0,function(){var e,i;return We(this,function(r){switch(r.label){case 0:return a.utilService.isValidGUID(t)?[4,m.default.get(l.documentAPI+"core/7bda9c96-1af4-4b19-aa6d-98e1995e4255/document/download?documentId="+t,{responseType:"blob",onDownloadProgress:function(t){var e=Math.round(100*t.loaded/t.total);console.log(e)}})]:[3,2];case 1:return i=r.sent(),e=URL.createObjectURL(new Blob([i.data])),c(e),[3,3];case 2:e="",r.label=3;case 3:return[2]}})})};return M.default.createElement(M.default.Fragment,null,""!=l.documentAPI&&M.default.createElement("div",{className:"img-container"},M.default.createElement("button",{onClick:function(){return t="closeDoc",e=JSON.stringify({message:t,date:Date.now()}),void window.parent.postMessage(e,"*");var t,e}},"X"),l.downloadImageFile&&M.default.createElement("button",{onClick:function(){if(u){var t=document.createElement("a");t.href=u,t.download=l.documentName||"image",document.body.appendChild(t),t.click(),document.body.removeChild(t)}},className:"download-button"},M.default.createElement("span",null,M.default.createElement("i",{className:"bi bi-download"}))),M.default.createElement("img",{className:"image-content",src:u,alt:""})))},li=[{prefixIcon:"e-close",tooltipText:"Close",text:"Close",id:"closeDocument"},"Separator","Undo","Redo","Separator","Image","Table","Hyperlink","Bookmark","TableOfContents","Separator","Header","Footer","PageSetup","PageNumber","Break","InsertFootnote","InsertEndnote","Separator","Find","Separator","Comments","TrackChanges","LocalClipboard","Separator","FormFields","UpdateFields"];l.DocumentEditorComponent.Inject(l.Print,l.SfdtExport,l.WordExport,l.TextExport,l.Selection,l.Search,l.Editor,l.ImageResizer,l.EditorHistory,l.ContextMenu,l.OptionsPane,l.HyperlinkDialog,l.TableDialog,l.BookmarkDialog,l.TableOfContentsDialog,l.PageSetupDialog,l.StyleDialog,l.ListDialog,l.ParagraphDialog,l.BulletsAndNumberingDialog,l.FontDialog,l.TablePropertiesDialog,l.BordersAndShadingDialog,l.TableOptionsDialog,l.CellOptionsDialog,l.StylesDialog,l.Toolbar),l.DocumentEditorContainerComponent.Inject(l.Toolbar,l.EditorHistory);var pi=function(e){var i,r=e.documentId,n=e.documentAPI,o=e.documentName,s=t.useState({documentAPI:"",documentId:"",readOnly:!1,documentName:""}),a=s[0],u=s[1];t.useEffect(function(){c()},[]);var c=function(){u({documentAPI:n,documentId:r,documentName:o,readOnly:!1})};t.useEffect(function(){""!=a.documentAPI&&""!=a.documentId&&h(a.documentId)},[a.documentId]);var h=function(t){var e=new XMLHttpRequest,r={keyXc:t},n=a.documentAPI+"api/DocumentEditor/LoadDocument";e.open("POST",n,!0),e.setRequestHeader("Content-Type","application/json;charset=UTF-8"),e.setRequestHeader("Access-Control-Allow-Origin","http://localhost:5002"),e.onreadystatechange=function(){4===e.readyState&&(200!==e.status&&304!==e.status||(i.open(e.responseText),setTimeout(function(){i.enableTrackChanges||(i.enableTrackChanges=!0)},1e3)))},e.send(JSON.stringify(r))},p=function(t){var e=JSON.stringify({message:t,date:Date.now()});window.parent.postMessage(e,"*")},g=function(t){var e=t.event,i=e.ctrlKey,r=e.metaKey,n=e.keyCode;(i||r)&&[67,88,86].includes(n)&&(t.event.preventDefault(),t.event.stopPropagation(),t.isHandled=!0)};return M.default.createElement(M.default.Fragment,null,""!=a.documentAPI&&M.default.createElement(M.default.Fragment,null,M.default.createElement("div",{onContextMenu:function(t){document.querySelectorAll(".e-menu-item").forEach(function(t){t.style.display="none"})}},M.default.createElement(l.DocumentEditorContainerComponent,{height:"100vh",enableToolbar:!0,serviceUrl:n+"/",enableTrackChanges:!0,ref:function(t){t&&((i=t.documentEditor).keyDown=g)},toolbarItems:li,toolbarClick:function(t){switch(t.item.id){case"closeDocument":p("closeDoc");break;case"expand":p("expand")}}.bind(undefined),documentEditorSettings:{optimizeSfdt:!1},restrictEditing:!0}))))};function gi(t){return"[object String]"===Object.prototype.toString.call(t)?"$s"+t:"$o"+t.toString()}var di=function(){function t(t){this.table={},this.nElements=0,this.toStr=t||gi}return t.prototype.getValue=function(t){var e=this.table["$"+this.toStr(t)];if(void 0!==e)return e.value},t.prototype.setValue=function(t,e){var i="$"+this.toStr(t);this.table[i],this.nElements++,this.table[i]={key:t,value:e}},t.prototype.remove=function(t){var e="$"+this.toStr(t),i=this.table[e];return delete this.table[e],this.nElements--,i.value},t.prototype.keys=function(){for(var t=[],e=Object.keys(this.table),i=0;i<e.length;i++){var r=this.table[e[i]];t.push(r.key)}return t},t.prototype.values=function(){for(var t=[],e=Object.keys(this.table),i=0;i<e.length;i++){var r=this.table[e[i]];t.push(r.value)}return t},t.prototype.containsKey=function(t){return!(void 0===this.getValue(t))},t.prototype.clear=function(){this.table={},this.nElements=0},t.prototype.size=function(){return this.nElements},t}(),fi=function(){function t(t){this.stringStartMark="/",this.internalValue="",this.isSaving6=!1,this.position6=-1,this.internalValue=this.normalizeValue(t)}return Object.defineProperty(t.prototype,"status",{get:function(){return this.status6},set:function(t){this.status6=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isSaving",{get:function(){return this.isSaving6},set:function(t){this.isSaving6=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"objectCollectionIndex",{get:function(){return this.index6},set:function(t){this.index6=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"position",{get:function(){return this.position6},set:function(t){this.position6=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clonedObject",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.internalValue},set:function(t){var e=t;null!==t&&t.length>0?(e=t,this.internalValue=this.normalizeValue(e)):this.internalValue=e},enumerable:!0,configurable:!0}),t.prototype.save=function(t){t.write(this.toString())},t.prototype.toString=function(){return this.stringStartMark+this.escapeString(this.value)},t.prototype.clone=function(e){var i=new t;return i.value=this.internalValue,i},t.prototype.escapeString=function(e){for(var i="",r=0,n=e.length;r<n;r++){var o=e[r];t.delimiters.indexOf(o),i+=o}return i},t.prototype.normalizeValue=function(t,e){return t},t.delimiters="()<>[]{}/%}",t.replacements=[" ","\t","\n","\r"],t}(),Mi=function(){function t(){this.forTest="test",this.forTest=t.obj}return t.obj="obj",t.endObj="endobj",t.r="R",t.whiteSpace=" ",t.slash="/",t.newLine="\r\n",t.stream="stream",t.endStream="endstream",t.xref="xref",t.f="f",t.n="n",t.trailer="trailer",t.startxref="startxref",t.eof="%%EOF",t.header="%PDF-1.5",t.beginText="BT",t.endText="ET",t.beginPath="m",t.appendLineSegment="l",t.stroke="S",t.fill="f",t.fillEvenOdd="f*",t.fillStroke="B",t.fillStrokeEvenOdd="B*",t.appendbeziercurve="c",t.appendRectangle="re",t.saveState="q",t.restoreState="Q",t.paintXObject="Do",t.modifyCtm="cm",t.modifyTM="Tm",t.setLineWidth="w",t.setLineCapStyle="J",t.setLineJoinStyle="j",t.setDashPattern="d",t.setFlatnessTolerance="i",t.closePath="h",t.closeStrokePath="s",t.closeFillStrokePath="b",t.setCharacterSpace="Tc",t.setWordSpace="Tw",t.setHorizontalScaling="Tz",t.setTextLeading="TL",t.setFont="Tf",t.setRenderingMode="Tr",t.setTextRise="Ts",t.setTextScaling="Tz",t.setCoords="Td",t.goToNextLine="T*",t.setText="Tj",t.setTextWithFormatting="TJ",t.setTextOnNewLine="'",t.selectcolorspaceforstroking="CS",t.selectcolorspacefornonstroking="cs",t.setrbgcolorforstroking="RG",t.setrbgcolorfornonstroking="rg",t.setcmykcolorforstroking="K",t.setcmykcolorfornonstroking="k",t.setgraycolorforstroking="G",t.setgraycolorfornonstroking="g",t.clipPath="W",t.clipPathEvenOdd="W*",t.endPath="n",t.setGraphicsState="gs",t.comment="%",t.evenOdd="*",t.setMiterLimit="M",t.setColorAndPattern="scn",t.setColorAndPatternStroking="SCN",t}(),yi=function(){this.pages="Pages",this.kids="Kids",this.count="Count",this.resources="Resources",this.type="Type",this.size="Size",this.mediaBox="MediaBox",this.parent="Parent",this.root="Root",this.decodeParms="DecodeParms",this.filter="Filter",this.font="Font",this.type1="Type1",this.baseFont="BaseFont",this.encoding="Encoding",this.subtype="Subtype",this.contents="Contents",this.procset="ProcSet",this.colorSpace="ColorSpace",this.extGState="ExtGState",this.pattern="Pattern",this.xObject="XObject",this.length="Length",this.width="Width",this.height="Height",this.bitsPerComponent="BitsPerComponent",this.image="Image",this.dctdecode="DCTDecode",this.columns="Columns",this.blackIs1="BlackIs1",this.k="K",this.s="S",this.predictor="Predictor",this.deviceRgb="DeviceRGB",this.next="Next",this.action="Action",this.link="Link",this.a="A",this.annot="Annot",this.p="P",this.c="C",this.rect="Rect",this.uri="URI",this.annots="Annots",this.ca="ca",this.CA="CA",this.xyz="XYZ",this.fit="Fit",this.dest="Dest",this.BM="BM",this.flatedecode="FlateDecode",this.rotate="Rotate",this.bBox="BBox",this.form="Form",this.w="W",this.cIDFontType2="CIDFontType2",this.cIDToGIDMap="CIDToGIDMap",this.identity="Identity",this.dw="DW",this.fontDescriptor="FontDescriptor",this.cIDSystemInfo="CIDSystemInfo",this.fontName="FontName",this.flags="Flags",this.fontBBox="FontBBox",this.missingWidth="MissingWidth",this.stemV="StemV",this.italicAngle="ItalicAngle",this.capHeight="CapHeight",this.ascent="Ascent",this.descent="Descent",this.leading="Leading",this.avgWidth="AvgWidth",this.fontFile2="FontFile2",this.maxWidth="MaxWidth",this.xHeight="XHeight",this.stemH="StemH",this.registry="Registry",this.ordering="Ordering",this.supplement="Supplement",this.type0="Type0",this.identityH="Identity-H",this.toUnicode="ToUnicode",this.descendantFonts="DescendantFonts",this.background="Background",this.shading="Shading",this.matrix="Matrix",this.antiAlias="AntiAlias",this.function="Function",this.extend="Extend",this.shadingType="ShadingType",this.coords="Coords",this.domain="Domain",this.range="Range",this.functionType="FunctionType",this.bitsPerSample="BitsPerSample",this.patternType="PatternType",this.paintType="PaintType",this.tilingType="TilingType",this.xStep="XStep",this.yStep="YStep",this.viewerPreferences="ViewerPreferences",this.centerWindow="CenterWindow",this.displayTitle="DisplayTitle",this.fitWindow="FitWindow",this.hideMenuBar="HideMenubar",this.hideToolBar="HideToolbar",this.hideWindowUI="HideWindowUI",this.pageMode="PageMode",this.pageLayout="PageLayout",this.duplex="Duplex",this.printScaling="PrintScaling"},mi=function(){function t(t){if(this.position7=-1,this.primitiveItems=new di,this.prefix="<<",this.suffix=">>",this.resources=[],this.object=null,this.archive=!0,this.isResource=!1,void 0===t)this.primitiveItems=new di,this.encrypt=!0,this.dictionaryProperties=new yi;else{this.primitiveItems=new di;for(var e=t.items.keys(),i=t.items.values(),r=0;r<t.items.size();r++)this.primitiveItems.setValue(e[r],i[r]);this.status=t.status,this.freezeChanges(this),this.encrypt=!0,this.dictionaryProperties=new yi}}return Object.defineProperty(t.prototype,"items",{get:function(){return this.primitiveItems},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"status",{get:function(){return this.status7},set:function(t){this.status7=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isSaving",{get:function(){return this.isSaving7},set:function(t){this.isSaving7=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"objectCollectionIndex",{get:function(){return this.index7},set:function(t){this.index7=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clonedObject",{get:function(){return this.object},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"position",{get:function(){return this.position7},set:function(t){this.position7=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"Count",{get:function(){return this.primitiveItems.size()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"Dictionary",{get:function(){return this},enumerable:!0,configurable:!0}),t.prototype.getArchive=function(){return this.archive},t.prototype.setArchive=function(t){this.archive=t},t.prototype.setEncrypt=function(t){this.encrypt=t,this.modify()},t.prototype.getEncrypt=function(){return this.encrypt},t.prototype.freezeChanges=function(t){this.bChanged=!1},t.prototype.clone=function(e){return new t},t.prototype.modify=function(){this.bChanged=!0},t.prototype.remove=function(t){"string"!=typeof t?(this.primitiveItems.remove(t.value),this.modify()):this.remove(new fi(t))},t.prototype.containsKey=function(t){return this.primitiveItems.containsKey(t.toString())},t.prototype.onBeginSave=function(){this.beginSave.sender.beginSave()},t.prototype.onFontDictionaryBeginSave=function(){this.fontDictionaryBeginSave.sender.fontDictionaryBeginSave()},t.prototype.onDescendantFontBeginSave=function(){this.descendantFontBeginSave.sender.descendantFontBeginSave()},t.prototype.onTemplateBeginSave=function(){this.pageBeginDrawTemplate.sender.pageBeginSave()},t.prototype.onBeginAnnotationSave=function(){this.annotationBeginSave.sender.beginSave()},t.prototype.onSectionBeginSave=function(t){var e=this.sectionBeginSave;e.sender.beginSave(e.state,t)},t.prototype.save=function(t,e){void 0===e?this.save(t,!0):(t.write(this.prefix),void 0!==this.beginSave&&this.onBeginSave(),void 0!==this.descendantFontBeginSave&&this.onDescendantFontBeginSave(),void 0!==this.fontDictionaryBeginSave&&this.onFontDictionaryBeginSave(),void 0!==this.annotationBeginSave&&this.onBeginAnnotationSave(),void 0!==this.sectionBeginSave&&this.onSectionBeginSave(t),void 0!==this.pageBeginDrawTemplate&&this.onTemplateBeginSave(),this.Count>0&&this.saveItems(t),t.write(this.suffix),t.write(Mi.newLine))},t.prototype.saveItems=function(t){t.write(Mi.newLine);for(var e=this.primitiveItems.keys(),i=this.primitiveItems.values(),r=0;r<e.length;r++){var n=e[r];new fi(n).save(t),t.write(Mi.whiteSpace),i[r].save(t),t.write(Mi.newLine)}},t}(),Ni=function(t){this.sender=t},ji=function(t){this.sender=t},Di=function(t){this.sender=t},Si=function(t,e){this.sender=t,this.state=e},vi=function(t){this.sender=t},Ii=function(){function t(t){this.position5=-1,this.value=t}return Object.defineProperty(t.prototype,"intValue",{get:function(){return this.value},set:function(t){this.value=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isInteger",{get:function(){return this.integer},set:function(t){this.integer=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"status",{get:function(){return this.status5},set:function(t){this.status5=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isSaving",{get:function(){return this.isSaving5},set:function(t){this.isSaving5=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"objectCollectionIndex",{get:function(){return this.index5},set:function(t){this.index5=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"position",{get:function(){return this.position5},set:function(t){this.position5=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clonedObject",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.save=function(t){t.write(this.intValue.toString())},t.prototype.clone=function(e){return new t(this.value)},t.floatToString=function(t){var e=t.toFixed(2);return"0.00"===e&&(e=".00"),e},t.min=function(t,e,i){var r=Math.min(t,e);return Math.min(i,r)},t}(),zi=function(){function t(e){if(this.startMark="[",this.endMark="]",this.position9=-1,this.clonedObject9=null,this.isFont=!1,void 0===e)this.internalElements=[];else if(void 0===e||e instanceof t){var i=e;this.internalElements=[];for(n=0;n<i.elements.length;n++)this.internalElements.push(i.elements[n])}else for(var r=e,n=0;n<r.length;n++){var o=new Ii(r[n]);this.add(o)}}return t.prototype.items=function(t){return this.internalElements[t]},Object.defineProperty(t.prototype,"count",{get:function(){return this.internalElements.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"status",{get:function(){return this.status9},set:function(t){this.status9=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isSaving",{get:function(){return this.isSaving9},set:function(t){this.isSaving9=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clonedObject",{get:function(){return this.clonedObject9},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"position",{get:function(){return this.position9},set:function(t){this.position9=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"objectCollectionIndex",{get:function(){return this.index9},set:function(t){this.index9=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"CrossTable",{get:function(){return this.pdfCrossTable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"elements",{get:function(){return this.internalElements},enumerable:!0,configurable:!0}),t.prototype.add=function(t){void 0===this.internalElements&&(this.internalElements=[]),this.internalElements.push(t),this.markedChange()},t.prototype.markedChange=function(){this.bChanged=!0},t.prototype.contains=function(t){for(var e=0;e<this.internalElements.length;e++){var i=this.internalElements[e],r=t;if(null!=i&&void 0!==i&&null!=r&&void 0!==r&&i.value===r.value)return!0}return!1},t.prototype.getItems=function(t){return this.internalElements[t]},t.prototype.save=function(t){t.write(this.startMark);for(var e=0,i=this.count;e<i;e++)this.getItems(e).save(t),e+1!==i&&t.write(Mi.whiteSpace);t.write(this.endMark)},t.prototype.clone=function(e){this.clonedObject9=null;for(var i=new t,r=0;r<this.internalElements.length;r++){var n=this.internalElements[r];i.add(n.clone(e))}return i.pdfCrossTable=e,this.clonedObject9=i,i},t.fromRectangle=function(e){return new t([e.x,e.y,e.width,e.height])},t.prototype.insert=function(t,e){if(t<this.internalElements.length&&t>0){for(var i=[],r=0;r<t;r++)i.push(this.internalElements[r]);i.push(e);for(r=t;r<this.internalElements.length;r++)i.push(this.internalElements[r]);this.internalElements=i}else this.internalElements.push(e);this.markChanged()},t.prototype.indexOf=function(t){return this.internalElements.indexOf(t)},t.prototype.remove=function(t){var e=this.internalElements.indexOf(t);this.internalElements[e]=null,this.markChanged()},t.prototype.removeAt=function(t){if(this.internalElements.length>t){for(var e=[],i=0;i<t;i++)e.push(this.internalElements[i]);for(i=t+1;i<this.internalElements.length;i++)e.push(this.internalElements[i]);this.internalElements=e}this.markChanged()},t.prototype.clear=function(){this.internalElements=[],this.markChanged()},t.prototype.markChanged=function(){this.bChanged=!0},t}(),bi=function(){function t(){}return t.save=function(t,e){if(null==t||""===t)throw new Error("ArgumentException: fileName cannot be undefined, null or empty");var i=t.substring(t.lastIndexOf(".")+1,t.length),r=this.getMimeType(i);if(""!==r&&(e=new Blob([e],{type:r})),this.isMicrosoftBrowser)navigator.msSaveBlob(e,t);else{var n=document.createElementNS("http://www.w3.org/1999/xhtml","a");this.saveInternal(t,i,e,n,"download"in n)}},t.saveInternal=function(t,e,i,r,n){if(n){r.download=t;var o=window.URL.createObjectURL(i);r.href=o;var s=document.createEvent("MouseEvent");s.initEvent("click",!0,!0),r.dispatchEvent(s),setTimeout(function(){window.URL.revokeObjectURL(o),o=void 0})}else if("docx"!==e&&"xlsx"!==e){var a=window.URL.createObjectURL(i);window.open(a,"_blank")||(window.location.href=a)}else{var u=new FileReader;u.onloadend=function(){window.open(u.result,"_blank")||(window.location.href=u.result)},u.readAsDataURL(i)}},t.getMimeType=function(t){var e="";switch(t){case"html":e="text/html";break;case"pdf":e="application/pdf";break;case"docx":e="application/vnd.openxmlformats-officedocument.wordprocessingml.document";break;case"xlsx":e="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";break;case"txt":e="text/plain"}return e},t}(),wi=function(){function t(t){this.emitBOM=!0,this.encodingType="Ansi",this.initBOM(t)}return Object.defineProperty(t.prototype,"includeBom",{get:function(){return this.emitBOM},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return this.encodingType},set:function(t){this.encodingType=t},enumerable:!0,configurable:!0}),t.prototype.initBOM=function(t){this.emitBOM=null==t||t},t.prototype.getByteCount=function(t){return Oi(t,"string"),""===t?this.utf8Len(t.charCodeAt(0)):(null!==this.type&&void 0!==this.type||(this.type="Ansi"),this.getByteCountInternal(t,0,t.length))},t.prototype.utf8Len=function(t){return t<=127?1:t<=2047?2:t<=65535?3:t<=2097151?4:0},t.prototype.isHighSurrogate=function(t){return t>=55296&&t<=56319},t.prototype.toCodepoint=function(t,e){return((t=(1023&t)<<10)|1023&e)+65536},t.prototype.getByteCountInternal=function(t,e,i){var r=0;if("Utf8"===this.encodingType||"Unicode"===this.encodingType){for(var n="Utf8"===this.encodingType,o=0;o<i;o++){var s=t.charCodeAt(n?e:e++);if(this.isHighSurrogate(s))if(n){var a=s,u=t.charCodeAt(++e);r+=this.utf8Len(this.toCodepoint(a,u))}else r+=4,++o;else r+=n?this.utf8Len(s):2;n&&e++}return r}return r=i},t.prototype.getBytes=function(t,e,i){if(Oi(t,"string"),Oi(e,"charIndex"),Oi(i,"charCount"),e<0||i<0)throw new RangeError("Argument Out Of Range Exception: charIndex or charCount is less than zero");if(t.length-e<i)throw new RangeError("Argument Out Of Range Exception: charIndex and charCount do not denote a valid range in string");if(""===t)return new ArrayBuffer(0);null!==this.type&&void 0!==this.type||(this.type="Ansi");var r=this.getByteCountInternal(t,e,i);switch(this.type){case"Utf8":return this.getBytesOfUtf8Encoding(r,t,e,i);case"Unicode":return this.getBytesOfUnicodeEncoding(r,t,e,i);default:return this.getBytesOfAnsiEncoding(r,t,e,i)}},t.prototype.getString=function(t,e,i){if(Oi(t,"bytes"),Oi(e,"index"),Oi(i,"count"),e<0||i<0)throw new RangeError("Argument Out Of Range Exception: index or count is less than zero");if(t.byteLength-e<i)throw new RangeError("Argument Out Of Range Exception: index and count do not denote a valid range in bytes");if(0===t.byteLength||0===i)return"";null!==this.type&&void 0!==this.type||(this.type="Ansi");var r="",n=new Uint8Array(t);switch(this.type){case"Utf8":return this.getStringOfUtf8Encoding(n,e,i);case"Unicode":var o=new Uint16Array(t);return r=this.getStringofUnicodeEncoding(o,e,i);default:for(var s=e,a=0;a<i;a++){var u=n[s];r+=String.fromCharCode(u),s++}return r}},t.prototype.getBytesOfAnsiEncoding=function(t,e,i,r){for(var n=new ArrayBuffer(t),o=new Uint8Array(n),s=0,a=0;a<r;a++){var u=e.charCodeAt(i++);o[s]=u<2048?u:63,s++}return n},t.prototype.getBytesOfUtf8Encoding=function(t,e,i,r){for(var n=new ArrayBuffer(t),o=new Uint8Array(n),s=i,a=0,u=0;u<r;u++){var c=e.charCodeAt(s);c<=127?o[a]=c:c<2048?(o[a]=192|c>>6,o[++a]=128|63&c):c<55296||c>=57344?(o[a]=224|c>>12,o[++a]=128|c>>6&63,o[++a]=128|63&c):(o[a]=239,o[++a]=191,o[++a]=189),++a,++s}return n},t.prototype.getBytesOfUnicodeEncoding=function(t,e,i,r){for(var n=new ArrayBuffer(t),o=new Uint16Array(n),s=0;s<r;s++){var a=e.charCodeAt(s);o[s]=a}return n},t.prototype.getStringOfUtf8Encoding=function(t,e,i){for(var r=0,n=e,o="";r<i;r++){for(var s=t[n++];n>t.length;)return o;s>127&&(s>191&&s<224&&n<i?s=(31&s)<<6|63&t[n]:s>223&&s<240&&n<t.byteLength?s=(15&s)<<12|(63&t[n])<<6|63&t[++n]:s>239&&s<248&&n<t.byteLength&&(s=(7&s)<<18|(63&t[n])<<12|(63&t[++n])<<6|63&t[++n]),++n),o+=String.fromCharCode(s)}return o},t.prototype.getStringofUnicodeEncoding=function(t,e,i){if(i>t.length)throw new RangeError("ArgumentOutOfRange_Count");for(var r=new Uint16Array(i),n=0;n<i&&n<t.length;n++)r[n]=t[e++];return String.fromCharCode.apply(null,r)},t.prototype.destroy=function(){this.emitBOM=void 0,this.encodingType=void 0},t}();function Oi(t,e){if(null==t)throw new Error("ArgumentException: "+e+" cannot be null or undefined")}var Ti,Li=function(){function t(t){this.bufferBlob=new Blob([""]),this.bufferText="",this.init(t),bi.isMicrosoftBrowser=!!navigator.msSaveBlob}return Object.defineProperty(t.prototype,"buffer",{get:function(){return this.flush(),this.bufferBlob},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"encoding",{get:function(){return this.enc},enumerable:!0,configurable:!0}),t.prototype.init=function(t){null==t?(this.enc=new wi(!1),this.enc.type="Utf8"):(this.enc=t,this.setBomByte())},t.prototype.setBomByte=function(){if(this.encoding.includeBom)switch(this.encoding.type){case"Unicode":var t=new ArrayBuffer(2),e=new Uint8Array(t);e[0]=255,e[1]=254,this.bufferBlob=new Blob([t]);break;case"Utf8":var i=new ArrayBuffer(3),r=new Uint8Array(i);r[0]=239,r[1]=187,r[2]=191,this.bufferBlob=new Blob([i]);break;default:this.bufferBlob=new Blob([""])}},t.prototype.save=function(t){""!==this.bufferText&&this.flush(),bi.save(t,this.buffer)},t.prototype.write=function(t){if(void 0===this.encoding)throw new Error("Object Disposed Exception: current writer is disposed");Oi(t,"string"),this.bufferText+=t,this.bufferText.length>=10240&&this.flush()},t.prototype.flush=function(){if(void 0!==this.bufferText&&null!==this.bufferText&&0!==this.bufferText.length){var t=this.encoding.getBytes(this.bufferText,0,this.bufferText.length);this.bufferText="",this.bufferBlob=new Blob([this.bufferBlob,t])}},t.prototype.writeLine=function(t){if(void 0===this.encoding)throw new Error("Object Disposed Exception: current writer is disposed");Oi(t,"string"),this.bufferText=this.bufferText+t+"\r\n",this.bufferText.length>=10240&&this.flush()},t.prototype.destroy=function(){this.bufferBlob=void 0,this.bufferText=void 0,this.enc instanceof wi&&this.enc.destroy(),this.enc=void 0},t}(),Ai=new Int16Array(286),xi=new Uint8Array(286),Ci=new Int16Array(30),Ei=new Uint8Array(30),ki=function(){function t(e){this.pendingBuffer=new Uint8Array(65536),this.pendingBufLength=0,this.pendingBufCache=0,this.pendingBufBitsInCache=0,this.bufferPosition=0,this.extraBits=0,this.currentHash=0,this.matchStart=0,this.matchLength=0,this.matchPrevAvail=!1,this.blockStart=0,this.stringStart=0,this.lookAhead=0,this.totalBytesIn=0,this.inputOffset=0,this.inputEnd=0,this.windowSize=32768,this.windowMask=this.windowSize-1,this.hashSize=32768,this.hashMask=this.hashSize-1,this.hashShift=Math.floor(17/3),this.maxDist=this.windowSize-262,this.checkSum=1,this.noWrap=!1,t.isHuffmanTreeInitiated||(t.initHuffmanTree(),t.isHuffmanTreeInitiated=!0),this.treeLiteral=new Pi(this,286,257,15),this.treeDistances=new Pi(this,30,1,15),this.treeCodeLengths=new Pi(this,19,4,7),this.arrDistances=new Uint16Array(16384),this.arrLiterals=new Uint8Array(16384),this.stream=[],this.dataWindow=new Uint8Array(2*this.windowSize),this.hashHead=new Int16Array(this.hashSize),this.hashPrevious=new Int16Array(this.windowSize),this.blockStart=this.stringStart=1,this.noWrap=e,e||this.writeZLibHeader()}return Object.defineProperty(t.prototype,"compressedData",{get:function(){return this.stream},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"getCompressedString",{get:function(){var t="";if(void 0!==this.stream)for(var e=0;e<this.stream.length;e++)t+=String.fromCharCode.apply(null,this.stream[e]);return t},enumerable:!0,configurable:!0}),t.prototype.write=function(t,e,i){if(null==t)throw new Error("ArgumentException: data cannot null or undefined");var r=e+i;if(0>e||e>r||r>t.length)throw new Error("ArgumentOutOfRangeException: Offset or length is incorrect");if("string"==typeof t){var n=new wi(!1);n.type="Utf8",r=e+(t=new Uint8Array(n.getBytes(t,0,t.length))).length}for(this.inputBuffer=t,this.inputOffset=e,this.inputEnd=r,this.noWrap||(this.checkSum=Ui.checksumUpdate(this.checkSum,this.inputBuffer,this.inputOffset,r));this.inputEnd!==this.inputOffset||0!==this.pendingBufLength;)this.pendingBufferFlush(),this.compressData(!1)},t.prototype.writeZLibHeader=function(){var t=30720;t|=64,t+=31-t%31,this.pendingBufferWriteShortBytes(t)},t.prototype.pendingBufferWriteShortBytes=function(t){this.pendingBuffer[this.pendingBufLength++]=t>>8,this.pendingBuffer[this.pendingBufLength++]=t},t.prototype.compressData=function(t){var e;do{this.fillWindow();var i=t&&this.inputEnd===this.inputOffset;e=this.compressSlow(i,t)}while(0===this.pendingBufLength&&e);return e},t.prototype.compressSlow=function(t,e){if(this.lookAhead<262&&!t)return!1;for(;this.lookAhead>=262||t;){if(0===this.lookAhead)return this.lookAheadCompleted(e);this.stringStart>=2*this.windowSize-262&&this.slideWindow();var i=this.matchStart,r=this.matchLength;if(this.lookAhead>=3&&this.discardMatch(),r>=3&&this.matchLength<=r?r=this.matchPreviousBest(i,r):this.matchPreviousAvailable(),this.bufferPosition>=16384)return this.huffmanIsFull(e)}return!0},t.prototype.discardMatch=function(){var t=this.insertString();0!==t&&this.stringStart-t<=this.maxDist&&this.findLongestMatch(t)&&this.matchLength<=5&&3===this.matchLength&&this.stringStart-this.matchStart>4096&&(this.matchLength=2)},t.prototype.matchPreviousAvailable=function(){this.matchPrevAvail&&this.huffmanTallyLit(255&this.dataWindow[this.stringStart-1]),this.matchPrevAvail=!0,this.stringStart++,this.lookAhead--},t.prototype.matchPreviousBest=function(t,e){this.huffmanTallyDist(this.stringStart-1-t,e),e-=2;do{this.stringStart++,this.lookAhead--,this.lookAhead>=3&&this.insertString()}while(--e>0);return this.stringStart++,this.lookAhead--,this.matchPrevAvail=!1,this.matchLength=2,e},t.prototype.lookAheadCompleted=function(t){return this.matchPrevAvail&&this.huffmanTallyLit(255&this.dataWindow[this.stringStart-1]),this.matchPrevAvail=!1,this.huffmanFlushBlock(this.dataWindow,this.blockStart,this.stringStart-this.blockStart,t),this.blockStart=this.stringStart,!1},t.prototype.huffmanIsFull=function(t){var e=this.stringStart-this.blockStart;this.matchPrevAvail&&e--;var i=t&&0===this.lookAhead&&!this.matchPrevAvail;return this.huffmanFlushBlock(this.dataWindow,this.blockStart,e,i),this.blockStart+=e,!i},t.prototype.fillWindow=function(){for(this.stringStart>=this.windowSize+this.maxDist&&this.slideWindow();this.lookAhead<262&&this.inputOffset<this.inputEnd;){var t=2*this.windowSize-this.lookAhead-this.stringStart;t>this.inputEnd-this.inputOffset&&(t=this.inputEnd-this.inputOffset),this.dataWindow.set(this.inputBuffer.subarray(this.inputOffset,this.inputOffset+t),this.stringStart+this.lookAhead),this.inputOffset+=t,this.totalBytesIn+=t,this.lookAhead+=t}this.lookAhead>=3&&this.updateHash()},t.prototype.slideWindow=function(){this.dataWindow.set(this.dataWindow.subarray(this.windowSize,this.windowSize+this.windowSize),0),this.matchStart-=this.windowSize,this.stringStart-=this.windowSize,this.blockStart-=this.windowSize;for(var t=0;t<this.hashSize;++t){var e=65535&this.hashHead[t];this.hashHead[t]=e>=this.windowSize?e-this.windowSize:0}for(t=0;t<this.windowSize;t++){e=65535&this.hashPrevious[t];this.hashPrevious[t]=e>=this.windowSize?e-this.windowSize:0}},t.prototype.insertString=function(){var t,e=(this.currentHash<<this.hashShift^this.dataWindow[this.stringStart+2])&this.hashMask;return this.hashPrevious[this.stringStart&this.windowMask]=t=this.hashHead[e],this.hashHead[e]=this.stringStart,this.currentHash=e,65535&t},t.prototype.findLongestMatch=function(t){var e,i=4096,r=258,n=this.stringStart,o=this.stringStart+this.matchLength,s=Math.max(this.matchLength,2),a=Math.max(this.stringStart-this.maxDist,0),u=this.stringStart+258-1,c=this.dataWindow[o-1],h=this.dataWindow[o],l=this.dataWindow;s>=32&&(i>>=2),r>this.lookAhead&&(r=this.lookAhead);do{if(l[t+s]===h&&l[t+s-1]===c&&l[t]===l[n]&&l[t+1]===l[n+1]){for(e=t+2,n+=2;l[++n]===l[++e]&&l[++n]===l[++e]&&l[++n]===l[++e]&&l[++n]===l[++e]&&l[++n]===l[++e]&&l[++n]===l[++e]&&l[++n]===l[++e]&&l[++n]===l[++e]&&n<u;);if(n>o){if(this.matchStart=t,o=n,(s=n-this.stringStart)>=r)break;c=l[o-1],h=l[o]}n=this.stringStart}}while((t=65535&this.hashPrevious[t&this.windowMask])>a&&0!==--i);return this.matchLength=Math.min(s,this.lookAhead),this.matchLength>=3},t.prototype.updateHash=function(){this.currentHash=this.dataWindow[this.stringStart]<<this.hashShift^this.dataWindow[this.stringStart+1]},t.prototype.huffmanTallyLit=function(t){return this.arrDistances[this.bufferPosition]=0,this.arrLiterals[this.bufferPosition++]=t,this.treeLiteral.codeFrequencies[t]++,this.bufferPosition>=16384},t.prototype.huffmanTallyDist=function(t,e){this.arrDistances[this.bufferPosition]=t,this.arrLiterals[this.bufferPosition++]=e-3;var i=this.huffmanLengthCode(e-3);this.treeLiteral.codeFrequencies[i]++,i>=265&&i<285&&(this.extraBits+=Math.floor((i-261)/4));var r=this.huffmanDistanceCode(t-1);return this.treeDistances.codeFrequencies[r]++,r>=4&&(this.extraBits+=Math.floor(r/2-1)),this.bufferPosition>=16384},t.prototype.huffmanFlushBlock=function(t,e,i,r){this.treeLiteral.codeFrequencies[256]++,this.treeLiteral.buildTree(),this.treeDistances.buildTree(),this.treeLiteral.calculateBLFreq(this.treeCodeLengths),this.treeDistances.calculateBLFreq(this.treeCodeLengths),this.treeCodeLengths.buildTree();for(var n=4,o=18;o>n;o--)this.treeCodeLengths.codeLengths[Pi.huffCodeLengthOrders[o]]>0&&(n=o+1);var s=14+3*n+this.treeCodeLengths.getEncodedLength()+this.treeLiteral.getEncodedLength()+this.treeDistances.getEncodedLength()+this.extraBits,a=this.extraBits;for(o=0;o<286;o++)a+=this.treeLiteral.codeFrequencies[o]*xi[o];for(o=0;o<30;o++)a+=this.treeDistances.codeFrequencies[o]*Ei[o];s>=a&&(s=a),e>=0&&i+4<s>>3?this.huffmanFlushStoredBlock(t,e,i,r):s==a?(this.pendingBufferWriteBits(2+(r?1:0),3),this.treeLiteral.setStaticCodes(Ai,xi),this.treeDistances.setStaticCodes(Ci,Ei),this.huffmanCompressBlock(),this.huffmanReset()):(this.pendingBufferWriteBits(4+(r?1:0),3),this.huffmanSendAllTrees(n),this.huffmanCompressBlock(),this.huffmanReset())},t.prototype.huffmanFlushStoredBlock=function(t,e,i,r){this.pendingBufferWriteBits(0+(r?1:0),3),this.pendingBufferAlignToByte(),this.pendingBufferWriteShort(i),this.pendingBufferWriteShort(~i),this.pendingBufferWriteByteBlock(t,e,i),this.huffmanReset()},t.prototype.huffmanLengthCode=function(t){if(255===t)return 285;for(var e=257;t>=8;)e+=4,t>>=1;return e+t},t.prototype.huffmanDistanceCode=function(t){for(var e=0;t>=4;)e+=2,t>>=1;return e+t},t.prototype.huffmanSendAllTrees=function(t){this.treeCodeLengths.buildCodes(),this.treeLiteral.buildCodes(),this.treeDistances.buildCodes(),this.pendingBufferWriteBits(this.treeLiteral.treeLength-257,5),this.pendingBufferWriteBits(this.treeDistances.treeLength-1,5),this.pendingBufferWriteBits(t-4,4);for(var e=0;e<t;e++)this.pendingBufferWriteBits(this.treeCodeLengths.codeLengths[Pi.huffCodeLengthOrders[e]],3);this.treeLiteral.writeTree(this.treeCodeLengths),this.treeDistances.writeTree(this.treeCodeLengths)},t.prototype.huffmanReset=function(){this.bufferPosition=0,this.extraBits=0,this.treeLiteral.reset(),this.treeDistances.reset(),this.treeCodeLengths.reset()},t.prototype.huffmanCompressBlock=function(){for(var t=0;t<this.bufferPosition;t++){var e=255&this.arrLiterals[t],i=this.arrDistances[t];if(0!==i--){var r=this.huffmanLengthCode(e);this.treeLiteral.writeCodeToStream(r);var n=Math.floor((r-261)/4);n>0&&n<=5&&this.pendingBufferWriteBits(e&(1<<n)-1,n);var o=this.huffmanDistanceCode(i);this.treeDistances.writeCodeToStream(o),(n=Math.floor(o/2-1))>0&&this.pendingBufferWriteBits(i&(1<<n)-1,n)}else this.treeLiteral.writeCodeToStream(e)}this.treeLiteral.writeCodeToStream(256)},t.prototype.pendingBufferWriteBits=function(t,e){var i=new Uint32Array(1);i[0]=this.pendingBufCache|t<<this.pendingBufBitsInCache,this.pendingBufCache=i[0],this.pendingBufBitsInCache+=e,this.pendingBufferFlushBits()},t.prototype.pendingBufferFlush=function(t){if(this.pendingBufferFlushBits(),this.pendingBufLength>0){var e=new Uint8Array(this.pendingBufLength);e.set(this.pendingBuffer.subarray(0,this.pendingBufLength),0),this.stream.push(e)}this.pendingBufLength=0},t.prototype.pendingBufferFlushBits=function(){for(var t=0;this.pendingBufBitsInCache>=8&&this.pendingBufLength<65536;)this.pendingBuffer[this.pendingBufLength++]=this.pendingBufCache,this.pendingBufCache>>=8,this.pendingBufBitsInCache-=8,t++;return t},t.prototype.pendingBufferWriteByteBlock=function(t,e,i){var r=t.subarray(e,e+i);this.pendingBuffer.set(r,this.pendingBufLength),this.pendingBufLength+=i},t.prototype.pendingBufferWriteShort=function(t){this.pendingBuffer[this.pendingBufLength++]=t,this.pendingBuffer[this.pendingBufLength++]=t>>8},t.prototype.pendingBufferAlignToByte=function(){this.pendingBufBitsInCache>0&&(this.pendingBuffer[this.pendingBufLength++]=this.pendingBufCache),this.pendingBufCache=0,this.pendingBufBitsInCache=0},t.initHuffmanTree=function(){for(var t=0;t<144;)Ai[t]=Pi.bitReverse(48+t<<8),xi[t++]=8;for(;t<256;)Ai[t]=Pi.bitReverse(256+t<<7),xi[t++]=9;for(;t<280;)Ai[t]=Pi.bitReverse(-256+t<<9),xi[t++]=7;for(;t<286;)Ai[t]=Pi.bitReverse(-88+t<<8),xi[t++]=8;for(t=0;t<30;t++)Ci[t]=Pi.bitReverse(t<<11),Ei[t]=5},t.prototype.close=function(){do{this.pendingBufferFlush(!0),this.compressData(!0)||(this.pendingBufferFlush(!0),this.pendingBufferAlignToByte(),this.noWrap||(this.pendingBufferWriteShortBytes(this.checkSum>>16),this.pendingBufferWriteShortBytes(65535&this.checkSum)),this.pendingBufferFlush(!0))}while(this.inputEnd!==this.inputOffset||0!==this.pendingBufLength)},t.prototype.destroy=function(){this.stream=[],this.stream=void 0,this.pendingBuffer=void 0,this.treeLiteral=void 0,this.treeDistances=void 0,this.treeCodeLengths=void 0,this.arrLiterals=void 0,this.arrDistances=void 0,this.hashHead=void 0,this.hashPrevious=void 0,this.dataWindow=void 0,this.inputBuffer=void 0,this.pendingBufLength=void 0,this.pendingBufCache=void 0,this.pendingBufBitsInCache=void 0,this.bufferPosition=void 0,this.extraBits=void 0,this.currentHash=void 0,this.matchStart=void 0,this.matchLength=void 0,this.matchPrevAvail=void 0,this.blockStart=void 0,this.stringStart=void 0,this.lookAhead=void 0,this.totalBytesIn=void 0,this.inputOffset=void 0,this.inputEnd=void 0,this.windowSize=void 0,this.windowMask=void 0,this.hashSize=void 0,this.hashMask=void 0,this.hashShift=void 0,this.maxDist=void 0,this.checkSum=void 0,this.noWrap=void 0},t.isHuffmanTreeInitiated=!1,t}(),Pi=function(){function t(t,e,i,r){this.writer=t,this.codeMinCount=i,this.maxLength=r,this.codeFrequency=new Uint16Array(e),this.lengthCount=new Int32Array(r)}return Object.defineProperty(t.prototype,"treeLength",{get:function(){return this.codeCount},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"codeLengths",{get:function(){return this.codeLength},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"codeFrequencies",{get:function(){return this.codeFrequency},enumerable:!0,configurable:!0}),t.prototype.setStaticCodes=function(t,e){var i=new Int16Array(t.length);i.set(t,0),this.codes=i;var r=new Uint8Array(e.length);r.set(e,0),this.codeLength=r},t.prototype.reset=function(){for(var t=0;t<this.codeFrequency.length;t++)this.codeFrequency[t]=0;this.codes=void 0,this.codeLength=void 0},t.prototype.writeCodeToStream=function(t){this.writer.pendingBufferWriteBits(65535&this.codes[t],this.codeLength[t])},t.prototype.buildCodes=function(){var e=new Int32Array(this.maxLength);this.codes=new Int16Array(this.codeCount);for(var i=0,r=0;r<this.maxLength;r++)e[r]=i,i+=this.lengthCount[r]<<15-r;for(var n=0;n<this.codeCount;n++){var o=this.codeLength[n];o>0&&(this.codes[n]=t.bitReverse(e[o-1]),e[o-1]+=1<<16-o)}},t.bitReverse=function(e){return t.reverseBits[15&e]<<12|t.reverseBits[e>>4&15]<<8|t.reverseBits[e>>8&15]<<4|t.reverseBits[e>>12]},t.prototype.getEncodedLength=function(){for(var t=0,e=0;e<this.codeFrequency.length;e++)t+=this.codeFrequency[e]*this.codeLength[e];return t},t.prototype.calculateBLFreq=function(t){for(var e,i,r,n=-1,o=0;o<this.codeCount;){r=1;var s=this.codeLength[o];for(0===s?(e=138,i=3):(e=6,i=3,n!==s&&(t.codeFrequency[s]++,r=0)),n=s,o++;o<this.codeCount&&n===this.codeLength[o]&&(o++,!(++r>=e)););r<i?t.codeFrequency[n]+=r:0!==n?t.codeFrequency[16]++:r<=10?t.codeFrequency[17]++:t.codeFrequency[18]++}},t.prototype.writeTree=function(t){for(var e,i,r,n=-1,o=0;o<this.codeCount;){r=1;var s=this.codeLength[o];for(0===s?(e=138,i=3):(e=6,i=3,n!==s&&(t.writeCodeToStream(s),r=0)),n=s,o++;o<this.codeCount&&n===this.codeLength[o]&&(o++,!(++r>=e)););if(r<i)for(;r-- >0;)t.writeCodeToStream(n);else 0!==n?(t.writeCodeToStream(16),this.writer.pendingBufferWriteBits(r-3,2)):r<=10?(t.writeCodeToStream(17),this.writer.pendingBufferWriteBits(r-3,3)):(t.writeCodeToStream(18),this.writer.pendingBufferWriteBits(r-11,7))}},t.prototype.buildTree=function(){for(var t=this.codeFrequency.length,e=new Int32Array(t),i=0,r=0,n=0;n<t;n++){var o=this.codeFrequency[n];if(0!==o){for(var s=i++,a=0;s>0&&this.codeFrequency[e[a=Math.floor((s-1)/2)]]>o;)e[s]=e[a],s=a;e[s]=n,r=n}}for(;i<2;)e[i++]=r<2?++r:0;this.codeCount=Math.max(r+1,this.codeMinCount);for(var u=i,c=new Int32Array(4*i-2),h=new Int32Array(2*i-1),l=0;l<i;l++){var p=e[l],g=2*l;c[g]=p,c[g+1]=-1,h[l]=this.codeFrequency[p]<<8,e[l]=l}this.constructHuffmanTree(e,i,h,u,c),this.buildLength(c)},t.prototype.constructHuffmanTree=function(t,e,i,r,n){do{for(var o=t[0],s=t[--e],a=i[s],u=0,c=1;c<e;)c+1<e&&i[t[c]]>i[t[c+1]]&&c++,t[u]=t[c],c=2*(u=c)+1;for(;(c=u)>0&&i[t[u=Math.floor((c-1)/2)]]>a;)t[c]=t[u];t[c]=s;var h=t[0];n[2*(s=r++)]=o,n[2*s+1]=h;var l=Math.min(255&i[o],255&i[h]);for(i[s]=a=i[o]+i[h]-l+1,u=0,c=1;c<e;)c+1<e&&i[t[c]]>i[t[c+1]]&&c++,t[u]=t[c],c=2*(u=c)+1;for(;(c=u)>0&&i[t[u=Math.floor((c-1)/2)]]>a;)t[c]=t[u];t[c]=s}while(e>1)},t.prototype.buildLength=function(t){this.codeLength=new Uint8Array(this.codeFrequency.length);for(var e=Math.floor(t.length/2),i=Math.floor((e+1)/2),r=0,n=0;n<this.maxLength;n++)this.lengthCount[n]=0;if(0!==(r=this.calculateOptimalCodeLength(t,r,e))){var o=this.maxLength-1;do{for(;0===this.lengthCount[--o];);do{this.lengthCount[o]--,this.lengthCount[++o]++,r-=1<<this.maxLength-1-o}while(r>0&&o<this.maxLength-1)}while(r>0);this.recreateTree(t,r,i)}},t.prototype.recreateTree=function(t,e,i){this.lengthCount[this.maxLength-1]+=e,this.lengthCount[this.maxLength-2]-=e;for(var r=2*i,n=this.maxLength;0!==n;n--)for(var o=this.lengthCount[n-1];o>0;){var s=2*t[r++];-1===t[s+1]&&(this.codeLength[t[s]]=n,o--)}},t.prototype.calculateOptimalCodeLength=function(t,e,i){var r=new Int32Array(i);r[i-1]=0;for(var n=i-1;n>=0;n--){var o=2*n+1;if(-1!==t[o]){(s=r[n]+1)>this.maxLength&&(s=this.maxLength,e++),r[t[o-1]]=r[t[o]]=s}else{var s=r[n];this.lengthCount[s-1]++,this.codeLength[t[o-1]]=r[n]}}return e},t.reverseBits=[0,8,4,12,2,10,6,14,1,9,5,13,3,11,7,15],t.huffCodeLengthOrders=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],t}(),Ui=function(){function t(){}return t.checksumUpdate=function(e,i,r,n){var o=new Uint32Array(1);o[0]=e;for(var s=o[0],a=o[0]=65535&s,u=o[0]=s>>t.checkSumBitOffset;n>0;){var c=Math.min(n,t.checksumIterationCount);for(n-=c;--c>=0;)u+=a+=o[0]=255&i[r++];a%=t.checksumBase,u%=t.checksumBase}return s=u<<t.checkSumBitOffset|a},t.checkSumBitOffset=16,t.checksumBase=65521,t.checksumIterationCount=3800,t}(),Qi=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Yi=function(t){function e(e,i){var r=t.call(this,e)||this;return r.dicPrefix="stream",r.dicSuffix="endstream",r.clonedObject2=null,r.bCompress=!0,void 0!==e||void 0!==i?(r.dataStream2=[],r.dataStream2=i,r.bCompress2=!1):(r.dataStream2=[],r.bCompress2=!0),r}return Qi(e,t),Object.defineProperty(e.prototype,"internalStream",{get:function(){return this.dataStream2},set:function(t){this.dataStream2=[],this.dataStream2=t,this.modify()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"compress",{get:function(){return this.bCompress},set:function(t){this.bCompress=t,this.modify()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this.dataStream2},set:function(t){this.dataStream2=[],this.dataStream2=t,this.modify()},enumerable:!0,configurable:!0}),e.prototype.clearStream=function(){this.internalStream=[],this.items.containsKey(this.dictionaryProperties.filter)&&this.remove(this.dictionaryProperties.filter),this.bCompress=!0,this.modify()},e.prototype.write=function(t){if(null==t)throw new Error("ArgumentNullException:text");if(t.length<=0)throw new Error("ArgumentException: Can not write an empty string, text");this.dataStream2.push(t),this.modify()},e.prototype.writeBytes=function(t){if(null===t)throw new Error("ArgumentNullException:data");if(t.length<=0)throw new Error("ArgumentException: Can not write an empty bytes, data");for(var e="",i=0;i<t.length;i++)e+=String.fromCharCode(t[i]);this.dataStream2.push(e),this.modify()},e.prototype.onCmapBeginSave=function(){this.cmapBeginSave.sender.cmapBeginSave()},e.prototype.onFontProgramBeginSave=function(){this.fontProgramBeginSave.sender.fontProgramBeginSave()},e.prototype.compressContent=function(t,e){if(this.bCompress){for(var i=[],r=0;r<t.length;r++)i.push(t.charCodeAt(r));var n=new Uint8Array(i),o=new ki;o.write(n,0,n.length),o.close(),t=o.getCompressedString,this.addFilter(this.dictionaryProperties.flatedecode)}return t},e.prototype.addFilter=function(t){var e=this.items.getValue(this.dictionaryProperties.filter);e instanceof rr&&(e=e.object);var i=e,r=e;null!=r&&((i=new zi).insert(0,r),this.items.setValue(this.dictionaryProperties.filter,i)),r=new fi(t),null==i?this.items.setValue(this.dictionaryProperties.filter,r):i.insert(0,r)},e.prototype.save=function(e){void 0!==this.cmapBeginSave&&this.onCmapBeginSave(),void 0!==this.fontProgramBeginSave&&this.onFontProgramBeginSave();for(var i="",r=0;r<this.data.length;r++)i+=this.data[r];i.length>1&&!this.isResource&&(i="q\r\n"+i+"Q\r\n");var n=(i=this.compressContent(i,e)).length;this.items.setValue(this.dictionaryProperties.length,new Ii(n)),t.prototype.save.call(this,e,!1),e.write(this.dicPrefix),e.write(Mi.newLine),i.length>0&&e.write(i),e.write(Mi.newLine),e.write(this.dicSuffix),e.write(Mi.newLine)},e.bytesToString=function(t){for(var e="",i=0;i<t.length;i++)e+=String.fromCharCode(t[i]);return e},e}(mi),Ri=function(t){this.sender=t},Vi=function(t){this.sender=t};!function(t){var e,i;(e=t.ForceEncoding||(t.ForceEncoding={}))[e.None=0]="None",e[e.Ascii=1]="Ascii",e[e.Unicode=2]="Unicode",function(t){t[t.StringValue=0]="StringValue",t[t.ByteBuffer=1]="ByteBuffer"}(i||(i={}))}(Ti||(Ti={}));var Fi,Bi,Wi,Gi,Hi,qi,_i,Ji,Zi,Ki,Xi,$i,tr,er=function(){function t(t){if(this.bHex=!1,this.position1=-1,this.clonedObject1=null,this.bDecrypted=!1,this.isParentDecrypted=!1,this.isPacked=!1,this.isFormField=!1,this.isColorSpace=!1,this.isHexString=!0,void 0===t)this.bHex=!1;else if(!(t.length>0&&"0xfeff"===t[0])){this.stringValue=t,this.data=[];for(var e=0;e<t.length;++e)this.data.push(t.charCodeAt(e))}}return Object.defineProperty(t.prototype,"hex",{get:function(){return this.bHex},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.stringValue},set:function(t){this.stringValue=t,this.data=null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"status",{get:function(){return this.status1},set:function(t){this.status1=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isSaving",{get:function(){return this.isSaving1},set:function(t){this.isSaving1=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"objectCollectionIndex",{get:function(){return this.index1},set:function(t){this.index1=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clonedObject",{get:function(){return this.clonedObject1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"position",{get:function(){return this.position1},set:function(t){this.position1=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"CrossTable",{get:function(){return this.crossTable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"converted",{get:function(){return this.bConverted},set:function(t){this.bConverted=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"encode",{get:function(){return this.bForceEncoding},set:function(t){this.bForceEncoding=t},enumerable:!0,configurable:!0}),t.bytesToHex=function(t){if(null==t)return"";return""},t.prototype.save=function(e){if(null===e)throw new Error("ArgumentNullException : writer");void 0!==this.encode&&this.encode===Ti.ForceEncoding.Ascii?e.write(this.pdfEncode()):e.write(t.stringMark[0]+this.value+t.stringMark[1])},t.prototype.pdfEncode=function(){var e="";if(void 0!==this.encode&&this.encode===Ti.ForceEncoding.Ascii){for(var i=this.escapeSymbols(this.value),r=0;r<i.length;r++)e+=String.fromCharCode(i[r]);e=t.stringMark[0]+e+t.stringMark[1]}else e=this.value;return e},t.prototype.escapeSymbols=function(t){for(var e=[],i=0;i<t.length;i++){var r=t.charCodeAt(i);switch(r){case 40:case 41:case 92:e.push(92),e.push(r);break;case 13:e.push(92),e.push(114);break;default:e.push(r)}}return e},t.prototype.clone=function(e){if(null!==this.clonedObject1&&this.clonedObject1.CrossTable===e)return this.clonedObject1;this.clonedObject1=null;var i=new t(this.stringValue);return i.bHex=this.bHex,i.crossTable=e,i.isColorSpace=this.isColorSpace,this.clonedObject1=i,i},t.toUnicodeArray=function(t,e){if(null==t)throw new Error("Argument Null Exception : value");for(var i=[],r=0;r<t.length;r++){var n=t.charCodeAt(r);i.push(n/256>>>0),i.push(255&n)}return i},t.byteToString=function(t){if(null==t)throw new Error("Argument Null Exception : stream");for(var e="",i=0;i<t.length;++i)e+=String.fromCharCode(t[i]);return e},t.stringMark="()",t.hexStringMark="<>",t.hexFormatPattern="{0:X2}",t}(),ir=function(){function t(t,e){this.index3=-1,this.position3=-1,this.objNumber=0,this.genNumber=0,"number"==typeof t&&"number"==typeof e?(this.objNumber=t,this.genNumber=e):(this.objNumber=Number(t),this.genNumber=Number(e))}return Object.defineProperty(t.prototype,"status",{get:function(){return this.status3},set:function(t){this.status3=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isSaving",{get:function(){return this.isSaving3},set:function(t){this.isSaving3=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"objectCollectionIndex",{get:function(){return this.index3},set:function(t){this.index3=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"position",{get:function(){return this.position3},set:function(t){this.position3=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clonedObject",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.save=function(t){t.write(this.toString())},t.prototype.toString=function(){return this.objNumber.toString()+" "+this.genNumber.toString()+" R"},t.prototype.clone=function(t){return null},t}(),rr=function(){function t(t,e){this.index4=-1,this.position4=-1,this.objectIndex=-1,this.dictionaryProperties=new yi,this.initialize(t)}return Object.defineProperty(t.prototype,"status",{get:function(){return this.status4},set:function(t){this.status4=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isSaving",{get:function(){return this.isSaving4},set:function(t){this.isSaving4=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"objectCollectionIndex",{get:function(){return this.index4},set:function(t){this.index4=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"position",{get:function(){return this.position4},set:function(t){this.position4=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clonedObject",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"object",{get:function(){return this.primitiveObject},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"reference",{get:function(){return this.pdfReference},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.objectIndex},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.primitiveObject},enumerable:!0,configurable:!0}),t.prototype.initialize=function(t){if(t instanceof zi||t instanceof mi||t instanceof fi||t instanceof Ii||t instanceof Yi||t instanceof ir||t instanceof er)this.primitiveObject=t;else{var e=t;this.initialize(e.element)}},t.prototype.save=function(t){t.position;var e=t.document.crossTable;this.object.isSaving=!0;e.getReference(this.object).save(t)},t.prototype.clone=function(t){return null},t}();!function(t){t[t.Left=0]="Left",t[t.Center=1]="Center",t[t.Right=2]="Right"}(Fi||(Fi={})),function(t){t[t.Top=0]="Top",t[t.Middle=1]="Middle",t[t.Bottom=2]="Bottom"}(Bi||(Bi={})),function(t){t[t.Left=0]="Left",t[t.Center=1]="Center",t[t.Right=2]="Right",t[t.Justify=3]="Justify"}(Wi||(Wi={})),function(t){t[t.Fill=0]="Fill",t[t.Stroke=1]="Stroke",t[t.FillStroke=2]="FillStroke",t[t.None=3]="None",t[t.ClipFlag=4]="ClipFlag",t[t.ClipFill=4]="ClipFill",t[t.ClipStroke=5]="ClipStroke",t[t.ClipFillStroke=6]="ClipFillStroke",t[t.Clip=7]="Clip"}(Gi||(Gi={})),function(t){t[t.Miter=0]="Miter",t[t.Round=1]="Round",t[t.Bevel=2]="Bevel"}(Hi||(Hi={})),function(t){t[t.Flat=0]="Flat",t[t.Round=1]="Round",t[t.Square=2]="Square"}(qi||(qi={})),function(t){t[t.Solid=0]="Solid",t[t.Dash=1]="Dash",t[t.Dot=2]="Dot",t[t.DashDot=3]="DashDot",t[t.DashDotDot=4]="DashDotDot",t[t.Custom=5]="Custom"}(_i||(_i={})),function(t){t[t.Winding=0]="Winding",t[t.Alternate=1]="Alternate"}(Ji||(Ji={})),function(t){t[t.Rgb=0]="Rgb",t[t.Cmyk=1]="Cmyk",t[t.GrayScale=2]="GrayScale",t[t.Indexed=3]="Indexed"}(Zi||(Zi={})),function(t){t[t.Normal=0]="Normal",t[t.Multiply=1]="Multiply",t[t.Screen=2]="Screen",t[t.Overlay=3]="Overlay",t[t.Darken=4]="Darken",t[t.Lighten=5]="Lighten",t[t.ColorDodge=6]="ColorDodge",t[t.ColorBurn=7]="ColorBurn",t[t.HardLight=8]="HardLight",t[t.SoftLight=9]="SoftLight",t[t.Difference=10]="Difference",t[t.Exclusion=11]="Exclusion",t[t.Hue=12]="Hue",t[t.Saturation=13]="Saturation",t[t.Color=14]="Color",t[t.Luminosity=15]="Luminosity"}(Ki||(Ki={})),function(t){t[t.Centimeter=0]="Centimeter",t[t.Pica=1]="Pica",t[t.Pixel=2]="Pixel",t[t.Point=3]="Point",t[t.Inch=4]="Inch",t[t.Document=5]="Document",t[t.Millimeter=6]="Millimeter"}(Xi||(Xi={})),function(t){t[t.Fit=0]="Fit",t[t.Center=1]="Center",t[t.Stretch=2]="Stretch",t[t.Tile=3]="Tile"}($i||($i={})),function(t){t[t.None=0]="None",t[t.LeftToRight=1]="LeftToRight",t[t.RightToLeft=2]="RightToLeft"}(tr||(tr={}));var nr,or,sr,ar,ur,cr,hr,lr,pr,gr,dr,fr,Mr,yr=function(){function t(e,i,r,n){void 0===e?void 0!==i&&void 0!==r&&void 0!==n?this.assignRGB(i,r,n):this.filled=!1:e instanceof t?(this.redColor=e.r,this.greenColor=e.g,this.blueColor=e.b,this.grayColor=e.gray,this.alpha=e.alpha,this.filled=0!==this.alpha):"number"==typeof e&&void 0===i&&void 0===r&&void 0===n?(e<0&&(e=0),e>1&&(e=1),this.redColor=e*t.maxColourChannelValue,this.greenColor=e*t.maxColourChannelValue,this.blueColor=e*t.maxColourChannelValue,this.cyanColor=e,this.magentaColor=e,this.yellowColor=e,this.blackColor=e,this.grayColor=e,this.alpha=t.maxColourChannelValue,this.filled=!0):void 0===n?this.assignRGB(e,i,r):this.assignRGB(i,r,n,e)}return t.prototype.assignRGB=function(e,i,r,n){void 0===e||void 0===i||void 0===r?this.filled=!1:(this.cyanColor=0,this.magentaColor=0,this.yellowColor=0,this.blackColor=0,this.grayColor=0,this.redColor=e,this.greenColor=i,this.blueColor=r,this.alpha=void 0===n?t.maxColourChannelValue:n,this.filled=!0,this.assignCMYK(e,i,r))},t.prototype.assignCMYK=function(e,i,r){var n=e/t.maxColourChannelValue,o=i/t.maxColourChannelValue,s=r/t.maxColourChannelValue,a=Ii.min(1-n,1-o,1-s),u=1===a?0:(1-n-a)/(1-a),c=1===a?0:(1-o-a)/(1-a),h=1===a?0:(1-s-a)/(1-a);this.blackColor=a,this.cyanColor=u,this.magentaColor=c,this.yellowColor=h},Object.defineProperty(t.prototype,"r",{get:function(){return this.redColor},set:function(t){this.redColor=t,this.assignCMYK(this.redColor,this.greenColor,this.blueColor),this.filled=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"red",{get:function(){return this.r/t.maxColourChannelValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"b",{get:function(){return this.blueColor},set:function(t){this.blueColor=t,this.assignCMYK(this.redColor,this.greenColor,this.blueColor),this.filled=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"blue",{get:function(){return this.b/t.maxColourChannelValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"c",{get:function(){return this.cyanColor},set:function(t){this.cyanColor=t<0?0:t>1?1:t,this.assignRGB(this.cyanColor,this.magentaColor,this.yellowColor,this.blackColor),this.filled=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"k",{get:function(){return this.blackColor},set:function(t){this.blackColor=t<0?0:t>1?1:t,this.assignRGB(this.cyanColor,this.magentaColor,this.yellowColor,this.blackColor),this.filled=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"m",{get:function(){return this.magentaColor},set:function(t){this.magentaColor=t<0?0:t>1?1:t,this.assignRGB(this.cyanColor,this.magentaColor,this.yellowColor,this.blackColor),this.filled=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this.yellowColor},set:function(t){this.yellowColor=t<0?0:t>1?1:t,this.assignRGB(this.cyanColor,this.magentaColor,this.yellowColor,this.blackColor),this.filled=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"g",{get:function(){return this.greenColor},set:function(t){this.greenColor=t,this.assignCMYK(this.redColor,this.greenColor,this.blueColor),this.filled=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"green",{get:function(){return this.g/t.maxColourChannelValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"gray",{get:function(){return(this.redColor+this.greenColor+this.blueColor)/(3*t.maxColourChannelValue)},set:function(e){this.grayColor=e<0?0:e>1?1:e,this.r=this.grayColor*t.maxColourChannelValue,this.g=this.grayColor*t.maxColourChannelValue,this.b=this.grayColor*t.maxColourChannelValue,this.assignCMYK(this.redColor,this.greenColor,this.blueColor),this.filled=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isEmpty",{get:function(){return!this.filled},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"a",{get:function(){return this.alpha},set:function(t){this.alpha=t<0?0:t,this.filled=!0},enumerable:!0,configurable:!0}),t.prototype.toString=function(t,e){if(this.isEmpty)return"";var i="";switch(t){case Zi.Rgb:i=this.rgbToString(e);break;case Zi.GrayScale:i=this.grayScaleToString(e);break;case Zi.Cmyk:i=this.cmykToString(e)}return i},t.prototype.grayScaleToString=function(e){var i=this.gray,r="",n=null;return null==(n=e?t.grayStringsSroke.containsKey(i)?t.grayStringsSroke.getValue(i):null:t.grayStringsFill.containsKey(i)?t.grayStringsFill.getValue(i):null)?e&&(r=i.toString()+" G",t.grayStringsSroke.setValue(i,r)):r=n.toString(),r+Mi.newLine},t.prototype.rgbToString=function(e){var i=this.r,r=this.g,n=this.b,o=(i<<16)+(r<<8)+n;e&&(o+=1<<24);var s="",a=null;if(t.rgbStrings.containsKey(o)&&(a=t.rgbStrings.getValue(o)),null==a){var u=i/t.maxColourChannelValue,c=r/t.maxColourChannelValue,h=n/t.maxColourChannelValue;s=e?u.toString()+" "+c.toString()+" "+h.toString()+" RG":u.toString()+" "+c.toString()+" "+h.toString()+" rg",t.rgbStrings.setValue(o,s)}else s=a.toString();return s+Mi.newLine},t.prototype.cmykToString=function(t){var e=this.c,i=this.m,r=this.y,n=this.b;return e.toString()+" "+i.toString()+" "+r.toString()+" "+n.toString()+" K"+Mi.newLine},t.prototype.toArray=function(t){var e=new zi;if(t===Zi.Rgb)e.add(new Ii(this.red)),e.add(new Ii(this.green)),e.add(new Ii(this.blue));return e},t.rgbStrings=new di,t.grayStringsSroke=new di,t.grayStringsFill=new di,t.maxColourChannelValue=255,t}(),mr=function(t,e){void 0===t?(this.x=0,this.y=0):(this.x=null!==t?t:0,this.y=null!==e?e:0)},Nr=function(t,e){void 0===e?(this.height=0,this.width=0):(this.height=null!==e?e:0,this.width=null!==t?t:0)},jr=function(t,e,i,r){if(typeof t==typeof t&&void 0===t)this.x=0,this.y=0,this.height=0,this.width=0;else if(t instanceof mr&&e instanceof Nr&&void 0===i){var n=t;this.x=n.x,this.y=n.y;var o=e;this.height=o.height,this.width=o.width}else{var s=t,a=e,u=i,c=r;this.x=s,this.y=a,this.height=c,this.width=u}},Dr=function(){function t(t,e,i,r){this.left=t,this.top=e,this.right=i,this.bottom=r}return Object.defineProperty(t.prototype,"width",{get:function(){return this.right-this.left},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.bottom-this.top},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"topLeft",{get:function(){return new mr(this.left,this.top)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return new Nr(this.width,this.height)},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.topLeft+"x"+this.size},t}(),Sr=function(){function t(){}return t.prototype.clone=function(){return this},t}(),vr=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Ir=function(t){function e(e){var i=t.call(this)||this;return i.pdfColor=e,i}return vr(e,t),Object.defineProperty(e.prototype,"color",{get:function(){return this.pdfColor},set:function(t){this.pdfColor=t},enumerable:!0,configurable:!0}),e.prototype.monitorChanges=function(t,e,i,r,n){if(null==e)throw new Error("ArgumentNullException:streamWriter");var o=!1;return o=!0,e.setColorAndSpace(this.pdfColor,n,!1),o},e.prototype.resetChanges=function(t){t.setColorAndSpace(new yr(0,0,0),Zi.Rgb,!1)},e}(Sr);!function(t){t[t.Regular=0]="Regular",t[t.Bold=1]="Bold",t[t.Italic=2]="Italic",t[t.Underline=4]="Underline",t[t.Strikeout=8]="Strikeout"}(nr||(nr={})),function(t){t[t.Helvetica=0]="Helvetica",t[t.Courier=1]="Courier",t[t.TimesRoman=2]="TimesRoman",t[t.Symbol=3]="Symbol",t[t.ZapfDingbats=4]="ZapfDingbats"}(or||(or={})),function(t){t[t.Standard=0]="Standard",t[t.TrueType=1]="TrueType",t[t.TrueTypeEmbedded=2]="TrueTypeEmbedded"}(sr||(sr={})),function(t){t[t.None=0]="None",t[t.Word=1]="Word",t[t.WordOnly=2]="WordOnly",t[t.Character=3]="Character"}(ar||(ar={})),function(t){t[t.None=0]="None",t[t.SuperScript=1]="SuperScript",t[t.SubScript=2]="SubScript"}(ur||(ur={})),function(t){t[t.Unknown=0]="Unknown",t[t.StandardEncoding=1]="StandardEncoding",t[t.MacRomanEncoding=2]="MacRomanEncoding",t[t.MacExpertEncoding=3]="MacExpertEncoding",t[t.WinAnsiEncoding=4]="WinAnsiEncoding",t[t.PdfDocEncoding=5]="PdfDocEncoding",t[t.IdentityH=6]="IdentityH"}(cr||(cr={})),function(t){t[t.Apple=0]="Apple",t[t.Microsoft=4]="Microsoft",t[t.Trimmed=6]="Trimmed"}(hr||(hr={})),function(t){t[t.Unknown=0]="Unknown",t[t.Symbol=1]="Symbol",t[t.Unicode=2]="Unicode",t[t.Macintosh=3]="Macintosh"}(lr||(lr={})),function(t){t[t.AppleUnicode=0]="AppleUnicode",t[t.Macintosh=1]="Macintosh",t[t.Iso=2]="Iso",t[t.Microsoft=3]="Microsoft"}(pr||(pr={})),function(t){t[t.Undefined=0]="Undefined",t[t.Unicode=1]="Unicode"}(gr||(gr={})),function(t){t[t.Roman=0]="Roman",t[t.Japanese=1]="Japanese",t[t.Chinese=2]="Chinese"}(dr||(dr={})),function(t){t[t.FixedPitch=1]="FixedPitch",t[t.Serif=2]="Serif",t[t.Symbolic=4]="Symbolic",t[t.Script=8]="Script",t[t.Nonsymbolic=32]="Nonsymbolic",t[t.Italic=64]="Italic",t[t.ForceBold=262144]="ForceBold"}(fr||(fr={})),function(t){t[t.Arg1And2AreWords=1]="Arg1And2AreWords",t[t.ArgsAreXyValues=2]="ArgsAreXyValues",t[t.RoundXyToGrid=4]="RoundXyToGrid",t[t.WeHaveScale=8]="WeHaveScale",t[t.Reserved=16]="Reserved",t[t.MoreComponents=32]="MoreComponents",t[t.WeHaveAnXyScale=64]="WeHaveAnXyScale",t[t.WeHaveTwoByTwo=128]="WeHaveTwoByTwo",t[t.WeHaveInstructions=256]="WeHaveInstructions",t[t.UseMyMetrics=512]="UseMyMetrics"}(Mr||(Mr={}));var zr,br=function(){function t(t,e){this.scalingFactor=100,this.wordWrapType=ar.Word,this.internalLineLimit=!0,this.wordWrapType=ar.Word,void 0!==t&&"string"!=typeof t&&(this.textAlignment=t),void 0!==e&&(this.verticalAlignment=e)}return Object.defineProperty(t.prototype,"alignment",{get:function(){return this.textAlignment},set:function(t){this.textAlignment=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"textDirection",{get:function(){return this.direction},set:function(t){this.direction=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineAlignment",{get:function(){return void 0===this.verticalAlignment||null==this.verticalAlignment?Bi.Top:this.verticalAlignment},set:function(t){this.verticalAlignment=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rightToLeft",{get:function(){return void 0!==this.isRightToLeft&&null!=this.isRightToLeft&&this.isRightToLeft},set:function(t){this.isRightToLeft=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"characterSpacing",{get:function(){return void 0===this.internalCharacterSpacing||null==this.internalCharacterSpacing?0:this.internalCharacterSpacing},set:function(t){this.internalCharacterSpacing=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"wordSpacing",{get:function(){return void 0===this.internalWordSpacing||null==this.internalWordSpacing?0:this.internalWordSpacing},set:function(t){this.internalWordSpacing=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineSpacing",{get:function(){return void 0===this.leading||null==this.leading?0:this.leading},set:function(t){this.leading=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clipPath",{get:function(){return void 0!==this.clip&&null!=this.clip&&this.clip},set:function(t){this.clip=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"subSuperScript",{get:function(){return void 0===this.pdfSubSuperScript||null==this.pdfSubSuperScript?ur.None:this.pdfSubSuperScript},set:function(t){this.pdfSubSuperScript=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paragraphIndent",{get:function(){return void 0===this.internalParagraphIndent||null==this.internalParagraphIndent?0:this.internalParagraphIndent},set:function(t){this.internalParagraphIndent=t,this.firstLineIndent=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineLimit",{get:function(){return this.internalLineLimit},set:function(t){this.internalLineLimit=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"measureTrailingSpaces",{get:function(){return void 0!==this.trailingSpaces&&null!=this.trailingSpaces&&this.trailingSpaces},set:function(t){this.trailingSpaces=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"noClip",{get:function(){return void 0!==this.isNoClip&&null!=this.isNoClip&&this.isNoClip},set:function(t){this.isNoClip=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"wordWrap",{get:function(){return this.wordWrapType},set:function(t){this.wordWrapType=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"horizontalScalingFactor",{get:function(){return this.scalingFactor},set:function(t){if(t<=0)throw new Error("ArgumentOutOfRangeException:The scaling factor cant be less of equal to zero, ScalingFactor");this.scalingFactor=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstLineIndent",{get:function(){return void 0===this.initialLineIndent||null==this.initialLineIndent?0:this.initialLineIndent},set:function(t){this.initialLineIndent=t},enumerable:!0,configurable:!0}),t.prototype.clone=function(){return this},t}(),wr=function(){function t(t){if(this.currentPosition=0,null==t)throw new Error("ArgumentNullException:text");this.text=t}return Object.defineProperty(t.prototype,"length",{get:function(){return this.text.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"end",{get:function(){return this.currentPosition===this.text.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"position",{get:function(){return this.currentPosition},set:function(t){this.currentPosition=t},enumerable:!0,configurable:!0}),t.getCharsCount=function(t,e){if("string"==typeof e){if(null==t)throw new Error("ArgumentNullException:wholeText");for(var i=0,r=0;-1!==(r=t.indexOf(e,r));)i++,r++;return i}if(null==t)throw new Error("ArgumentNullException:text");if(null==e)throw new Error("ArgumentNullException:symbols");for(var n=0,o=0,s=t.length;o<s;o++){var a=t[o];this.contains(e,a)&&n++}return n},t.prototype.readLine=function(){for(var t=this.currentPosition;t<this.length;){var e=this.text[t];switch(e){case"\r":case"\n":var i=this.text.substr(this.currentPosition,t-this.currentPosition);return this.currentPosition=t+1,"\r"===e&&this.currentPosition<this.length&&"\n"===this.text[this.currentPosition]&&this.currentPosition++,i}t++}if(t>this.currentPosition){var r=this.text.substr(this.currentPosition,t-this.currentPosition);return this.currentPosition=t,r}return null},t.prototype.peekLine=function(){var t=this.currentPosition,e=this.readLine();return this.currentPosition=t,e},t.prototype.readWord=function(){for(var t=this.currentPosition;t<this.length;){var e=this.text[t];switch(e){case"\r":case"\n":var i=this.text.substr(this.currentPosition,t-this.currentPosition);return this.currentPosition=t+1,"\r"===e&&this.currentPosition<this.length&&"\n"===this.text[this.currentPosition]&&this.currentPosition++,i;case" ":case"\t":t===this.currentPosition&&t++;var r=this.text.substr(this.currentPosition,t-this.currentPosition);return this.currentPosition=t,r}t++}if(t>this.currentPosition){var n=this.text.substr(this.currentPosition,t-this.currentPosition);return this.currentPosition=t,n}return null},t.prototype.peekWord=function(){var t=this.currentPosition,e=this.readWord();return this.currentPosition=t,e},t.prototype.read=function(t){if(void 0===t){var e="0";return this.end||(e=this.text[this.currentPosition],this.currentPosition++),e}for(var i=0,r="";!this.end&&i<t;){r+=e=this.read(),i++}return r},t.prototype.peek=function(){var t="0";return this.end||(t=this.text[this.currentPosition]),t},t.prototype.close=function(){this.text=null},t.prototype.readToEnd=function(){var t;return t=0===this.currentPosition?this.text:this.text.substr(this.currentPosition,this.length-this.currentPosition),this.currentPosition=this.length,t},t.contains=function(t,e){for(var i=!1,r=0;r<t.length;r++)if(t[r]===e){i=!0;break}return i},t.whiteSpace=" ",t.tab="\t",t.spaces=[t.whiteSpace,t.tab],t.whiteSpacePattern="^[ \t]+$",t}(),Or=function(){function t(){this.isOverloadWithPosition=!1}return t.prototype.layout=function(t,e,i,r,n,o,s){if(r instanceof jr){this.initialize(t,e,i,r,n),this.isOverloadWithPosition=o,this.clientSize=s;var a=this.doLayout();return this.clear(),a}this.initialize(t,e,i,r),this.isOverloadWithPosition=n,this.clientSize=o;a=this.doLayout();return this.clear(),a},t.prototype.initialize=function(t,e,i,r,n){if("number"==typeof n){if(null==t)throw new Error("ArgumentNullException:text");if(null==e)throw new Error("ArgumentNullException:font");this.text=t,this.font=e,this.format=i,this.size=new Nr(r.width,r.height),this.rectangle=r,this.pageHeight=n,this.reader=new wr(t)}else this.initialize(t,e,i,new jr(new mr(0,0),r),0)},t.prototype.clear=function(){this.font=null,this.format=null,this.reader.close(),this.reader=null,this.text=null},t.prototype.doLayout=function(){for(var t=new Tr,e=new Tr,i=[],r=this.reader.peekLine(),n=this.getLineIndent(!0);null!=r;){if(null!==(e=this.layoutLine(r,n))||void 0!==e){var o=0,s=this.copyToResult(t,e,i,o),a=s.success;if(o=s.numInserted,!a){this.reader.read(o);break}}this.reader.readLine(),r=this.reader.peekLine(),n=this.getLineIndent(!1)}return this.finalizeResult(t,i),t},t.prototype.getLineIndent=function(t){var e=0;return null!=this.format&&(e=t?this.format.firstLineIndent:this.format.paragraphIndent,e=this.size.width>0?Math.min(this.size.width,e):e),e},t.prototype.getLineHeight=function(){var t=this.font.height;return null!=this.format&&0!==this.format.lineSpacing&&(t=this.format.lineSpacing+this.font.height),t},t.prototype.getLineWidth=function(t){return this.font.getLineWidth(t,this.format)},t.prototype.layoutLine=function(t,e){var i=new Tr;i.layoutLineHeight=this.getLineHeight();var r=[],n=this.size.width,o=this.getLineWidth(t)+e,s=zr.FirstParagraphLine,a=!0;if(n<=0||Math.round(o)<=Math.round(n))this.addToLineResult(i,r,t,o,zr.NewLineBreak|s);else{var u="",c="";o=e;var h=e,l=new wr(t),p=l.peekWord();for(p.length!==l.length&&" "===p&&(c+=p,u+=p,l.position+=1,p=l.peekWord());null!=p;){c+=p;var g=this.getLineWidth(c.toString())+h;if(" "===c.toString()&&(c="",g=0),g>n){if(this.getWrapType()===ar.None)break;if(c.length===p.length){if(this.getWrapType()===ar.WordOnly){i.textRemainder=t.substring(l.position);break}if(1===c.length){u+=p;break}a=!1,c="",p=l.peek().toString();continue}this.getLineWidth(p.toString())>n?this.format.wordWrap=ar.Character:void 0!==this.format&&null!==this.format&&(this.format.wordWrap=ar.Word),this.getWrapType()===ar.Character&&a?(a=!1,c="",c+=u.toString(),p=l.peek().toString()):(" "!==(d=u.toString())&&this.addToLineResult(i,r,d,o,zr.LayoutBreak|s),this.isOverloadWithPosition&&(n=this.clientSize.width),c="",u="",o=0,h=0,g=0,s=zr.None,p=a?p:l.peekWord(),a=!0)}else u+=p,o=g,a?(l.readWord(),p=l.peekWord()):(l.read(),p=l.peek().toString())}if(u.length>0){var d=u.toString();this.addToLineResult(i,r,d,o,zr.NewLineBreak|zr.LastParagraphLine)}l.close()}i.layoutLines=[];for(var f=0;f<r.length;f++)i.layoutLines.push(r[f]);return r=[],i},t.prototype.addToLineResult=function(t,e,i,r,n){var o=new Lr;o.text=i,o.width=r,o.lineType=n,e.push(o);var s=t.actualSize;s.height+=this.getLineHeight(),s.width=Math.max(s.width,r),t.size=s},t.prototype.copyToResult=function(t,e,i,r){var n=!0,o=null!=this.format&&!this.format.lineLimit,s=t.actualSize.height,a=this.size.height;if(this.pageHeight>0&&a+this.rectangle.y>this.pageHeight&&(a=this.rectangle.y-this.pageHeight,a=Math.max(a,-a)),r=0,null!=e.lines)for(var u=0,c=e.lines.length;u<c;u++){var h=s+e.lineHeight;if(!(h<=a||a<=0||o)){n=!1;break}var l=e.lines[u];r+=l.text.length,l=this.trimLine(l,0===i.length),i.push(l);var p=t.actualSize;p.width=Math.max(p.width,l.width),t.size=p,s=h}if(s!=t.size.height){var g=t.actualSize;g.height=s,t.size=g}return{success:n,numInserted:r}},t.prototype.finalizeResult=function(t,e){t.layoutLines=[];for(var i=0;i<e.length;i++)t.layoutLines.push(e[i]);t.layoutLineHeight=this.getLineHeight(),this.reader.end||(t.textRemainder=this.reader.readToEnd()),e=[]},t.prototype.trimLine=function(t,e){var i=t.text,r=t.width;t.lineType,zr.FirstParagraphLine;null==this.format||this.format.rightToLeft;return wr.spaces,(i=i.trim()).length!==t.text.length&&(r=this.getLineWidth(i),(t.lineType&zr.FirstParagraphLine)>0&&(r+=this.getLineIndent(e))),t.text=i,t.width=r,t},t.prototype.getWrapType=function(){return null!=this.format?this.format.wordWrap:ar.Word},t}(),Tr=function(){function t(){}return Object.defineProperty(t.prototype,"remainder",{get:function(){return this.textRemainder},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"actualSize",{get:function(){return void 0===this.size&&(this.size=new Nr(0,0)),this.size},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lines",{get:function(){return this.layoutLines},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineHeight",{get:function(){return this.layoutLineHeight},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"empty",{get:function(){return null==this.layoutLines||0===this.layoutLines.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineCount",{get:function(){return this.empty?0:this.layoutLines.length},enumerable:!0,configurable:!0}),t}(),Lr=function(){function t(){}return Object.defineProperty(t.prototype,"lineType",{get:function(){return this.type},set:function(t){this.type=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.content},set:function(t){this.content=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.lineWidth},set:function(t){this.lineWidth=t},enumerable:!0,configurable:!0}),t}();!function(t){t[t.None=0]="None",t[t.NewLineBreak=1]="NewLineBreak",t[t.LayoutBreak=2]="LayoutBreak",t[t.FirstParagraphLine=4]="FirstParagraphLine",t[t.LastParagraphLine=8]="LastParagraphLine"}(zr||(zr={}));var Ar,xr=function(){function t(t,e){this.fontStyle=nr.Regular,"number"==typeof t&&void 0===e?this.fontSize=t:(this.fontSize=t,this.setStyle(e))}return Object.defineProperty(t.prototype,"name",{get:function(){return this.metrics.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this.fontSize},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.metrics.getHeight(null)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"style",{get:function(){return this.fontStyle},set:function(t){this.fontStyle=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bold",{get:function(){return(this.style&nr.Bold)>0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"italic",{get:function(){return(this.style&nr.Italic)>0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strikeout",{get:function(){return(this.style&nr.Strikeout)>0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"underline",{get:function(){return(this.style&nr.Underline)>0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"metrics",{get:function(){return this.fontMetrics},set:function(t){this.fontMetrics=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.pdfFontInternals},enumerable:!0,configurable:!0}),t.prototype.measureString=function(t,e,i,r,n){if("string"==typeof t&&void 0===e)return this.measureString(t,null);if("string"==typeof t&&(e instanceof br||null==e)&&void 0===i&&void 0===r){var o=e;return this.measureString(t,o,0,0)}if("string"==typeof t&&(e instanceof br||null==e)&&"number"==typeof i&&"number"==typeof r){o=e;return this.measureString(t,0,o,i,r)}if("string"==typeof t&&"number"==typeof e&&(i instanceof br||null==i)&&"number"==typeof r&&"number"==typeof n){var s=new Nr(e,0),a=i;return this.measureString(t,s,a,r,n)}if(null==t)throw Error('ArgumentNullException("text")');o=e,a=i;var u=(new Or).layout(t,this,a,o,!1,new Nr(0,0));return r=t.length,n=u.empty?0:u.lines.length,u.actualSize},t.prototype.equalsTo=function(t){return this.equalsToFont(t)},t.prototype.getInternals=function(){return this.pdfFontInternals},t.prototype.setInternals=function(t){if(null==t)throw new Error("ArgumentNullException:internals");this.pdfFontInternals=t},t.prototype.setStyle=function(t){this.fontStyle=t},t.prototype.applyFormatSettings=function(t,e,i){var r=i;if(null!=e&&i>0&&(0!==e.characterSpacing&&(r+=(t.length-1)*e.characterSpacing),0!==e.wordSpacing)){var n=wr.spaces;r+=wr.getCharsCount(t,n)*e.wordSpacing}return r},t.charSizeMultiplier=.001,t.syncObject=new Object,t}(),Cr=function(){function t(t){this.streamWriter=t}return Object.defineProperty(t.prototype,"document",{get:function(){return this.pdfDocument},set:function(t){this.pdfDocument=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"position",{get:function(){return this.streamWriter.buffer.size},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this.streamWriter.buffer.size},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"stream",{get:function(){return this.streamWriter},enumerable:!0,configurable:!0}),t.prototype.write=function(t){var e=t;this.streamWriter.write(e)},t}();!function(t){t[t.None=0]="None",t[t.Registered=1]="Registered"}(Ar||(Ar={}));var Er,kr=function(){function t(){this.objectCollections=[],this.mainObjectCollection=new di,this.primitiveObjectCollection=new di}return Object.defineProperty(t.prototype,"count",{get:function(){return this.objectCollections.length},enumerable:!0,configurable:!0}),t.prototype.items=function(t){return this.objectCollections[t]},Object.defineProperty(t.prototype,"outIsNew",{get:function(){return this.isNew},enumerable:!0,configurable:!0}),t.prototype.add=function(t){var e=new Pr(t);this.objectCollections.push(e),this.primitiveObjectCollection.containsKey(t)||this.primitiveObjectCollection.setValue(t,this.objectCollections.length-1),t.position=this.index=this.objectCollections.length-1,t.status=Ar.Registered},t.prototype.lookFor=function(t){var e=-1;if(-1!==t.position)return t.position;if(this.primitiveObjectCollection.containsKey(t)&&this.count===this.primitiveObjectCollection.size())e=this.primitiveObjectCollection.getValue(t);else for(var i=this.count-1;i>=0;i--){if(this.objectCollections[i].object===t){e=i;break}}return e},t.prototype.getReference=function(t,e){return this.index=this.lookFor(t),this.isNew=!1,{reference:this.objectCollections[this.index].reference,wasNew:e}},t.prototype.trySetReference=function(t,e,i){return this.index=this.lookFor(t),this.objectCollections[this.index].setReference(e),!0},t.prototype.destroy=function(){for(var t=0,e=this.objectCollections;t<e.length;t++){var i=e[t];void 0!==i&&(i.pdfObject.position=-1,i.pdfObject.isSaving=void 0,i.pdfObject.objectCollectionIndex=void 0,i.pdfObject.position=void 0)}this.objectCollections=[],this.mainObjectCollection=new di,this.primitiveObjectCollection=new di},t}(),Pr=function(){function t(t,e){this.pdfObject=t,this.pdfReference=e}return Object.defineProperty(t.prototype,"object",{get:function(){return this.pdfObject},set:function(t){this.pdfObject=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"reference",{get:function(){return this.pdfReference},enumerable:!0,configurable:!0}),t.prototype.setReference=function(t){this.pdfReference=t},t}(),Ur=function(){function t(t){this.isStreamCopied=!1,t instanceof Co&&(this.document=t)}return Object.defineProperty(t.prototype,"pdfObjects",{get:function(){return this.objects},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"crossTable",{get:function(){return this.pdfCrossTable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentSavingObj",{get:function(){return this.currentSavingObject},set:function(t){this.currentSavingObject=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"catalog",{get:function(){return this.pdfCatalog},set:function(t){this.pdfCatalog=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"viewerPreferences",{get:function(){return this.pdfCatalog.viewerPreferences},enumerable:!0,configurable:!0}),t.prototype.setMainObjectCollection=function(t){this.objects=t},t.prototype.setCrossTable=function(t){this.pdfCrossTable=t},t.prototype.setCatalog=function(t){this.pdfCatalog=t},t.prototype.save=function(t){var e=this,i=new wi(!0),r=new Li(i);if(void 0===t){var n=new wi(!0),o=new Li(n);return new Promise(function(t,i){var r={};r.blobData=new Blob([e.document.docSave(o,!0)],{type:"application/pdf"}),t(r)})}this.document.docSave(r,t,!0)},t.prototype.clone=function(){return this.document},t}();!function(t){t[t.Free=0]="Free",t[t.Normal=1]="Normal",t[t.Packed=2]="Packed"}(Er||(Er={}));var Qr,Yr,Rr,Vr,Fr=function(){function t(t){this.currentPosition=-1,this.value=t}return Object.defineProperty(t.prototype,"status",{get:function(){return this.objectStatus},set:function(t){this.objectStatus=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isSaving",{get:function(){return this.saving},set:function(t){this.saving=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"objectCollectionIndex",{get:function(){return this.index},set:function(t){this.index=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"position",{get:function(){return this.currentPosition},set:function(t){this.currentPosition=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clonedObject",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.save=function(t){t.write(this.boolToStr(this.value))},t.prototype.clone=function(e){return new t(this.value)},t.prototype.boolToStr=function(t){return t?"true":"false"},t}(),Br=function(){function t(t){this._dictionaryProperties=new yi,this._centerWindow=!1,this._fitWindow=!1,this._displayTitle=!1,this._splitWindow=!1,this._hideMenuBar=!1,this._hideToolBar=!1,this._hideWindowUI=!1,this._pageMode=Qr.UseNone,this._pageLayout=Yr.SinglePage,this._dictionary=new mi,this._duplex=Rr.None,this._catalog=t}return Object.defineProperty(t.prototype,"centerWindow",{get:function(){return this._centerWindow},set:function(t){this._centerWindow=t,this._dictionary.items.setValue(this._dictionaryProperties.centerWindow,new Fr(this._centerWindow))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"displayTitle",{get:function(){return this._displayTitle},set:function(t){this._displayTitle=t,this._dictionary.items.setValue(this._dictionaryProperties.displayTitle,new Fr(this._displayTitle))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fitWindow",{get:function(){return this._fitWindow},set:function(t){this._fitWindow=t,this._dictionary.items.setValue(this._dictionaryProperties.fitWindow,new Fr(this._fitWindow))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hideMenuBar",{get:function(){return this._hideMenuBar},set:function(t){this._hideMenuBar=t,this._dictionary.items.setValue(this._dictionaryProperties.hideMenuBar,new Fr(this._hideMenuBar))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hideToolBar",{get:function(){return this._hideToolBar},set:function(t){this._hideToolBar=t,this._dictionary.items.setValue(this._dictionaryProperties.hideToolBar,new Fr(this._hideToolBar))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hideWindowUI",{get:function(){return this._hideWindowUI},set:function(t){this._hideWindowUI=t,this._dictionary.items.setValue(this._dictionaryProperties.hideWindowUI,new Fr(this._hideWindowUI))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pageMode",{get:function(){return this._pageMode},set:function(t){this._pageMode=t,this._catalog.items.setValue(this._dictionaryProperties.pageMode,new fi(this._mapPageMode(this._pageMode)))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"duplex",{get:function(){return this._duplex},set:function(t){this._duplex=t,this._catalog.items.setValue(this._dictionaryProperties.duplex,new fi(this._mapDuplexMode(this._duplex)))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pageLayout",{get:function(){return this._pageLayout},set:function(t){this._pageLayout=t,this._catalog.items.setValue(this._dictionaryProperties.pageLayout,new fi(this._mapPageLayout(this._pageLayout)))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pageScaling",{get:function(){return this._pageScaling},set:function(t){this._pageScaling=t,this._pageScaling===Vr.AppDefault&&this._dictionary.items.containsKey(this._dictionaryProperties.printScaling)?this._dictionary.items.remove(this._dictionaryProperties.printScaling):this._pageScaling===Vr.None&&this._dictionary.items.setValue(this._dictionaryProperties.printScaling,new fi("None"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this._dictionary},enumerable:!0,configurable:!0}),t.prototype._mapDuplexMode=function(t){switch(t){case Rr.Simplex:return"Simplex";case Rr.DuplexFlipShortEdge:return"DuplexFlipShortEdge";case Rr.DuplexFlipLongEdge:return"DuplexFlipLongEdge";case Rr.None:return"None"}},t.prototype._mapPageMode=function(t){switch(t){case Qr.UseNone:return"UseNone";case Qr.UseOutlines:return"UseOutlines";case Qr.UseThumbs:return"UseThumbs";case Qr.FullScreen:return"FullScreen";case Qr.UseOC:return"UseOC";case Qr.UseAttachments:return"UseAttachments"}},t.prototype._mapPageLayout=function(t){switch(t){case Yr.SinglePage:return"SinglePage";case Yr.OneColumn:return"OneColumn";case Yr.TwoColumnLeft:return"TwoColumnLeft";case Yr.TwoColumnRight:return"TwoColumnRight";case Yr.TwoPageLeft:return"TwoPageLeft";case Yr.TwoPageRight:return"TwoPageRight"}},t}();!function(t){t[t.UseNone=0]="UseNone",t[t.UseOutlines=1]="UseOutlines",t[t.UseThumbs=2]="UseThumbs",t[t.FullScreen=3]="FullScreen",t[t.UseOC=4]="UseOC",t[t.UseAttachments=5]="UseAttachments"}(Qr||(Qr={})),function(t){t[t.SinglePage=0]="SinglePage",t[t.OneColumn=1]="OneColumn",t[t.TwoColumnLeft=2]="TwoColumnLeft",t[t.TwoColumnRight=3]="TwoColumnRight",t[t.TwoPageLeft=4]="TwoPageLeft",t[t.TwoPageRight=5]="TwoPageRight"}(Yr||(Yr={})),function(t){t[t.Simplex=0]="Simplex",t[t.DuplexFlipShortEdge=1]="DuplexFlipShortEdge",t[t.DuplexFlipLongEdge=2]="DuplexFlipLongEdge",t[t.None=3]="None"}(Rr||(Rr={})),function(t){t[t.AppDefault=0]="AppDefault",t[t.None=1]="None"}(Vr||(Vr={}));var Wr,Gr,Hr,qr,_r,Jr,Zr=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Kr=function(t){function e(){var e=t.call(this)||this;return e.sections=null,e.tempDictionaryProperties=new yi,e.items.setValue((new yi).type,new fi("Catalog")),e}return Zr(e,t),Object.defineProperty(e.prototype,"pages",{get:function(){return this.sections},set:function(t){t.element,this.sections=t,this.items.setValue(this.tempDictionaryProperties.pages,new rr(t))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"viewerPreferences",{get:function(){return null!==this._viewerPreferences&&void 0!==this._viewerPreferences||(this._viewerPreferences=new Br(this),this.items.setValue(this.tempDictionaryProperties.viewerPreferences,new rr(this._viewerPreferences.element))),this._viewerPreferences},enumerable:!0,configurable:!0}),e}(mi),Xr=function(){function t(){this.objects=new di,this.maxGenNumIndex=0,this.objectCount=0,this.dictionaryProperties=new yi}return Object.defineProperty(t.prototype,"isMerging",{get:function(){return this.merging},set:function(t){this.merging=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"trailer",{get:function(){return null==this.internalTrailer&&(this.internalTrailer=new Yi),this.internalTrailer},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"document",{get:function(){return this.pdfDocument},set:function(t){this.pdfDocument=t,this.items=this.pdfDocument.pdfObjects},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pdfObjects",{get:function(){return this.items},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"objectCollection",{get:function(){return this.pdfDocument.pdfObjects},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"count",{get:function(){return this.objectCount},set:function(t){this.objectCount=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"nextObjNumber",{get:function(){return this.count=this.count+1,this.count},enumerable:!0,configurable:!0}),t.prototype.save=function(t,e){this.saveHead(t),this.mappedReferences=null,this.objects.clear(),this.markTrailerReferences(),this.saveObjects(t);var i=this.count,r=t.position;this.registerObject(0,new ir(0,-1),!0);t.write(Mi.xref),t.write(Mi.newLine),this.saveSections(t),this.saveTrailer(t,this.count,0),this.saveTheEndess(t,r),this.count=i;for(var n=0;n<this.objectCollection.count;++n){this.objectCollection.items(n).object.isSaving=!1}if(void 0===e)return t.stream.buffer;t.stream.save(e)},t.prototype.saveTheEndess=function(t,e){t.write(Mi.newLine+Mi.startxref+Mi.newLine),t.write(e.toString()+Mi.newLine),t.write(Mi.eof+Mi.newLine)},t.prototype.saveTrailer=function(t,e,i){t.write(Mi.trailer+Mi.newLine);var r=this.trailer;r.items.setValue(this.dictionaryProperties.size,new Ii(this.objectCount+1)),(r=new mi(r)).setEncrypt(!1),r.save(t)},t.prototype.saveSections=function(t){var e=0,i=0;do{i=this.prepareSubsection(e),this.saveSubsection(t,e,i),e+=i}while(0!==i)},t.prototype.saveSubsection=function(t,e,i){if(!(i<=0||e>=this.count)){t.write(e+" "+(i+1)+Mi.newLine);for(var r=e;r<=e+i;++r){var n=this.objects.getValue(r),o="";o=n.type===Er.Free?this.getItem(n.offset,65535,!0):this.getItem(n.offset,n.generation,!1),t.write(o)}}},t.prototype.getItem=function(t,e,i){var r="",n=10-t.toString().length;e<=0&&(e=0);for(var o=5-e.toString().length<=0?0:5-e.toString().length,s=0;s<n;s++)r+="0";r=r+t.toString()+" ";for(s=0;s<o;s++)r+="0";return r=(r=r+e.toString()+" ")+(i?Mi.f:Mi.n)+Mi.newLine},t.prototype.prepareSubsection=function(t){for(var e,i=0,r=this.count,n=0;n<this.document.pdfObjects.count;n++){this.document.pdfObjects.items(n).reference.toString().split(" ")}if(t>=r)return i;for(t=e=t;e<r;++e)++i;return i},t.prototype.markTrailerReferences=function(){this.trailer.items.keys(),this.trailer.items.values()},t.prototype.saveHead=function(t){var e=this.generateFileVersion(t.document);t.write("%PDF-"+e),t.write(Mi.newLine)},t.prototype.generateFileVersion=function(t){return"1."+4..toString()},t.prototype.getReference=function(t,e){if(void 0===e){return this.getReference(t,!1)}return this.getSubReference(t,e)},t.prototype.getSubReference=function(t,e){var i,r=!1,n=null;if(this.items.count>0&&t.objectCollectionIndex>0&&this.items.count>t.objectCollectionIndex-1){var o=this.document.pdfObjects.getReference(t,i);n=o.reference,i=o.wasNew}if(i=null==n&&t.status!==Ar.Registered,null==n){var s=this.nextObjNumber;n=new ir(s,0);var a=void 0;if(i){this.document.pdfObjects.add(t),this.document.pdfObjects.trySetReference(t,n,a);var u=this.document.pdfObjects.count-1,c=this.document.pdfObjects.objectCollections[u].reference.objNumber,h=this.document.pdfObjects.objectCollections[this.document.pdfObjects.count-1];this.document.pdfObjects.mainObjectCollection.setValue(c,h),t.position=-1}else this.document.pdfObjects.trySetReference(t,n,a);t.objectCollectionIndex=n.objNumber,t.status=Ar.None,r=!0}return r||this.bForceNew,n},t.prototype.saveObjects=function(t){for(var e=this.objectCollection,i=0;i<e.count;++i){var r=e.items(i).object;r.isSaving=!0,this.saveIndirectObject(r,t)}},t.prototype.saveIndirectObject=function(t,e){var i=this.getReference(t);t instanceof Kr&&this.trailer.items.setValue(this.dictionaryProperties.root,i),this.pdfDocument.currentSavingObj=i,t.getArchive(),this.registerObject(e.position,i),this.doSaveObject(t,i,e)},t.prototype.doSaveObject=function(t,e,i){i.length,i.write(e.objNumber.toString()),i.write(Mi.whiteSpace),i.write(e.genNumber.toString()),i.write(Mi.whiteSpace),i.write(Mi.obj),i.write(Mi.newLine),t.save(i),i.stream,i.write(Mi.endObj),i.write(Mi.newLine)},t.prototype.registerObject=function(t,e,i){"boolean"==typeof i?(this.objects.setValue(e.objNumber,new $r(t,e,i)),this.maxGenNumIndex=Math.max(this.maxGenNumIndex,e.genNumber)):void 0===i&&(this.objects.setValue(e.objNumber,new $r(t,e)),this.maxGenNumIndex=Math.max(this.maxGenNumIndex,e.genNumber))},t.dereference=function(t){return null!=t&&(t=t.object),t},t}(),$r=function(){function t(t,e,i){var r=t;this.offsetNumber=r;var n=e;this.generation=n.genNumber,this.object=n.objNumber,this.type=void 0===i?Er.Normal:Er.Free}return Object.defineProperty(t.prototype,"objectNumber",{get:function(){return this.object},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"offset",{get:function(){return this.offsetNumber},enumerable:!0,configurable:!0}),t}(),tn=function(){function t(){}return t.letter=new Nr(612,792),t.note=new Nr(540,720),t.legal=new Nr(612,1008),t.a0=new Nr(2380,3368),t.a1=new Nr(1684,2380),t.a2=new Nr(1190,1684),t.a3=new Nr(842,1190),t.a4=new Nr(595,842),t.a5=new Nr(421,595),t.a6=new Nr(297,421),t.a7=new Nr(210,297),t.a8=new Nr(148,210),t.a9=new Nr(105,148),t.a10=new Nr(74,105),t.b0=new Nr(2836,4008),t.b1=new Nr(2004,2836),t.b2=new Nr(1418,2004),t.b3=new Nr(1002,1418),t.b4=new Nr(709,1002),t.b5=new Nr(501,709),t.archE=new Nr(2592,3456),t.archD=new Nr(1728,2592),t.archC=new Nr(1296,1728),t.archB=new Nr(864,1296),t.archA=new Nr(648,864),t.flsa=new Nr(612,936),t.halfLetter=new Nr(396,612),t.letter11x17=new Nr(792,1224),t.ledger=new Nr(1224,792),t}();!function(t){t[t.Portrait=0]="Portrait",t[t.Landscape=1]="Landscape"}(Wr||(Wr={})),function(t){t[t.RotateAngle0=0]="RotateAngle0",t[t.RotateAngle90=1]="RotateAngle90",t[t.RotateAngle180=2]="RotateAngle180",t[t.RotateAngle270=3]="RotateAngle270"}(Gr||(Gr={})),function(t){t[t.None=0]="None",t[t.Numeric=1]="Numeric",t[t.LowerLatin=2]="LowerLatin",t[t.LowerRoman=3]="LowerRoman",t[t.UpperLatin=4]="UpperLatin",t[t.UpperRoman=5]="UpperRoman"}(Hr||(Hr={})),function(t){t[t.None=0]="None",t[t.Bottom=1]="Bottom",t[t.Top=2]="Top",t[t.Left=3]="Left",t[t.Right=4]="Right",t[t.Fill=5]="Fill"}(qr||(qr={})),function(t){t[t.None=0]="None",t[t.TopLeft=1]="TopLeft",t[t.TopCenter=2]="TopCenter",t[t.TopRight=3]="TopRight",t[t.MiddleLeft=4]="MiddleLeft",t[t.MiddleCenter=5]="MiddleCenter",t[t.MiddleRight=6]="MiddleRight",t[t.BottomLeft=7]="BottomLeft",t[t.BottomCenter=8]="BottomCenter",t[t.BottomRight=9]="BottomRight"}(_r||(_r={})),function(t){t[t.None=0]="None",t[t.Top=1]="Top",t[t.Bottom=2]="Bottom",t[t.Left=3]="Left",t[t.Right=4]="Right"}(Jr||(Jr={}));var en,rn=function(){function t(){this.pdfMargin=40,this.setMargins(this.pdfMargin)}return Object.defineProperty(t.prototype,"left",{get:function(){return this.leftMargin},set:function(t){this.leftMargin=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return this.topMargin},set:function(t){this.topMargin=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return this.rightMargin},set:function(t){this.rightMargin=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return this.bottomMargin},set:function(t){this.bottomMargin=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"all",{set:function(t){this.setMargins(t)},enumerable:!0,configurable:!0}),t.prototype.setMargins=function(t,e,i,r){void 0===e?this.leftMargin=this.topMargin=this.rightMargin=this.bottomMargin=t:void 0===i?(this.leftMargin=this.rightMargin=t,this.bottomMargin=this.topMargin=e):(this.leftMargin=t,this.topMargin=e,this.rightMargin=i,this.bottomMargin=r)},t.prototype.clone=function(){return this},t}(),nn=function(){function t(t){this.pageMargins=new rn,this.pageSize=tn.a4,this.rotateAngle=Gr.RotateAngle0,this.pageOrientation=Wr.Portrait,this.pageOrigin=new mr(0,0),this.isRotation=!1,"number"==typeof t&&this.pageMargins.setMargins(t)}return Object.defineProperty(t.prototype,"size",{get:function(){return this.pageSize},set:function(t){this.setSize(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"orientation",{get:function(){return this.pageOrientation},set:function(t){this.pageOrientation!==t&&(this.pageOrientation=t,this.updateSize(t))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"margins",{get:function(){return this.pageMargins},set:function(t){this.pageMargins=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.pageSize.width},set:function(t){this.pageSize.width=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.pageSize.height},set:function(t){this.pageSize.height=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"origin",{get:function(){return this.pageOrigin},set:function(t){this.pageOrigin=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rotate",{get:function(){return this.rotateAngle},set:function(t){this.rotateAngle=t,this.isRotation=!0},enumerable:!0,configurable:!0}),t.prototype.updateSize=function(t){var e=Math.min(this.pageSize.width,this.pageSize.height),i=Math.max(this.pageSize.width,this.pageSize.height);switch(t){case Wr.Portrait:this.pageSize=new Nr(e,i);break;case Wr.Landscape:this.pageSize=new Nr(i,e)}},t.prototype.clone=function(){return this.pageMargins=this.pageMargins.clone(),this},t.prototype.getActualSize=function(){var t=this.width-(this.margins.left+this.margins.right),e=this.height-(this.margins.top+this.margins.bottom);return new Nr(t,e)},t.prototype.setSize=function(t){var e=Math.min(t.width,t.height),i=Math.max(t.width,t.height);this.orientation===Wr.Portrait?this.pageSize=new Nr(e,i):this.pageSize=new Nr(i,e)},t}(),on=function(){function t(t){if(null==t)throw new Error("ArgumentNullException:stream");this.stream=t}return t.prototype.clear=function(){this.stream.clearStream()},t.prototype.setGraphicsState=function(t){t instanceof fi?(this.stream.write(t.toString()),this.stream.write(Mi.whiteSpace),this.writeOperator(Mi.setGraphicsState)):(this.stream.write(Mi.slash),this.stream.write(t),this.stream.write(Mi.whiteSpace),this.writeOperator(Mi.setGraphicsState))},t.prototype.executeObject=function(t){this.stream.write(t.toString()),this.stream.write(Mi.whiteSpace),this.writeOperator(Mi.paintXObject),this.stream.write(Mi.newLine)},t.prototype.closePath=function(){this.writeOperator(Mi.closePath)},t.prototype.clipPath=function(t){this.stream.write(Mi.clipPath),t&&this.stream.write(Mi.evenOdd),this.stream.write(Mi.whiteSpace),this.stream.write(Mi.endPath),this.stream.write(Mi.newLine)},t.prototype.closeFillStrokePath=function(t){this.stream.write(Mi.closeFillStrokePath),t?(this.stream.write(Mi.evenOdd),this.stream.write(Mi.newLine)):this.stream.write(Mi.newLine)},t.prototype.fillStrokePath=function(t){this.stream.write(Mi.fillStroke),t?(this.stream.write(Mi.evenOdd),this.stream.write(Mi.newLine)):this.stream.write(Mi.newLine)},t.prototype.fillPath=function(t){this.stream.write(Mi.fill),t?(this.stream.write(Mi.evenOdd),this.stream.write(Mi.newLine)):this.stream.write(Mi.newLine)},t.prototype.endPath=function(){this.writeOperator(Mi.n)},t.prototype.closeFillPath=function(t){this.writeOperator(Mi.closePath),this.stream.write(Mi.fill),t?(this.stream.write(Mi.evenOdd),this.stream.write(Mi.newLine)):this.stream.write(Mi.newLine)},t.prototype.closeStrokePath=function(){this.writeOperator(Mi.closeStrokePath)},t.prototype.setTextScaling=function(t){this.stream.write(Ii.floatToString(t)),this.stream.write(Mi.whiteSpace),this.writeOperator(Mi.setTextScaling)},t.prototype.strokePath=function(){this.writeOperator(Mi.stroke)},t.prototype.restoreGraphicsState=function(){this.writeOperator(Mi.restoreState)},t.prototype.saveGraphicsState=function(){this.writeOperator(Mi.saveState)},t.prototype.startNextLine=function(t,e){void 0===t?this.writeOperator(Mi.goToNextLine):t instanceof mr?(this.writePoint(t),this.writeOperator(Mi.setCoords)):(this.writePoint(t,e),this.writeOperator(Mi.setCoords))},t.prototype.showText=function(t){this.checkTextParam(t),this.writeText(t),this.writeOperator(Mi.setText)},t.prototype.setLeading=function(t){this.stream.write(Ii.floatToString(t)),this.stream.write(Mi.whiteSpace),this.writeOperator(Mi.setTextLeading)},t.prototype.beginPath=function(t,e){this.writePoint(t,e),this.writeOperator(Mi.beginPath)},t.prototype.beginText=function(){this.writeOperator(Mi.beginText)},t.prototype.endText=function(){this.writeOperator(Mi.endText)},t.prototype.appendRectangle=function(t,e,i,r){t instanceof jr?this.appendRectangle(t.x,t.y,t.width,t.height):(this.writePoint(t,e),this.writePoint(i,r),this.writeOperator(Mi.appendRectangle))},t.prototype.appendLineSegment=function(t,e){t instanceof mr?this.appendLineSegment(t.x,t.y):(this.writePoint(t,e),this.writeOperator(Mi.appendLineSegment))},t.prototype.setTextRenderingMode=function(t){this.stream.write(t.toString()),this.stream.write(Mi.whiteSpace),this.writeOperator(Mi.setRenderingMode)},t.prototype.setCharacterSpacing=function(t){this.stream.write(Ii.floatToString(t)),this.stream.write(Mi.whiteSpace),this.stream.write(Mi.setCharacterSpace),this.stream.write(Mi.newLine)},t.prototype.setWordSpacing=function(t){this.stream.write(Ii.floatToString(t)),this.stream.write(Mi.whiteSpace),this.writeOperator(Mi.setWordSpace)},t.prototype.showNextLineText=function(t,e){t instanceof er?(this.checkTextParam(t),this.writeText(t),this.writeOperator(Mi.setTextOnNewLine)):(this.checkTextParam(t),this.writeText(t,e),this.writeOperator(Mi.setTextOnNewLine))},t.prototype.setColorSpace=function(t,e){if(t instanceof fi&&"boolean"==typeof e){var i=t,r=(n=e)?Mi.selectcolorspaceforstroking:Mi.selectcolorspacefornonstroking;this.stream.write(i.toString()),this.stream.write(Mi.whiteSpace),this.stream.write(r),this.stream.write(Mi.newLine)}else{i=t;var n=e;this.setColorSpace(new fi(i),n)}},t.prototype.modifyCtm=function(t){if(null==t)throw new Error("ArgumentNullException:matrix");this.stream.write(t.toString()),this.stream.write(Mi.whiteSpace),this.writeOperator(Mi.modifyCtm)},t.prototype.setFont=function(t,e,i){if("string"==typeof e)this.setFont(t,new fi(e),i);else{if(null==t)throw new Error("ArgumentNullException:font");this.stream.write(e.toString()),this.stream.write(Mi.whiteSpace),this.stream.write(Ii.floatToString(i)),this.stream.write(Mi.whiteSpace),this.writeOperator(Mi.setFont)}},t.prototype.writeOperator=function(t){this.stream.write(t),this.stream.write(Mi.newLine)},t.prototype.checkTextParam=function(t){if(null==t)throw new Error("ArgumentNullException:text");if("string"==typeof t&&""===t)throw new Error("ArgumentException:The text can not be an empty string, text")},t.prototype.writeText=function(t,e){if(t instanceof er&&void 0===e)this.stream.write(t.pdfEncode());else{var i=void 0,r=void 0;e?(i=er.hexStringMark[0],r=er.hexStringMark[1]):(i=er.stringMark[0],r=er.stringMark[1]),this.stream.write(i),this.stream.write(t),this.stream.write(r)}},t.prototype.writePoint=function(t,e){if(t instanceof mr&&void 0===e)this.writePoint(t.x,t.y);else{var i=t;this.stream.write(Ii.floatToString(i)),this.stream.write(Mi.whiteSpace),e=this.updateY(e),this.stream.write(Ii.floatToString(e)),this.stream.write(Mi.whiteSpace)}},t.prototype.updateY=function(t){return-t},t.prototype.write=function(t){var e="";e+=t,e+=Mi.newLine,this.writeOperator(e)},t.prototype.writeComment=function(t){if(!(null!=t&&t.length>0))throw new Error("Invalid comment");var e="";e+=Mi.comment,e+=Mi.whiteSpace,e+=t,this.writeOperator(e)},t.prototype.setColorAndSpace=function(t,e,i){t.isEmpty||(this.stream.write(t.toString(e,i)),this.stream.write(Mi.newLine))},t.prototype.setLineDashPattern=function(t,e){this.setLineDashPatternHelper(t,e)},t.prototype.setLineDashPatternHelper=function(t,e){var i="[";if(t.length>1)for(var r=0;r<t.length;r++)r===t.length-1?i+=t[r].toString():i+=t[r].toString()+" ";i+="] ",i+=e.toString(),i+=" "+Mi.setDashPattern,this.stream.write(i),this.stream.write(Mi.newLine)},t.prototype.setMiterLimit=function(t){this.stream.write(Ii.floatToString(t)),this.stream.write(Mi.whiteSpace),this.writeOperator(Mi.setMiterLimit)},t.prototype.setLineWidth=function(t){this.stream.write(Ii.floatToString(t)),this.stream.write(Mi.whiteSpace),this.writeOperator(Mi.setLineWidth)},t.prototype.setLineCap=function(t){this.stream.write(t.toString()),this.stream.write(Mi.whiteSpace),this.writeOperator(Mi.setLineCapStyle)},t.prototype.setLineJoin=function(t){this.stream.write(t.toString()),this.stream.write(Mi.whiteSpace),this.writeOperator(Mi.setLineJoinStyle)},Object.defineProperty(t.prototype,"position",{get:function(){return this.stream.position},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){var t=0;if(0!==this.stream.data.length&&-1!==this.stream.data.length)for(var e=0;e<this.stream.data.length;e++)t+=this.stream.data[e].length;return t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"document",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.appendBezierSegment=function(t,e,i,r,n,o){t instanceof mr&&e instanceof mr&&i instanceof mr?(this.writePoint(t.x,t.y),this.writePoint(e.x,e.y),this.writePoint(i.x,i.y)):(this.writePoint(t,e),this.writePoint(i,r),this.writePoint(n,o)),this.writeOperator(Mi.appendbeziercurve)},t.prototype.setColourWithPattern=function(t,e,i){if(null!=t){var r=t.length,n=0;for(n=0;n<r;++n)this.stream.write(t[n].toString()),this.stream.write(Mi.whiteSpace)}null!=e&&(this.stream.write(e.toString()),this.stream.write(Mi.whiteSpace)),i?this.writeOperator(Mi.setColorAndPatternStroking):this.writeOperator(Mi.setColorAndPattern)},t}(),sn=function(){function t(t,e){this.pdfColor=new yr(0,0,0),this.dashOffsetValue=0,this.penDashPattern=[0],this.pdfDashStyle=_i.Solid,this.pdfLineCap=0,this.pdfLineJoin=0,this.penWidth=1,this.internalMiterLimit=0,this.colorSpace=Zi.Rgb,t instanceof Sr?this.setBrush(t):t instanceof yr&&(this.color=t),"number"==typeof e&&(this.width=e)}return Object.defineProperty(t.prototype,"color",{get:function(){return this.pdfColor},set:function(t){this.pdfColor=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dashOffset",{get:function(){return void 0===this.dashOffsetValue||null==this.dashOffsetValue?0:this.dashOffsetValue},set:function(t){this.dashOffsetValue=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dashPattern",{get:function(){return this.penDashPattern},set:function(t){this.penDashPattern=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dashStyle",{get:function(){return this.pdfDashStyle},set:function(t){if(this.pdfDashStyle!==t)switch(this.pdfDashStyle=t,this.pdfDashStyle){case _i.Custom:break;case _i.Dash:this.penDashPattern=[3,1];break;case _i.Dot:this.penDashPattern=[1,1];break;case _i.DashDot:this.penDashPattern=[3,1,1,1];break;case _i.DashDotDot:this.penDashPattern=[3,1,1,1,1,1];break;case _i.Solid:break;default:this.pdfDashStyle=_i.Solid,this.penDashPattern=[0]}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineCap",{get:function(){return this.pdfLineCap},set:function(t){this.pdfLineCap=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineJoin",{get:function(){return this.pdfLineJoin},set:function(t){this.pdfLineJoin=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"miterLimit",{get:function(){return this.internalMiterLimit},set:function(t){this.internalMiterLimit=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.penWidth},set:function(t){this.penWidth=t},enumerable:!0,configurable:!0}),t.prototype.clone=function(){return this},t.prototype.setBrush=function(t){var e=t;null!=e&&e instanceof Ir&&(this.color=e.color,this.pdfBrush=e),this.color=e.color,this.pdfBrush=e},t.prototype.monitorChanges=function(t,e,i,r,n,o){this.dashControl(t,true,e),e.setLineWidth(this.width),e.setLineJoin(this.lineJoin),e.setLineCap(this.lineCap);var s=this.miterLimit;return s>0&&(e.setMiterLimit(s),!0),this.pdfBrush,e.setColorAndSpace(this.color,n,!0),!0},t.prototype.dashControl=function(t,e,i){var r=this.width,n=this.getPattern();return i.setLineDashPattern(n,this.dashOffset*r),true},t.prototype.getPattern=function(){for(var t=this.dashPattern,e=0;e<t.length;++e)t[e]*=this.width;return t},t}(),an=function(){function t(t){this.radDegFactor=180/Math.PI,this.transformationMatrix=new un(1,0,0,void 0===t?1:-1,0,0)}return Object.defineProperty(t.prototype,"matrix",{get:function(){return this.transformationMatrix},set:function(t){this.transformationMatrix=t},enumerable:!0,configurable:!0}),t.prototype.translate=function(t,e){this.transformationMatrix.translate(t,e)},t.prototype.scale=function(t,e){this.transformationMatrix.elements[0]=t,this.transformationMatrix.elements[3]=e},t.prototype.rotate=function(t){t=t*Math.PI/180,this.transformationMatrix.elements[0]=Math.cos(t),this.transformationMatrix.elements[1]=Math.sin(t),this.transformationMatrix.elements[2]=-Math.sin(t),this.transformationMatrix.elements[3]=Math.cos(t)},t.prototype.toString=function(){for(var t="",e=0,i=this.transformationMatrix.elements.length;e<i;e++)this.matrix.elements[e],t+=Ii.floatToString(this.transformationMatrix.elements[e]),t+=" ";return t},t.prototype.multiply=function(t){this.transformationMatrix.multiply(t.matrix)},t.degreesToRadians=function(t){return this.degRadFactor*t},t.prototype.radiansToDegrees=function(t){return this.radDegFactor*t},t.prototype.clone=function(){return this},t.degRadFactor=Math.PI/180,t}(),un=function(){function t(t,e,i,r,n,o){void 0===t?this.metrixElements=[]:"number"==typeof t?(this.metrixElements=[],this.metrixElements.push(t),this.metrixElements.push(e),this.metrixElements.push(i),this.metrixElements.push(r),this.metrixElements.push(n),this.metrixElements.push(o)):this.metrixElements=t}return Object.defineProperty(t.prototype,"elements",{get:function(){return this.metrixElements},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"offsetX",{get:function(){return this.metrixElements[4]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"offsetY",{get:function(){return this.metrixElements[5]},enumerable:!0,configurable:!0}),t.prototype.translate=function(t,e){this.metrixElements[4]=t,this.metrixElements[5]=e},t.prototype.transform=function(t){var e=t.x,i=t.y,r=e*this.elements[0]+i*this.elements[2]+this.offsetX,n=e*this.elements[1]+i*this.elements[3]+this.offsetY;return new mr(r,n)},t.prototype.multiply=function(t){var e=[];e.push(this.elements[0]*t.elements[0]+this.elements[1]*t.elements[2]),e[1]=this.elements[0]*t.elements[1]+this.elements[1]*t.elements[3],e[2]=this.elements[2]*t.elements[0]+this.elements[3]*t.elements[2],e[3]=this.elements[2]*t.elements[1]+this.elements[3]*t.elements[3],e[4]=this.offsetX*t.elements[0]+this.offsetY*t.elements[2]+t.offsetX,e[5]=this.offsetX*t.elements[1]+this.offsetY*t.elements[3]+t.offsetY;for(var i=0;i<e.length;i++)this.elements[i]=e[i]},t.prototype.dispose=function(){this.metrixElements=null},t.prototype.clone=function(){return new t(this.metrixElements)},t}(),cn=function(){this.pdf="PDF",this.text="Text",this.imageB="ImageB",this.imageC="ImageC",this.imageI="ImageI"},hn=function(){function t(){this.mKeys=[],this.mValues=[]}return t.prototype.size=function(){return this.mKeys.length},t.prototype.add=function(t,e){if(null==t||null==e)throw new ReferenceError("Provided key or value is not valid.");if(this.mKeys.indexOf(t)<0)return this.mKeys.push(t),this.mValues.push(e),1;throw new RangeError("An item with the same key has already been added.")},t.prototype.keys=function(){return this.mKeys},t.prototype.values=function(){return this.mValues},t.prototype.getValue=function(t){if(null==t)throw new ReferenceError("Provided key is not valid.");var e=this.mKeys.indexOf(t);if(e<0)throw new RangeError("No item with the specified key has been added.");return this.mValues[e]},t.prototype.setValue=function(t,e){if(null==t)throw new ReferenceError("Provided key is not valid.");var i=this.mKeys.indexOf(t);i<0?(this.mKeys.push(t),this.mValues.push(e)):this.mValues[i]=e},t.prototype.remove=function(t){if(null==t)throw new ReferenceError("Provided key is not valid.");var e=this.mKeys.indexOf(t);if(e<0)throw new RangeError("No item with the specified key has been added.");return this.mKeys.splice(e,1),this.mValues.splice(e,1),!0},t.prototype.containsKey=function(t){if(null==t)throw new ReferenceError("Provided key is not valid.");return!(this.mKeys.indexOf(t)<0)},t.prototype.clear=function(){this.mKeys=[],this.mValues=[]},t}(),ln=function(){function t(t,e,i){this.dictionary=new mi,this.dictionaryProperties=new yi,this.dictionary.items.setValue(this.dictionaryProperties.CA,new Ii(t)),this.dictionary.items.setValue(this.dictionaryProperties.ca,new Ii(e)),this.dictionary.items.setValue(this.dictionaryProperties.BM,new fi(i.toString()))}return Object.defineProperty(t.prototype,"element",{get:function(){return this.dictionary},enumerable:!0,configurable:!0}),t}(),pn=function(){function t(){this.automaticFieldsInformation=[]}return Object.defineProperty(t.prototype,"automaticFields",{get:function(){return this.automaticFieldsInformation},enumerable:!0,configurable:!0}),t.prototype.add=function(t){return this.automaticFields.push(t)},t}(),gn=function(){function t(){}return t.prototype.drawHelper=function(t,e,i){var r=0!==e||0!==i,n=null;r&&(n=t.save(),t.translateTransform(e,i)),this.drawInternal(t),r&&t.restore(n)},t}(),dn=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),fn=function(t){function e(){var e=t.call(this)||this;return e.internalBounds=new jr(0,0,0,0),e.internalTemplateSize=new Nr(0,0),e}return dn(e,t),Object.defineProperty(e.prototype,"bounds",{get:function(){return this.internalBounds},set:function(t){this.internalBounds=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return new Nr(this.bounds.width,this.bounds.height)},set:function(t){this.bounds.width=t.width,this.bounds.height=t.height},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"location",{get:function(){return new mr(this.bounds.x,this.bounds.y)},set:function(t){this.bounds.x=t.x,this.bounds.y=t.y},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"font",{get:function(){return this.internalFont},set:function(t){this.internalFont=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"brush",{get:function(){return this.internalBrush},set:function(t){this.internalBrush=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pen",{get:function(){return this.internalPen},set:function(t){this.internalPen=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"stringFormat",{get:function(){return this.internalStringFormat},set:function(t){this.internalStringFormat=t},enumerable:!0,configurable:!0}),e.prototype.performDrawHelper=function(t,e,i,r){if(0===this.bounds.height||0===this.bounds.width){var n=this.getValue(t);this.internalTemplateSize=this.getFont().measureString(n,this.size,this.stringFormat)}},e.prototype.draw=function(t,e,i){if(void 0===e){var r=new mr(0,0);this.draw(t,r)}else if(e instanceof mr)this.draw(t,e.x,e.y);else{this.drawHelper(t,e,i);var n=new Mn(this,new mr(e,i));t.automaticFields.add(n)}},e.prototype.getSize=function(){return 0===this.bounds.height||0===this.bounds.width?this.internalTemplateSize:this.size},e.prototype.drawInternal=function(t){},e.prototype.getBrush=function(){return void 0===this.internalBrush||null==this.internalBrush?new Ir(new yr(0,0,0)):this.internalBrush},e.prototype.getFont=function(){return void 0===this.internalFont||null==this.internalFont?Co.defaultFont:this.internalFont},e.prototype.getPageFromGraphics=function(t){return void 0!==t.page&&null!==t.page?t.page:t.currentPage},e}(gn),Mn=function(){function t(e,i,r,n){this.pageNumberFieldLocation=new mr,this.pageNumberField=null,this.scaleX=1,this.scaleY=1,void 0===i&&e instanceof t?(this.pageNumberField=e.field,this.pageNumberFieldLocation=e.location,this.scaleX=e.scalingX,this.scaleY=e.scalingY):void 0===r&&i instanceof mr&&e instanceof fn?(this.pageNumberField=e,this.pageNumberFieldLocation=i):(this.pageNumberField=e,this.pageNumberFieldLocation=i,this.scaleX=r,this.scaleY=n)}return Object.defineProperty(t.prototype,"location",{get:function(){return this.pageNumberFieldLocation},set:function(t){this.pageNumberFieldLocation=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"field",{get:function(){return this.pageNumberField},set:function(t){this.pageNumberField=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scalingX",{get:function(){return this.scaleX},set:function(t){this.scaleX=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scalingY",{get:function(){return this.scaleY},set:function(t){this.scaleY=t},enumerable:!0,configurable:!0}),t}(),yn=function(){function t(t){this.mPosition=0,this.buffer=new Uint8Array(t),this.dataView=new DataView(this.buffer.buffer)}return Object.defineProperty(t.prototype,"position",{get:function(){return this.mPosition},set:function(t){this.mPosition=t},enumerable:!0,configurable:!0}),t.prototype.read=function(t,e,i){for(var r=e;r<i;r++){var n=this.position;t.buffer[r]=this.readByte(n),this.position++}},t.prototype.getBuffer=function(t){return this.buffer[t]},t.prototype.writeFromBase64String=function(t){var e=this.encodedString(t);this.buffer=e},t.prototype.encodedString=function(t){var e,i,r,n,o,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a=0,u=0,c=3*(t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"")).length/4;t.charAt(t.length-1)===s.charAt(64)&&c--;for(var h=new Uint8Array(0|c);a<t.length;)e=s.indexOf(t.charAt(a++))<<2|(n=s.indexOf(t.charAt(a++)))>>4,i=(15&n)<<4|(o=s.indexOf(t.charAt(a++)))>>2,r=(3&o)<<6|s.indexOf(t.charAt(a++)),h[u++]=e,h[u++]=i,h[u++]=r;return h},t.prototype.readByte=function(t){return this.buffer[t]},Object.defineProperty(t.prototype,"internalBuffer",{get:function(){return this.buffer},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"count",{get:function(){return this.buffer.byteLength},enumerable:!0,configurable:!0}),t.prototype.readNextTwoBytes=function(t){var e=t.readByte(this.position);return this.position++,e<<=8,e|=t.readByte(this.position),this.position++,e},t}();!function(t){t[t.Unknown=0]="Unknown",t[t.Bmp=1]="Bmp",t[t.Emf=2]="Emf",t[t.Gif=3]="Gif",t[t.Jpeg=4]="Jpeg",t[t.Png=5]="Png",t[t.Wmf=6]="Wmf",t[t.Icon=7]="Icon"}(en||(en={}));var mn,Nn,jn,Dn=function(){function t(t){this.sof1Marker=193,this.sof2Marker=194,this.sof3Marker=195,this.sof5Marker=197,this.sof6Marker=198,this.sof7Marker=199,this.sof9Marker=201,this.sof10Marker=202,this.sof11Marker=203,this.sof13Marker=205,this.sof14Marker=206,this.sof15Marker=207,this.mFormat=en.Unknown,this.mbitsPerComponent=8,this.dictionaryProperties=new yi,this.mStream=t,this.initialize()}return Object.defineProperty(t.prototype,"height",{get:function(){return this.mHeight},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.mWidth},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bitsPerComponent",{get:function(){return this.mbitsPerComponent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this.mImageData.count},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imageData",{get:function(){return this.mImageData},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imageDataAsNumberArray",{get:function(){return this.mImageData.internalBuffer.buffer},enumerable:!0,configurable:!0}),t.prototype.initialize=function(){if(this.mFormat!==en.Unknown||!this.checkIfJpeg())throw new TypeError("Only the JPEG format is supported");this.mFormat=en.Jpeg,this.parseJpegImage(),this.reset(),this.mImageData=new yn(this.mStream.count),this.mStream.read(this.mImageData,0,this.mImageData.count)},t.prototype.reset=function(){this.mStream.position=0},t.prototype.parseJpegImage=function(){this.reset();var t=new yn(this.mStream.count);this.mStream.read(t,0,t.count);for(var e=4,i=!1,r=256*t.getBuffer(e)+t.getBuffer(e+1);e<t.count;){if(!((e+=r)<t.count)){i=!0;break}if(192===t.getBuffer(e+1))return this.mHeight=256*t.getBuffer(e+5)+t.getBuffer(e+6),void(this.mWidth=256*t.getBuffer(e+7)+t.getBuffer(e+8));e+=2,r=256*t.getBuffer(e)+t.getBuffer(e+1)}i&&(this.mStream.position=0,this.skip(this.mStream,2),this.readExceededJPGImage(this.mStream))},Object.defineProperty(t.prototype,"format",{get:function(){return this.mFormat},enumerable:!0,configurable:!0}),t.prototype.checkIfJpeg=function(){this.reset();for(var e=0;e<t.mJpegHeader.length;e++){if(t.mJpegHeader[e]!==this.mStream.readByte(e))return!1;this.mStream.position++}return!0},t.prototype.getImageDictionary=function(){if(this.mFormat===en.Jpeg){this.imageData.internalBuffer.length,this.imageStream=new Yi,this.imageStream.isResource=!0;for(var t="",e="",i=0;i<this.imageDataAsNumberArray.byteLength;i++)t+=String.fromCharCode(null,this.mStream.readByte(i));for(i=0;i<t.length;i++)i%2!=0&&(e+=t[i]);return this.imageStream.data=[e],this.imageStream.compress=!1,this.imageStream.items.setValue(this.dictionaryProperties.type,new fi(this.dictionaryProperties.xObject)),this.imageStream.items.setValue(this.dictionaryProperties.subtype,new fi(this.dictionaryProperties.image)),this.imageStream.items.setValue(this.dictionaryProperties.width,new Ii(this.width)),this.imageStream.items.setValue(this.dictionaryProperties.height,new Ii(this.height)),this.imageStream.items.setValue(this.dictionaryProperties.bitsPerComponent,new Ii(this.bitsPerComponent)),this.imageStream.items.setValue(this.dictionaryProperties.filter,new fi(this.dictionaryProperties.dctdecode)),this.imageStream.items.setValue(this.dictionaryProperties.colorSpace,new fi(this.getColorSpace())),this.imageStream.items.setValue(this.dictionaryProperties.decodeParms,this.getDecodeParams()),this.imageStream}return this.imageStream},t.prototype.getColorSpace=function(){return this.dictionaryProperties.deviceRgb},t.prototype.getDecodeParams=function(){var t=new mi;return t.items.setValue(this.dictionaryProperties.columns,new Ii(this.width)),t.items.setValue(this.dictionaryProperties.blackIs1,new Fr(!0)),t.items.setValue(this.dictionaryProperties.k,new Ii(-1)),t.items.setValue(this.dictionaryProperties.predictor,new Ii(15)),t.items.setValue(this.dictionaryProperties.bitsPerComponent,new Ii(this.bitsPerComponent)),t},t.prototype.readExceededJPGImage=function(t){this.mStream=t;for(var e=!0;e;){switch(this.getMarker(t)){case this.sof1Marker:case this.sof2Marker:case this.sof3Marker:case this.sof5Marker:case this.sof6Marker:case this.sof7Marker:case this.sof9Marker:case this.sof10Marker:case this.sof11Marker:case this.sof13Marker:case this.sof14Marker:case this.sof15Marker:t.position+=3,this.mHeight=this.mStream.readNextTwoBytes(t),this.mWidth=this.mStream.readNextTwoBytes(t),e=!1;break;default:this.skipStream(t)}}},t.prototype.skip=function(t,e){this.mStream=t;var i=new yn(e);this.mStream.read(i,0,i.count)},t.prototype.getMarker=function(t){var e=32;for(e=t.readByte(this.mStream.position),t.position++;255!==e;)e=t.readByte(this.mStream.position),t.position++;do{e=t.readByte(this.mStream.position),t.position++}while(255===e);return e},t.prototype.skipStream=function(t){var e=this.mStream.readNextTwoBytes(t)-2;e>0&&(t.position+=e)},t.mPngHeader=[137,80,78,71,13,10,26,10],t.mJpegHeader=[255,216],t.GIF_HEADER="G,I,F,8",t.BMP_HEADER="B,M",t}(),Sn=function(){function t(t){this.updateProportionsHelper(t)}return t.prototype.convertUnits=function(t,e,i){return this.convertFromPixels(this.convertToPixels(t,e),i)},t.prototype.convertToPixels=function(t,e){var i=e;return t*this.proportions[i]},t.prototype.convertFromPixels=function(t,e){var i=e;return t/this.proportions[i]},t.prototype.updateProportionsHelper=function(t){this.proportions=[t/2.54,t/6,1,t/72,t,t/300,t/25.4]},t.horizontalResolution=96,t.verticalResolution=96,t}(),vn=function(){function t(){}return Object.defineProperty(t.prototype,"width",{get:function(){return this.imageWidth},set:function(t){this.imageWidth=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.imageHeight},set:function(t){this.imageHeight=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{set:function(t){this.width=t.width,this.height=t.height},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"physicalDimension",{get:function(){return this.imagePhysicalDimension=this.getPointSize(this.width,this.height,this.horizontalResolution,this.verticalResolution),new Nr(this.width,this.height)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.imageStream},enumerable:!0,configurable:!0}),t.prototype.getPointSize=function(t,e,i,r){if(void 0===i){var n=Sn.horizontalResolution,o=Sn.verticalResolution;return this.getPointSize(t,e,n,o)}var s=new Sn(i),a=new Sn(r),u=s.convertUnits(t,Xi.Pixel,Xi.Point),c=a.convertUnits(e,Xi.Pixel,Xi.Point);return new Nr(u,c)},t}(),In=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),zn=function(t){function e(e){var i=t.call(this)||this;return i.imageStatus=!0,i.dictionaryProperties=new yi,i.loadImage(e),i}return In(e,t),e.prototype.loadImage=function(t){this.initializeAsync(t)},e.prototype.initializeAsync=function(t){var e=new yn(t.length);e.writeFromBase64String(t),this.decoder=new Dn(e),this.height=this.decoder.height,this.width=this.decoder.width,this.bitsPerComponent=this.decoder.bitsPerComponent},e.prototype.save=function(){this.imageStatus=!0,this.imageStream=this.decoder.getImageDictionary()},e}(vn),bn=function(){function t(){}return Object.defineProperty(t.prototype,"empty",{get:function(){return this.offset===this.length&&this.length===this.checksum&&0===this.checksum},enumerable:!0,configurable:!0}),t}(),wn=function(){},On=function(){},Tn=function(){},Ln=function(){function t(){}return Object.defineProperty(t.prototype,"isItalic",{get:function(){return!!(2&this.macStyle)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isBold",{get:function(){return!!(1&this.macStyle)},enumerable:!0,configurable:!0}),t}(),An=function(){},xn=function(){},Cn=function(){},En=function(){},kn=function(){},Pn=function(){},Un=function(){function t(){}return Object.defineProperty(t.prototype,"empty",{get:function(){return this.index===this.width&&this.width===this.charCode&&0===this.charCode},enumerable:!0,configurable:!0}),t.prototype.compareTo=function(t){var e=t;return this.index-e.index},t}(),Qn=function(){},Yn=function(){},Rn=function(){},Vn=function(){},Fn=function(){},Bn=function(){function t(t){this.int32Size=4,this.int16Size=2,this.int64Size=8,this.bufferLength=t,this.buffer=[]}return Object.defineProperty(t.prototype,"data",{get:function(){if(this.buffer.length<this.bufferLength)for(var t=this.bufferLength-this.buffer.length,e=0;e<t;e++)this.buffer.push(0);return this.buffer},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"position",{get:function(){return void 0!==this.internalPosition&&null!==this.internalPosition||(this.internalPosition=0),this.internalPosition},enumerable:!0,configurable:!0}),t.prototype.writeShort=function(t){var e=[(65280&t)>>8,255&t];this.flush(e)},t.prototype.writeInt=function(t){var e=[(4278190080&t)>>24,(16711680&t)>>16,(65280&t)>>8,255&t];this.flush(e)},t.prototype.writeUInt=function(t){var e=[(4278190080&t)>>24,(16711680&t)>>16,(65280&t)>>8,255&t];this.flush(e)},t.prototype.writeString=function(t){if(null==t)throw new Error("Argument Null Exception : value");for(var e=[],i=0;i<t.length;i++)e.push(t.charCodeAt(i));this.flush(e)},t.prototype.writeBytes=function(t){this.flush(t)},t.prototype.flush=function(t){if(null===t)throw new Error("Argument Null Exception : buff");for(var e=this.position,i=0;i<t.length;i++)this.buffer[e]=t[i],e++;this.internalPosition+=t.length},t}(),Wn=function(){function t(t){this.int32Size=4,this.isTtcFont=!1,this.isMacTtf=!1,this.metricsName="",this.isMacTTF=!1,this.missedGlyphs=0,this.tableNames=["cvt ","fpgm","glyf","head","hhea","hmtx","loca","maxp","prep"],this.entrySelectors=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4],this.fontData=t,this.initialize()}return Object.defineProperty(t.prototype,"macintosh",{get:function(){return null!==this.macintoshDictionary&&void 0!==this.macintoshDictionary||(this.macintoshDictionary=new di),this.macintoshDictionary},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"microsoft",{get:function(){return null!==this.microsoftDictionary&&void 0!==this.microsoftDictionary||(this.microsoftDictionary=new di),this.microsoftDictionary},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"macintoshGlyphs",{get:function(){return null!==this.internalMacintoshGlyphs&&void 0!==this.internalMacintoshGlyphs||(this.internalMacintoshGlyphs=new di),this.internalMacintoshGlyphs},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"microsoftGlyphs",{get:function(){return null!==this.internalMicrosoftGlyphs&&void 0!==this.internalMicrosoftGlyphs||(this.internalMicrosoftGlyphs=new di),this.internalMicrosoftGlyphs},enumerable:!0,configurable:!0}),t.prototype.initialize=function(){void 0===this.metrics&&(this.metrics=new Ln),this.readFontDictionary();var t=this.readNameTable(),e=this.readHeadTable();this.initializeFontName(t),this.metrics.macStyle=e.macStyle},t.prototype.readFontDictionary=function(){this.offset=0,this.checkPreambula();var t=this.readInt16(this.offset);this.readInt16(this.offset),this.readInt16(this.offset),this.readInt16(this.offset),void 0===this.tableDirectory&&(this.tableDirectory=new di);for(var e=0;e<t;++e){var i=new bn,r=this.readString(this.int32Size);i.checksum=this.readInt32(this.offset),i.offset=this.readInt32(this.offset),i.length=this.readInt32(this.offset),this.tableDirectory.setValue(r,i)}this.lowestPosition=this.offset,this.isTtcFont||this.fixOffsets()},t.prototype.fixOffsets=function(){for(var t=Number.MAX_VALUE,e=this.tableDirectory.keys(),i=0;i<e.length;i++){var r=(s=this.tableDirectory.getValue(e[i])).offset;if(t>r&&(t=r)<=this.lowestPosition)break}var n=t-this.lowestPosition;if(0!==n){var o=new di;for(i=0;i<e.length;i++){var s;(s=this.tableDirectory.getValue(e[i])).offset-=n,o.setValue(e[i],s)}this.tableDirectory=o}},t.prototype.checkPreambula=function(){var t=this.readInt32(this.offset);if(this.isMacTtf=1953658213===t,65536!==t&&1953658213!==t&&1330926671!==t){if(this.isTtcFont=!0,this.offset=0,"ttcf"!==this.readString(4))throw new Error("Can not read TTF font data");if(this.offset+=4,this.readInt32(this.offset)<0)throw new Error("Can not read TTF font data");this.offset=this.readInt32(this.offset),t=this.readInt32(this.offset)}return t},t.prototype.readNameTable=function(){var t=this.getTable("name");this.offset=t.offset;var e=new wn;e.formatSelector=this.readUInt16(this.offset),e.recordsCount=this.readUInt16(this.offset),e.offset=this.readUInt16(this.offset),e.nameRecords=[];for(var i=this.offset,r=0;r<e.recordsCount;r++){this.offset=i;var n=new On;n.platformID=this.readUInt16(this.offset),n.encodingID=this.readUInt16(this.offset),n.languageID=this.readUInt16(this.offset),n.nameID=this.readUInt16(this.offset),n.length=this.readUInt16(this.offset),n.offset=this.readUInt16(this.offset),this.offset=t.offset+e.offset+n.offset;var o=0===n.platformID||3===n.platformID;n.name=this.readString(n.length,o),e.nameRecords[r]=n,i+=12}return e},t.prototype.readHeadTable=function(){var t=this.getTable("head");this.offset=t.offset;var e=new Tn;return e.version=this.readFixed(this.offset),e.fontRevision=this.readFixed(this.offset),e.checkSumAdjustment=this.readUInt32(this.offset),e.magicNumber=this.readUInt32(this.offset),e.flags=this.readUInt16(this.offset),e.unitsPerEm=this.readUInt16(this.offset),e.created=this.readInt64(this.offset),e.modified=this.readInt64(this.offset),e.xMin=this.readInt16(this.offset),e.yMin=this.readInt16(this.offset),e.xMax=this.readInt16(this.offset),e.yMax=this.readInt16(this.offset),e.macStyle=this.readUInt16(this.offset),e.lowestReadableSize=this.readUInt16(this.offset),e.fontDirectionHint=this.readInt16(this.offset),e.indexToLocalFormat=this.readInt16(this.offset),e.glyphDataFormat=this.readInt16(this.offset),e},t.prototype.readHorizontalHeaderTable=function(){var t=this.getTable("hhea");this.offset=t.offset;var e=new An;return e.version=this.readFixed(this.offset),e.ascender=this.readInt16(this.offset),e.descender=this.readInt16(this.offset),e.lineGap=this.readInt16(this.offset),e.advanceWidthMax=this.readUInt16(this.offset),e.minLeftSideBearing=this.readInt16(this.offset),e.minRightSideBearing=this.readInt16(this.offset),e.xMaxExtent=this.readInt16(this.offset),e.caretSlopeRise=this.readInt16(this.offset),e.caretSlopeRun=this.readInt16(this.offset),this.offset+=10,e.metricDataFormat=this.readInt16(this.offset),e.numberOfHMetrics=this.readUInt16(this.offset),e},t.prototype.readOS2Table=function(){var t=this.getTable("OS/2");this.offset=t.offset;var e=new xn;return e.version=this.readUInt16(this.offset),e.xAvgCharWidth=this.readInt16(this.offset),e.usWeightClass=this.readUInt16(this.offset),e.usWidthClass=this.readUInt16(this.offset),e.fsType=this.readInt16(this.offset),e.ySubscriptXSize=this.readInt16(this.offset),e.ySubscriptYSize=this.readInt16(this.offset),e.ySubscriptXOffset=this.readInt16(this.offset),e.ySubscriptYOffset=this.readInt16(this.offset),e.ySuperscriptXSize=this.readInt16(this.offset),e.ySuperscriptYSize=this.readInt16(this.offset),e.ySuperscriptXOffset=this.readInt16(this.offset),e.ySuperscriptYOffset=this.readInt16(this.offset),e.yStrikeoutSize=this.readInt16(this.offset),e.yStrikeoutPosition=this.readInt16(this.offset),e.sFamilyClass=this.readInt16(this.offset),e.panose=this.readBytes(10),e.ulUnicodeRange1=this.readUInt32(this.offset),e.ulUnicodeRange2=this.readUInt32(this.offset),e.ulUnicodeRange3=this.readUInt32(this.offset),e.ulUnicodeRange4=this.readUInt32(this.offset),e.vendorIdentifier=this.readBytes(4),e.fsSelection=this.readUInt16(this.offset),e.usFirstCharIndex=this.readUInt16(this.offset),e.usLastCharIndex=this.readUInt16(this.offset),e.sTypoAscender=this.readInt16(this.offset),e.sTypoDescender=this.readInt16(this.offset),e.sTypoLineGap=this.readInt16(this.offset),e.usWinAscent=this.readUInt16(this.offset),e.usWinDescent=this.readUInt16(this.offset),e.ulCodePageRange1=this.readUInt32(this.offset),e.ulCodePageRange2=this.readUInt32(this.offset),e.version>1?(e.sxHeight=this.readInt16(this.offset),e.sCapHeight=this.readInt16(this.offset),e.usDefaultChar=this.readUInt16(this.offset),e.usBreakChar=this.readUInt16(this.offset),e.usMaxContext=this.readUInt16(this.offset)):(e.sxHeight=0,e.sCapHeight=0,e.usDefaultChar=0,e.usBreakChar=0,e.usMaxContext=0),e},t.prototype.readPostTable=function(){var t=this.getTable("post");this.offset=t.offset;var e=new Cn;return e.formatType=this.readFixed(this.offset),e.italicAngle=this.readFixed(this.offset),e.underlinePosition=this.readInt16(this.offset),e.underlineThickness=this.readInt16(this.offset),e.isFixedPitch=this.readUInt32(this.offset),e.minType42=this.readUInt32(this.offset),e.maxType42=this.readUInt32(this.offset),e.minType1=this.readUInt32(this.offset),e.maxType1=this.readUInt32(this.offset),e},t.prototype.readWidthTable=function(t,e){var i=this.getTable("hmtx");this.offset=i.offset;for(var r=[],n=0;n<t;n++){var o=new En;o.advanceWidth=this.readUInt16(this.offset),o.lsb=this.readInt16(this.offset);var s=1e3*o.advanceWidth/e;r.push(Math.floor(s))}return r},t.prototype.readCmapTable=function(){var t=this.getTable("cmap");this.offset=t.offset;var e=new Pn;e.version=this.readUInt16(this.offset),e.tablesCount=this.readUInt16(this.offset);for(var i=this.offset,r=[],n=0;n<e.tablesCount;n++){this.offset=i;var o=new kn;o.platformID=this.readUInt16(this.offset),o.encodingID=this.readUInt16(this.offset),o.offset=this.readUInt32(this.offset),i=this.offset,this.readCmapSubTable(o),r[n]=o}return r},t.prototype.readCmapSubTable=function(t){var e=this.getTable("cmap");this.offset=e.offset+t.offset;var i=this.readUInt16(this.offset),r=this.getCmapEncoding(t.platformID,t.encodingID);if(r===lr.Macintosh?pr.Macintosh:pr.Microsoft,r!==lr.Unknown)switch(i){case hr.Apple:this.readAppleCmapTable(t,r);break;case hr.Microsoft:this.readMicrosoftCmapTable(t,r);break;case hr.Trimmed:this.readTrimmedCmapTable(t,r)}},t.prototype.readAppleCmapTable=function(t,e){var i=this.getTable("cmap");this.offset=i.offset+t.offset;var r=new Yn;r.format=this.readUInt16(this.offset),r.length=this.readUInt16(this.offset),r.version=this.readUInt16(this.offset),null!==this.maxMacIndex&&void 0!==this.maxMacIndex||(this.maxMacIndex=0);for(var n=0;n<256;++n){var o=new Un;o.index=this.readByte(this.offset),o.width=this.getWidth(o.index),o.charCode=n,this.macintosh.setValue(n,o),this.addGlyph(o,e),this.maxMacIndex=Math.max(n,this.maxMacIndex)}},t.prototype.readMicrosoftCmapTable=function(t,e){var i=this.getTable("cmap");this.offset=i.offset+t.offset;var r=e===lr.Unicode?this.microsoft:this.macintosh,n=new Rn;n.format=this.readUInt16(this.offset),n.length=this.readUInt16(this.offset),n.version=this.readUInt16(this.offset),n.segCountX2=this.readUInt16(this.offset),n.searchRange=this.readUInt16(this.offset),n.entrySelector=this.readUInt16(this.offset),n.rangeShift=this.readUInt16(this.offset);var o=n.segCountX2/2;n.endCount=this.readUshortArray(o),n.reservedPad=this.readUInt16(this.offset),n.startCount=this.readUshortArray(o),n.idDelta=this.readUshortArray(o),n.idRangeOffset=this.readUshortArray(o);var s=n.length/2-8-4*o;n.glyphID=this.readUshortArray(s);for(var a=0,u=0,c=0;c<o;c++)for(var h=n.startCount[c];h<=n.endCount[c]&&65535!==h;h++){if(0===n.idRangeOffset[c])a=h+n.idDelta[c]&65535;else{if((u=c+n.idRangeOffset[c]/2-o+h-n.startCount[c])>=n.glyphID.length)continue;a=n.glyphID[u]+n.idDelta[c]&65535}var l=new Un;l.index=a,l.width=this.getWidth(l.index);var p=e===lr.Symbol&&61440==(65280&h)?255&h:h;l.charCode=p,r.setValue(p,l),this.addGlyph(l,e)}},t.prototype.readTrimmedCmapTable=function(t,e){var i=this.getTable("cmap");this.offset=i.offset+t.offset;var r=new Vn;r.format=this.readUInt16(this.offset),r.length=this.readUInt16(this.offset),r.version=this.readUInt16(this.offset),r.firstCode=this.readUInt16(this.offset),r.entryCount=this.readUInt16(this.offset);for(var n=0;n<r.entryCount;++n){var o=new Un;o.index=this.readUInt16(this.offset),o.width=this.getWidth(o.index),o.charCode=n+r.firstCode,this.macintosh.setValue(n,o),this.addGlyph(o,e),this.maxMacIndex=Math.max(n,this.maxMacIndex)}},t.prototype.initializeFontName=function(t){for(var e=0;e<t.recordsCount;e++){var i=t.nameRecords[e];if(1===i.nameID?this.metrics.fontFamily=i.name:6===i.nameID&&(this.metrics.postScriptName=i.name),null!==this.metrics.fontFamily&&void 0!==this.metrics.fontFamily&&null!==this.metrics.postScriptName&&void 0!==this.metrics.postScriptName)break}},t.prototype.getTable=function(t){var e,i=new bn;return this.tableDirectory.containsKey(t)&&(e=this.tableDirectory.getValue(t)),null!=e&&(i=e),i},t.prototype.getWidth=function(t){return t=t<this.width.length?t:this.width.length-1,this.width[t]},t.prototype.getCmapEncoding=function(t,e){var i=lr.Unknown;return t==pr.Microsoft&&e==gr.Undefined?i=lr.Symbol:t==pr.Microsoft&&e==gr.Unicode?i=lr.Unicode:t==pr.Macintosh&&e==dr.Roman&&(i=lr.Macintosh),i},t.prototype.addGlyph=function(t,e){var i=null;switch(e){case lr.Unicode:i=this.microsoftGlyphs;break;case lr.Macintosh:case lr.Symbol:i=this.macintoshGlyphs}i.setValue(t.index,t)},t.prototype.initializeMetrics=function(t,e,i,r,n,o){this.initializeFontName(t);for(var s=!1,a=0;a<o.length;a++){var u=o[a];if(this.getCmapEncoding(u.platformID,u.encodingID)===lr.Symbol){s=!0;break}}this.metrics.isSymbol=s,this.metrics.macStyle=e.macStyle,this.metrics.isFixedPitch=0!==n.isFixedPitch,this.metrics.italicAngle=n.italicAngle;var c=1e3/e.unitsPerEm;this.metrics.winAscent=r.sTypoAscender*c,this.metrics.macAscent=i.ascender*c,this.metrics.capHeight=0!==r.sCapHeight?r.sCapHeight:.7*e.unitsPerEm*c,this.metrics.winDescent=r.sTypoDescender*c,this.metrics.macDescent=i.descender*c,this.metrics.leading=(r.sTypoAscender-r.sTypoDescender+r.sTypoLineGap)*c,this.metrics.lineGap=Math.ceil(i.lineGap*c);var h=e.xMin*c,l=Math.ceil(this.metrics.macAscent+this.metrics.lineGap),p=e.xMax*c,g=this.metrics.macDescent;this.metrics.fontBox=new Dr(h,l,p,g),this.metrics.stemV=80,this.metrics.widthTable=this.updateWidth(),this.metrics.contains=this.tableDirectory.containsKey("CFF"),this.metrics.subScriptSizeFactor=e.unitsPerEm/r.ySubscriptYSize,this.metrics.superscriptSizeFactor=e.unitsPerEm/r.ySuperscriptYSize},t.prototype.updateWidth=function(){var t=[];if(this.metrics.isSymbol)for(var e=0;e<256;e++){var i=this.getGlyph(String.fromCharCode(e));t[e]=i.empty?0:i.width}else{var r=[],n=String.fromCharCode(32);for(e=0;e<256;e++){r[0]=e;var o=this.getString(r,0,r.length),s=o.length>0?o[0]:"?";(i=this.getGlyph(s)).empty?(i=this.getGlyph(n),t[e]=i.empty?0:i.width):t[e]=i.width}}return t},t.prototype.getDefaultGlyph=function(){return this.getGlyph(wr.whiteSpace)},t.prototype.getString=function(t,e,i){for(var r="",n=0;n<i;n++)r+=String.fromCharCode(t[n+e]);return r},t.prototype.readLocaTable=function(t){var e=this.getTable("loca");this.offset=e.offset;var i=new Qn,r=null;if(t){var n=e.length/2;r=[];for(var o=0;o<n;o++)r[o]=2*this.readUInt16(this.offset)}else{n=e.length/4;r=[];for(o=0;o<n;o++)r[o]=this.readUInt32(this.offset)}return i.offsets=r,i},t.prototype.updateGlyphChars=function(t,e){t.containsKey(0)||t.setValue(0,0);for(var i=new di,r=t.keys(),n=0;n<r.length;n++)i.setValue(r[n],t.getValue(r[n]));for(n=0;n<r.length;n++){var o=r[n];this.processCompositeGlyph(t,o,e)}},t.prototype.processCompositeGlyph=function(t,e,i){if(e<i.offsets.length-1){var r=i.offsets[e];if(r!==i.offsets[e+1]){var n=this.getTable("glyf");this.offset=n.offset+r;var o=new Fn;if(o.numberOfContours=this.readInt16(this.offset),o.xMin=this.readInt16(this.offset),o.yMin=this.readInt16(this.offset),o.xMax=this.readInt16(this.offset),o.yMax=this.readInt16(this.offset),o.numberOfContours<0)for(var s=0;;){var a=this.readUInt16(this.offset),u=this.readUInt16(this.offset);if(t.containsKey(u)||t.setValue(u,0),0===(a&Mr.MoreComponents))break;s=0!==(a&Mr.Arg1And2AreWords)?4:2,0!==(a&Mr.WeHaveScale)?s+=2:0!==(a&Mr.WeHaveAnXyScale)?s+=4:0!==(a&Mr.WeHaveTwoByTwo)&&(s+=8),this.offset+=s}}}},t.prototype.generateGlyphTable=function(t,e,i,r){i=[];var n=t.keys();n.sort(function(t,e){return t-e});for(var o=0,s=0;s<n.length;s++){var a=n[s];e.offsets.length>0&&(o+=e.offsets[a+1]-e.offsets[a])}var u=this.align(o);r=[];for(s=0;s<u;s++)r.push(0);var c=0,h=0,l=this.getTable("glyf");for(s=0;s<e.offsets.length;s++)if(i.push(c),h<n.length&&n[h]===s){++h,i[s]=c;var p=e.offsets[s],g=e.offsets[s+1]-p;if(g>0)this.offset=l.offset+p,r=this.read(r,c,g).buffer,c+=g}return{glyphTableSize:o,newLocaTable:i,newGlyphTable:r}},t.prototype.updateLocaTable=function(t,e,i){if(null===t)throw new Error("Argument Null Exception : newLocaTable");for(var r=e?2*t.length:4*t.length,n=this.align(r),o=new Bn(n),s=0;s<t.length;s++){var a=t[s];e?(a/=2,o.writeShort(a)):o.writeInt(a)}return{newLocaUpdated:o.data,newLocaSize:r}},t.prototype.align=function(t){return t+3&-4},t.prototype.getFontProgram=function(t,e,i,r){if(null===t)throw new Error("Argument Null Exception : newLocaTableOut");if(null===e)throw new Error("Argument Null Exception : newGlyphTable");this.tableNames;var n=this.getFontProgramLength(t,e,0),o=n.fontProgramLength,s=n.numTables,a=new Bn(o);a.writeInt(65536),a.writeShort(s);var u=this.entrySelectors[s];return a.writeShort(16*(1<<(31&u))),a.writeShort(u),a.writeShort(16*(s-(1<<(31&u)))),this.writeCheckSums(a,s,t,e,i,r),this.writeGlyphs(a,t,e),a.data},t.prototype.getFontProgramLength=function(t,e,i){if(null===t)throw new Error("Argument Null Exception : newLocaTableOut");if(null===e)throw new Error("Argument Null Exception : newGlyphTable");i=2;for(var r=this.tableNames,n=0,o=0;o<r.length;o++){var s=r[o];if("glyf"!==s&&"loca"!==s){var a=this.getTable(s);a.empty||(++i,n+=this.align(a.length))}}return n+=t.length,n+=e.length,{fontProgramLength:n+=16*i+12,numTables:i}},t.prototype.writeCheckSums=function(t,e,i,r,n,o){if(null===t)throw new Error("Argument Null Exception : writer");if(null===i)throw new Error("Argument Null Exception : newLocaTableOut");if(null===r)throw new Error("Argument Null Exception : newGlyphTable");for(var s=this.tableNames,a=16*e+12,u=0,c=0;c<s.length;c++){var h=s[c],l=this.getTable(h);if(!l.empty){if(t.writeString(h),"glyf"===h){var p=this.calculateCheckSum(r);t.writeInt(p),u=n}else if("loca"===h){p=this.calculateCheckSum(i);t.writeInt(p),u=o}else t.writeInt(l.checksum),u=l.length;t.writeUInt(a),t.writeUInt(u),a+=this.align(u)}}},t.prototype.calculateCheckSum=function(t){if(null===t)throw new Error("Argument Null Exception : bytes");for(var e=0,i=0,r=0,n=0,o=0,s=0;s<(t.length+1)/4;s++)o+=255&t[e++],n+=255&t[e++],r+=255&t[e++],i+=255&t[e++];var a=i;return a+=r<<8,a+=n<<16,a+=o<<24},t.prototype.writeGlyphs=function(t,e,i){if(null===t)throw new Error("Argument Null Exception : writer");if(null===e)throw new Error("Argument Null Exception : newLocaTableOut");if(null===i)throw new Error("Argument Null Exception : newGlyphTable");for(var r=this.tableNames,n=0;n<r.length;n++){var o=r[n],s=this.getTable(o);if(!s.empty)if("glyf"===o)t.writeBytes(i);else if("loca"===o)t.writeBytes(e);else{for(var a=this.align(s.length),u=[],c=0;c<a;c++)u.push(0);this.offset=s.offset;var h=this.read(u,0,s.length);t.writeBytes(h.buffer)}}},t.prototype.setOffset=function(t){this.offset=t},t.prototype.createInternals=function(){this.metrics=new Ln;var t=this.readNameTable(),e=this.readHeadTable();this.bIsLocaShort=0===e.indexToLocalFormat;var i=this.readHorizontalHeaderTable(),r=this.readOS2Table(),n=this.readPostTable();this.width=this.readWidthTable(i.numberOfHMetrics,e.unitsPerEm);var o=this.readCmapTable();this.initializeMetrics(t,e,i,r,n,o)},t.prototype.getGlyph=function(t){if("number"==typeof t){var e=null;return this.metrics.isSymbol||null==this.microsoftGlyphs?this.metrics.isSymbol&&null!=this.macintoshGlyphs&&this.macintoshGlyphs.containsKey(t)&&(e=this.macintoshGlyphs.getValue(t)):this.microsoftGlyphs.containsKey(t)&&(e=this.microsoftGlyphs.getValue(t)),null!=e?e:this.getDefaultGlyph()}var i=null,r=t.charCodeAt(0);return this.metrics.isSymbol||null===this.microsoft?(this.metrics.isSymbol&&null!==this.macintosh||this.isMacTTF)&&(0!==this.maxMacIndex?r%=this.maxMacIndex+1:r=61440==(65280&r)?255&r:r,this.macintosh.containsKey(r)&&(i=this.macintosh.getValue(r),this.isFontPresent=!0)):this.microsoft.containsKey(r)?(i=this.microsoft.getValue(r),r!==wr.whiteSpace.charCodeAt(0)&&(this.isFontPresent=!0)):r!==wr.whiteSpace.charCodeAt(0)&&(this.isFontPresent=!1),t===wr.whiteSpace&&null===i&&(i=new Un),null!==i?i:this.getDefaultGlyph()},t.prototype.getGlyphChars=function(t){if(null==t)throw new Error("Argument Null Exception : chars");for(var e=new di,i=t.keys(),r=0;r<i.length;r++){var n=i[r],o=this.getGlyph(n);o.empty||e.setValue(o.index,n.charCodeAt(0))}return e},t.prototype.getAllGlyphs=function(){for(var t=[],e=new Un,i=0,r=0;r<this.width.length;r++){var n=this.width[r];e.index=i,e.width=n,t.push(e),i++}return t},t.prototype.readFontProgram=function(t){var e=this.getGlyphChars(t),i=this.readLocaTable(this.bIsLocaShort);e.size()<t.size()&&(this.missedGlyphs=t.size()-e.size()),this.updateGlyphChars(e,i);var r=this.generateGlyphTable(e,i,null,null),n=r.glyphTableSize,o=r.newLocaTable,s=r.newGlyphTable,a=this.updateLocaTable(o,this.bIsLocaShort,null),u=a.newLocaSize,c=a.newLocaUpdated;return this.getFontProgram(c,s,n,u)},t.prototype.convertString=function(t){if(null===t)throw new Error("Argument Null Exception : text");for(var e="",i=0;i<t.length;i++){var r=t[i],n=this.getGlyph(r);n.empty||(e+=String.fromCharCode(n.index))}return e},t.prototype.getCharWidth=function(t){var e=this.getGlyph(t);return(e=e.empty?this.getDefaultGlyph():e).empty?0:e.width},t.prototype.readString=function(t,e){if(void 0===e)return this.readString(t,!1);var i="";if(e)for(var r=0;r<t;r++)r%2!=0&&(i+=String.fromCharCode(this.fontData[this.offset])),this.offset+=1;else for(r=0;r<t;r++)i+=String.fromCharCode(this.fontData[this.offset]),this.offset+=1;return i},t.prototype.readFixed=function(t){return this.readInt16(t)+this.readInt16(t+2)/16384},t.prototype.readInt32=function(t){var e=this.fontData[t+3],i=this.fontData[t+2],r=this.fontData[t+1],n=this.fontData[t];return this.offset+=4,e+(i<<8)+(r<<16)+(n<<24)},t.prototype.readUInt32=function(t){var e=this.fontData[t+3],i=this.fontData[t+2],r=this.fontData[t+1],n=this.fontData[t];return this.offset+=4,e|i<<8|r<<16|n<<24},t.prototype.readInt16=function(t){var e=(this.fontData[t]<<8)+this.fontData[t+1];return e=32768&e?e-65536:e,this.offset+=2,e},t.prototype.readInt64=function(t){var e=this.readInt32(t+4),i=4294967296*this.readInt32(t)+e;return e<0&&(i+=4294967296),i},t.prototype.readUInt16=function(t){var e=this.fontData[t]<<8|this.fontData[t+1];return this.offset+=2,e},t.prototype.readUshortArray=function(t){for(var e=[],i=0;i<t;i++)e[i]=this.readUInt16(this.offset);return e},t.prototype.readBytes=function(t){for(var e=[],i=0;i<t;i++)e.push(this.fontData[this.offset]),this.offset+=1;return e},t.prototype.readByte=function(t){var e=this.fontData[t];return this.offset+=1,e},t.prototype.read=function(t,e,i){if(null===t)throw new Error("Argument Null Exception : buffer");var r=0,n=0;do{for(var o=0;o<i-r&&this.offset+o<this.fontData.length;o++)t[e+o]=this.fontData[this.offset+o];n=i-r,this.offset+=n,r+=n}while(r<i);return{buffer:t,written:r}},t}(),Gn=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Hn=function(){function t(){this.lineGap=0}return t.prototype.getAscent=function(t){return this.ascent*xr.charSizeMultiplier*this.getSize(t)},t.prototype.getDescent=function(t){return this.descent*xr.charSizeMultiplier*this.getSize(t)},t.prototype.getLineGap=function(t){return this.lineGap*xr.charSizeMultiplier*this.getSize(t)},t.prototype.getHeight=function(t){return this.getDescent(t)<0?this.getAscent(t)-this.getDescent(t)+this.getLineGap(t):this.getAscent(t)+this.getDescent(t)+this.getLineGap(t)},t.prototype.getSize=function(t){var e=this.size;if(null!=t)switch(t.subSuperScript){case ur.SubScript:e/=this.subScriptSizeFactor;break;case ur.SuperScript:e/=this.superscriptSizeFactor}return e},t.prototype.clone=function(){return this.widthTable=qn.clone(),this},Object.defineProperty(t.prototype,"widthTable",{get:function(){return this.internalWidthTable},set:function(t){this.internalWidthTable=t},enumerable:!0,configurable:!0}),t}(),qn=function(){function t(){}return t.clone=function(){return null},t}(),_n=function(t){function e(e){var i=t.call(this)||this;if(null==e)throw new Error("ArgumentNullException:widths");return i.widths=e,i}return Gn(e,t),e.prototype.items=function(t){if(t<0||t>=this.widths.length)throw new Error("ArgumentOutOfRangeException:index, The character is not supported by the font.");return this.widths[t]},Object.defineProperty(e.prototype,"length",{get:function(){return this.widths.length},enumerable:!0,configurable:!0}),e.prototype.clone=function(){return this.widths=this.widths,this},e.prototype.toArray=function(){return new zi(this.widths)},e}(qn),Jn=function(){function t(t,e){if(this.nameString="ABCDEFGHIJKLMNOPQRSTUVWXYZ",this.dictionaryProperties=new yi,this.isCompress=!1,this.isEmbedFont=!1,this.cmapPrefix="/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap"+Mi.newLine+"/CIDSystemInfo << /Registry (Adobe)/Ordering (UCS)/Supplement 0>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange"+Mi.newLine,this.cmapEndCodespaceRange="endcodespacerange"+Mi.newLine,this.cmapBeginRange="beginbfrange"+Mi.newLine,this.cmapEndRange="endbfrange"+Mi.newLine,this.cmapSuffix="endbfrange\nendcmap\nCMapName currentdict /CMap defineresource pop\nend end"+Mi.newLine,null==t)throw new Error("ArgumentNullException:base64String");this.fontSize=e,this.fontString=t,this.Initialize()}return t.prototype.getCharWidth=function(t){return this.ttfReader.getCharWidth(t)},t.prototype.getLineWidth=function(t){for(var e=0,i=0,r=t.length;i<r;i++){var n=t[i];e+=this.getCharWidth(n)}return e},t.prototype.Initialize=function(){var t=new yn(this.fontString.length);t.writeFromBase64String(this.fontString),this.fontData=t.internalBuffer,this.ttfReader=new Wn(this.fontData),this.ttfMetrics=this.ttfReader.metrics},t.prototype.createInternals=function(){this.fontDictionary=new mi,this.fontProgram=new Yi,this.cmap=new Yi,this.descendantFont=new mi,this.metrics=new Hn,this.ttfReader.createInternals(),this.ttfMetrics=this.ttfReader.metrics,this.initializeMetrics(),this.subsetName=this.getFontName(),this.createDescendantFont(),this.createCmap(),this.createFontDictionary(),this.createFontProgram()},t.prototype.getInternals=function(){return this.fontDictionary},t.prototype.initializeMetrics=function(){var t=this.ttfReader.metrics;this.metrics.ascent=t.macAscent,this.metrics.descent=t.macDescent,this.metrics.height=t.macAscent-t.macDescent+t.lineGap,this.metrics.name=t.fontFamily,this.metrics.postScriptName=t.postScriptName,this.metrics.size=this.fontSize,this.metrics.widthTable=new _n(t.widthTable),this.metrics.lineGap=t.lineGap,this.metrics.subScriptSizeFactor=t.subScriptSizeFactor,this.metrics.superscriptSizeFactor=t.superscriptSizeFactor,this.metrics.isBold=t.isBold},t.prototype.getFontName=function(){for(var t,e="",i=0;i<6;i++){var r=Math.floor(26*Math.random())+0;e+=this.nameString[r]}return e+="+",t=(e+=this.ttfReader.metrics.postScriptName).toString(),t=this.formatName(t)},t.prototype.formatName=function(t){var e=t.replace("(","#28");return(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(")","#29")).replace("[","#5B")).replace("]","#5D")).replace("<","#3C")).replace(">","#3E")).replace("{","#7B")).replace("}","#7D")).replace("/","#2F")).replace("%","#25")).replace(" ","#20")},t.prototype.createDescendantFont=function(){this.descendantFont.isResource=!0,this.descendantFont.descendantFontBeginSave=new ji(this),this.descendantFont.items.setValue(this.dictionaryProperties.type,new fi(this.dictionaryProperties.font)),this.descendantFont.items.setValue(this.dictionaryProperties.subtype,new fi(this.dictionaryProperties.cIDFontType2)),this.descendantFont.items.setValue(this.dictionaryProperties.baseFont,new fi(this.subsetName)),this.descendantFont.items.setValue(this.dictionaryProperties.cIDToGIDMap,new fi(this.dictionaryProperties.identity)),this.descendantFont.items.setValue(this.dictionaryProperties.dw,new Ii(1e3)),this.fontDescriptor=this.createFontDescriptor(),this.descendantFont.items.setValue(this.dictionaryProperties.fontDescriptor,new rr(this.fontDescriptor));var t=this.createSystemInfo();this.descendantFont.items.setValue(this.dictionaryProperties.cIDSystemInfo,t)},t.prototype.createFontDescriptor=function(){var t=new mi,e=this.ttfReader.metrics;return t.isResource=!0,t.items.setValue(this.dictionaryProperties.type,new fi(this.dictionaryProperties.fontDescriptor)),t.items.setValue(this.dictionaryProperties.fontName,new fi(this.subsetName)),t.items.setValue(this.dictionaryProperties.flags,new Ii(this.getDescriptorFlags())),t.items.setValue(this.dictionaryProperties.fontBBox,zi.fromRectangle(this.getBoundBox())),t.items.setValue(this.dictionaryProperties.missingWidth,new Ii(e.widthTable[32])),t.items.setValue(this.dictionaryProperties.stemV,new Ii(e.stemV)),t.items.setValue(this.dictionaryProperties.italicAngle,new Ii(e.italicAngle)),t.items.setValue(this.dictionaryProperties.capHeight,new Ii(e.capHeight)),t.items.setValue(this.dictionaryProperties.ascent,new Ii(e.winAscent)),t.items.setValue(this.dictionaryProperties.descent,new Ii(e.winDescent)),t.items.setValue(this.dictionaryProperties.leading,new Ii(e.leading)),t.items.setValue(this.dictionaryProperties.avgWidth,new Ii(e.widthTable[32])),t.items.setValue(this.dictionaryProperties.fontFile2,new rr(this.fontProgram)),t.items.setValue(this.dictionaryProperties.maxWidth,new Ii(e.widthTable[32])),t.items.setValue(this.dictionaryProperties.xHeight,new Ii(0)),t.items.setValue(this.dictionaryProperties.stemH,new Ii(0)),t},t.prototype.createCmap=function(){this.cmap.cmapBeginSave=new Ri(this)},t.prototype.createFontDictionary=function(){this.fontDictionary.isResource=!0,this.fontDictionary.fontDictionaryBeginSave=new Di(this),this.fontDictionary.items.setValue(this.dictionaryProperties.type,new fi(this.dictionaryProperties.font)),this.fontDictionary.items.setValue(this.dictionaryProperties.baseFont,new fi(this.subsetName)),this.fontDictionary.items.setValue(this.dictionaryProperties.subtype,new fi(this.dictionaryProperties.type0)),this.fontDictionary.items.setValue(this.dictionaryProperties.encoding,new fi(this.dictionaryProperties.identityH));var t=new zi,e=new rr(this.descendantFont);t.isFont=!0,t.add(e),this.fontDictionary.items.setValue(this.dictionaryProperties.descendantFonts,t)},t.prototype.createFontProgram=function(){this.fontProgram.fontProgramBeginSave=new Vi(this)},t.prototype.createSystemInfo=function(){var t=new mi;return t.items.setValue(this.dictionaryProperties.registry,new er("Adobe")),t.items.setValue(this.dictionaryProperties.ordering,new er(this.dictionaryProperties.identity)),t.items.setValue(this.dictionaryProperties.supplement,new Ii(0)),t},t.prototype.descendantFontBeginSave=function(){if(null!==this.usedChars&&void 0!==this.usedChars&&this.usedChars.size()>0){var t=this.getDescendantWidth();null!==t&&this.descendantFont.items.setValue(this.dictionaryProperties.w,t)}},t.prototype.cmapBeginSave=function(){this.generateCmap()},t.prototype.fontDictionaryBeginSave=function(){null!==this.usedChars&&void 0!==this.usedChars&&this.usedChars.size()>0&&!this.fontDictionary.containsKey(this.dictionaryProperties.toUnicode)&&this.fontDictionary.items.setValue(this.dictionaryProperties.toUnicode,new rr(this.cmap))},t.prototype.fontProgramBeginSave=function(){this.isCompress=!0,this.generateFontProgram()},t.prototype.getDescendantWidth=function(){var t=new zi;if(null!==this.usedChars&&void 0!==this.usedChars&&this.usedChars.size()>0){for(var e=[],i=this.usedChars.keys(),r=0;r<i.length;r++){var n=i[r];(c=this.ttfReader.getGlyph(n)).empty||e.push(c)}e.sort(function(t,e){return t.index-e.index});var o=0,s=0,a=!1,u=new zi;for(r=0;r<e.length;r++){var c=e[r];a||(a=!0,o=c.index,s=c.index-1),(s+1!==c.index||r+1===e.length)&&e.length>1&&(t.add(new Ii(o)),0!==r&&t.add(u),o=c.index,u=new zi),u.add(new Ii(c.width)),r+1===e.length&&(t.add(new Ii(o)),t.add(u)),s=c.index}}return t},t.prototype.generateCmap=function(){if(null!==this.usedChars&&void 0!==this.usedChars&&this.usedChars.size()>0){var t=this.ttfReader.getGlyphChars(this.usedChars);if(t.size()>0){var e=t.keys().sort(),i=e[0],r=e[e.length-1],n=this.toHexString(i,!1)+this.toHexString(r,!1)+Mi.newLine,o="";o+=this.cmapPrefix,o+=n,o+=this.cmapEndCodespaceRange;for(var s=0,a=0;a<e.length;a++){0===s&&(0!==a&&(o+=this.cmapEndRange),o+=s=Math.min(100,e.length-a),o+=Mi.whiteSpace,o+=this.cmapBeginRange),s-=1;var u=e[a];o+=this.toHexString(u,!0)+this.toHexString(u,!0)+this.toHexString(t.getValue(u),!0)+"\n"}o+=this.cmapSuffix,this.cmap.clearStream(),this.cmap.isResource=!0,this.cmap.write(o)}}},t.prototype.generateFontProgram=function(){var t;this.usedChars=null===this.usedChars||void 0===this.usedChars?new di:this.usedChars,this.ttfReader.setOffset(0),t=this.ttfReader.readFontProgram(this.usedChars),this.fontProgram.clearStream(),this.fontProgram.isResource=!0,this.fontProgram.writeBytes(t)},t.prototype.getDescriptorFlags=function(){var t=0,e=this.ttfReader.metrics;return e.isFixedPitch&&(t|=fr.FixedPitch),e.isSymbol?t|=fr.Symbolic:t|=fr.Nonsymbolic,e.isItalic&&(t|=fr.Italic),e.isBold&&(t|=fr.ForceBold),t},t.prototype.getBoundBox=function(){var t=this.ttfReader.metrics.fontBox,e=Math.abs(t.right-t.left),i=Math.abs(t.top-t.bottom);return new jr(t.left,t.bottom,e,i)},t.prototype.toHexString=function(t,e){var i=t.toString(16);return e&&(i=i.toUpperCase()),"<0000".substring(0,5-i.length)+i+">"},t.prototype.setSymbols=function(t){if(null===t)throw new Error("Argument Null Exception : text");null!==this.usedChars&&void 0!==this.usedChars||(this.usedChars=new di);for(var e=0;e<t.length;e++){var i=t[e];this.usedChars.setValue(i,String.fromCharCode(0))}!1===this.isEmbedFont&&this.getDescendantWidth()},t}(),Zn=function(){function t(){this.arabicCharTable=[["ء","ﺀ"],["آ","ﺁ","ﺂ"],["أ","ﺃ","ﺄ"],["ؤ","ﺅ","ﺆ"],["إ","ﺇ","ﺈ"],["ئ","ﺉ","ﺊ","ﺋ","ﺌ"],["ا","ﺍ","ﺎ"],["ب","ﺏ","ﺐ","ﺑ","ﺒ"],["ة","ﺓ","ﺔ"],["ت","ﺕ","ﺖ","ﺗ","ﺘ"],["ث","ﺙ","ﺚ","ﺛ","ﺜ"],["ج","ﺝ","ﺞ","ﺟ","ﺠ"],["ح","ﺡ","ﺢ","ﺣ","ﺤ"],["خ","ﺥ","ﺦ","ﺧ","ﺨ"],["د","ﺩ","ﺪ"],["ذ","ﺫ","ﺬ"],["ر","ﺭ","ﺮ"],["ز","ﺯ","ﺰ"],["س","ﺱ","ﺲ","ﺳ","ﺴ"],["ش","ﺵ","ﺶ","ﺷ","ﺸ"],["ص","ﺹ","ﺺ","ﺻ","ﺼ"],["ض","ﺽ","ﺾ","ﺿ","ﻀ"],["ط","ﻁ","ﻂ","ﻃ","ﻄ"],["ظ","ﻅ","ﻆ","ﻇ","ﻈ"],["ع","ﻉ","ﻊ","ﻋ","ﻌ"],["غ","ﻍ","ﻎ","ﻏ","ﻐ"],["ـ","ـ","ـ","ـ","ـ"],["ف","ﻑ","ﻒ","ﻓ","ﻔ"],["ق","ﻕ","ﻖ","ﻗ","ﻘ"],["ك","ﻙ","ﻚ","ﻛ","ﻜ"],["ل","ﻝ","ﻞ","ﻟ","ﻠ"],["م","ﻡ","ﻢ","ﻣ","ﻤ"],["ن","ﻥ","ﻦ","ﻧ","ﻨ"],["ه","ﻩ","ﻪ","ﻫ","ﻬ"],["و","ﻭ","ﻮ"],["ى","ﻯ","ﻰ","ﯨ","ﯩ"],["ي","ﻱ","ﻲ","ﻳ","ﻴ"],["ٱ","ﭐ","ﭑ"],["ٹ","ﭦ","ﭧ","ﭨ","ﭩ"],["ٺ","ﭞ","ﭟ","ﭠ","ﭡ"],["ٻ","ﭒ","ﭓ","ﭔ","ﭕ"],["پ","ﭖ","ﭗ","ﭘ","ﭙ"],["ٿ","ﭢ","ﭣ","ﭤ","ﭥ"],["ڀ","ﭚ","ﭛ","ﭜ","ﭝ"],["ڃ","ﭶ","ﭷ","ﭸ","ﭹ"],["ڄ","ﭲ","ﭳ","ﭴ","ﭵ"],["چ","ﭺ","ﭻ","ﭼ","ﭽ"],["ڇ","ﭾ","ﭿ","ﮀ","ﮁ"],["ڈ","ﮈ","ﮉ"],["ڌ","ﮄ","ﮅ"],["ڍ","ﮂ","ﮃ"],["ڎ","ﮆ","ﮇ"],["ڑ","ﮌ","ﮍ"],["ژ","ﮊ","ﮋ"],["ڤ","ﭪ","ﭫ","ﭬ","ﭭ"],["ڦ","ﭮ","ﭯ","ﭰ","ﭱ"],["ک","ﮎ","ﮏ","ﮐ","ﮑ"],["ڭ","ﯓ","ﯔ","ﯕ","ﯖ"],["گ","ﮒ","ﮓ","ﮔ","ﮕ"],["ڱ","ﮚ","ﮛ","ﮜ","ﮝ"],["ڳ","ﮖ","ﮗ","ﮘ","ﮙ"],["ں","ﮞ","ﮟ"],["ڻ","ﮠ","ﮡ","ﮢ","ﮣ"],["ھ","ﮪ","ﮫ","ﮬ","ﮭ"],["ۀ","ﮤ","ﮥ"],["ہ","ﮦ","ﮧ","ﮨ","ﮩ"],["ۅ","ﯠ","ﯡ"],["ۆ","ﯙ","ﯚ"],["ۇ","ﯗ","ﯘ"],["ۈ","ﯛ","ﯜ"],["ۉ","ﯢ","ﯣ"],["ۋ","ﯞ","ﯟ"],["ی","ﯼ","ﯽ","ﯾ","ﯿ"],["ې","ﯤ","ﯥ","ﯦ","ﯧ"],["ے","ﮮ","ﮯ"],["ۓ","ﮰ","ﮱ"]],this.alef="ا",this.alefHamza="أ",this.alefHamzaBelow="إ",this.alefMadda="آ",this.lam="ل",this.hamza="ء",this.zeroWidthJoiner="‍",this.hamzaAbove="ٔ",this.hamzaBelow="ٕ",this.wawHamza="ؤ",this.yehHamza="ئ",this.waw="و",this.alefMaksura="ى",this.yeh="ي",this.farsiYeh="ی",this.shadda="ّ",this.madda="ٓ",this.lwa="ﻻ",this.lwawh="ﻷ",this.lwawhb="ﻹ",this.lwawm="ﻵ",this.bwhb="ۓ",this.fathatan="ً",this.superScriptalef="ٰ",this.vowel=1,this.arabicMapTable=new di;for(var t=0;t<this.arabicCharTable.length;t++)this.arabicMapTable.setValue(this.arabicCharTable[t][0],this.arabicCharTable[t])}return t.prototype.getCharacterShape=function(t,e){if(t>=this.hamza&&t<=this.bwhb){if(this.arabicMapTable.getValue(t))return this.arabicMapTable.getValue(t)[e+1]}else if(t>=this.lwawm&&t<=this.lwa)return t;return t},t.prototype.shape=function(t,e){for(var i="",r="",n=0;n<t.length;n++){var o=t[n];if(o>="؀"&&o<="ۿ")r+=o;else{if(r.length>0)i+=this.doShape(r.toString(),0),r="";i+=o}}r.length>0&&(i+=this.doShape(r.toString(),0));return i.toString()},t.prototype.doShape=function(t,e){for(var i="",r=0,n=0,o="",s=new Kn,a=new Kn;n<t.length;)if(o=t[n++],0===this.ligature(o,a)){var u=this.getShapeCount(o);r=1===u?0:2,s.Shapes>2&&(r+=1),r%=a.Shapes,a.Value=this.getCharacterShape(a.Value,r),i=this.append(i,s,e),s=a,(a=new Kn).Value=o,a.Shapes=u,a.Ligature++}return r=s.Shapes>2?1:0,r%=a.Shapes,a.Value=this.getCharacterShape(a.Value,r),i=this.append(i,s,e),(i=this.append(i,a,e)).toString()},t.prototype.append=function(t,e,i){return""!==e.Value&&(t+=e.Value,e.Ligature-=1,""!==e.Type&&(0===(i&this.vowel)?(t+=e.Type,e.Ligature-=1):e.Ligature-=1),""!==e.vowel&&(0===(i&this.vowel)?(t+=e.vowel,e.Ligature-=1):e.Ligature-=1)),t},t.prototype.ligature=function(t,e){if(""!==e.Value){var i=0;if(t>=this.fathatan&&t<=this.hamzaBelow||t===this.superScriptalef){if(i=1,""!==e.vowel&&t!==this.shadda&&(i=2),t===this.shadda){if(null!=e.Type)return 0;e.Type=this.shadda}else t===this.hamzaBelow?e.Value===this.alef?(e.Value=this.alefHamzaBelow,i=2):t===this.lwa?(e.Value=this.lwawhb,i=2):e.Type=this.hamzaBelow:t===this.hamzaAbove?e.Value===this.alef?(e.Value=this.alefHamza,i=2):e.Value===this.lwa?(e.Value=this.lwawh,i=2):e.Value===this.waw?(e.Value=this.wawHamza,i=2):e.Value===this.yeh||e.Value===this.alefMaksura||e.Value===this.farsiYeh?(e.Value=this.yehHamza,i=2):e.Type=this.hamzaAbove:t===this.madda?e.Value===this.alef&&(e.Value=this.alefMadda,i=2):e.vowel=t;return 1===i&&e.Ligature++,i}return""!==e.vowel?0:(e.Value===this.lam&&(t===this.alef?(e.Value=this.lwa,e.Shapes=2,i=3):t===this.alefHamza?(e.Value=this.lwawh,e.Shapes=2,i=3):t===this.alefHamzaBelow?(e.Value=this.lwawhb,e.Shapes=2,i=3):t===this.alefMadda&&(e.Value=this.lwawm,e.Shapes=2,i=3)),i)}return 0},t.prototype.getShapeCount=function(t){if(t>=this.hamza&&t<=this.bwhb&&!(t>=this.fathatan&&t<=this.hamzaBelow||t===this.superScriptalef)){if(this.arabicMapTable.getValue(t))return this.arabicMapTable.getValue(t).length-1}else if(t===this.zeroWidthJoiner)return 4;return 1},t}(),Kn=function(){function t(){this.shapeValue="",this.shapeType="",this.shapeVowel="",this.shapeLigature=0,this.shapeShapes=1}return Object.defineProperty(t.prototype,"Value",{get:function(){return this.shapeValue},set:function(t){this.shapeValue=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"Type",{get:function(){return this.shapeType},set:function(t){this.shapeType=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"vowel",{get:function(){return this.shapeVowel},set:function(t){this.shapeVowel=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"Ligature",{get:function(){return this.shapeLigature},set:function(t){this.shapeLigature=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"Shapes",{get:function(){return this.shapeShapes},set:function(t){this.shapeShapes=t},enumerable:!0,configurable:!0}),t}(),Xn=function(){function t(){this.indexes=[],this.indexLevels=[],this.mirroringShapeCharacters=new di,this.update()}return t.prototype.doMirrorShaping=function(t){for(var e=[],i=0;i<t.length;i++)1&~this.indexLevels[i]||!this.mirroringShapeCharacters.containsKey(t[i].charCodeAt(0))?e[i]=t[i].toString():e[i]=String.fromCharCode(this.mirroringShapeCharacters.getValue(t[i].charCodeAt(0)));for(var r="",n=0;n<e.length;n++)r+=e[n];return r},t.prototype.getLogicalToVisualString=function(t,e){var i=new $n;this.indexLevels=i.getVisualOrder(t,e),this.setDefaultIndexLevel(),this.doOrder(0,this.indexLevels.length-1);for(var r=this.doMirrorShaping(t),n="",o=0;o<this.indexes.length;o++){n+=r[this.indexes[o]]}return n.toString()},t.prototype.setDefaultIndexLevel=function(){for(var t=0;t<this.indexLevels.length;t++)this.indexes[t]=t},t.prototype.doOrder=function(t,e){for(var i=this.indexLevels[t],r=i,n=i,o=i,s=t+1;s<=e;++s){var a=this.indexLevels[s];a>i?i=a:a<r&&(r=a),n&=a,o|=a}if(1&o)if(1&~n)for(r|=1;i>=r;){for(var u=t;;){for(;u<=e&&!(this.indexLevels[u]>=i);)u+=1;if(u>e)break;for(var c=u+1;c<=e&&!(this.indexLevels[c]<i);)c+=1;this.reArrange(u,c),u=c+1}i-=1}else this.reArrange(t,e+1)},t.prototype.reArrange=function(t,e){var i=(t+e)/2;for(--e;t<i;++t,--e){var r=this.indexes[t];this.indexes[t]=this.indexes[e],this.indexes[e]=r}},t.prototype.update=function(){this.mirroringShapeCharacters.setValue(40,41),this.mirroringShapeCharacters.setValue(41,40),this.mirroringShapeCharacters.setValue(60,62),this.mirroringShapeCharacters.setValue(62,60),this.mirroringShapeCharacters.setValue(91,93),this.mirroringShapeCharacters.setValue(93,91),this.mirroringShapeCharacters.setValue(123,125),this.mirroringShapeCharacters.setValue(125,123),this.mirroringShapeCharacters.setValue(171,187),this.mirroringShapeCharacters.setValue(187,171),this.mirroringShapeCharacters.setValue(8249,8250),this.mirroringShapeCharacters.setValue(8250,8249),this.mirroringShapeCharacters.setValue(8261,8262),this.mirroringShapeCharacters.setValue(8262,8261),this.mirroringShapeCharacters.setValue(8317,8318),this.mirroringShapeCharacters.setValue(8318,8317),this.mirroringShapeCharacters.setValue(8333,8334),this.mirroringShapeCharacters.setValue(8334,8333),this.mirroringShapeCharacters.setValue(8712,8715),this.mirroringShapeCharacters.setValue(8713,8716),this.mirroringShapeCharacters.setValue(8714,8717),this.mirroringShapeCharacters.setValue(8715,8712),this.mirroringShapeCharacters.setValue(8716,8713),this.mirroringShapeCharacters.setValue(8717,8714),this.mirroringShapeCharacters.setValue(8725,10741),this.mirroringShapeCharacters.setValue(8764,8765),this.mirroringShapeCharacters.setValue(8765,8764),this.mirroringShapeCharacters.setValue(8771,8909),this.mirroringShapeCharacters.setValue(8786,8787),this.mirroringShapeCharacters.setValue(8787,8786),this.mirroringShapeCharacters.setValue(8788,8789),this.mirroringShapeCharacters.setValue(8789,8788),this.mirroringShapeCharacters.setValue(8804,8805),this.mirroringShapeCharacters.setValue(8805,8804),this.mirroringShapeCharacters.setValue(8806,8807),this.mirroringShapeCharacters.setValue(8807,8806),this.mirroringShapeCharacters.setValue(8808,8809),this.mirroringShapeCharacters.setValue(8809,8808),this.mirroringShapeCharacters.setValue(8810,8811),this.mirroringShapeCharacters.setValue(8811,8810),this.mirroringShapeCharacters.setValue(8814,8815),this.mirroringShapeCharacters.setValue(8815,8814),this.mirroringShapeCharacters.setValue(8816,8817),this.mirroringShapeCharacters.setValue(8817,8816),this.mirroringShapeCharacters.setValue(8818,8819),this.mirroringShapeCharacters.setValue(8819,8818),this.mirroringShapeCharacters.setValue(8820,8821),this.mirroringShapeCharacters.setValue(8821,8820),this.mirroringShapeCharacters.setValue(8822,8823),this.mirroringShapeCharacters.setValue(8823,8822),this.mirroringShapeCharacters.setValue(8824,8825),this.mirroringShapeCharacters.setValue(8825,8824),this.mirroringShapeCharacters.setValue(8826,8827),this.mirroringShapeCharacters.setValue(8827,8826),this.mirroringShapeCharacters.setValue(8828,8829),this.mirroringShapeCharacters.setValue(8829,8828),this.mirroringShapeCharacters.setValue(8830,8831),this.mirroringShapeCharacters.setValue(8831,8830),this.mirroringShapeCharacters.setValue(8832,8833),this.mirroringShapeCharacters.setValue(8833,8832),this.mirroringShapeCharacters.setValue(8834,8835),this.mirroringShapeCharacters.setValue(8835,8834),this.mirroringShapeCharacters.setValue(8836,8837),this.mirroringShapeCharacters.setValue(8837,8836),this.mirroringShapeCharacters.setValue(8838,8839),this.mirroringShapeCharacters.setValue(8839,8838),this.mirroringShapeCharacters.setValue(8840,8841),this.mirroringShapeCharacters.setValue(8841,8840),this.mirroringShapeCharacters.setValue(8842,8843),this.mirroringShapeCharacters.setValue(8843,8842),this.mirroringShapeCharacters.setValue(8847,8848),this.mirroringShapeCharacters.setValue(8848,8847),this.mirroringShapeCharacters.setValue(8849,8850),this.mirroringShapeCharacters.setValue(8850,8849),this.mirroringShapeCharacters.setValue(8856,10680),this.mirroringShapeCharacters.setValue(8866,8867),this.mirroringShapeCharacters.setValue(8867,8866),this.mirroringShapeCharacters.setValue(8870,10974),this.mirroringShapeCharacters.setValue(8872,10980),this.mirroringShapeCharacters.setValue(8873,10979),this.mirroringShapeCharacters.setValue(8875,10981),this.mirroringShapeCharacters.setValue(8880,8881),this.mirroringShapeCharacters.setValue(8881,8880),this.mirroringShapeCharacters.setValue(8882,8883),this.mirroringShapeCharacters.setValue(8883,8882),this.mirroringShapeCharacters.setValue(8884,8885),this.mirroringShapeCharacters.setValue(8885,8884),this.mirroringShapeCharacters.setValue(8886,8887),this.mirroringShapeCharacters.setValue(8887,8886),this.mirroringShapeCharacters.setValue(8905,8906),this.mirroringShapeCharacters.setValue(8906,8905),this.mirroringShapeCharacters.setValue(8907,8908),this.mirroringShapeCharacters.setValue(8908,8907),this.mirroringShapeCharacters.setValue(8909,8771),this.mirroringShapeCharacters.setValue(8912,8913),this.mirroringShapeCharacters.setValue(8913,8912),this.mirroringShapeCharacters.setValue(8918,8919),this.mirroringShapeCharacters.setValue(8919,8918),this.mirroringShapeCharacters.setValue(8920,8921),this.mirroringShapeCharacters.setValue(8921,8920),this.mirroringShapeCharacters.setValue(8922,8923),this.mirroringShapeCharacters.setValue(8923,8922),this.mirroringShapeCharacters.setValue(8924,8925),this.mirroringShapeCharacters.setValue(8925,8924),this.mirroringShapeCharacters.setValue(8926,8927),this.mirroringShapeCharacters.setValue(8927,8926),this.mirroringShapeCharacters.setValue(8928,8929),this.mirroringShapeCharacters.setValue(8929,8928),this.mirroringShapeCharacters.setValue(8930,8931),this.mirroringShapeCharacters.setValue(8931,8930),this.mirroringShapeCharacters.setValue(8932,8933),this.mirroringShapeCharacters.setValue(8933,8932),this.mirroringShapeCharacters.setValue(8934,8935),this.mirroringShapeCharacters.setValue(8935,8934),this.mirroringShapeCharacters.setValue(8936,8937),this.mirroringShapeCharacters.setValue(8937,8936),this.mirroringShapeCharacters.setValue(8938,8939),this.mirroringShapeCharacters.setValue(8939,8938),this.mirroringShapeCharacters.setValue(8940,8941),this.mirroringShapeCharacters.setValue(8941,8940),this.mirroringShapeCharacters.setValue(8944,8945),this.mirroringShapeCharacters.setValue(8945,8944),this.mirroringShapeCharacters.setValue(8946,8954),this.mirroringShapeCharacters.setValue(8947,8955),this.mirroringShapeCharacters.setValue(8948,8956),this.mirroringShapeCharacters.setValue(8950,8957),this.mirroringShapeCharacters.setValue(8951,8958),this.mirroringShapeCharacters.setValue(8954,8946),this.mirroringShapeCharacters.setValue(8955,8947),this.mirroringShapeCharacters.setValue(8956,8948),this.mirroringShapeCharacters.setValue(8957,8950),this.mirroringShapeCharacters.setValue(8958,8951),this.mirroringShapeCharacters.setValue(8968,8969),this.mirroringShapeCharacters.setValue(8969,8968),this.mirroringShapeCharacters.setValue(8970,8971),this.mirroringShapeCharacters.setValue(8971,8970),this.mirroringShapeCharacters.setValue(9001,9002),this.mirroringShapeCharacters.setValue(9002,9001),this.mirroringShapeCharacters.setValue(10088,10089),this.mirroringShapeCharacters.setValue(10089,10088),this.mirroringShapeCharacters.setValue(10090,10091),this.mirroringShapeCharacters.setValue(10091,10090),this.mirroringShapeCharacters.setValue(10092,10093),this.mirroringShapeCharacters.setValue(10093,10092),this.mirroringShapeCharacters.setValue(10094,10095),this.mirroringShapeCharacters.setValue(10095,10094),this.mirroringShapeCharacters.setValue(10096,10097),this.mirroringShapeCharacters.setValue(10097,10096),this.mirroringShapeCharacters.setValue(10098,10099),this.mirroringShapeCharacters.setValue(10099,10098),this.mirroringShapeCharacters.setValue(10100,10101),this.mirroringShapeCharacters.setValue(10101,10100),this.mirroringShapeCharacters.setValue(10197,10198),this.mirroringShapeCharacters.setValue(10198,10197),this.mirroringShapeCharacters.setValue(10205,10206),this.mirroringShapeCharacters.setValue(10206,10205),this.mirroringShapeCharacters.setValue(10210,10211),this.mirroringShapeCharacters.setValue(10211,10210),this.mirroringShapeCharacters.setValue(10212,10213),this.mirroringShapeCharacters.setValue(10213,10212),this.mirroringShapeCharacters.setValue(10214,10215),this.mirroringShapeCharacters.setValue(10215,10214),this.mirroringShapeCharacters.setValue(10216,10217),this.mirroringShapeCharacters.setValue(10217,10216),this.mirroringShapeCharacters.setValue(10218,10219),this.mirroringShapeCharacters.setValue(10219,10218),this.mirroringShapeCharacters.setValue(10627,10628),this.mirroringShapeCharacters.setValue(10628,10627),this.mirroringShapeCharacters.setValue(10629,10630),this.mirroringShapeCharacters.setValue(10630,10629),this.mirroringShapeCharacters.setValue(10631,10632),this.mirroringShapeCharacters.setValue(10632,10631),this.mirroringShapeCharacters.setValue(10633,10634),this.mirroringShapeCharacters.setValue(10634,10633),this.mirroringShapeCharacters.setValue(10635,10636),this.mirroringShapeCharacters.setValue(10636,10635),this.mirroringShapeCharacters.setValue(10637,10640),this.mirroringShapeCharacters.setValue(10638,10639),this.mirroringShapeCharacters.setValue(10639,10638),this.mirroringShapeCharacters.setValue(10640,10637),this.mirroringShapeCharacters.setValue(10641,10642),this.mirroringShapeCharacters.setValue(10642,10641),this.mirroringShapeCharacters.setValue(10643,10644),this.mirroringShapeCharacters.setValue(10644,10643),this.mirroringShapeCharacters.setValue(10645,10646),this.mirroringShapeCharacters.setValue(10646,10645),this.mirroringShapeCharacters.setValue(10647,10648),this.mirroringShapeCharacters.setValue(10648,10647),this.mirroringShapeCharacters.setValue(10680,8856),this.mirroringShapeCharacters.setValue(10688,10689),this.mirroringShapeCharacters.setValue(10689,10688),this.mirroringShapeCharacters.setValue(10692,10693),this.mirroringShapeCharacters.setValue(10693,10692),this.mirroringShapeCharacters.setValue(10703,10704),this.mirroringShapeCharacters.setValue(10704,10703),this.mirroringShapeCharacters.setValue(10705,10706),this.mirroringShapeCharacters.setValue(10706,10705),this.mirroringShapeCharacters.setValue(10708,10709),this.mirroringShapeCharacters.setValue(10709,10708),this.mirroringShapeCharacters.setValue(10712,10713),this.mirroringShapeCharacters.setValue(10713,10712),this.mirroringShapeCharacters.setValue(10714,10715),this.mirroringShapeCharacters.setValue(10715,10714),this.mirroringShapeCharacters.setValue(10741,8725),this.mirroringShapeCharacters.setValue(10744,10745),this.mirroringShapeCharacters.setValue(10745,10744),this.mirroringShapeCharacters.setValue(10748,10749),this.mirroringShapeCharacters.setValue(10749,10748),this.mirroringShapeCharacters.setValue(10795,10796),this.mirroringShapeCharacters.setValue(10796,10795),this.mirroringShapeCharacters.setValue(10797,10796),this.mirroringShapeCharacters.setValue(10798,10797),this.mirroringShapeCharacters.setValue(10804,10805),this.mirroringShapeCharacters.setValue(10805,10804),this.mirroringShapeCharacters.setValue(10812,10813),this.mirroringShapeCharacters.setValue(10813,10812),this.mirroringShapeCharacters.setValue(10852,10853),this.mirroringShapeCharacters.setValue(10853,10852),this.mirroringShapeCharacters.setValue(10873,10874),this.mirroringShapeCharacters.setValue(10874,10873),this.mirroringShapeCharacters.setValue(10877,10878),this.mirroringShapeCharacters.setValue(10878,10877),this.mirroringShapeCharacters.setValue(10879,10880),this.mirroringShapeCharacters.setValue(10880,10879),this.mirroringShapeCharacters.setValue(10881,10882),this.mirroringShapeCharacters.setValue(10882,10881),this.mirroringShapeCharacters.setValue(10883,10884),this.mirroringShapeCharacters.setValue(10884,10883),this.mirroringShapeCharacters.setValue(10891,10892),this.mirroringShapeCharacters.setValue(10892,10891),this.mirroringShapeCharacters.setValue(10897,10898),this.mirroringShapeCharacters.setValue(10898,10897),this.mirroringShapeCharacters.setValue(10899,10900),this.mirroringShapeCharacters.setValue(10900,10899),this.mirroringShapeCharacters.setValue(10901,10902),this.mirroringShapeCharacters.setValue(10902,10901),this.mirroringShapeCharacters.setValue(10903,10904),this.mirroringShapeCharacters.setValue(10904,10903),this.mirroringShapeCharacters.setValue(10905,10906),this.mirroringShapeCharacters.setValue(10906,10905),this.mirroringShapeCharacters.setValue(10907,10908),this.mirroringShapeCharacters.setValue(10908,10907),this.mirroringShapeCharacters.setValue(10913,10914),this.mirroringShapeCharacters.setValue(10914,10913),this.mirroringShapeCharacters.setValue(10918,10919),this.mirroringShapeCharacters.setValue(10919,10918),this.mirroringShapeCharacters.setValue(10920,10921),this.mirroringShapeCharacters.setValue(10921,10920),this.mirroringShapeCharacters.setValue(10922,10923),this.mirroringShapeCharacters.setValue(10923,10922),this.mirroringShapeCharacters.setValue(10924,10925),this.mirroringShapeCharacters.setValue(10925,10924),this.mirroringShapeCharacters.setValue(10927,10928),this.mirroringShapeCharacters.setValue(10928,10927),this.mirroringShapeCharacters.setValue(10931,10932),this.mirroringShapeCharacters.setValue(10932,10931),this.mirroringShapeCharacters.setValue(10939,10940),this.mirroringShapeCharacters.setValue(10940,10939),this.mirroringShapeCharacters.setValue(10941,10942),this.mirroringShapeCharacters.setValue(10942,10941),this.mirroringShapeCharacters.setValue(10943,10944),this.mirroringShapeCharacters.setValue(10944,10943),this.mirroringShapeCharacters.setValue(10945,10946),this.mirroringShapeCharacters.setValue(10946,10945),this.mirroringShapeCharacters.setValue(10947,10948),this.mirroringShapeCharacters.setValue(10948,10947),this.mirroringShapeCharacters.setValue(10949,10950),this.mirroringShapeCharacters.setValue(10950,10949),this.mirroringShapeCharacters.setValue(10957,10958),this.mirroringShapeCharacters.setValue(10958,10957),this.mirroringShapeCharacters.setValue(10959,10960),this.mirroringShapeCharacters.setValue(10960,10959),this.mirroringShapeCharacters.setValue(10961,10962),this.mirroringShapeCharacters.setValue(10962,10961),this.mirroringShapeCharacters.setValue(10963,10964),this.mirroringShapeCharacters.setValue(10964,10963),this.mirroringShapeCharacters.setValue(10965,10966),this.mirroringShapeCharacters.setValue(10966,10965),this.mirroringShapeCharacters.setValue(10974,8870),this.mirroringShapeCharacters.setValue(10979,8873),this.mirroringShapeCharacters.setValue(10980,8872),this.mirroringShapeCharacters.setValue(10981,8875),this.mirroringShapeCharacters.setValue(10988,10989),this.mirroringShapeCharacters.setValue(10989,10988),this.mirroringShapeCharacters.setValue(10999,11e3),this.mirroringShapeCharacters.setValue(11e3,10999),this.mirroringShapeCharacters.setValue(11001,11002),this.mirroringShapeCharacters.setValue(11002,11001),this.mirroringShapeCharacters.setValue(12296,12297),this.mirroringShapeCharacters.setValue(12297,12296),this.mirroringShapeCharacters.setValue(12298,12299),this.mirroringShapeCharacters.setValue(12299,12298),this.mirroringShapeCharacters.setValue(12300,12301),this.mirroringShapeCharacters.setValue(12301,12300),this.mirroringShapeCharacters.setValue(12302,12303),this.mirroringShapeCharacters.setValue(12303,12302),this.mirroringShapeCharacters.setValue(12304,12305),this.mirroringShapeCharacters.setValue(12305,12304),this.mirroringShapeCharacters.setValue(12308,12309),this.mirroringShapeCharacters.setValue(12309,12308),this.mirroringShapeCharacters.setValue(12310,12311),this.mirroringShapeCharacters.setValue(12311,12310),this.mirroringShapeCharacters.setValue(12312,12313),this.mirroringShapeCharacters.setValue(12313,12312),this.mirroringShapeCharacters.setValue(12314,12315),this.mirroringShapeCharacters.setValue(12315,12314),this.mirroringShapeCharacters.setValue(65288,65289),this.mirroringShapeCharacters.setValue(65289,65288),this.mirroringShapeCharacters.setValue(65308,65310),this.mirroringShapeCharacters.setValue(65310,65308),this.mirroringShapeCharacters.setValue(65339,65341),this.mirroringShapeCharacters.setValue(65341,65339),this.mirroringShapeCharacters.setValue(65371,65373),this.mirroringShapeCharacters.setValue(65373,65371),this.mirroringShapeCharacters.setValue(65375,65376),this.mirroringShapeCharacters.setValue(65376,65375),this.mirroringShapeCharacters.setValue(65378,65379),this.mirroringShapeCharacters.setValue(65379,65378)},t}(),$n=function(){function t(){this.types=[],this.textOrder=-1,this.rtlCharacterTypes=new Array(65536),this.L=0,this.LRE=1,this.LRO=2,this.R=3,this.AL=4,this.RLE=5,this.RLO=6,this.PDF=7,this.EN=8,this.ES=9,this.ET=10,this.AN=11,this.CS=12,this.NSM=13,this.BN=14,this.B=15,this.S=16,this.WS=17,this.ON=18,this.charTypes=[this.L,this.EN,this.BN,this.ES,this.ES,this.S,this.ET,this.ET,this.B,this.AN,this.AN,this.S,this.CS,this.CS,this.WS,this.NSM,this.NSM,this.B,this.BN,27,this.BN,28,30,this.B,31,31,this.S,32,32,this.WS,33,34,this.ON,35,37,this.ET,38,42,this.ON,43,43,this.ET,44,44,this.CS,45,45,this.ET,46,46,this.CS,47,47,this.CS,48,57,this.EN,58,58,this.CS,59,64,this.ON,65,90,this.L,91,96,this.ON,97,122,this.L,123,126,this.ON,127,132,this.BN,133,133,this.B,134,159,this.BN,160,160,this.CS,161,161,this.ON,162,165,this.ET,166,169,this.ON,170,170,this.L,171,175,this.ON,176,177,this.ET,178,179,this.EN,180,180,this.ON,181,181,this.L,182,184,this.ON,185,185,this.EN,186,186,this.L,187,191,this.ON,192,214,this.L,215,215,this.ON,216,246,this.L,247,247,this.ON,248,696,this.L,697,698,this.ON,699,705,this.L,706,719,this.ON,720,721,this.L,722,735,this.ON,736,740,this.L,741,749,this.ON,750,750,this.L,751,767,this.ON,768,855,this.NSM,856,860,this.L,861,879,this.NSM,880,883,this.L,884,885,this.ON,886,893,this.L,894,894,this.ON,895,899,this.L,900,901,this.ON,902,902,this.L,903,903,this.ON,904,1013,this.L,1014,1014,this.ON,1015,1154,this.L,1155,1158,this.NSM,1159,1159,this.L,1160,1161,this.NSM,1162,1417,this.L,1418,1418,this.ON,1419,1424,this.L,1425,1441,this.NSM,1442,1442,this.L,1443,1465,this.NSM,1466,1466,this.L,1467,1469,this.NSM,1470,1470,this.R,1471,1471,this.NSM,1472,1472,this.R,1473,1474,this.NSM,1475,1475,this.R,1476,1476,this.NSM,1477,1487,this.L,1488,1514,this.R,1515,1519,this.L,1520,1524,this.R,1525,1535,this.L,1536,1539,this.AL,1540,1547,this.L,1548,1548,this.CS,1549,1549,this.AL,1550,1551,this.ON,1552,1557,this.NSM,1558,1562,this.L,1563,1563,this.AL,1564,1566,this.L,1567,1567,this.AL,1568,1568,this.L,1569,1594,this.AL,1595,1599,this.L,1600,1610,this.AL,1611,1624,this.NSM,1625,1631,this.L,1632,1641,this.AN,1642,1642,this.ET,1643,1644,this.AN,1645,1647,this.AL,1648,1648,this.NSM,1649,1749,this.AL,1750,1756,this.NSM,1757,1757,this.AL,1758,1764,this.NSM,1765,1766,this.AL,1767,1768,this.NSM,1769,1769,this.ON,1770,1773,this.NSM,1774,1775,this.AL,1776,1785,this.EN,1786,1805,this.AL,1806,1806,this.L,1807,1807,this.BN,1808,1808,this.AL,1809,1809,this.NSM,1810,1839,this.AL,1840,1866,this.NSM,1867,1868,this.L,1869,1871,this.AL,1872,1919,this.L,1920,1957,this.AL,1958,1968,this.NSM,1969,1969,this.AL,1970,2304,this.L,2305,2306,this.NSM,2307,2363,this.L,2364,2364,this.NSM,2365,2368,this.L,2369,2376,this.NSM,2377,2380,this.L,2381,2381,this.NSM,2382,2384,this.L,2385,2388,this.NSM,2389,2401,this.L,2402,2403,this.NSM,2404,2432,this.L,2433,2433,this.NSM,2434,2491,this.L,2492,2492,this.NSM,2493,2496,this.L,2497,2500,this.NSM,2501,2508,this.L,2509,2509,this.NSM,2510,2529,this.L,2530,2531,this.NSM,2532,2545,this.L,2546,2547,this.ET,2548,2560,this.L,2561,2562,this.NSM,2563,2619,this.L,2620,2620,this.NSM,2621,2624,this.L,2625,2626,this.NSM,2627,2630,this.L,2631,2632,this.NSM,2633,2634,this.L,2635,2637,this.NSM,2638,2671,this.L,2672,2673,this.NSM,2674,2688,this.L,2689,2690,this.NSM,2691,2747,this.L,2748,2748,this.NSM,2749,2752,this.L,2753,2757,this.NSM,2758,2758,this.L,2759,2760,this.NSM,2761,2764,this.L,2765,2765,this.NSM,2766,2785,this.L,2786,2787,this.NSM,2788,2800,this.L,2801,2801,this.ET,2802,2816,this.L,2817,2817,this.NSM,2818,2875,this.L,2876,2876,this.NSM,2877,2878,this.L,2879,2879,this.NSM,2880,2880,this.L,2881,2883,this.NSM,2884,2892,this.L,2893,2893,this.NSM,2894,2901,this.L,2902,2902,this.NSM,2903,2945,this.L,2946,2946,this.NSM,2947,3007,this.L,3008,3008,this.NSM,3009,3020,this.L,3021,3021,this.NSM,3022,3058,this.L,3059,3064,this.ON,3065,3065,this.ET,3066,3066,this.ON,3067,3133,this.L,3134,3136,this.NSM,3137,3141,this.L,3142,3144,this.NSM,3145,3145,this.L,3146,3149,this.NSM,3150,3156,this.L,3157,3158,this.NSM,3159,3259,this.L,3260,3260,this.NSM,3261,3275,this.L,3276,3277,this.NSM,3278,3392,this.L,3393,3395,this.NSM,3396,3404,this.L,3405,3405,this.NSM,3406,3529,this.L,3530,3530,this.NSM,3531,3537,this.L,3538,3540,this.NSM,3541,3541,this.L,3542,3542,this.NSM,3543,3632,this.L,3633,3633,this.NSM,3634,3635,this.L,3636,3642,this.NSM,3643,3646,this.L,3647,3647,this.ET,3648,3654,this.L,3655,3662,this.NSM,3663,3760,this.L,3761,3761,this.NSM,3762,3763,this.L,3764,3769,this.NSM,3770,3770,this.L,3771,3772,this.NSM,3773,3783,this.L,3784,3789,this.NSM,3790,3863,this.L,3864,3865,this.NSM,3866,3892,this.L,3893,3893,this.NSM,3894,3894,this.L,3895,3895,this.NSM,3896,3896,this.L,3897,3897,this.NSM,3898,3901,this.ON,3902,3952,this.L,3953,3966,this.NSM,3967,3967,this.L,3968,3972,this.NSM,3973,3973,this.L,3974,3975,this.NSM,3976,3983,this.L,3984,3991,this.NSM,3992,3992,this.L,3993,4028,this.NSM,4029,4037,this.L,4038,4038,this.NSM,4039,4140,this.L,4141,4144,this.NSM,4145,4145,this.L,4146,4146,this.NSM,4147,4149,this.L,4150,4151,this.NSM,4152,4152,this.L,4153,4153,this.NSM,4154,4183,this.L,4184,4185,this.NSM,4186,5759,this.L,5760,5760,this.WS,5761,5786,this.L,5787,5788,this.ON,5789,5905,this.L,5906,5908,this.NSM,5909,5937,this.L,5938,5940,this.NSM,5941,5969,this.L,5970,5971,this.NSM,5972,6001,this.L,6002,6003,this.NSM,6004,6070,this.L,6071,6077,this.NSM,6078,6085,this.L,6086,6086,this.NSM,6087,6088,this.L,6089,6099,this.NSM,6100,6106,this.L,6107,6107,this.ET,6108,6108,this.L,6109,6109,this.NSM,6110,6127,this.L,6128,6137,this.ON,6138,6143,this.L,6144,6154,this.ON,6155,6157,this.NSM,6158,6158,this.WS,6159,6312,this.L,6313,6313,this.NSM,6314,6431,this.L,6432,6434,this.NSM,6435,6438,this.L,6439,6443,this.NSM,6444,6449,this.L,6450,6450,this.NSM,6451,6456,this.L,6457,6459,this.NSM,6460,6463,this.L,6464,6464,this.ON,6465,6467,this.L,6468,6469,this.ON,6470,6623,this.L,6624,6655,this.ON,6656,8124,this.L,8125,8125,this.ON,8126,8126,this.L,8127,8129,this.ON,8130,8140,this.L,8141,8143,this.ON,8144,8156,this.L,8157,8159,this.ON,8160,8172,this.L,8173,8175,this.ON,8176,8188,this.L,8189,8190,this.ON,8191,8191,this.L,8192,8202,this.WS,8203,8205,this.BN,8206,8206,this.L,8207,8207,this.R,8208,8231,this.ON,8232,8232,this.WS,8233,8233,this.B,8234,8234,this.LRE,8235,8235,this.RLE,8236,8236,this.PDF,8237,8237,this.LRO,8238,8238,this.RLO,8239,8239,this.WS,8240,8244,this.ET,8245,8276,this.ON,8277,8278,this.L,8279,8279,this.ON,8280,8286,this.L,8287,8287,this.WS,8288,8291,this.BN,8292,8297,this.L,8298,8303,this.BN,8304,8304,this.EN,8305,8307,this.L,8308,8313,this.EN,8314,8315,this.ET,8316,8318,this.ON,8319,8319,this.L,8320,8329,this.EN,8330,8331,this.ET,8332,8334,this.ON,8335,8351,this.L,8352,8369,this.ET,8370,8399,this.L,8400,8426,this.NSM,8427,8447,this.L,8448,8449,this.ON,8450,8450,this.L,8451,8454,this.ON,8455,8455,this.L,8456,8457,this.ON,8458,8467,this.L,8468,8468,this.ON,8469,8469,this.L,8470,8472,this.ON,8473,8477,this.L,8478,8483,this.ON,8484,8484,this.L,8485,8485,this.ON,8486,8486,this.L,8487,8487,this.ON,8488,8488,this.L,8489,8489,this.ON,8490,8493,this.L,8494,8494,this.ET,8495,8497,this.L,8498,8498,this.ON,8499,8505,this.L,8506,8507,this.ON,8508,8511,this.L,8512,8516,this.ON,8517,8521,this.L,8522,8523,this.ON,8524,8530,this.L,8531,8543,this.ON,8544,8591,this.L,8592,8721,this.ON,8722,8723,this.ET,8724,9013,this.ON,9014,9082,this.L,9083,9108,this.ON,9109,9109,this.L,9110,9168,this.ON,9169,9215,this.L,9216,9254,this.ON,9255,9279,this.L,9280,9290,this.ON,9291,9311,this.L,9312,9371,this.EN,9372,9449,this.L,9450,9450,this.EN,9451,9751,this.ON,9752,9752,this.L,9753,9853,this.ON,9854,9855,this.L,9856,9873,this.ON,9874,9887,this.L,9888,9889,this.ON,9890,9984,this.L,9985,9988,this.ON,9989,9989,this.L,9990,9993,this.ON,9994,9995,this.L,9996,10023,this.ON,10024,10024,this.L,10025,10059,this.ON,10060,10060,this.L,10061,10061,this.ON,10062,10062,this.L,10063,10066,this.ON,10067,10069,this.L,10070,10070,this.ON,10071,10071,this.L,10072,10078,this.ON,10079,10080,this.L,10081,10132,this.ON,10133,10135,this.L,10136,10159,this.ON,10160,10160,this.L,10161,10174,this.ON,10175,10191,this.L,10192,10219,this.ON,10220,10223,this.L,10224,11021,this.ON,11022,11903,this.L,11904,11929,this.ON,11930,11930,this.L,11931,12019,this.ON,12020,12031,this.L,12032,12245,this.ON,12246,12271,this.L,12272,12283,this.ON,12284,12287,this.L,12288,12288,this.WS,12289,12292,this.ON,12293,12295,this.L,12296,12320,this.ON,12321,12329,this.L,12330,12335,this.NSM,12336,12336,this.ON,12337,12341,this.L,12342,12343,this.ON,12344,12348,this.L,12349,12351,this.ON,12352,12440,this.L,12441,12442,this.NSM,12443,12444,this.ON,12445,12447,this.L,12448,12448,this.ON,12449,12538,this.L,12539,12539,this.ON,12540,12828,this.L,12829,12830,this.ON,12831,12879,this.L,12880,12895,this.ON,12896,12923,this.L,12924,12925,this.ON,12926,12976,this.L,12977,12991,this.ON,12992,13003,this.L,13004,13007,this.ON,13008,13174,this.L,13175,13178,this.ON,13179,13277,this.L,13278,13279,this.ON,13280,13310,this.L,13311,13311,this.ON,13312,19903,this.L,19904,19967,this.ON,19968,42127,this.L,42128,42182,this.ON,42183,64284,this.L,64285,64285,this.R,64286,64286,this.NSM,64287,64296,this.R,64297,64297,this.ET,64298,64310,this.R,64311,64311,this.L,64312,64316,this.R,64317,64317,this.L,64318,64318,this.R,64319,64319,this.L,64320,64321,this.R,64322,64322,this.L,64323,64324,this.R,64325,64325,this.L,64326,64335,this.R,64336,64433,this.AL,64434,64466,this.L,64467,64829,this.AL,64830,64831,this.ON,64832,64847,this.L,64848,64911,this.AL,64912,64913,this.L,64914,64967,this.AL,64968,65007,this.L,65008,65020,this.AL,65021,65021,this.ON,65022,65023,this.L,65024,65039,this.NSM,65040,65055,this.L,65056,65059,this.NSM,65060,65071,this.L,65072,65103,this.ON,65104,65104,this.CS,65105,65105,this.ON,65106,65106,this.CS,65107,65107,this.L,65108,65108,this.ON,65109,65109,this.CS,65110,65118,this.ON,65119,65119,this.ET,65120,65121,this.ON,65122,65123,this.ET,65124,65126,this.ON,65127,65127,this.L,65128,65128,this.ON,65129,65130,this.ET,65131,65131,this.ON,65132,65135,this.L,65136,65140,this.AL,65141,65141,this.L,65142,65276,this.AL,65277,65278,this.L,65279,65279,this.BN,65280,65280,this.L,65281,65282,this.ON,65283,65285,this.ET,65286,65290,this.ON,65291,65291,this.ET,65292,65292,this.CS,65293,65293,this.ET,65294,65294,this.CS,65295,65295,this.ES,65296,65305,this.EN,65306,65306,this.CS,65307,65312,this.ON,65313,65338,this.L,65339,65344,this.ON,65345,65370,this.L,65371,65381,this.ON,65382,65503,this.L,65504,65505,this.ET,65506,65508,this.ON,65509,65510,this.ET,65511,65511,this.L,65512,65518,this.ON,65519,65528,this.L,65529,65531,this.BN,65532,65533,this.ON,65534,65535,this.L];for(var t=0;t<this.charTypes.length;++t)for(var e=this.charTypes[t],i=this.charTypes[++t],r=this.charTypes[++t];e<=i;)this.rtlCharacterTypes[e++]=r}return t.prototype.getVisualOrder=function(t,e){this.types=this.getCharacterCode(t),this.textOrder=e?this.LRE:this.L,this.doVisualOrder();for(var i=[],r=0;r<this.levels.length;r++)i[r]=this.levels[r];return i},t.prototype.getCharacterCode=function(t){for(var e=[],i=0;i<t.length;i++)e[i]=this.rtlCharacterTypes[t[i].charCodeAt(0)];return e},t.prototype.setDefaultLevels=function(){for(var t=0;t<this.length;t++)this.levels[t]=this.textOrder},t.prototype.setLevels=function(){this.setDefaultLevels();for(var t=0;t<this.length;++t){var e=this.levels[t];128&e&&(e&=127,this.result[t]=1&e?this.R:this.L),this.levels[t]=e}},t.prototype.updateLevels=function(t,e,i){if(1&e)for(r=t;r<i;++r)this.result[r]!==this.R&&(this.levels[r]+=1);else for(var r=t;r<i;++r)this.result[r]===this.R?this.levels[r]+=1:this.result[r]!==this.L&&(this.levels[r]+=2)},t.prototype.doVisualOrder=function(){this.length=this.types.length,this.result=this.types,this.levels=[],this.setLevels(),this.length=this.getEmbeddedCharactersLength();for(var t=this.textOrder,e=0;e<this.length;){for(var i=this.levels[e],r=1&Math.max(t,i)?this.R:this.L,n=e+1;n<this.length&&this.levels[n]===i;)++n;var o=n<this.length?this.levels[n]:this.textOrder,s=1&Math.max(o,i)?this.R:this.L;this.checkNSM(e,n,i,r,s),this.updateLevels(e,i,n),t=i,e=n}this.checkEmbeddedCharacters(this.length)},t.prototype.getEmbeddedCharactersLength=function(){for(var t=0,e=0;e<this.length;++e)this.types[e]!==this.LRE&&this.types[e]!==this.RLE&&this.types[e]!==this.LRO&&this.types[e]!==this.RLO&&this.types[e]!==this.PDF&&this.types[e]!==this.BN&&(this.result[t]=this.result[e],this.levels[t]=this.levels[e],t++);return t},t.prototype.checkEmbeddedCharacters=function(t){for(var e=this.types.length-1;e>=0;--e)this.types[e]===this.LRE||this.types[e]===this.RLE||this.types[e]===this.LRO||this.types[e]===this.RLO||this.types[e]===this.PDF||this.types[e]===this.BN?(this.result[e]=this.types[e],this.levels[e]=-1):(t-=1,this.result[e]=this.result[t],this.levels[e]=this.levels[t]);for(e=0;e<this.types.length;e++)-1===this.levels[e]&&(this.levels[e]=0===e?this.textOrder:this.levels[e-1])},t.prototype.checkNSM=function(t,e,i,r,n){for(var o=r,s=t;s<e;++s)this.result[s]===this.NSM?this.result[s]=o:o=this.result[s];this.checkEuropeanDigits(t,e,i,r,n)},t.prototype.checkEuropeanDigits=function(t,e,i,r,n){for(var o=t;o<e;++o)if(this.result[o]===this.EN)for(var s=o-1;s>=t;--s)if(this.result[s]===this.L||this.result[s]===this.R||this.result[s]===this.AL){this.result[s]===this.AL&&(this.result[o]=this.AN);break}this.checkArabicCharacters(t,e,i,r,n)},t.prototype.checkArabicCharacters=function(t,e,i,r,n){for(var o=t;o<e;++o)this.result[o]===this.AL&&(this.result[o]=this.R);this.checkEuropeanNumberSeparator(t,e,i,r,n)},t.prototype.checkEuropeanNumberSeparator=function(t,e,i,r,n){for(var o=t+1;o<e-1;++o)if(this.result[o]===this.ES||this.result[o]===this.CS){var s=this.result[o-1],a=this.result[o+1];s===this.EN&&a===this.EN?this.result[o]=this.EN:this.result[o]===this.CS&&s===this.AN&&a===this.AN&&(this.result[o]=this.AN)}this.checkEuropeanNumberTerminator(t,e,i,r,n)},t.prototype.checkEuropeanNumberTerminator=function(t,e,i,r,n){for(var o=t;o<e;++o)if(this.result[o]===this.ET){var s=o,a=[];a.push(this.ET);var u=this.getLength(s,e,a),c=s===t?r:this.result[s-1];if(c!==this.EN&&(c=u===e?n:this.result[u]),c===this.EN)for(var h=s;h<u;++h)this.result[h]=this.EN;o=u}this.checkOtherNeutrals(t,e,i,r,n)},t.prototype.checkOtherNeutrals=function(t,e,i,r,n){for(var o=t;o<e;++o)this.result[o]!==this.ES&&this.result[o]!==this.ET&&this.result[o]!==this.CS||(this.result[o]=this.ON);this.checkOtherCharacters(t,e,i,r,n)},t.prototype.checkOtherCharacters=function(t,e,i,r,n){for(var o=t;o<e;++o)if(this.result[o]===this.EN){for(var s=r,a=o-1;a>=t;--a)if(this.result[a]===this.L||this.result[a]===this.R){s=this.result[a];break}s===this.L&&(this.result[o]=this.L)}this.checkCommanCharacters(t,e,i,r,n)},t.prototype.getLength=function(t,e,i){for(--t;++t<e;){for(var r=this.result[t],n=0;n<i.length;++n)r===i[n]&&(t=this.getLength(++t,e,i));return t}return e},t.prototype.checkCommanCharacters=function(t,e,i,r,n){for(var o=t;o<e;++o)if(this.result[o]===this.WS||this.result[o]===this.ON||this.result[o]===this.B||this.result[o]===this.S){var s=o,a=[this.B,this.S,this.WS,this.ON],u=this.getLength(s,e,a),c=0,h=0,l=0;s===t?c=r:((c=this.result[s-1])===this.AN||c===this.EN)&&(c=this.R),u===e?h=n:((h=this.result[u])===this.AN||h===this.EN)&&(h=this.R),l=c===h?c:1&i?this.R:this.L;for(var p=s;p<u;++p)this.result[p]=l;o=u}},t}(),to=function(){function t(){this.openBracket="(",this.closeBracket=")"}return t.prototype.layout=function(t,e,i,r,n){if(null==t)throw new Error("ArgumentNullException : line");if(null==e)throw new Error("ArgumentNullException : font");var o=[];return e.Unicode?o=this.customLayout(t,i,n,e,r):(o=[])[0]=t,o},t.prototype.splitLayout=function(t,e,i,r,n){if(null==t)throw new Error("ArgumentNullException : line");if(null==e)throw new Error("ArgumentNullException : font");return this.customSplitLayout(t,e,i,r,n)},t.prototype.getGlyphIndex=function(t,e,i,r,n){if(null==t)throw new Error("ArgumentNullException : line");if(null==e)throw new Error("ArgumentNullException : font");if(r=null,0===t.length)return{success:!1,glyphs:r};var o=(new Zn).shape(t,0),s=e.fontInternal.ttfReader;r=new Uint16Array(o.length);for(var a=0,u=0,c=o.length;u<c;u++){var h=o[u],l=s.getGlyph(h);null!=l&&(r[a++]=l.index)}return{success:!0,glyphs:r}},t.prototype.customLayout=function(t,e,i,r,n){if(null==n){if(null==t)throw new Error("ArgumentNullException : line");var o=null;if(null!=i&&i.textDirection!==tr.None)o=(new Xn).getLogicalToVisualString(t,e);return o}if(null==t)throw new Error("ArgumentNullException : line");if(null==r)throw new Error("ArgumentNullException : font");var s=null;if(null!=i&&i.textDirection!==tr.None){var a=(new Zn).shape(t,0);s=this.customLayout(a,e,i)}o=[];if(n){for(var u=s.split(""),c=u.length,h=0;h<c;h++)u[h]=this.addChars(r,u[h]);o=u}else(o=[])[0]=this.addChars(r,s);return o},t.prototype.addChars=function(t,e){var i=e;if(null==t)throw new Error("ArgumentNullException : font");if(null==i)throw new Error("ArgumentNullException : line");var r=i,n=t.fontInternal.ttfReader;t.setSymbols(r),r=n.convertString(r);var o=er.toUnicodeArray(r,!1);return r=er.byteToString(o)},t.prototype.customSplitLayout=function(t,e,i,r,n){if(null==t)throw new Error("ArgumentNullException : line");if(null==e)throw new Error("ArgumentNullException : font");return this.customLayout(t,i,n).split("")},t}();!function(t){t[t.Paginate=0]="Paginate",t[t.OnePage=1]="OnePage"}(mn||(mn={})),function(t){t[t.FitPage=0]="FitPage",t[t.FitElement=1]="FitElement",t[t.FitColumnsToPage=2]="FitColumnsToPage"}(Nn||(Nn={})),function(t){t[t.Start=0]="Start",t[t.Line=1]="Line",t[t.Bezier3=3]="Bezier3",t[t.Bezier=3]="Bezier",t[t.PathTypeMask=7]="PathTypeMask",t[t.DashMode=16]="DashMode",t[t.PathMarker=32]="PathMarker",t[t.CloseSubpath=128]="CloseSubpath"}(jn||(jn={}));var eo=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),io=function(t){function e(e){var i=t.call(this)||this;return i.mbackground=new yr(255,255,255),i.mbStroking=!1,i.mfunction=null,i.dictionaryProperties=new yi,i.mpatternDictionary=new mi,i.mpatternDictionary.items.setValue(i.dictionaryProperties.type,new fi(i.dictionaryProperties.pattern)),i.mpatternDictionary.items.setValue(i.dictionaryProperties.patternType,new Ii(2)),i.shading=e,i.colorSpace=Zi.Rgb,i}return eo(e,t),Object.defineProperty(e.prototype,"background",{get:function(){return this.mbackground},set:function(t){this.mbackground=t;var e=this.shading;t.isEmpty?e.remove(this.dictionaryProperties.background):e.items.setValue(this.dictionaryProperties.background,t.toArray(this.colorSpace))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"antiAlias",{get:function(){return this.shading.items.getValue(this.dictionaryProperties.antiAlias).value},set:function(t){var e=this.shading,i=e.items.getValue(this.dictionaryProperties.antiAlias);null==i&&void 0===i?(i=new Fr(t),e.items.setValue(this.dictionaryProperties.antiAlias,i)):i.value=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"function",{get:function(){return this.mfunction},set:function(t){this.mfunction=t,null!=t&&void 0!==t?this.shading.items.setValue(this.dictionaryProperties.function,new rr(this.mfunction)):this.shading.remove(this.dictionaryProperties.function)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bBox",{get:function(){return this.shading.items.getValue(this.dictionaryProperties.bBox)},set:function(t){var e=this.shading;null==t&&void 0===t?e.remove(this.dictionaryProperties.bBox):e.items.setValue(this.dictionaryProperties.bBox,t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"colorSpace",{get:function(){return this.mcolorSpace},set:function(t){var e=this.shading.items.getValue(this.dictionaryProperties.colorSpace);if(t!==this.mcolorSpace||null==e){this.mcolorSpace=t;var i=this.colorSpaceToDeviceName(t);this.shading.items.setValue(this.dictionaryProperties.colorSpace,new fi(i))}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"stroking",{get:function(){return this.mbStroking},set:function(t){this.mbStroking=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"patternDictionary",{get:function(){return null==this.mpatternDictionary&&(this.mpatternDictionary=new mi),this.mpatternDictionary},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shading",{get:function(){return this.mshading},set:function(t){if(null==t)throw new Error("ArgumentNullException : Shading");t!==this.mshading&&(this.mshading=t,this.patternDictionary.items.setValue(this.dictionaryProperties.shading,new rr(this.mshading)))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"matrix",{get:function(){return this.mmatrix},set:function(t){if(null==t)throw new Error("ArgumentNullException : Matrix");if(t!==this.mmatrix){this.mmatrix=t.clone();var e=new zi(this.mmatrix.matrix.elements);this.mpatternDictionary.items.setValue(this.dictionaryProperties.matrix,e)}},enumerable:!0,configurable:!0}),e.prototype.monitorChanges=function(t,i,r,n,o){var s=!1;if(t instanceof e){this.colorSpace!==o&&(this.colorSpace=o,this.resetFunction()),i.setColorSpace("Pattern",this.mbStroking);var a=r.getResources().getName(this);i.setColourWithPattern(null,a,this.mbStroking),s=!0}return s},e.prototype.resetChanges=function(t){},e.prototype.colorSpaceToDeviceName=function(t){var e;if(t===Zi.Rgb)e="DeviceRGB";return e},e.prototype.resetPatternDictionary=function(t){this.mpatternDictionary=t},e.prototype.cloneAntiAliasingValue=function(t){if(null==t)throw new Error("ArgumentNullException : brush");var e=this.shading.items.getValue(this.dictionaryProperties.antiAlias);null!=e&&t.shading.items.setValue(this.dictionaryProperties.antiAlias,new Fr(e.value))},e.prototype.cloneBackgroundValue=function(t){var e=this.background;e.isEmpty||(t.background=e)},Object.defineProperty(e.prototype,"element",{get:function(){return this.patternDictionary},enumerable:!0,configurable:!0}),e}(Sr),ro=function(){function t(t,e){if(this.dictionaryProperties=new yi,this.writeTransformation=!0,void 0===t);else if(t instanceof Nr&&void 0===e){this.content=new Yi;var i=new Nr(t.width,t.height);this.setSize(i),this.initialize()}else this.content=new Yi,this.setSize(new Nr(t,e)),this.initialize()}return Object.defineProperty(t.prototype,"size",{get:function(){return this.templateSize},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.size.width},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.size.height},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"graphics",{get:function(){if(null==this.pdfGraphics||void 0===this.pdfGraphics){var t=new ho(this),e=new co(this.size,t,this.content);this.pdfGraphics=e,this.pdfGraphics.initializeCoordinates()}return this.pdfGraphics},enumerable:!0,configurable:!0}),t.prototype.getResources=function(){return null==this.resources&&(this.resources=new oo,this.content.items.setValue(this.dictionaryProperties.resources,this.resources)),this.resources},t.prototype.initialize=function(){this.addType(),this.addSubType()},t.prototype.addType=function(){var t=new fi(this.dictionaryProperties.xObject);this.content.items.setValue(this.dictionaryProperties.type,t)},t.prototype.addSubType=function(){var t=new fi(this.dictionaryProperties.form);this.content.items.setValue(this.dictionaryProperties.subtype,t)},t.prototype.reset=function(t){void 0===t?(null!=this.resources&&(this.resources=null,this.content.remove(this.dictionaryProperties.resources)),null!=this.graphics&&this.graphics.reset(this.size)):(this.setSize(t),this.reset())},t.prototype.setSize=function(t){var e=new jr(new mr(0,0),t),i=zi.fromRectangle(e);this.content.items.setValue(this.dictionaryProperties.bBox,i),this.templateSize=t},Object.defineProperty(t.prototype,"element",{get:function(){return this.content},enumerable:!0,configurable:!0}),t}(),no=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),oo=function(t){function e(e){var i=t.call(this,e)||this;return i.properties=new mi,i}return no(e,t),Object.defineProperty(e.prototype,"names",{get:function(){return this.getNames()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"document",{get:function(){return this.pdfDocument},set:function(t){this.pdfDocument=t},enumerable:!0,configurable:!0}),e.prototype.getName=function(t){var e=t.element,i=null;if(this.names.containsKey(e)&&(i=this.names.getValue(e)),null==i){var r=this.generateName();i=new fi(r),this.names.setValue(e,i),(t instanceof xr||t instanceof ro||t instanceof io||t instanceof uo||t instanceof ln||t instanceof vn||t instanceof zn)&&this.add(t,i)}return i},e.prototype.getNames=function(){null==this.pdfNames&&(this.pdfNames=new hn);var t=this.items.getValue(this.dictionaryProperties.font);return null!=t&&Xr.dereference(t),this.pdfNames},e.prototype.requireProcedureSet=function(t){if(null==t)throw new Error("ArgumentNullException:procedureSetName");var e=this.items.getValue(this.dictionaryProperties.procset);null==e&&(e=new zi,this.items.setValue(this.dictionaryProperties.procset,e));var i=new fi(t);e.contains(i)||e.add(i)},e.prototype.removeFont=function(t){for(var e=null,i=this.pdfNames.keys(),r=0;r<this.pdfNames.size();r++)if(this.pdfNames.getValue(i[r])===new fi(t)){e=i[r];break}null!=e&&this.pdfNames.remove(e)},e.prototype.generateName=function(){return so.getNewGuidString()},e.prototype.add=function(t,e){if(t instanceof xr){var i=null,r=this.items.getValue(this.dictionaryProperties.font);if(null!=r){var n=r;i=r,i=r}else i=new mi,this.items.setValue(this.dictionaryProperties.font,i);i.items.setValue(e.value,new rr(t.element))}else if(t instanceof ro){var o=void 0;null==(o=this.items.getValue(this.dictionaryProperties.xObject))&&(o=new mi,this.items.setValue(this.dictionaryProperties.xObject,o)),o.items.setValue(e.value,new rr(t.element))}else if(t instanceof Sr){if(t instanceof io||t instanceof uo)if(null!=(a=t.element)){var s=this.items.getValue(this.dictionaryProperties.pattern);null==s&&(s=new mi,this.items.setValue(this.dictionaryProperties.pattern,s)),s.items.setValue(e.value,new rr(a))}}else if(t instanceof ln){var a=t.element,u=null;null==(u=this.items.getValue(this.dictionaryProperties.extGState))&&(u=new mi,this.items.setValue(this.dictionaryProperties.extGState,u)),u.items.setValue(e.value,new rr(a))}else{o=this.Dictionary.items.getValue(this.dictionaryProperties.xObject);var c=void 0;void 0!==this.pdfDocument&&(c=this.pdfDocument.sections.element.items.getValue(this.dictionaryProperties.resources).items.getValue(this.dictionaryProperties.xObject)),this.Dictionary.items.values();var h=!1,l=void 0;if(void 0===this.pdfDocument||void 0!==typeof c&&null!=c){if(void 0!==this.pdfDocument)for(var p=c.items.values(),g=0;g<p.length;g++)void 0!==p[g]&&void 0!==p[g].element&&p[g].element.data[0]===t.element.data[0]&&(l=p[g],h=!0)}else c=new mi,this.pdfDocument.sections.element.items.getValue(this.dictionaryProperties.resources).items.setValue(this.dictionaryProperties.xObject,c);if(null==o&&(o=new mi,this.Dictionary.items.setValue(this.dictionaryProperties.xObject,o)),h&&void 0!==l)o.items.setValue(e.value,l);else{n=new rr(t.element);o.items.setValue(e.value,n),void 0!==this.pdfDocument&&c.items.setValue(e.value,n)}}},e}(mi),so=function(){function t(){}return t.getNewGuidString=function(){return"aaaaaaaa-aaaa-4aaa-baaa-aaaaaaaaaaaa".replace(/[ab]/g,function(t){var e=16*Math.random()|0;return("a"===t?e:3&e|8).toString(16)})},t}(),ao=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),uo=function(t){function e(e,i){var r=t.call(this)||this;r.mStroking=!1,r.mLocation=new mr(0,0),r.mDictionaryProperties=new yi;var n=null;return e instanceof Dr?n=e:e instanceof Nr&&(n=new Dr(0,0,e.width,e.height)),null!==i&&i instanceof Do&&(r.mPage=i),r.brushStream=new Yi,r.mResources=new oo,r.brushStream.items.setValue(r.mDictionaryProperties.resources,r.mResources),r.setBox(n),r.setObligatoryFields(),null!==i&&i instanceof Do&&(r.mPage=i,r.graphics.colorSpace=i.document.colorSpace),r}return ao(e,t),e.prototype.initialize=function(t,e,i,r){this.mPage=e,this.mLocation=i,this.mTransformationMatrix=r,this.tempBrushStream=this.brushStream,this.brushStream=new Yi;var n=new oo;return this.brushStream.items.setValue(this.mDictionaryProperties.resources,n),this.setBox(t),this.setObligatoryFields(),this},Object.defineProperty(e.prototype,"location",{get:function(){return this.mLocation},set:function(t){this.mLocation=t},enumerable:!0,configurable:!0}),e.prototype.setObligatoryFields=function(){if(this.brushStream.items.setValue(this.mDictionaryProperties.patternType,new Ii(1)),this.brushStream.items.setValue(this.mDictionaryProperties.paintType,new Ii(1)),this.brushStream.items.setValue(this.mDictionaryProperties.tilingType,new Ii(1)),this.brushStream.items.setValue(this.mDictionaryProperties.xStep,new Ii(this.mBox.right-this.mBox.left)),this.brushStream.items.setValue(this.mDictionaryProperties.yStep,new Ii(this.mBox.bottom-this.mBox.top)),null!=this.mPage&&null!=this.mLocation)if(null==this.mTransformationMatrix&&void 0===this.mTransformationMatrix){var t=this.mPage.size.height%this.rectangle.size.height-this.mLocation.y;this.brushStream.items.setValue(this.mDictionaryProperties.matrix,new zi([1,0,0,1,this.mLocation.x,t]))}else{t=0;var e=this.mTransformationMatrix.matrix.elements;t=this.mPage.size.height>this.rectangle.size.height?this.mTransformationMatrix.matrix.offsetY-this.mPage.size.height%this.rectangle.size.height:this.mPage.size.height%this.rectangle.size.height+this.mTransformationMatrix.matrix.offsetY,this.brushStream.items.setValue(this.mDictionaryProperties.matrix,new zi([e[0],e[1],e[2],e[3],e[4],t]))}},e.prototype.setBox=function(t){this.mBox=t;var e=new jr(this.mBox.left,this.mBox.top,this.mBox.right,this.mBox.bottom);this.brushStream.items.setValue(this.mDictionaryProperties.bBox,zi.fromRectangle(e))},Object.defineProperty(e.prototype,"rectangle",{get:function(){return this.mBox},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this.mBox.size},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"graphics",{get:function(){if(null==this.mGraphics&&void 0===this.mGraphics){var t=new ho(this),e=new co(this.size,t,this.brushStream);this.mGraphics=e,this.mResources=this.getResources(),this.mGraphics.initializeCoordinates()}return this.mGraphics},enumerable:!0,configurable:!0}),e.prototype.getResources=function(){return this.mResources},Object.defineProperty(e.prototype,"stroking",{get:function(){return this.mStroking},set:function(t){this.mStroking=t},enumerable:!0,configurable:!0}),e.prototype.clone=function(){var t=this.initialize(this.rectangle,this.mPage,this.location,this.mTransformationMatrix);return null!=this.mTransformationMatrix&&null!=this.mTransformationMatrix.matrix&&t.brushStream.items.setValue(this.mDictionaryProperties.matrix,new zi(this.mTransformationMatrix.matrix.elements)),t.brushStream.data=this.tempBrushStream.data,t.mResources=new oo(this.mResources),t.brushStream.items.setValue(this.mDictionaryProperties.resources,t.mResources),t},e.prototype.monitorChanges=function(t,i,r,n,o){var s=!1;if(t!==this){i.setColorSpace("Pattern",this.mStroking);var a=r.getResources().getName(this);i.setColourWithPattern(null,a,this.mStroking),s=!0}else if(t instanceof e){i.setColorSpace("Pattern",this.mStroking);var u=r.getResources().getName(this);i.setColourWithPattern(null,u,this.mStroking),s=!0}return s},e.prototype.resetChanges=function(t){},Object.defineProperty(e.prototype,"element",{get:function(){return this.brushStream},enumerable:!0,configurable:!0}),e}(Sr),co=function(){function t(t,e,i){this.currentColorSpace=Zi.Rgb,this.previousTextRenderingMode=Gi.Fill,this.previousCharacterSpacing=0,this.previousWordSpacing=0,this.previousTextScaling=100,this.procedureSets=new cn,this.isNormalRender=!0,this.isUseFontSize=!1,this.isItalic=!1,this.isEmfTextScaled=!1,this.isEmf=!1,this.isEmfPlus=!1,this.isBaselineFormat=!0,this.emfScalingFactor=new Nr(0,0),this.colorSpaceChanged=!1,this.dictionaryProperties=new yi,this.isOverloadWithPosition=!1,this.isPointOverload=!1,this.currentColorSpaces=["RGB","CMYK","GrayScale","Indexed"],this.isImageOptimized=!1,this.graphicsState=[],this.istransparencySet=!1,this.internalAutomaticFields=null,this.startCutIndex=-1,this.getResources=e,this.canvasSize=t,this.pdfStreamWriter=i instanceof on?i:new on(i),this.initialize()}return Object.defineProperty(t.prototype,"stringLayoutResult",{get:function(){return this.pdfStringLayoutResult},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this.canvasSize},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"mediaBoxUpperRightBound",{get:function(){return void 0===this.internalMediaBoxUpperRightBound&&(this.internalMediaBoxUpperRightBound=0),this.internalMediaBoxUpperRightBound},set:function(t){this.internalMediaBoxUpperRightBound=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clientSize",{get:function(){return new Nr(this.clipBounds.width,this.clipBounds.height)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"colorSpace",{get:function(){return this.currentColorSpace},set:function(t){this.currentColorSpace=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"streamWriter",{get:function(){return this.pdfStreamWriter},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"matrix",{get:function(){return null==this.transformationMatrix&&(this.transformationMatrix=new an),this.transformationMatrix},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"layer",{get:function(){return this.pageLayer},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"page",{get:function(){return this.pageLayer.page},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"automaticFields",{get:function(){return null!=this.internalAutomaticFields&&void 0!==this.internalAutomaticFields||(this.internalAutomaticFields=new pn),this.internalAutomaticFields},enumerable:!0,configurable:!0}),t.prototype.initialize=function(){this.bStateSaved=!1,this.currentPen=null,this.currentBrush=null,this.currentFont=null,this.currentColorSpace=Zi.Rgb,this.bCSInitialized=!1,this.transformationMatrix=null,this.previousTextRenderingMode=-1,this.previousCharacterSpacing=-1,this.previousWordSpacing=-1,this.previousTextScaling=-100,this.currentStringFormat=null,this.clipBounds=new jr(new mr(0,0),this.size),this.getResources.getResources().requireProcedureSet(this.procedureSets.pdf)},t.prototype.drawPdfTemplate=function(t,e,i){if(void 0===i){if(null==t)throw Error("ArgumentNullException-template");this.drawPdfTemplate(t,e,t.size)}else{if(null==t)throw Error("ArgumentNullException-template");var r=t.width>0?i.width/t.width:1,n=t.height>0?i.height/t.height:1,o=!(1===r&&1===n),s=this.save(),a=new an;null!=this.pageLayer&&this.getTranslateTransform(e.x,e.y+i.height,a),o&&this.getScaleTransform(r,n,a),this.pdfStreamWriter.modifyCtm(a);var u=this.getResources.getResources().getName(t);this.pdfStreamWriter.executeObject(u),this.restore(s);var c=t.graphics;if(null!=c)for(var h=0;h<c.automaticFields.automaticFields.length;h++){var l=c.automaticFields.automaticFields[h],p=new mr(l.location.x+e.x,l.location.y+e.y),g=0==t.size.width?0:i.width/t.size.width,d=0==t.size.height?0:i.height/t.size.height;this.automaticFields.add(new Mn(l.field,p,g,d)),this.page.dictionary.modify()}this.getResources.getResources().requireProcedureSet(this.procedureSets.imageB),this.getResources.getResources().requireProcedureSet(this.procedureSets.imageC),this.getResources.getResources().requireProcedureSet(this.procedureSets.imageI),this.getResources.getResources().requireProcedureSet(this.procedureSets.text)}},t.prototype.drawString=function(t,e,i,r,n,o,s,a,u){if("string"==typeof t&&e instanceof xr&&(i instanceof sn||null===i)&&(r instanceof Sr||null===r)&&"number"==typeof n&&"number"==typeof o&&(s instanceof br||null===s)&&void 0===a)this.isOverloadWithPosition=!0,this.drawString(t,e,i,r,n,o,this.clientSize.width-n,0,s);else{var c=i,h=r,l=n,p=o,g=s,d=a,f=u,M=(new Or).layout(t,e,f,new Nr(g,d),this.isOverloadWithPosition,this.clientSize);if(!M.empty){var y=this.checkCorrectLayoutRectangle(M.actualSize,l,p,f);g<=0&&(l=y.x,g=y.width),d<=0&&(p=y.y,d=y.height),this.drawStringLayoutResult(M,e,c,h,new jr(l,p,g,d),f),this.isEmfTextScaled=!1,this.emfScalingFactor=new Nr(0,0)}this.getResources.getResources().requireProcedureSet(this.procedureSets.text),this.isNormalRender=!0,this.pdfStringLayoutResult=M,this.isUseFontSize=!1}},t.prototype.drawLine=function(t,e,i,r,n){if(e instanceof mr){var o=e,s=i;this.drawLine(t,o.x,o.y,s.x,s.y)}else{o=e,s=i;var a=r,u=n;this.stateControl(t,null,null);var c=this.streamWriter;c.beginPath(o,s),c.appendLineSegment(a,u),c.strokePath(),this.getResources.getResources().requireProcedureSet(this.procedureSets.pdf)}},t.prototype.drawRectangle=function(t,e,i,r,n,o){if(t instanceof sn&&"number"==typeof e){var s=i;this.drawRectangle(t,null,e,s,r,n)}else if(t instanceof Sr&&"number"==typeof e){s=i;this.drawRectangle(null,t,e,s,r,n)}else{s=i;var a=r,u=n,c=o;if(e instanceof uo){this.bCSInitialized=!1;var h=this.matrix.matrix.offsetX+s,l=void 0;l=null!=this.layer&&null!=this.layer.page?this.layer.page.size.height-this.matrix.matrix.offsetY+a:this.clientSize.height-this.matrix.matrix.offsetY+a,e.location=new mr(h,l),e.graphics.colorSpace=this.colorSpace}else e instanceof io&&(e.colorSpace=this.colorSpace);e instanceof Ir&&e.color.isEmpty&&(e=null);var p=t,g=e;this.stateControl(p,g,null),this.streamWriter.appendRectangle(s,a,u,c),this.drawPathHelper(p,g,!1)}},t.prototype.drawRoundedRectangle=function(t,e,i,r,n,o,s){if(null===t)throw new Error("pen");if(null===e)throw new Error("brush");if(0===s)this.drawRectangle(t,e,i,r,n,o);else{var a=[i,r,n,o],u=2*s,c=[u,u],h=[a[0],a[1],c[0],c[1]];this._pathPoints=[],this._pathTypes=[];var l=!0;l=this._addArc(h[0],h[1],h[2],h[3],180,90,l),h[0]=a[0]+a[2]-u,l=this._addArc(h[0],h[1],h[2],h[3],270,90,l),h[1]=a[1]+a[3]-u,l=this._addArc(h[0],h[1],h[2],h[3],0,90,l),h[0]=a[0],l=this._addArc(h[0],h[1],h[2],h[3],90,90,l);var p=this._pathPoints.length-1,g=this._pathTypes[p];g|=jn.CloseSubpath,this._pathTypes[p]=g,this._drawPath(t,e,this._pathPoints,this._pathTypes,Ji.Alternate),this._pathPoints=[],this._pathTypes=[]}},t.prototype._addArc=function(t,e,i,r,n,o,s){for(var a=this._getBezierArcPoints(t,e,t+i,e+r,n,o),u=0;u<a.length;u+=8){var c=[a[u],a[u+1],a[u+2],a[u+3],a[u+4],a[u+5],a[u+6],a[u+7]];s=this._addArcPoints(c,jn.Bezier3,s)}return s},t.prototype._addArcPoints=function(t,e,i){for(var r=0;r<t.length;r++){var n=new mr(t[r],t[r+1]);0===r?0===this._pathPoints.length||i?(this._addPoint(n,jn.Start),i=!1):n.x===this._getLastPoint().x&&n.y===this._getLastPoint().y||this._addPoint(n,jn.Line):this._addPoint(n,e),r++}return i},t.prototype._getLastPoint=function(){var t=new mr(0,0),e=this._pathPoints.length;return e>0&&(t.x=this._pathPoints[e-1].x,t.y=this._pathPoints[e-1].y),t},t.prototype._addPoint=function(t,e){this._pathPoints.push(t),this._pathTypes.push(e)},t.prototype._getBezierArcPoints=function(t,e,i,r,n,o){if(t>i){var s=void 0;s=t,t=i,i=s}if(r>e){s=void 0;s=e,e=r,r=s}var a,u;Math.abs(o)<=90?(a=o,u=1):a=o/(u=Math.ceil(Math.abs(o)/90));for(var c=(t+i)/2,h=(e+r)/2,l=(i-t)/2,p=(r-e)/2,g=a*(Math.PI/360),d=Math.abs(4/3*(1-Math.cos(g))/Math.sin(g)),f=[],M=0;M<u;M++){var y=(n+M*a)*(Math.PI/180),m=(n+(M+1)*a)*(Math.PI/180),N=Math.cos(y),j=Math.cos(m),D=Math.sin(y),S=Math.sin(m);a>0?f.push(c+l*N,h-p*D,c+l*(N-d*D),h-p*(D+d*N),c+l*(j+d*S),h-p*(S-d*j),c+l*j,h-p*S):f.push(c+l*N,h-p*D,c+l*(N+d*D),h-p*(D-d*N),c+l*(j-d*S),h-p*(S+d*j),c+l*j,h-p*S)}return f},t.prototype.drawPathHelper=function(t,e,i,r){if("boolean"==typeof i){var n=i;this.drawPathHelper(t,e,Ji.Winding,n)}else{var o=null!=t,s=null!=e,a=(n=i)===Ji.Alternate;o&&s?this.streamWriter.fillStrokePath(a):o||s?o?this.streamWriter.strokePath():this.streamWriter.fillPath(a):this.streamWriter.endPath()}},t.prototype.drawImage=function(t,e,i,r,n){if("number"==typeof e&&"number"==typeof i&&void 0===r){var o=t.physicalDimension;this.drawImage(t,e,i,o.width,o.height)}else{var s=e,a=i,u=n;t.save();var c=new an;this.getTranslateTransform(s,a+u,c),this.getScaleTransform(r,n,c),this.pdfStreamWriter.write("q"),this.pdfStreamWriter.modifyCtm(c);var h=this.getResources.getResources();void 0!==this.pageLayer&&null!=this.page&&(h.document=this.page.document);var l=h.getName(t);void 0!==this.pageLayer&&this.page.setResources(h),this.pdfStreamWriter.executeObject(l),this.pdfStreamWriter.write(Mi.restoreState),this.pdfStreamWriter.write(Mi.newLine);var p=this.getResources.getResources();p.requireProcedureSet(this.procedureSets.imageB),p.requireProcedureSet(this.procedureSets.imageC),p.requireProcedureSet(this.procedureSets.imageI),p.requireProcedureSet(this.procedureSets.text)}},t.prototype.getLineBounds=function(t,e,i,r,n){var o;if(!e.empty&&t<e.lineCount&&t>=0){var s=e.lines[t],a=this.getTextVerticalAlignShift(e.actualSize.height,r.height,n)+r.y+e.lineHeight*t,u=s.width,c=this.getHorizontalAlignShift(u,r.width,n),h=this.getLineIndent(s,n,r,0===t);c+=this.rightToLeft(n)?0:h;var l=r.x+c,p=this.shouldJustify(s,r.width,n)?r.width-h:u-h,g=e.lineHeight;o=new jr(l,a,p,g)}else o=new jr(0,0,0,0);return o},t.prototype.checkCorrectLayoutRectangle=function(t,e,i,r){var n=new jr(e,i,t.width,t.width);if(null!=r){switch(r.alignment){case Wi.Center:n.x-=n.width/2;break;case Wi.Right:n.x-=n.width}switch(r.lineAlignment){case Bi.Middle:n.y-=n.height/2;break;case Bi.Bottom:n.y-=n.height}}return n},t.prototype.setLayer=function(t){this.pageLayer=t;var e=t.page;null!=e&&void 0!==e&&(e.beginSave=this.pageSave)},t.prototype.pageSave=function(t){if(null!=t.graphics.automaticFields)for(var e=0;e<t.graphics.automaticFields.automaticFields.length;e++){var i=t.graphics.automaticFields.automaticFields[e];i.field.performDraw(t.graphics,i.location,i.scalingX,i.scalingY)}},t.prototype.drawStringLayoutResult=function(t,e,i,r,n,o){if(t.empty)throw new Error("ArgumentNullException:result");this.applyStringSettings(e,i,r,o,n);var s=null!=o?o.horizontalScalingFactor:100;s===this.previousTextScaling||this.isEmfTextScaled||(this.pdfStreamWriter.setTextScaling(s),this.previousTextScaling=s);var a,u=null==o||0===o.lineSpacing?e.height:o.lineSpacing+e.height;a=null!=o&&o.subSuperScript===ur.SubScript?u-(e.height+e.metrics.getDescent(o)):u-e.metrics.getAscent(o),this.shift=a,this.pdfStreamWriter.startNextLine(n.x,n.y-a),this.pdfStreamWriter.setLeading(+u);for(var c=0,h="",l=0;l<t.lines.length;l++)if(c+=t.lineHeight,n.y+c>this.clientSize.height){this.startCutIndex=l;break}for(var p=this.startCutIndex;p<t.lines.length&&p>=0;p++)h+=t.lines[p].text;var g=new jr(n.x,n.y,n.width,n.height);this.drawLayoutResult(t,e,o,n),this.underlineStrikeoutText(i,r,t,e,g,o),this.isEmfPlus=!1,this.isUseFontSize=!1,-1!==this.startCutIndex&&this.getNextPage().graphics.drawString(h,e,i,r,n.x,0,n.width,0,o)},t.prototype.getNextPage=function(){var t=this.currentPage.section,e=t.indexOf(this.currentPage);return e===t.count-1?t.add():t.getPages()[e+1]},t.prototype.setClip=function(t,e){void 0===e?this.setClip(t,Ji.Winding):(this.pdfStreamWriter.appendRectangle(t),this.pdfStreamWriter.clipPath(e===Ji.Alternate))},t.prototype.applyStringSettings=function(t,e,i,r,n){i instanceof uo?(this.bCSInitialized=!1,i.graphics.colorSpace=this.colorSpace):i instanceof io&&(this.bCSInitialized=!1,i.colorSpace=this.colorSpace);var o=this.getTextRenderingMode(e,i,r);this.stateControl(e,i,t,r),this.pdfStreamWriter.beginText(),o!==this.previousTextRenderingMode&&(this.pdfStreamWriter.setTextRenderingMode(o),this.previousTextRenderingMode=o);var s=null!=r?r.characterSpacing:0;s===this.previousCharacterSpacing||this.isEmfTextScaled||(this.pdfStreamWriter.setCharacterSpacing(s),this.previousCharacterSpacing=s);var a=null!=r?r.wordSpacing:0;a!==this.previousWordSpacing&&(this.pdfStreamWriter.setWordSpacing(a),this.previousWordSpacing=a)},t.prototype.getTextVerticalAlignShift=function(t,e,i){var r=0;if(e>=0&&null!=i&&i.lineAlignment!==Bi.Top)switch(i.lineAlignment){case Bi.Middle:r=(e-t)/2;break;case Bi.Bottom:r=e-t}return r},t.prototype.drawLayoutResult=function(t,e,i,r){var n=this.getTextVerticalAlignShift(t.actualSize.height,r.height,i);0!==n&&this.pdfStreamWriter.startNextLine(0,n);var o=e,s=null!=o&&o.isUnicode;null!=o&&o.isEmbedFont;for(var a=t.lines,u=0,c=a.length;u<c&&u!==this.startCutIndex;u++){var h=a[u];h.text;var l=h.width,p=this.getHorizontalAlignShift(l,r.width,i),g=this.getLineIndent(h,i,r,0===u);0===(p+=this.rightToLeft(i)?0:g)||this.isEmfTextScaled||this.pdfStreamWriter.startNextLine(p,0),s?this.drawUnicodeLine(h,r,e,i):this.drawAsciiLine(h,r,e,i),0===p||this.isEmfTextScaled||this.pdfStreamWriter.startNextLine(-p,0),this.isOverloadWithPosition&&a.length>1&&(this.pdfStreamWriter.startNextLine(-r.x,0),r.x=0,r.width=this.clientSize.width,this.isOverloadWithPosition=!1,this.isPointOverload=!0)}this.getResources.getResources().requireProcedureSet(this.procedureSets.text),0!==n&&this.pdfStreamWriter.startNextLine(0,-(n-t.lineHeight)),this.pdfStreamWriter.endText()},t.prototype.drawAsciiLine=function(t,e,i,r){this.justifyLine(t,e.width,r);var n="";if(-1!==t.text.indexOf("(")||-1!==t.text.indexOf(")"))for(var o=0;o<t.text.length;o++)"("===t.text[o]?n+="\\(":")"===t.text[o]?n+="\\)":n+=t.text[o];""===n&&(n=t.text);var s="("+n+")";this.pdfStreamWriter.showNextLineText(new er(s))},t.prototype.drawUnicodeLine=function(t,e,i,r){var n=t.text;t.width;var o=null!=r&&r.rightToLeft,s=null!=r&&(0!==r.wordSpacing||r.alignment===Wi.Justify),a=i,u=this.justifyLine(t,e.width,r),c=new to;if(o||null!=r&&r.textDirection!==tr.None){var h=null,l=null!=r&&r.alignment===Wi.Right,p=null;p=(h=null!=r&&r.textDirection!==tr.None?c.layout(n,a,r.textDirection===tr.RightToLeft,s,r):c.layout(n,a,l,s,r)).length>1?null!=r&&r.textDirection!==tr.None?c.splitLayout(n,a,r.textDirection===tr.RightToLeft,s,r):c.splitLayout(n,a,l,s,r):[n],this.drawUnicodeBlocks(h,p,a,r,u)}else if(s){var g=this.breakUnicodeLine(n,a,null);h=g.tokens,p=g.words;this.drawUnicodeBlocks(h,p,a,r,u)}else{var d=this.convertToUnicode(n,a),f=this.getUnicodeString(d);this.streamWriter.showNextLineText(f)}},t.prototype.drawUnicodeBlocks=function(t,e,i,r,n){if(null==t)throw new Error("Argument Null Exception : blocks");if(null==e)throw new Error("Argument Null Exception : words");if(null==i)throw new Error("Argument Null Exception : font");this.streamWriter.startNextLine();var o=0,s=0,a=0,u=0;try{null!=r&&(a=r.firstLineIndent,u=r.paragraphIndent,r.firstLineIndent=0,r.paragraphIndent=0);var c=i.getCharWidth(wr.whiteSpace,r)+n,h=null!=r?r.characterSpacing:0;c+=h+(null!=r&&0===n?r.wordSpacing:0);for(var l=0;l<t.length;l++){var p=t[l],g=e[l],d=0;if(0!==o&&this.streamWriter.startNextLine(o,0),g.length>0){d+=i.measureString(g,r).width,d+=h;var f=this.getUnicodeString(p);this.streamWriter.showText(f)}l!==t.length-1&&(s+=o=d+c)}s>0&&this.streamWriter.startNextLine(-s,0)}finally{null!=r&&(r.firstLineIndent=a,r.paragraphIndent=u)}},t.prototype.breakUnicodeLine=function(t,e,i){if(null===t)throw new Error("Argument Null Exception : line");i=t.split(null);for(var r=[],n=0;n<i.length;n++){var o=i[n],s=this.convertToUnicode(o,e);r[n]=s}return{tokens:r,words:i}},t.prototype.getUnicodeString=function(t){if(null===t)throw new Error("Argument Null Exception : token");var e=new er(t);return e.converted=!0,e.encode=Ti.ForceEncoding.Ascii,e},t.prototype.convertToUnicode=function(t,e){var i=null;if(null==t)throw new Error("Argument Null Exception : text");if(null==e)throw new Error("Argument Null Exception : ttfFont");if(e.fontInternal instanceof Jn){var r=e.fontInternal.ttfReader;e.setSymbols(t),i=r.convertString(t);var n=er.toUnicodeArray(i,!1);i=er.byteToString(n)}return i},t.prototype.justifyLine=function(t,e,i){var r=t.text,n=t.width,o=this.shouldJustify(t,e,i),s=null!=i&&0!==i.wordSpacing,a=wr.spaces,u=wr.getCharsCount(r,a),c=0;o?(s&&(n-=u*i.wordSpacing),c=(e-n)/u,this.pdfStreamWriter.setWordSpacing(c)):s?this.pdfStreamWriter.setWordSpacing(i.wordSpacing):this.pdfStreamWriter.setWordSpacing(0);return c},t.prototype.reset=function(t){this.canvasSize=t,this.streamWriter.clear(),this.initialize(),this.initializeCoordinates()},t.prototype.shouldJustify=function(t,e,i){var r=t.text,n=t.width,o=null!=i&&i.alignment===Wi.Justify,s=e>=0&&n<e,a=wr.spaces,u=wr.getCharsCount(r,a)>0&&r[0]!==wr.whiteSpace,c=(t.lineType&zr.LayoutBreak)>0;return o&&s&&u&&(c||i.alignment===Wi.Justify)},t.prototype.underlineStrikeoutText=function(t,e,i,r,n,o){if(r.underline||r.strikeout){var s=this.createUnderlineStikeoutPen(t,e,r,o);if(null!=s){var a=this.getTextVerticalAlignShift(i.actualSize.height,n.height,o),u=0;u=n.y+a+r.metrics.getAscent(o)+1.5*s.width;for(var c=n.y+a+r.metrics.getHeight(o)/2+1.5*s.width,h=i.lines,l=0,p=i.lineCount;l<p;l++){var g=h[l];g.text;var d=g.width,f=this.getHorizontalAlignShift(d,n.width,o),M=this.getLineIndent(g,o,n,0===l);f+=this.rightToLeft(o)?0:M;var y=n.x+f,m=this.shouldJustify(g,n.width,o)?y+n.width-M:y+d-M;if(r.underline){var N=u;this.drawLine(s,y,N,m,N),u+=i.lineHeight}if(r.strikeout){N=c;this.drawLine(s,y,N,m,N),c+=i.lineHeight}this.isPointOverload&&h.length>1&&(n.x=0,n.width=this.clientSize.width)}this.isPointOverload=!1}}},t.prototype.createUnderlineStikeoutPen=function(t,e,i,r){var n=i.metrics.getSize(r)/20,o=null;return null!=t?o=new sn(t.color,n):null!=e&&(o=new sn(e,n)),o},t.prototype.getTextRenderingMode=function(t,e,i){var r=Gi.None;return r=null!=t&&null!=e?Gi.FillStroke:null!=t?Gi.Stroke:Gi.Fill,null!=i&&i.clipPath&&(r|=Gi.ClipFlag),r},t.prototype.getLineIndent=function(t,e,i,r){var n=0,o=(t.lineType&zr.FirstParagraphLine)>0;return null!=e&&o&&(n=r?e.firstLineIndent:e.paragraphIndent,n=i.width>0?Math.min(i.width,n):n),n},t.prototype.getHorizontalAlignShift=function(t,e,i){var r=0;if(e>=0&&null!=i&&i.alignment!==Wi.Left)switch(i.alignment){case Wi.Center:r=(e-t)/2;break;case Wi.Right:r=e-t}return r},t.prototype.rightToLeft=function(t){var e=null!=t&&t.rightToLeft;return null!=t&&t.textDirection!==tr.None&&void 0!==t.textDirection&&(e=!0),e},t.prototype.stateControl=function(t,e,i,r){if(void 0===r)this.stateControl(t,e,i,null);else{e instanceof io&&(this.bCSInitialized=!1,e.colorSpace=this.colorSpace),e instanceof uo&&(this.bCSInitialized=!1,e.graphics.colorSpace=this.colorSpace);var n=!1;null!==e?(void 0!==this.pageLayer&&null!=this.pageLayer&&!1===this.colorSpaceChanged&&(this.lastDocumentCS=this.pageLayer.page.document.colorSpace,this.lastGraphicsCS=this.pageLayer.page.graphics.colorSpace,this.colorSpace=this.pageLayer.page.document.colorSpace,this.currentColorSpace=this.pageLayer.page.document.colorSpace,this.colorSpaceChanged=!0),this.initCurrentColorSpace(this.currentColorSpace)):null!=t&&(void 0!==this.pageLayer&&null!=this.pageLayer&&(this.colorSpace=this.pageLayer.page.document.colorSpace,this.currentColorSpace=this.pageLayer.page.document.colorSpace),this.initCurrentColorSpace(this.currentColorSpace)),this.penControl(t,n),this.brushControl(e,n),this.fontControl(i,r,n)}},t.prototype.initCurrentColorSpace=function(t){this.getResources.getResources(),this.bCSInitialized||(this.currentColorSpace!=Zi.GrayScale?(this.pdfStreamWriter.setColorSpace("Device"+this.currentColorSpaces[this.currentColorSpace],!0),this.pdfStreamWriter.setColorSpace("Device"+this.currentColorSpaces[this.currentColorSpace],!1),this.bCSInitialized=!0):(this.pdfStreamWriter.setColorSpace("DeviceGray",!0),this.pdfStreamWriter.setColorSpace("DeviceGray",!1),this.bCSInitialized=!0))},t.prototype.penControl=function(t,e){null!=t&&(this.currentPen=t,t.monitorChanges(this.currentPen,this.pdfStreamWriter,this.getResources,e,this.colorSpace,this.matrix.clone()),this.currentPen=t.clone())},t.prototype.brushControl=function(t,e){if(null!=t&&void 0!==t){var i=t.clone(),r=i;if(!(null==r||t instanceof Ir||t instanceof uo)){var n=r.matrix,o=this.matrix.clone();null!=n&&(n.multiply(o),o=n),r.matrix=o}this.currentBrush=r,i.monitorChanges(this.currentBrush,this.pdfStreamWriter,this.getResources,e,this.colorSpace),this.currentBrush=t,t=null}},t.prototype.fontControl=function(t,e,i){if(null!=t){var r=null!=e?e.subSuperScript:ur.None,n=null!=this.currentStringFormat?this.currentStringFormat.subSuperScript:ur.None;if(i||t!==this.currentFont||r!==n){var o=this.getResources.getResources();this.currentFont=t,this.currentStringFormat=e;var s=t.metrics.getSize(e);this.isEmfTextScaled=!1;var a=o.getName(t);this.pdfStreamWriter.setFont(t,a,s)}}},t.prototype.setTransparency=function(t,e,i){if(void 0===e)this.istransparencySet=!0,this.setTransparency(t,t,Ki.Normal);else if("number"==typeof e&&void 0===i)this.setTransparency(t,e,Ki.Normal);else{null==this.trasparencies&&(this.trasparencies=new hn);var r=null,n=new po(t,e,i);this.trasparencies.containsKey(n)&&(r=this.trasparencies.getValue(n)),null==r&&(r=new ln(t,e,i),this.trasparencies.setValue(n,r));var o=this.getResources.getResources().getName(r);this.streamWriter.setGraphicsState(o)}},t.prototype.clipTranslateMargins=function(t,e,i,r,n,o){if(t instanceof jr&&void 0===e)this.clipBounds=t,this.pdfStreamWriter.writeComment("Clip margins."),this.pdfStreamWriter.appendRectangle(t),this.pdfStreamWriter.closePath(),this.pdfStreamWriter.clipPath(!1),this.pdfStreamWriter.writeComment("Translate co-ordinate system."),this.translateTransform(t.x,t.y);else if("number"==typeof t){var s=new jr(i,r,this.size.width-i-n,this.size.height-r-o);this.clipBounds=s,this.pdfStreamWriter.writeComment("Clip margins."),this.pdfStreamWriter.appendRectangle(s),this.pdfStreamWriter.closePath(),this.pdfStreamWriter.clipPath(!1),this.pdfStreamWriter.writeComment("Translate co-ordinate system."),this.translateTransform(t,e)}},t.prototype.updateY=function(t){return-t},t.prototype.translateTransform=function(t,e){var i=new an;this.getTranslateTransform(t,e,i),this.pdfStreamWriter.modifyCtm(i),this.matrix.multiply(i)},t.prototype.getTranslateTransform=function(t,e,i){return i.translate(t,this.updateY(e)),i},t.prototype.scaleTransform=function(t,e){var i=new an;this.getScaleTransform(t,e,i),this.pdfStreamWriter.modifyCtm(i),this.matrix.multiply(i)},t.prototype.getScaleTransform=function(t,e,i){return null==i&&(i=new an),i.scale(t,e),i},t.prototype.rotateTransform=function(t){var e=new an;this.getRotateTransform(t,e),this.pdfStreamWriter.modifyCtm(e),this.matrix.multiply(e)},t.prototype.initializeCoordinates=function(){this.pdfStreamWriter.writeComment("Change co-ordinate system to left/top."),this.mediaBoxUpperRightBound!==-this.size.height&&null==this.cropBox&&(this.mediaBoxUpperRightBound===this.size.height||0===this.mediaBoxUpperRightBound?this.translateTransform(0,this.updateY(this.size.height)):this.translateTransform(0,this.updateY(this.mediaBoxUpperRightBound)))},t.prototype.getRotateTransform=function(t,e){return null!=e&&void 0!==e||(e=new an),e.rotate(this.updateY(t)),e},t.prototype.save=function(){var t=new lo(this,this.matrix.clone());return t.brush=this.currentBrush,t.pen=this.currentPen,t.font=this.currentFont,t.colorSpace=this.currentColorSpace,t.characterSpacing=this.previousCharacterSpacing,t.wordSpacing=this.previousWordSpacing,t.textScaling=this.previousTextScaling,t.textRenderingMode=this.previousTextRenderingMode,this.graphicsState.push(t),this.pdfStreamWriter.saveGraphicsState(),t},t.prototype.restore=function(t){if(void 0===t)this.graphicsState.length>0&&this.doRestoreState();else if(-1!==this.graphicsState.indexOf(t))for(;0!==this.graphicsState.length;){if(this.doRestoreState()===t)break}},t.prototype.doRestoreState=function(){var t=this.graphicsState.pop();return this.transformationMatrix=t.matrix,this.currentBrush=t.brush,this.currentPen=t.pen,this.currentFont=t.font,this.currentColorSpace=t.colorSpace,this.previousCharacterSpacing=t.characterSpacing,this.previousWordSpacing=t.wordSpacing,this.previousTextScaling=t.textScaling,this.previousTextRenderingMode=t.textRenderingMode,this.pdfStreamWriter.restoreGraphicsState(),t},t.prototype.drawPath=function(t,e,i){this._drawPath(t,e,i.pathPoints,i.pathTypes,i.fillMode)},t.prototype._drawPath=function(t,e,i,r,n){e instanceof uo?(this.bCSInitialized=!1,e.graphics.colorSpace=this.colorSpace):e instanceof io&&(this.bCSInitialized=!1,e.colorSpace=this.colorSpace),this.stateControl(t,e,null),this.buildUpPath(i,r),this.drawPathHelper(t,e,n,!1)},t.prototype.drawArc=function(t,e,i,r,n,o,s){e instanceof jr?this.drawArc(t,e.x,e.y,e.width,e.height,i,r):0!==s&&(this.stateControl(t,null,null),this.constructArcPath(e,i,e+r,i+n,o,s),this.drawPathHelper(t,null,!1))},t.prototype.buildUpPath=function(e,i){for(var r=e.length,n=0;n<r;++n){var o,s=e[n];switch(i[n]&t.pathTypesValuesMask){case jn.Start:this.pdfStreamWriter.beginPath(s.x,s.y);break;case jn.Bezier3:var a=new mr(0,0),u=new mr(0,0),c=this.getBezierPoints(e,i,n,a,u);this.pdfStreamWriter.appendBezierSegment(s,c.p2,c.p3),n=c.i;break;case jn.Line:this.pdfStreamWriter.appendLineSegment(s);break;default:throw new Error("ArithmeticException - Incorrect path formation.")}o=i[n],this.checkFlags(o)}},t.prototype.getBezierPoints=function(e,i,r,n,o){if((i[++r]&t.pathTypesValuesMask)!==jn.Bezier3)throw new Error("ArgumentException : errorMsg");if(n=e[r],(i[++r]&t.pathTypesValuesMask)!==jn.Bezier3)throw new Error("ArgumentException : errorMsg");return{i:r,p2:n,p3:e[r]}},t.prototype.checkFlags=function(t){(t&jn.CloseSubpath)===jn.CloseSubpath&&this.pdfStreamWriter.closePath()},t.prototype.constructArcPath=function(t,e,i,r,n,o){var s=this.getBezierArc(t,e,i,r,n,o);if(0!==s.length){var a=[s[0],s[1],s[2],s[3],s[4],s[5],s[6],s[7]];this.pdfStreamWriter.beginPath(a[0],a[1]);var u=0;for(u=0;u<s.length;u+=8)a=[s[u],s[u+1],s[u+2],s[u+3],s[u+4],s[u+5],s[u+6],s[u+7]],this.pdfStreamWriter.appendBezierSegment(a[2],a[3],a[4],a[5],a[6],a[7])}},t.prototype.getBezierArc=function(t,e,i,r,n,o){if(t>i){var s=void 0;s=t,t=i,i=s}if(r>e){s=void 0;s=e,e=r,r=s}var a,u;Math.abs(o)<=90?(a=o,u=1):a=o/(u=Math.ceil(Math.abs(o)/90));for(var c=(t+i)/2,h=(e+r)/2,l=(i-t)/2,p=(r-e)/2,g=a*(Math.PI/360),d=Math.abs(4/3*(1-Math.cos(g))/Math.sin(g)),f=[],M=0;M<u;M++){var y=(n+M*a)*(Math.PI/180),m=(n+(M+1)*a)*(Math.PI/180),N=Math.cos(y),j=Math.cos(m),D=Math.sin(y),S=Math.sin(m);a>0?f.push(c+l*N,h-p*D,c+l*(N-d*D),h-p*(D+d*N),c+l*(j+d*S),h-p*(S-d*j),c+l*j,h-p*S):f.push(c+l*N,h-p*D,c+l*(N+d*D),h-p*(D-d*N),c+l*(j-d*S),h-p*(S+d*j),c+l*j,h-p*S)}return f},t.pathTypesValuesMask=15,t.transparencyObject=!1,t}(),ho=function(){function t(t){this.sender=t}return t.prototype.getResources=function(){return this.sender.getResources()},t}(),lo=function(){function t(t,e){if(this.internalTextRenderingMode=Gi.Fill,this.internalCharacterSpacing=0,this.internalWordSpacing=0,this.internalTextScaling=100,this.pdfColorSpace=Zi.Rgb,void 0!==t){this.pdfGraphics=t;var i=[];t.matrix.matrix.elements.forEach(function(t){i.push(t)}),this.transformationMatrix=new an,this.transformationMatrix.matrix=new un(i)}}return Object.defineProperty(t.prototype,"graphics",{get:function(){return this.pdfGraphics},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"matrix",{get:function(){return this.transformationMatrix},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"characterSpacing",{get:function(){return this.internalCharacterSpacing},set:function(t){this.internalCharacterSpacing=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"wordSpacing",{get:function(){return this.internalWordSpacing},set:function(t){this.internalWordSpacing=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"textScaling",{get:function(){return this.internalTextScaling},set:function(t){this.internalTextScaling=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pen",{get:function(){return this.pdfPen},set:function(t){this.pdfPen=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"brush",{get:function(){return this.pdfBrush},set:function(t){this.pdfBrush=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"font",{get:function(){return this.pdfFont},set:function(t){this.pdfFont=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"colorSpace",{get:function(){return this.pdfColorSpace},set:function(t){this.pdfColorSpace=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"textRenderingMode",{get:function(){return this.internalTextRenderingMode},set:function(t){this.internalTextRenderingMode=t},enumerable:!0,configurable:!0}),t}(),po=function(t,e,i){this.alphaPen=t,this.alphaBrush=e,this.blendMode=i},go=function(){function t(t,e){if(this.pdfColorSpace=Zi.Rgb,this.isVisible=!0,this.sublayer=!1,this.contentLength=0,this.dictionaryProperties=new yi,null===t)throw new Error("ArgumentNullException:page");if(this.pdfPage=t,this.clipPageTemplates=!0,void 0===e)this.content=new Yi;else if(e instanceof Yi||null===e){if(null===e)throw new Error("ArgumentNullException:stream");this.content=e}else this.content=new Yi,this.clipPageTemplates=e}return Object.defineProperty(t.prototype,"colorSpace",{get:function(){return this.pdfColorSpace},set:function(t){this.pdfColorSpace=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"page",{get:function(){return this.pdfPage},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"layerId",{get:function(){return this.layerid},set:function(t){this.layerid=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.layerName},set:function(t){this.layerName=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visible",{get:function(){return this.isVisible},set:function(t){this.isVisible=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"graphics",{get:function(){return null==this.pdfGraphics&&this.initializeGraphics(this.page),this.pdfGraphics},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"layers",{get:function(){return null==this.layer?(this.layer=new yo(this.page),this.layer.sublayer=!0,this.layer):this.layer},enumerable:!0,configurable:!0}),t.prototype.add=function(){var e=new t(this.pdfPage);return e.name="",e},t.prototype.sign=function(t){return 0===t?0:t>0?1:-1},t.prototype.initializeGraphics=function(t){var e=t,i=new ho(this.page);if(this.pdfGraphics=new co(t.size,i,this.content),this.pdfGraphics.mediaBoxUpperRightBound=0,null!=e){var r=e.section.parent;null!=r&&(this.pdfGraphics.colorSpace=r.document.colorSpace,this.colorSpace=r.document.colorSpace)}var n=this.sign(t.origin.y)===this.sign(t.origin.x);(t.origin.x>=0&&t.origin.y>=0||!n)&&this.pdfGraphics.initializeCoordinates();var o=e.section.getActualBounds(e,!0),s=e.section.pageSettings.margins;this.clipPageTemplates?t.origin.x>=0&&t.origin.y>=0&&this.pdfGraphics.clipTranslateMargins(o):this.graphics.clipTranslateMargins(o.x,o.y,s.left,s.top,s.right,s.bottom),this.pdfGraphics.setLayer(this)},Object.defineProperty(t.prototype,"element",{get:function(){return this.content},enumerable:!0,configurable:!0}),t}(),fo=function(){function t(){}return Object.defineProperty(t.prototype,"count",{get:function(){return void 0===this.collection&&(this.collection=[]),this.collection.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"list",{get:function(){return void 0===this.collection&&(this.collection=[]),this.collection},enumerable:!0,configurable:!0}),t}(),Mo=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),yo=function(t){function e(e){var i=t.call(this)||this;if(i.parentLayerCount=0,i.sublayer=!1,i.optionalContent=new mi,e instanceof mo){i.page=e;var r=e;i.parseLayers(r)}return i}return Mo(e,t),e.prototype.items=function(t,e){if("number"==typeof t&&void 0===e)return this.list[t];if(null==e)throw new Error("ArgumentNullException: layer");if(e.page!==this.page)throw new Error("ArgumentException: The layer belongs to another page")},e.prototype.add=function(t,e){if(void 0===t){var i=new go(this.page);return i.name="",this.add(i),i}if(t instanceof go){var r=this.list.push(t);return this.addLayer(r,t),r}return 0},e.prototype.addLayer=function(t,e){var i=new rr(e);this.page.contents.add(i)},e.prototype.insert=function(t,e){for(var i=[],r=this.list.length,n=t;n<r;n++)i.push(this.list.pop());this.list.push(e);for(n=0;n<i.length;n++)this.list.push(i[n]);this.insertLayer(t,e)},e.prototype.insertLayer=function(t,e){if(null==e)throw new Error("ArgumentNullException:layer");var i=new rr(e);this.page.contents.insert(t,i)},e.prototype.parseLayers=function(t){var e=this.page.contents;this.page.getResources(),t.crossTable;var i=new Yi,r=new Yi,n=[];n.push("q"),i.data=n,e.insert(0,new rr(i)),(n=[]).push("Q"),r.data=n,e.insert(e.count,new rr(r))},e.prototype.indexOf=function(t){if(null==t)throw new Error("ArgumentNullException: layer");return this.list.indexOf(t)},e}(fo),mo=function(){function t(t){this.defLayerIndex=-1,this.modified=!1,this.dictionaryProperties=new yi,this.pageDictionary=t}return Object.defineProperty(t.prototype,"section",{get:function(){return this.pdfSection},set:function(t){this.pdfSection=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dictionary",{get:function(){return this.pageDictionary},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.pageDictionary},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"defaultLayer",{get:function(){var t=this.layers,e=this.defaultLayerIndex;return t.items(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"defaultLayerIndex",{get:function(){if(0===this.layerCollection.count||-1===this.defLayerIndex){var t=this.layerCollection.add();this.defLayerIndex=this.layerCollection.indexOf(t)}return this.defLayerIndex},set:function(t){if(t<0||t>this.layers.count-1)throw new Error("ArgumentOutOfRangeException : value, Index can not be less 0 and greater Layers.Count - 1");this.defLayerIndex=t,this.modified=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"layers",{get:function(){return null!=this.layerCollection&&void 0!==this.layerCollection||(this.layerCollection=new yo(this)),this.layerCollection},enumerable:!0,configurable:!0}),t.prototype.getResources=function(){return null==this.resources&&(this.resources=new oo,this.dictionary.items.setValue(this.dictionaryProperties.resources,this.resources)),this.resources},Object.defineProperty(t.prototype,"contents",{get:function(){var t=this.pageDictionary.items.getValue(this.dictionaryProperties.contents);return null==t&&(t=new zi,this.pageDictionary.items.setValue(this.dictionaryProperties.contents,t)),t},enumerable:!0,configurable:!0}),t.prototype.setResources=function(t){this.resources=t,this.dictionary.items.setValue(this.dictionaryProperties.resources,this.resources),this.modified=!0},t}(),No=function(){function t(t){this.alreadyExistsAnnotationError="This annotatation had been already added to page",this.missingAnnotationException="Annotation is not contained in collection.",this.dictionaryProperties=new yi,this.internalAnnotations=new zi,this.lists=[],void 0!==t&&(this.page=t)}return Object.defineProperty(t.prototype,"annotations",{get:function(){return this.internalAnnotations},set:function(t){this.internalAnnotations=t},enumerable:!0,configurable:!0}),t.prototype.add=function(t){this.doAdd(t)},t.prototype.doAdd=function(t){if(void 0===t.destination)return t.setPage(this.page),this.internalAnnotations.add(new rr(t)),this.lists.push(t);var e=(new Or).layout(t.text,t.font,t.stringFormat,new Nr(t.bounds.width,0),!1,new Nr(0,0)),i=t.bounds.y;if(1===e.lines.length){var r=t.font.measureString(e.lines[0].text);t.bounds=new jr(new mr(t.bounds.x,i),r),t.text=e.lines[0].text,this.page.graphics.drawString(t.text,t.font,null,t.brush,t.bounds.x,t.bounds.y,t.bounds.width,t.bounds.height,null),t.setPage(this.page),this.setColor(t),this.internalAnnotations.add(new rr(t)),this.lists.push(t)}else for(var n=0;n<e.lines.length;n++){r=t.font.measureString(e.lines[n].text);if(0===n)t.bounds=new jr(t.bounds.x,i,r.width,r.height),t.text=e.lines[n].text,this.page.graphics.drawString(t.text,t.font,null,t.brush,t.bounds.x,i,r.width,r.height,null),t.setPage(this.page),this.setColor(t),this.internalAnnotations.add(new rr(t)),this.lists.push(t),i+=t.bounds.height;else{var o=t.clone();o.bounds=new jr(new mr(t.bounds.x,i),r),o.text=e.lines[n].text,this.page.graphics.drawString(o.text,o.font,null,o.brush,o.bounds.x,o.bounds.y,o.bounds.width,o.bounds.height,null),o.setPage(this.page),this.setColor(o),this.internalAnnotations.add(new rr(o)),this.lists.push(o),i+=o.bounds.height}}},t.prototype.setColor=function(t){var e=Zi.Rgb,i=t.color.toArray(e);t.dictionary.items.setValue(this.dictionaryProperties.c,i)},Object.defineProperty(t.prototype,"element",{get:function(){return this.internalAnnotations},enumerable:!0,configurable:!0}),t}(),jo=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Do=function(t){function e(){var e=t.call(this,new mi)||this;return e.annotationCollection=null,e.beginSave=null,e.initialize(),e}return jo(e,t),Object.defineProperty(e.prototype,"document",{get:function(){return null!==this.section&&null!==this.section.parent?this.section.parent.document:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"graphics",{get:function(){var t=this.defaultLayer.graphics;return t.currentPage=this,t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"crossTable",{get:function(){if(null===this.section)throw new Error("PdfDocumentException : Page is not created");return null===this.section.parent?this.section.parentDocument.crossTable:this.section.parent.document.crossTable},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this.section.pageSettings.size},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"origin",{get:function(){return this.section.pageSettings.origin},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"annotations",{get:function(){return null==this.annotationCollection&&(this.annotationCollection=new No(this),this.dictionary.items.setValue(this.dictionaryProperties.annots,this.annotationCollection.element),this.annotationCollection.annotations=this.dictionary.items.getValue(this.dictionaryProperties.annots)),this.annotationCollection},enumerable:!0,configurable:!0}),e.prototype.initialize=function(){this.dictionary.items.setValue(this.dictionaryProperties.type,new fi("Page")),this.dictionary.pageBeginDrawTemplate=new vi(this)},e.prototype.setSection=function(t){this.section=t,this.dictionary.items.setValue(this.dictionaryProperties.parent,new rr(t))},e.prototype.resetProgress=function(){this.isProgressOn=!1},e.prototype.getClientSize=function(){var t=this.section.getActualBounds(this,!0);return new Nr(t.width,t.height)},e.prototype.pageBeginSave=function(){var t=this.document;void 0!==typeof t&&null!=t&&this.drawPageTemplates(t),null!=this.beginSave&&void 0!==this.beginSave&&this.beginSave(this)},e.prototype.drawPageTemplates=function(t){if(this.section.containsTemplates(t,this,!1)){var e=new go(this,!1);if(this.layers.insert(0,e),this.section.drawTemplates(this,e,t,!1),null!==e.graphics&&void 0!==e.graphics)for(var i=0;i<e.graphics.automaticFields.automaticFields.length;i++){var r=e.graphics.automaticFields.automaticFields[i];r.field.performDraw(e.graphics,r.location,r.scalingX,r.scalingY)}}if(this.section.containsTemplates(t,this,!0)){var n=new go(this,!1);this.layers.add(n),this.section.drawTemplates(this,n,t,!0)}},e}(mo),So=function(){function t(t){this.pdfPage=void 0!==t?t:null}return Object.defineProperty(t.prototype,"page",{get:function(){return this.pdfPage},enumerable:!0,configurable:!0}),t}(),vo=function(){function t(t){if(this.pdfSection=null,null==t)throw Error('ArgumentNullException("section")');this.section=t}return Object.defineProperty(t.prototype,"section",{get:function(){return this.pdfSection},set:function(t){this.pdfSection=t},enumerable:!0,configurable:!0}),t.prototype.contains=function(t){return this.section.contains(t)},t.prototype.remove=function(t){this.section.remove(t)},t.prototype.add=function(){return this.section.add()},t}(),Io=function(){function t(){}return Object.defineProperty(t.prototype,"left",{get:function(){return this.leftTemplate},set:function(t){this.leftTemplate=this.checkElement(t,Jr.Left)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return this.topTemplate},set:function(t){this.topTemplate=this.checkElement(t,Jr.Top)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return this.rightTemplate},set:function(t){this.rightTemplate=this.checkElement(t,Jr.Right)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return this.bottomTemplate},set:function(t){this.bottomTemplate=this.checkElement(t,Jr.Bottom)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"EvenLeft",{get:function(){return this.evenLeft},set:function(t){this.evenLeft=this.checkElement(t,Jr.Left)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"EvenTop",{get:function(){return this.evenTop},set:function(t){this.evenTop=this.checkElement(t,Jr.Top)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"EvenRight",{get:function(){return this.evenRight},set:function(t){this.evenRight=this.checkElement(t,Jr.Right)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"EvenBottom",{get:function(){return this.evenBottom},set:function(t){this.evenBottom=this.checkElement(t,Jr.Bottom)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"OddLeft",{get:function(){return this.oddLeft},set:function(t){this.oddLeft=this.checkElement(t,Jr.Left)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"OddTop",{get:function(){return this.oddTop},set:function(t){this.oddTop=this.checkElement(t,Jr.Top)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"OddRight",{get:function(){return this.oddRight},set:function(t){this.oddRight=this.checkElement(t,Jr.Right)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"OddBottom",{get:function(){return this.oddBottom},set:function(t){this.oddBottom=this.checkElement(t,Jr.Bottom)},enumerable:!0,configurable:!0}),t.prototype.getLeft=function(t){if(null==t)throw new Error("ArgumentNullException:page");return this.isEven(t)?null!=this.EvenLeft?this.EvenLeft:this.left:null!=this.OddLeft?this.OddLeft:this.left},t.prototype.getTop=function(t){if(null==t)throw new Error("ArgumentNullException:page");return this.isEven(t)?null!=this.EvenTop?this.EvenTop:this.top:null!=this.OddTop?this.OddTop:this.top},t.prototype.getRight=function(t){if(null==t)throw new Error("ArgumentNullException:page");return this.isEven(t)?null!=this.EvenRight?this.EvenRight:this.right:null!=this.OddRight?this.OddRight:this.right},t.prototype.getBottom=function(t){if(null==t)throw new Error("ArgumentNullException:page");return this.isEven(t)?null!=this.EvenBottom?this.EvenBottom:this.bottom:null!=this.OddBottom?this.OddBottom:this.bottom},t.prototype.isEven=function(t){var e=t.section.document.pages;return(e.pageCollectionIndex.containsKey(t)?e.pageCollectionIndex.getValue(t)+1:e.indexOf(t)+1)%2==0},t.prototype.checkElement=function(t,e){if(null!=t){if(void 0!==t.type&&t.type!==Jr.None)throw new Error("NotSupportedException:Can not reassign the template element. Please, create new one.");t.type=e}return t},t}(),zo=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),bo=function(t){function e(){var e=t.call(this)||this;return e.leftValue=e.topValue=e.rightValue=e.bottomValue=e.stampValue=!0,e}return zo(e,t),Object.defineProperty(e.prototype,"applyDocumentLeftTemplate",{get:function(){return this.leftValue},set:function(t){this.leftValue=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"applyDocumentTopTemplate",{get:function(){return this.topValue},set:function(t){this.topValue=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"applyDocumentRightTemplate",{get:function(){return this.rightValue},set:function(t){this.rightValue=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"applyDocumentBottomTemplate",{get:function(){return this.bottomValue},set:function(t){this.bottomValue=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"applyDocumentStamps",{get:function(){return this.stampValue},set:function(t){this.stampValue=t},enumerable:!0,configurable:!0}),e}(Io),wo=function(){function t(t,e){this.pageAdded=new So,this.pdfPages=[],this.dictionaryProperties=new yi,this.pdfDocument=t,void 0===e?(this.settings=t.pageSettings.clone(),this.initialSettings=this.settings.clone()):(this.settings=e.clone(),this.initialSettings=this.settings.clone()),this.initialize()}return Object.defineProperty(t.prototype,"parent",{get:function(){return this.sectionCollection},set:function(t){this.sectionCollection=t,this.section.items.setValue(this.dictionaryProperties.parent,new rr(t))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentDocument",{get:function(){return this.pdfDocument},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pageSettings",{get:function(){return this.settings},set:function(t){if(null==t)throw Error("Value can not be null.");this.settings=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.section},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"count",{get:function(){return this.pagesReferences.count},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"template",{get:function(){return null==this.pageTemplate&&(this.pageTemplate=new bo),this.pageTemplate},set:function(t){this.pageTemplate=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"document",{get:function(){return this.sectionCollection.document},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pages",{get:function(){return null!=this.pagesCollection&&void 0!==this.pagesCollection||(this.pagesCollection=new vo(this)),this.pagesCollection},enumerable:!0,configurable:!0}),t.prototype.getPages=function(){return this.pdfPages},t.prototype.pointToNativePdf=function(t,e){var i=this.getActualBounds(t,!0);return e.x+=i.x,e.y=this.pageSettings.height-e.y,e},t.prototype.setPageSettings=function(t){this.settings=t,this.state.orientation=t.orientation,this.state.rotate=t.rotate,this.state.size=t.size,this.state.origin=t.origin},t.prototype.initialize=function(){this.pagesReferences=new zi,this.section=new mi,this.state=new Oo(this.pdfDocument),this.section.sectionBeginSave=new Si(this,this.state),this.pageCount=new Ii(0),this.section.items.setValue(this.dictionaryProperties.count,this.pageCount),this.section.items.setValue(this.dictionaryProperties.type,new fi(this.dictionaryProperties.pages)),this.section.items.setValue(this.dictionaryProperties.kids,this.pagesReferences)},t.prototype.containsTemplates=function(t,e,i){var r=this.getDocumentTemplates(t,e,i),n=this.getSectionTemplates(e,i);return r.length>0||n.length>0},t.prototype.getDocumentTemplates=function(t,e,i){var r=[];return this.template.applyDocumentTopTemplate&&null!=t.template.getTop(e)&&(!t.template.getTop(e).foreground&&!i||t.template.getTop(e).foreground&&i)&&r.push(t.template.getTop(e)),this.template.applyDocumentBottomTemplate&&null!=t.template.getBottom(e)&&(!t.template.getBottom(e).foreground&&!i||t.template.getBottom(e).foreground&&i)&&r.push(t.template.getBottom(e)),this.template.applyDocumentLeftTemplate&&null!=t.template.getLeft(e)&&(!t.template.getLeft(e).foreground&&!i||t.template.getLeft(e).foreground&&i)&&r.push(t.template.getLeft(e)),this.template.applyDocumentRightTemplate&&null!=t.template.getRight(e)&&(!t.template.getRight(e).foreground&&!i||t.template.getRight(e).foreground&&i)&&r.push(t.template.getRight(e)),r},t.prototype.getSectionTemplates=function(t,e){var i,r=[];null!=this.template.getTop(t)&&((!(i=this.template.getTop(t)).foreground&&!e||i.foreground&&e)&&r.push(i));null!=this.template.getBottom(t)&&((!(i=this.template.getBottom(t)).foreground&&!e||i.foreground&&e)&&r.push(i));null!=this.template.getLeft(t)&&((!(i=this.template.getLeft(t)).foreground&&!e||i.foreground&&e)&&r.push(i));null!=this.template.getRight(t)&&((!(i=this.template.getRight(t)).foreground&&!e||i.foreground&&e)&&r.push(i));return r},t.prototype.add=function(t){if(void 0===t){var e=new Do;return this.add(e),e}var i=this.checkPresence(t);this.pdfPages.push(t),this.pagesReferences.add(i),t.setSection(this),t.resetProgress(),this.pageAddedMethod(t)},t.prototype.checkPresence=function(t){for(var e=new rr(t),i=!1,r=this.parent,n=0;n<r.section.length;n++){var o=r.section[n];i=i||o.contains(t)}return e},t.prototype.contains=function(t){return 0<=this.indexOf(t)},t.prototype.indexOf=function(t){for(var e=0;e<this.pdfPages.length;e++)if(this.pdfPages[e]===t)return this.pdfPages.indexOf(t);var i=new rr(t);return this.pagesReferences.indexOf(i)},t.prototype.pageAddedMethod=function(t){var e=new So(t);this.onPageAdded(e),this.parent.document.pages.onPageAdded(e),this.pageCount.intValue=this.count},t.prototype.onPageAdded=function(t){},t.prototype.getActualBounds=function(t,e,i){if(t instanceof Do&&"boolean"==typeof e){var r=this.parent.document;return this.getActualBounds(r,t,e)}var n=new jr(0,0,0,0);n.height=i?this.pageSettings.size.height:this.pageSettings.getActualSize().height,n.width=i?this.pageSettings.size.width:this.pageSettings.getActualSize().width;var o=this.getLeftIndentWidth(t,e,i),s=this.getTopIndentHeight(t,e,i),a=this.getRightIndentWidth(t,e,i),u=this.getBottomIndentHeight(t,e,i);return n.x+=o,n.y+=s,n.width-=o+a,n.height-=s+u,n},t.prototype.getLeftIndentWidth=function(t,e,i){if(null==t)throw new Error("ArgumentNullException:document");if(null==e)throw new Error("ArgumentNullException:page");var r=i?this.pageSettings.margins.left:0,n=null!=this.template.getLeft(e)?this.template.getLeft(e).width:0,o=null!=t.template.getLeft(e)?t.template.getLeft(e).width:0;return r+=this.template.applyDocumentLeftTemplate?Math.max(n,o):n},t.prototype.getTopIndentHeight=function(t,e,i){if(null==t)throw new Error("ArgumentNullException:document");if(null==e)throw new Error("ArgumentNullException:page");var r=i?this.pageSettings.margins.top:0,n=null!=this.template.getTop(e)?this.template.getTop(e).height:0,o=null!=t.template.getTop(e)?t.template.getTop(e).height:0;return r+=this.template.applyDocumentTopTemplate?Math.max(n,o):n},t.prototype.getRightIndentWidth=function(t,e,i){if(null==t)throw new Error("ArgumentNullException:document");if(null==e)throw new Error("ArgumentNullException:page");var r=i?this.pageSettings.margins.right:0,n=null!=this.template.getRight(e)?this.template.getRight(e).width:0,o=null!=t.template.getRight(e)?t.template.getRight(e).width:0;return r+=this.template.applyDocumentRightTemplate?Math.max(n,o):n},t.prototype.getBottomIndentHeight=function(t,e,i){if(null==t)throw new Error("ArgumentNullException:document");if(null==e)throw new Error("ArgumentNullException:page");var r=i?this.pageSettings.margins.bottom:0,n=null!=this.template.getBottom(e)?this.template.getBottom(e).height:0,o=null!=t.template.getBottom(e)?t.template.getBottom(e).height:0;return r+=this.template.applyDocumentBottomTemplate?Math.max(n,o):n},t.prototype.remove=function(t){if(null==t)throw Error('ArgumentNullException("page")');var e=this.pdfPages.indexOf(t);this.pagesReferences.removeAt(e);for(var i=[],r=0;r<e;r++)i.push(this.pdfPages[r]);for(r=e+1;r<this.pdfPages.length;r++)i.push(this.pdfPages[r]);this.pdfPages=i},t.prototype.applyPageSettings=function(t,e,i){var r=new jr(i.origin,i.size);t.items.setValue(this.dictionaryProperties.mediaBox,zi.fromRectangle(r));var n;n=To.rotateFactor*i.rotate;var o=new Ii(n);t.items.setValue(this.dictionaryProperties.rotate,o)},t.prototype.beginSave=function(t,e){var i=e.document;this.applyPageSettings(this.section,i.pageSettings,t)},t.prototype.drawTemplates=function(t,e,i,r){var n=this.getDocumentTemplates(i,t,r),o=this.getSectionTemplates(t,r);this.drawTemplatesHelper(e,i,n),this.drawTemplatesHelper(e,i,o)},t.prototype.drawTemplatesHelper=function(t,e,i){if(null!=i&&i.length>0)for(var r=i.length,n=0;n<r;n++){i[n].draw(t,e)}},t}(),Oo=function(){function t(t){this.pageOrientation=t.pageSettings.orientation,this.pageRotate=t.pageSettings.rotate,this.pageSize=t.pageSettings.size,this.pageOrigin=t.pageSettings.origin}return Object.defineProperty(t.prototype,"orientation",{get:function(){return this.pageOrientation},set:function(t){this.pageOrientation=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rotate",{get:function(){return this.pageRotate},set:function(t){this.pageRotate=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this.pageSize},set:function(t){this.pageSize=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"origin",{get:function(){return this.pageOrigin},set:function(t){this.pageOrigin=t},enumerable:!0,configurable:!0}),t}(),To=function(){function t(t){this.sections=[],this.dictionaryProperties=new yi,this.pdfDocument=t.clone(),this.initialize()}return Object.defineProperty(t.prototype,"section",{get:function(){return this.sections},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"document",{get:function(){return this.pdfDocument},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"count",{get:function(){return this.sections.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.pages},enumerable:!0,configurable:!0}),t.prototype.initialize=function(){this.sectionCount=new Ii(0),this.sectionCollection=new zi,this.pages=new mi,this.pages.beginSave=new Ni(this),this.pages.items.setValue(this.dictionaryProperties.type,new fi("Pages")),this.pages.items.setValue(this.dictionaryProperties.kids,this.sectionCollection),this.pages.items.setValue(this.dictionaryProperties.count,this.sectionCount),this.pages.items.setValue(this.dictionaryProperties.resources,new mi),this.setPageSettings(this.pages,this.pdfDocument.pageSettings)},t.prototype.pdfSectionCollection=function(t){if(t<0||t>=this.count)throw new Error("IndexOutOfRangeException()");return this.sections[t]},t.prototype.setPageSettings=function(t,e){var i=new jr(new mr,e.size);t.items.setValue(this.dictionaryProperties.mediaBox,zi.fromRectangle(i))},t.prototype.add=function(t){if(void 0===t){var e=new wo(this.pdfDocument);return this.add(e),e}var i=this.checkSection(t);return this.sections.push(t),t.parent=this,this.sectionCollection.add(i),this.sections.indexOf(t)},t.prototype.checkSection=function(t){var e=new rr(t);return this.sectionCollection.contains(e),e},t.prototype.countPages=function(){var t=0;return this.sections.forEach(function(e){return t+=e.count}),t},t.prototype.beginSave=function(){this.sectionCount.intValue=this.countPages()},t.rotateFactor=90,t}(),Lo=function(){function t(t){this.pdfPageCollectionIndex=new di,this.document=t}return Object.defineProperty(t.prototype,"count",{get:function(){return this.countPages()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pageCollectionIndex",{get:function(){return this.pdfPageCollectionIndex},enumerable:!0,configurable:!0}),t.prototype.add=function(t){if(void 0===t){var e=new Do;return this.add(e),e}this.getLastSection().add(t)},t.prototype.getLastSection=function(){var t=this.document.sections;return 0===t.section.length&&t.add(),t.section[t.section.length-1]},t.prototype.onPageAdded=function(t){},t.prototype.countPages=function(){for(var t=this.document.sections,e=0,i=0;i<t.section.length;i++)e+=t.section[i].count;return e},t.prototype.getPageByIndex=function(t){return this.getPage(t)},t.prototype.getPage=function(t){if(t<0||t>=this.count)throw Error('ArgumentOutOfRangeException("index", "Value can not be less 0")');for(var e=null,i=0,r=0,n=0,o=this.document.sections.count,s=0;s<o;s++){var a=this.document.sections.section[s];if(r=a.count,n=t-i,t>=i&&n<r){e=a.getPages()[n];break}i+=r}return e},t.prototype.indexOf=function(t){var e=-1;if(null==t)throw new Error("ArgumentNullException: page");for(var i=0,r=0,n=this.document.sections.count;r<n;r++){var o=this.document.sections.pdfSectionCollection(r);if((e=o.indexOf(t))>=0){e+=i;break}e=-1,i+=o.count}return e},t.prototype.remove=function(t){if(null==t)throw Error('ArgumentNullException("page")');for(var e=null,i=0,r=this.document.sections.count;i<r;i++)if((e=this.document.sections.pdfSectionCollection(i)).pages.contains(t)){e.pages.remove(t);break}return e},t}(),Ao=function(){function t(){this.referenceObjects=[],this.pdfFontCollection=new di}return t.prototype.search=function(t){var e=null,i=this.getGroup(t);return null==i?i=this.createNewGroup():i.length>0&&(e=i[0]),i.push(t),e},t.prototype.createNewGroup=function(){var t=[];return this.referenceObjects.push(t),t},t.prototype.getGroup=function(t){var e=null;if(null!==t)for(var i=this.referenceObjects.length,r=0;r<i;r++){if(this.referenceObjects.length>0){var n=this.referenceObjects[r];if(n.length>0){var o=n[0];if(t.equalsTo(o)){e=n;break}}else this.removeGroup(n)}i=this.referenceObjects.length}return e},t.prototype.removeGroup=function(t){if(null!==t){var e=this.referenceObjects.indexOf(t);this.referenceObjects.slice(e,e+1)}},t.prototype.destroy=function(){this.pdfFontCollection=void 0,this.referenceObjects=void 0},t}(),xo=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Co=function(t){function e(i){var r=t.call(this)||this;r.defaultMargin=40,r.streamWriter=null,r.document=r;var n=!1;void 0===i?(e.cacheCollection=new Ao,n=!1):n=i;var o=new kr;r.setMainObjectCollection(o);var s=new Xr;s.isMerging=n,s.document=r,r.setCrossTable(s);var a=new Kr;return r.setCatalog(a),o.add(a),a.position=-1,r.sectionCollection=new To(r),r.documentPageCollection=new Lo(r),a.pages=r.sectionCollection,r}return xo(e,t),Object.defineProperty(e,"defaultFont",{get:function(){return null==this.defaultStandardFont&&(this.defaultStandardFont=new Po(or.Helvetica,8)),this.defaultStandardFont},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sections",{get:function(){return this.sectionCollection},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pageSettings",{get:function(){return null==this.settings&&(this.settings=new nn(this.defaultMargin)),this.settings},set:function(t){this.settings=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pages",{get:function(){return this.documentPageCollection},enumerable:!0,configurable:!0}),Object.defineProperty(e,"cache",{get:function(){return void 0===e.cacheCollection||null==e.cacheCollection?new Ao:e.cacheCollection},set:function(t){this.cacheCollection=t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"enableCache",{get:function(){return this.isCacheEnabled},set:function(t){this.isCacheEnabled=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"colorSpace",{get:function(){return this.pdfColorSpace===Zi.Rgb||this.pdfColorSpace===Zi.Cmyk||this.pdfColorSpace===Zi.GrayScale?this.pdfColorSpace:Zi.Rgb},set:function(t){t===Zi.Rgb||t===Zi.Cmyk||t===Zi.GrayScale?this.pdfColorSpace=t:this.pdfColorSpace=Zi.Rgb},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"template",{get:function(){return null==this.pageTemplate&&(this.pageTemplate=new Io),this.pageTemplate},set:function(t){this.pageTemplate=t},enumerable:!0,configurable:!0}),e.prototype.docSave=function(t,e,i){if(this.checkPagesPresence(),null===t)throw new Error("ArgumentNullException : stream");this.streamWriter=t;var r=new Cr(t);if(r.document=this,"boolean"==typeof e&&void 0===i)return this.crossTable.save(r);this.crossTable.save(r,e)},e.prototype.checkPagesPresence=function(){0===this.pages.count&&this.pages.add()},e.prototype.destroy=function(){this.catalog=void 0,this.colorSpace=void 0,this.currentSavingObj=void 0,this.documentPageCollection=void 0,this.isStreamCopied=void 0,this.pageSettings=void 0,this.pageTemplate=void 0,this.pdfColorSpace=void 0,this.sectionCollection=void 0,e.cache.destroy(),this.crossTable.pdfObjects.destroy(),e.cache=void 0,this.streamWriter.destroy()},e.defaultStandardFont=null,e.isCacheEnabled=!0,e}(Ur),Eo=function(){function t(){}return t.getMetrics=function(t,e,i){var r=null;switch(t){case or.Helvetica:r=this.getHelveticaMetrics(t,e,i);break;case or.Courier:r=this.getCourierMetrics(t,e,i);break;case or.TimesRoman:r=this.getTimesMetrics(t,e,i);break;case or.Symbol:r=this.getSymbolMetrics(t,e,i);break;case or.ZapfDingbats:r=this.getZapfDingbatsMetrics(t,e,i);break;default:r=this.getHelveticaMetrics(or.Helvetica,e,i)}return r.name=t.toString(),r.subScriptSizeFactor=this.subSuperScriptFactor,r.superscriptSizeFactor=this.subSuperScriptFactor,r},t.getHelveticaMetrics=function(t,e,i){var r=new Hn;return(e&nr.Bold)>0&&(e&nr.Italic)>0?(r.ascent=this.helveticaBoldItalicAscent,r.descent=this.helveticaBoldItalicDescent,r.postScriptName=this.helveticaBoldItalicName,r.size=i,r.widthTable=new _n(this.arialBoldWidth),r.height=r.ascent-r.descent):(e&nr.Bold)>0?(r.ascent=this.helveticaBoldAscent,r.descent=this.helveticaBoldDescent,r.postScriptName=this.helveticaBoldName,r.size=i,r.widthTable=new _n(this.arialBoldWidth),r.height=r.ascent-r.descent):(e&nr.Italic)>0?(r.ascent=this.helveticaItalicAscent,r.descent=this.helveticaItalicDescent,r.postScriptName=this.helveticaItalicName,r.size=i,r.widthTable=new _n(this.arialWidth),r.height=r.ascent-r.descent):(r.ascent=this.helveticaAscent,r.descent=this.helveticaDescent,r.postScriptName=this.helveticaName,r.size=i,r.widthTable=new _n(this.arialWidth),r.height=r.ascent-r.descent),r},t.getCourierMetrics=function(t,e,i){var r=new Hn;return(e&nr.Bold)>0&&(e&nr.Italic)>0?(r.ascent=this.courierBoldItalicAscent,r.descent=this.courierBoldItalicDescent,r.postScriptName=this.courierBoldItalicName,r.size=i,r.widthTable=new _n(this.fixedWidth),r.height=r.ascent-r.descent):(e&nr.Bold)>0?(r.ascent=this.courierBoldAscent,r.descent=this.courierBoldDescent,r.postScriptName=this.courierBoldName,r.size=i,r.widthTable=new _n(this.fixedWidth),r.height=r.ascent-r.descent):(e&nr.Italic)>0?(r.ascent=this.courierItalicAscent,r.descent=this.courierItalicDescent,r.postScriptName=this.courierItalicName,r.size=i,r.widthTable=new _n(this.fixedWidth),r.height=r.ascent-r.descent):(r.ascent=this.courierAscent,r.descent=this.courierDescent,r.postScriptName=this.courierName,r.size=i,r.widthTable=new _n(this.fixedWidth),r.height=r.ascent-r.descent),r},t.getTimesMetrics=function(t,e,i){var r=new Hn;return(e&nr.Bold)>0&&(e&nr.Italic)>0?(r.ascent=this.timesBoldItalicAscent,r.descent=this.timesBoldItalicDescent,r.postScriptName=this.timesBoldItalicName,r.size=i,r.widthTable=new _n(this.timesRomanBoldItalicWidths),r.height=r.ascent-r.descent):(e&nr.Bold)>0?(r.ascent=this.timesBoldAscent,r.descent=this.timesBoldDescent,r.postScriptName=this.timesBoldName,r.size=i,r.widthTable=new _n(this.timesRomanBoldWidth),r.height=r.ascent-r.descent):(e&nr.Italic)>0?(r.ascent=this.timesItalicAscent,r.descent=this.timesItalicDescent,r.postScriptName=this.timesItalicName,r.size=i,r.widthTable=new _n(this.timesRomanItalicWidth),r.height=r.ascent-r.descent):(r.ascent=this.timesAscent,r.descent=this.timesDescent,r.postScriptName=this.timesName,r.size=i,r.widthTable=new _n(this.timesRomanWidth),r.height=r.ascent-r.descent),r},t.getSymbolMetrics=function(t,e,i){var r=new Hn;return r.ascent=this.symbolAscent,r.descent=this.symbolDescent,r.postScriptName=this.symbolName,r.size=i,r.widthTable=new _n(this.symbolWidth),r.height=r.ascent-r.descent,r},t.getZapfDingbatsMetrics=function(t,e,i){var r=new Hn;return r.ascent=this.zapfDingbatsAscent,r.descent=this.zapfDingbatsDescent,r.postScriptName=this.zapfDingbatsName,r.size=i,r.widthTable=new _n(this.zapfDingbatsWidth),r.height=r.ascent-r.descent,r},t.subSuperScriptFactor=1.52,t.helveticaAscent=931,t.helveticaDescent=-225,t.helveticaName="Helvetica",t.helveticaBoldAscent=962,t.helveticaBoldDescent=-228,t.helveticaBoldName="Helvetica-Bold",t.helveticaItalicAscent=931,t.helveticaItalicDescent=-225,t.helveticaItalicName="Helvetica-Oblique",t.helveticaBoldItalicAscent=962,t.helveticaBoldItalicDescent=-228,t.helveticaBoldItalicName="Helvetica-BoldOblique",t.courierAscent=805,t.courierDescent=-250,t.courierName="Courier",t.courierBoldAscent=801,t.courierBoldDescent=-250,t.courierBoldName="Courier-Bold",t.courierItalicAscent=805,t.courierItalicDescent=-250,t.courierItalicName="Courier-Oblique",t.courierBoldItalicAscent=801,t.courierBoldItalicDescent=-250,t.courierBoldItalicName="Courier-BoldOblique",t.timesAscent=898,t.timesDescent=-218,t.timesName="Times-Roman",t.timesBoldAscent=935,t.timesBoldDescent=-218,t.timesBoldName="Times-Bold",t.timesItalicAscent=883,t.timesItalicDescent=-217,t.timesItalicName="Times-Italic",t.timesBoldItalicAscent=921,t.timesBoldItalicDescent=-218,t.timesBoldItalicName="Times-BoldItalic",t.symbolAscent=1010,t.symbolDescent=-293,t.symbolName="Symbol",t.zapfDingbatsAscent=820,t.zapfDingbatsDescent=-143,t.zapfDingbatsName="ZapfDingbats",t.arialWidth=[278,278,355,556,556,889,667,191,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,278,278,584,584,584,556,1015,667,667,722,722,667,611,778,722,278,500,667,556,833,722,778,667,778,722,667,611,722,667,944,667,667,611,278,278,278,469,556,333,556,556,500,556,556,278,556,556,222,222,500,222,833,556,556,556,556,333,500,278,556,500,722,500,500,500,334,260,334,584,0,556,0,222,556,333,1e3,556,556,333,1e3,667,333,1e3,0,611,0,0,222,222,333,333,350,556,1e3,333,1e3,500,333,944,0,500,667,0,333,556,556,556,556,260,556,333,737,370,556,584,0,737,333,400,584,333,333,333,556,537,278,333,333,365,556,834,834,834,611,667,667,667,667,667,667,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,500,556,556,556,556,278,278,278,278,556,556,556,556,556,556,556,584,611,556,556,556,556,500,556,500],t.arialBoldWidth=[278,333,474,556,556,889,722,238,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,333,333,584,584,584,611,975,722,722,722,722,667,611,778,722,278,556,722,611,833,722,778,667,778,722,667,611,722,667,944,667,667,611,333,278,333,584,556,333,556,611,556,611,556,333,611,611,278,278,556,278,889,611,611,611,611,389,556,333,611,556,778,556,556,500,389,280,389,584,0,556,0,278,556,500,1e3,556,556,333,1e3,667,333,1e3,0,611,0,0,278,278,500,500,350,556,1e3,333,1e3,556,333,944,0,500,667,0,333,556,556,556,556,280,556,333,737,370,556,584,0,737,333,400,584,333,333,333,611,556,278,333,333,365,556,834,834,834,611,722,722,722,722,722,722,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,556,556,556,556,556,278,278,278,278,611,611,611,611,611,611,611,584,611,611,611,611,611,556,611,556],t.fixedWidth=[600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600],t.timesRomanWidth=[250,333,408,500,500,833,778,180,333,333,500,564,250,333,250,278,500,500,500,500,500,500,500,500,500,500,278,278,564,564,564,444,921,722,667,667,722,611,556,722,722,333,389,722,611,889,722,722,556,722,667,556,611,722,722,944,722,722,611,333,278,333,469,500,333,444,500,444,500,444,333,500,500,278,278,500,278,778,500,500,500,500,333,389,278,500,500,722,500,500,444,480,200,480,541,0,500,0,333,500,444,1e3,500,500,333,1e3,556,333,889,0,611,0,0,333,333,444,444,350,500,1e3,333,980,389,333,722,0,444,722,0,333,500,500,500,500,200,500,333,760,276,500,564,0,760,333,400,564,300,300,333,500,453,250,333,300,310,500,750,750,750,444,722,722,722,722,722,722,889,667,611,611,611,611,333,333,333,333,722,722,722,722,722,722,722,564,722,722,722,722,722,722,556,500,444,444,444,444,444,444,667,444,444,444,444,444,278,278,278,278,500,500,500,500,500,500,500,564,500,500,500,500,500,500,500,500],t.timesRomanBoldWidth=[250,333,555,500,500,1e3,833,278,333,333,500,570,250,333,250,278,500,500,500,500,500,500,500,500,500,500,333,333,570,570,570,500,930,722,667,722,722,667,611,778,778,389,500,778,667,944,722,778,611,778,722,556,667,722,722,1e3,722,722,667,333,278,333,581,500,333,500,556,444,556,444,333,500,556,278,333,556,278,833,556,500,556,556,444,389,333,556,500,722,500,500,444,394,220,394,520,0,500,0,333,500,500,1e3,500,500,333,1e3,556,333,1e3,0,667,0,0,333,333,500,500,350,500,1e3,333,1e3,389,333,722,0,444,722,0,333,500,500,500,500,220,500,333,747,300,500,570,0,747,333,400,570,300,300,333,556,540,250,333,300,330,500,750,750,750,500,722,722,722,722,722,722,1e3,722,667,667,667,667,389,389,389,389,722,722,778,778,778,778,778,570,778,722,722,722,722,722,611,556,500,500,500,500,500,500,722,444,444,444,444,444,278,278,278,278,500,556,500,500,500,500,500,570,500,556,556,556,556,500,556,500],t.timesRomanItalicWidth=[250,333,420,500,500,833,778,214,333,333,500,675,250,333,250,278,500,500,500,500,500,500,500,500,500,500,333,333,675,675,675,500,920,611,611,667,722,611,611,722,722,333,444,667,556,833,667,722,611,722,611,500,556,722,611,833,611,556,556,389,278,389,422,500,333,500,500,444,500,444,278,500,500,278,278,444,278,722,500,500,500,500,389,389,278,500,444,667,444,444,389,400,275,400,541,0,500,0,333,500,556,889,500,500,333,1e3,500,333,944,0,556,0,0,333,333,556,556,350,500,889,333,980,389,333,667,0,389,556,0,389,500,500,500,500,275,500,333,760,276,500,675,0,760,333,400,675,300,300,333,500,523,250,333,300,310,500,750,750,750,500,611,611,611,611,611,611,889,667,611,611,611,611,333,333,333,333,722,667,722,722,722,722,722,675,722,722,722,722,722,556,611,500,500,500,500,500,500,500,667,444,444,444,444,444,278,278,278,278,500,500,500,500,500,500,500,675,500,500,500,500,500,444,500,444],t.timesRomanBoldItalicWidths=[250,389,555,500,500,833,778,278,333,333,500,570,250,333,250,278,500,500,500,500,500,500,500,500,500,500,333,333,570,570,570,500,832,667,667,667,722,667,667,722,778,389,500,667,611,889,722,722,611,722,667,556,611,722,667,889,667,611,611,333,278,333,570,500,333,500,500,444,500,444,333,500,556,278,278,500,278,778,556,500,500,500,389,389,278,556,444,667,500,444,389,348,220,348,570,0,500,0,333,500,500,1e3,500,500,333,1e3,556,333,944,0,611,0,0,333,333,500,500,350,500,1e3,333,1e3,389,333,722,0,389,611,0,389,500,500,500,500,220,500,333,747,266,500,606,0,747,333,400,570,300,300,333,576,500,250,333,300,300,500,750,750,750,500,667,667,667,667,667,667,944,667,667,667,667,667,389,389,389,389,722,722,722,722,722,722,722,570,722,722,722,722,722,611,611,500,500,500,500,500,500,500,722,444,444,444,444,444,278,278,278,278,500,556,500,500,500,500,500,570,500,556,556,556,556,444,500,444],t.symbolWidth=[250,333,713,500,549,833,778,439,333,333,500,549,250,549,250,278,500,500,500,500,500,500,500,500,500,500,278,278,549,549,549,444,549,722,667,722,612,611,763,603,722,333,631,722,686,889,722,722,768,741,556,592,611,690,439,768,645,795,611,333,863,333,658,500,500,631,549,549,494,439,521,411,603,329,603,549,549,576,521,549,549,521,549,603,439,576,713,686,493,686,494,480,200,480,549,750,620,247,549,167,713,500,753,753,753,753,1042,987,603,987,603,400,549,411,549,549,713,494,460,549,549,549,549,1e3,603,1e3,658,823,686,795,987,768,768,823,768,768,713,713,713,713,713,713,713,768,713,790,790,890,823,549,250,713,603,603,1042,987,603,987,603,494,329,790,790,786,713,384,384,384,384,384,384,494,494,494,494,329,274,686,686,686,384,384,384,384,384,384,494,494,494,-1],t.zapfDingbatsWidth=[278,974,961,974,980,719,789,790,791,690,960,939,549,855,911,933,911,945,974,755,846,762,761,571,677,763,760,759,754,494,552,537,577,692,786,788,788,790,793,794,816,823,789,841,823,833,816,831,923,744,723,749,790,792,695,776,768,792,759,707,708,682,701,826,815,789,789,707,687,696,689,786,787,713,791,785,791,873,761,762,762,759,759,892,892,788,784,438,138,277,415,392,392,668,668,390,390,317,317,276,276,509,509,410,410,234,234,334,334,732,544,544,910,667,760,760,776,595,694,626,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,894,838,1016,458,748,924,748,918,927,928,928,834,873,828,924,924,917,930,931,463,883,836,836,867,867,696,696,874,874,760,946,771,865,771,888,967,888,831,873,927,970,918],t}(),ko=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Po=function(t){function e(i,r,n){var o=t.call(this,r,void 0===n?i instanceof e?i.style:nr.Regular:n)||this;return o.dictionaryProperties=new yi,o.encodings=["Unknown","StandardEncoding","MacRomanEncoding","MacExpertEncoding","WinAnsiEncoding","PDFDocEncoding","IdentityH"],o.pdfFontFamily=void 0===i?or.Helvetica:i instanceof e?i.fontFamily:i,o.checkStyle(),o.initializeInternals(),o}return ko(e,t),Object.defineProperty(e.prototype,"fontFamily",{get:function(){return this.pdfFontFamily},enumerable:!0,configurable:!0}),e.prototype.checkStyle=function(){if(this.fontFamily===or.Symbol||this.fontFamily===or.ZapfDingbats){var t=this.style;t&=~(nr.Bold|nr.Italic),this.setStyle(t)}},e.prototype.getLineWidth=function(t,i){if(null==t)throw new Error("ArgumentNullException:line");var r=0;this.name;for(var n=0,o=(t=e.convert(t)).length;n<o;n++){var s=t[n];r+=this.getCharWidthInternal(s,i)}var a=this.metrics.getSize(i);return r*=xr.charSizeMultiplier*a,r=this.applyFormatSettings(t,i,r)},e.prototype.equalsToFont=function(t){var e=!1,i=t;if(null!=i){var r=this.fontFamily===i.fontFamily,n=~(nr.Underline|nr.Strikeout),o=(this.style&n)===(i.style&n);e=r&&o}return e},e.prototype.initializeInternals=function(){Co.cache.search(this);var t,e=Eo.getMetrics(this.pdfFontFamily,this.style,this.size);this.metrics=e,t=this.createInternals(),this.setInternals(t)},e.prototype.createInternals=function(){var t=new mi;if(t.items.setValue(this.dictionaryProperties.type,new fi(this.dictionaryProperties.font)),t.items.setValue(this.dictionaryProperties.subtype,new fi(this.dictionaryProperties.type1)),t.items.setValue(this.dictionaryProperties.baseFont,new fi(this.metrics.postScriptName)),this.fontFamily!==or.Symbol&&this.fontFamily!==or.ZapfDingbats){var e=this.encodings[cr.WinAnsiEncoding];t.items.setValue(this.dictionaryProperties.encoding,new fi(e))}return t},e.prototype.getCharWidthInternal=function(t,i){var r=0;return r=t.charCodeAt(0),"0"!==this.name&&"1"!==this.name&&"2"!==this.name&&"3"!==this.name&&"4"!==this.name||(r-=e.charOffset),r=r>=0&&128!==r?r:0,this.metrics.widthTable.items(r)},e.convert=function(t){return t},e.charOffset=32,e}(xr),Uo=[{prefixIcon:"e-close",tooltipText:"Close",text:"Close",id:"closeDocument"},{prefixIcon:"e-export",tooltipText:"export",text:"export",id:"exportDocument"},{prefixIcon:"e-save",tooltipText:"Save",text:"Save",id:"saveDocument"},"Separator","Undo","Redo","Separator","Image","Table","Hyperlink","Bookmark","TableOfContents","Separator","Header","Footer","PageSetup","PageNumber","Break","InsertFootnote","InsertEndnote","Separator","Find","Separator","Comments","TrackChanges","LocalClipboard","Separator","FormFields","UpdateFields"];l.DocumentEditorComponent.Inject(l.Print,l.SfdtExport,l.WordExport,l.TextExport,l.Selection,l.Search,l.Editor,l.ImageResizer,l.EditorHistory,l.ContextMenu,l.OptionsPane,l.HyperlinkDialog,l.TableDialog,l.BookmarkDialog,l.TableOfContentsDialog,l.PageSetupDialog,l.StyleDialog,l.ListDialog,l.ParagraphDialog,l.BulletsAndNumberingDialog,l.FontDialog,l.TablePropertiesDialog,l.BordersAndShadingDialog,l.TableOptionsDialog,l.CellOptionsDialog,l.StylesDialog,l.Toolbar),l.DocumentEditorContainerComponent.Inject(l.Toolbar,l.EditorHistory);var Qo=function(t){function e(e){return t.call(this,e)||this}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}Ve(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}(e,t),e.prototype.render=function(){return M.default.createElement(M.default.Fragment,null)},e.prototype.componentDidMount=function(){},e.prototype.handleChange=function(t,e,i,r){var n;void 0===i&&(i=-1),void 0===r&&(r="");var o,s=Object.keys(e)[0],a=e[s];o=(i=Number(i))>-1&&r?a[r][i]:i>-1?a[i]:a,t&&t.target?"checkbox"===t.target.type?o[t.target.name]=t.target.checked:t.target.element&&t.target.element.classList&&t.target.element.classList.contains("dropdown")?o[t.target.name]=t.target.value[t.target.props.dataItemKey]:o[t.target.name]=t.target.value:t.element&&(null===(n=t.element)||void 0===n?void 0:n.ej2_instances.length)>0&&t.element&&t.element.classList&&(t.element.classList.contains("e-combobox")||t.element.classList.contains("e-multiselect"))&&(o[t.element.ej2_instances[0].name]=t.value),e[s]=a,this.setState(e)},e.prototype.initializePageIndex=function(t){for(var e=0;e<t.length;e++)t[e].rowIndex=e+1;return t},e.prototype.getMenuPrivileges=function(t,e,i){return new Promise(function(r,n){return m.default.get(i+"core/7bda9c96-1af4-4b19-aa6d-98e1995e4255/generic/getUserPrivilege?userId="+t+"&menuId="+e).then(function(t){var e=JSON.parse(t.data.data.rulQwyuLst);r(e.map(function(t){return t.rightsCode}))})})},e}(M.default.Component);p.pdfjs.GlobalWorkerOptions.workerSrc="https://gbs-pdfworker.pages.dev/pdf.worker.min.js";var Yo={cMapUrl:"/cmaps/",standardFontDataUrl:"/standard_fonts/"};exports.Base=function(e){var i=e.children,r=e.configUrl,n=t.useState(!0),o=n[0],s=n[1];return t.useEffect(function(){a.configService.loadConfigData(r).then(function(t){t&&s(!1)})},[]),M.default.createElement(M.default.Fragment,null,!o&&i)},exports.BaseComponent=Qo,exports.Button=function(t){var e=t.id,i=void 0===e?"":e,r=t.value,n=void 0===r?"":r,o=t.type,s=t.className,a=void 0===s?"":s,u=t.onClick,c=t.iconClass,h=void 0===c?"":c,l=t.name,p=t.disabled,g=t.title;return M.default.createElement("div",null,M.default.createElement("button",{type:o,className:a,onClick:u,id:i,name:l,disabled:p,title:g},h&&M.default.createElement("i",{className:h}),n))},exports.CheckBox=function(t){var e=t.className,i=t.id,r=t.label,n=t.onChange,o=t.disabled,s=t.name,a=t.checked,u=t.change;return y.createElement("div",null,y.createElement("label",{htmlFor:i,className:"form-label"},r),y.createElement("input",{className:e,type:"checkbox",name:s,onChange:function(t){var e=t.target;u&&u(e),n&&n(t)},checked:a,disabled:o}))},exports.DatePicker=function(i){var r=i.id,n=i.placeholder,o=void 0===n?"":n,s=i.value,a=void 0===s?"":s,u=i.onChange,c=i.onClear,h=i.className,l=void 0===h?"":h,p=i.label,g=void 0===p?"":p,d=i.required,f=i.format,y=i.name,m=i.disabled,N=i.min,j=i.max,D=i.allowEdit,S=i.allowTimePicker;i.enabled;var v=i.start,I=i.depth,z=t.useState(m||!1),b=z[0],w=z[1];return t.useEffect(function(){void 0!==m&&w(m||!1)},[m]),M.default.createElement("div",null,g&&M.default.createElement("label",{htmlFor:r,className:"form-label"},g," ",d?M.default.createElement("i",{className:"req-lbl"},"*"):M.default.createElement(M.default.Fragment,null)),S?M.default.createElement(e.DateTimePickerComponent,{id:r,placeholder:o,value:a,onChange:u,cleared:c,className:l,format:f,name:y,disabled:m,enabled:!b,type:"datepicker",min:N,max:j,allowEdit:D}):M.default.createElement(e.DatePickerComponent,{id:r,placeholder:o,value:a,onChange:u,cleared:c,className:l,format:f,name:y,enabled:!b,disabled:m,type:"datepicker",min:N,max:j,allowEdit:D,start:v,depth:I}))},exports.Dialog=function(){var t,e,i,n=function(){a.messageService.broadcast({key:e,status:"action1",keyData:i}),t.hide()},o=function(){a.messageService.broadcast({key:e,status:"action2"}),t.hide()},s=function(){a.messageService.sendMessage({key:"bb_dialog_res",status:"clicked",keyData:i}),t.hide()},u=document.getElementsByTagName("body")[0];return u.hasAttribute("data-listener-dialog-alert")||(document.addEventListener("dialog_alert",function(a){"dialog_alert"===a.detail.key&&(e=a.detail.callbackUrl,i=a.detail.keyData,t="confirm"===a.detail.type?r.DialogUtility.confirm({title:a.detail.title,content:a.detail.content,width:a.detail.width?a.detail.width:"500px",position:a.detail.position?a.detail.position:{X:"center",Y:"center"},okButton:Fe(Fe({},a.detail.okButton),{click:n.bind(this)}),cancelButton:Fe(Fe({},a.detail.cancelButton),{click:o.bind(this)})}):r.DialogUtility.alert({title:a.detail.title,content:a.detail.content,width:a.detail.width?a.detail.width:"500px",position:a.detail.position?a.detail.position:{X:"center",Y:"center"},okButton:Fe(Fe({},a.detail.okButton),{click:s.bind(this)})}))}),u.setAttribute("data-listener-dialog-alert","true")),M.default.createElement("div",{id:"dialog-target"})},exports.DocumentViewer=function(e){var i,r=e.documentId,n=e.documentAPI,o=e.documentName,s=e.content,u=e.replaceToken,c=e.fileName,h=e.restrictEditing,p=e.onClose,g=e.saved,d=t.useState({documentAPI:"",documentId:"",readOnly:!1,documentName:""}),f=d[0],y=d[1],m=t.useState(),N=m[0],j=m[1],D=t.useState(!1),S=D[0],v=D[1],I=t.useState(!0),z=I[0],b=I[1];t.useEffect(function(){w(),v(h)},[]);var w=function(){y({documentId:r,documentAPI:n,documentName:o,readOnly:!1})};t.useEffect(function(){s&&i?(j(s),O(s)):""!=f.documentAPI&&""!=f.documentId&&(b(!0),T(f.documentId))},[f.documentId,s]),t.useEffect(function(){if(a.utilService.validString(u)&&i)for(var t=N,e=0;e<u.length;e++){var r=u[e];t=null==t?void 0:t.replace(r.key,r.value),null==i||i.open(t)}},[u,N]);var O=function(t){null==i||i.open(t),setTimeout(function(){A()},1e3)},T=function(t){var e=new XMLHttpRequest,r={keyXc:t},n=f.documentAPI+"api/DocumentEditor/LoadDocument";e.open("POST",n,!0),e.setRequestHeader("Content-Type","application/json;charset=UTF-8"),e.setRequestHeader("Access-Control-Allow-Origin","http://localhost:5002"),e.onreadystatechange=function(){if(4===e.readyState&&(200===e.status||304===e.status)){i.open(e.responseText);var t=i.serialize();j(t),setTimeout(function(){i.enableTrackChanges||(i.enableTrackChanges=!0)},1e3)}},e.send(JSON.stringify(r))},L=function(t){"closeDoc"==t&&(b(!1),null==p||p(z),y({documentId:"",documentAPI:n,documentName:o,readOnly:!1}));var e=JSON.stringify({message:t,date:Date.now()});window.parent.postMessage(e,"*")},A=function(){S||C()},x=function(){var t=new Co,e=null==i?void 0:i.pageCount;i.documentEditorSettings.printDevicePixelRatio=2;for(var r=0,n=function(n){setTimeout(function(){var o=i.exportAsImage(n,"image/jpeg");o.onload=function(){var i=parseInt(o.style.height.toString().replace("px","")),n=parseInt(o.style.width.toString().replace("px","")),s=t.sections.add(),a=new nn(0);n>i&&(a.orientation=Wr.Landscape),a.size=new Nr(n,i),s.setPageSettings(a);var u=s.pages.add().graphics,h=o.src.replace("data:image/jpeg;base64,",""),l=new zn(h);u.drawImage(l,0,0,n,i),++r==e&&t.save((c||"sample")+".pdf")}},500)},o=1;o<=e;o++)n(o)},C=function(){var t=i.serialize(),e={keyXc:f.documentId,Content:t},r=new XMLHttpRequest;r.open("POST",n+"api/DocumentEditor/Save",!0),r.setRequestHeader("Content-Type","application/json;charset=UTF-8"),r.send(JSON.stringify(e)),null==g||g(!0)};return M.default.createElement(M.default.Fragment,null,""!=f.documentAPI&&z&&M.default.createElement(M.default.Fragment,null,M.default.createElement("div",null,M.default.createElement(l.DocumentEditorContainerComponent,{height:"100vh",enableToolbar:!0,serviceUrl:n+"/",enableTrackChanges:!0,ref:function(t){t&&t.documentEditor&&(i=t.documentEditor)},toolbarItems:Uo,toolbarClick:function(t){switch(t.item.id){case"exportDocument":x();break;case"saveDocument":A();break;case"closeDocument":L("closeDoc");break;case"expand":L("expand")}}.bind(undefined),documentEditorSettings:{optimizeSfdt:!1},restrictEditing:S}))))},exports.DropDown=function(e){var n=e.id,o=e.name,s=e.dataSource,a=e.fields,u=e.sortOrder,c=e.placeholder,h=e.allowFiltering,l=e.popupHeight,p=e.required,g=e.label,d=e.autofill,f=e.onChange,y=e.value,m=e.className,N=e.disabled;e.showSelectAll;var j=e.displayText,D=e.filterable,S=e.onFilterChange,v=e.dropDownRef,I=e.readonly,z=e.filterType,b=e.valueTemplate,w=e.itemTemplate,O=t.useState(),T=O[0],L=O[1],A=t.useRef(null);t.useEffect(function(){null==v||v(A)},[]),t.useEffect(function(){var t;L(null===(t=null==A?void 0:A.current)||void 0===t?void 0:t.text)},[y]),t.useEffect(function(){j&&(A.current.text=j)},[s]);var x=function(t){var e;null==f||f(t,{}),L(null===(e=null==A?void 0:A.current)||void 0===e?void 0:e.text)},C=function(t){if(D&&(null==S||S(t)),"contains"===z&&s&&a){var e=s.filter(function(e){return e[a.text].toLowerCase().includes(t.text.toLowerCase())});t.updateData&&t.updateData(e,"")}};return M.default.createElement("div",{className:""},g&&M.default.createElement("label",{htmlFor:n,className:"form-label"},g," ",p?M.default.createElement("i",{className:"req-lbl"},"*"):M.default.createElement(M.default.Fragment,null)),M.default.createElement(r.TooltipComponent,{beforeOpen:function(t){return function(t,e){e||(t.cancel=!0)}(t,T)},content:T},I?M.default.createElement(i.DropDownListComponent,{id:n,name:o,popupHeight:l,dataSource:s,fields:a,placeholder:c,sortOrder:u,filtering:C,allowFiltering:h,change:x,value:y,className:m,enabled:!N,type:"dropdown",ref:A,valueTemplate:b,itemTemplate:w}):M.default.createElement(i.ComboBoxComponent,{id:n,name:o,popupHeight:l,dataSource:s,fields:a,placeholder:c,sortOrder:u,autofill:d,filtering:C,allowFiltering:h,change:x,value:y,className:m,enabled:!N,type:"dropdown",allowCustom:!1,ref:A,valueTemplate:b,itemTemplate:w})))},exports.DropDownTree=function(t){var e=t.fields,r=t.allowFiltering,n=t.id,o=t.onChange,s=t.value,a=t.name,u=t.className,c=t.disabled;return M.default.createElement(i.DropDownTreeComponent,{id:n,fields:e,allowFiltering:r,change:o,value:s,name:a,className:u,disabled:c,type:"dropdowntree"})},exports.Grid=function(e){var i=e.pageSize,r=e.dataSource,o=e.allowPaging,s=e.columns,a=void 0===s?[]:s,u=e.columnName,c=e.className,h=e.allowColumnSearch,l=e.allowGenericSearch,p=e.allowExcelExport,g=e.allowPdfExport,d=e.id,f=e.onRowSelectionChanged,y=e.excelFileName,m=void 0===y?"Excel_Export":y;e.toolBarName;var N,j=e.pdfOrientation,D=e.onRefresh,S=e.allowCheckBox,v=e.selectedRows,I=e.checkboxSelectionOnly,z=e.selectionDisable,b=e.pageSetting,w=e.dataStateChange,O=e.serverSidePagination,T=void 0!==O&&O,L=e.onExcelExport,A=e.onPdfExport,x=e.initiateExcelExport,C=e.initiatepdfExport,E=e.excelExportCompleted,k=e.pdfExportCompleted,P=e.hideOnReport,U=void 0===P?[]:P,Q=e.currentPage,Y=e.height,R=e.width,V=e.frozenRows,F=e.frozenColumns,B=e.rowSelectStyle,W=void 0===B?{}:B,G=e.gridRef,H=e.currentPageNumber,q=e.isFilterClearing,_=e.getActiveFilterCriteria,J=e.nonExportableColumns,Z=e.allowResizing,K=void 0!==Z&&Z,X=e.defaultFilter,$=void 0===X?[]:X,tt=e.allowTextWrap,et=void 0!==tt&&tt,it=t.useState(r),rt=it[0],nt=it[1],ot=t.useState(),st=ot[0],at=ot[1],ut={type:"Menu",operators:{stringOperator:[{value:"contains",text:"Contains"}]},showFilterBarOperator:!0},ct=!1,ht=function(){var t;null===(t=document.getElementById((null==N?void 0:N.element.id)+"_searchbar"))||void 0===t||t.addEventListener("keyup",function(t){null==N||N.search(t.target.value)})},lt=function(t){var e;return null==f||f(N.getSelectedRecords(),t),N&&(e=N.getSelectedRecords()),e};t.useEffect(function(){b?at(b):(0===Q||Q>0)&&0!==st&&at(Q)},[b,Q]),t.useEffect(function(){jt()},[st]),t.useEffect(function(){o||(N.searchSettings.key="")},[o]),t.useEffect(function(){if(x&&T)Dt(!1),N.excelExport({fileName:"".concat(m,".xlsx")}),null==E||E(dt());else if(C&&T){var t={fileName:"".concat(m,".pdf"),pageOrientation:j};N.pdfExport(t),null==k||k(dt())}},[x,C]),t.useEffect(function(){T&&r&&(N.dataSource={result:r,count:Number((null==r?void 0:r.length)>0?r[0].totalCount:0)});var t=document.getElementById(d+"_clearbutton");t&&!ct&&(t.removeEventListener("click",pt),t.addEventListener("click",pt),ct=!0)},[r]),t.useEffect(function(){for(var t=0;t<$.length;t++)null==N||N.filterByColumn($[t].field,"contains",$[t].value)},[$]);var pt=function(){var t;null===(t=document.getElementById(d+"_searchbutton"))||void 0===t||t.click()};t.useEffect(function(){return G&&G(N),D&&D(gt),v&&v(lt),function(){var t=document.getElementById(d+"_clearbutton");t&&t.removeEventListener("click",pt)}},[]);var gt=function(t){void 0===t&&(t=!1),N.clearSelection(),N.refresh(),t&&N.clearFiltering()},dt=function(){var t,e,i=[];for(var r in null===(t=null==N?void 0:N.filterModule)||void 0===t?void 0:t.values)i.push({field:r,value:null===(e=null==N?void 0:N.filterModule)||void 0===e?void 0:e.values[r]});return i},ft=function(t){var e=null==a?void 0:a.filter(function(t){return!(null==J?void 0:J.includes(null==t?void 0:t.field))});if(N&&t.item.id===d+"_excelexport")T?null==L||L(dt()):(null==J?void 0:J.length)?N.excelExport({fileName:"".concat(m,".xlsx"),columns:e}):N.excelExport({fileName:"".concat(m,".xlsx")});else if(N&&t.item.id===d+"_pdfexport"){var i=void 0;i=(null==J?void 0:J.length)?{fileName:"".concat(m,".pdf"),pageOrientation:j,columns:e}:{fileName:"".concat(m,".pdf"),pageOrientation:j},T?null==A||A(dt()):N.pdfExport(i)}};t.useMemo(function(){return nt(r),r&&u?Je.distinct(r,u):[]},[r,u]);var Mt={pageSize:i},yt=[];l&&(yt=Ge([],["Search"],!0)),p&&(yt=Ge(Ge([],yt,!0),["ExcelExport"],!1)),g&&(yt=Ge(Ge([],yt,!0),["PdfExport"],!1)),l||p||g||(yt=void 0);var mt={type:"Multiple",persistSelection:!0,checkboxOnly:I},Nt=function(t){W&&W.key&&(!0===t.data[W.key]&&(t.row.style.backgroundColor=W.color,t.row.querySelectorAll(".e-leftfreeze").forEach(function(t){t.style.backgroundColor=W.color})));(null==z?void 0:z.some(function(e){return e.colName in t.data&&e.colId===t.data[e.colName]}))&&(t.isSelectable=!1)},jt=function(){var t;H&&H(null===(t=null==N?void 0:N.pageSettings)||void 0===t?void 0:t.currentPage),T&&N?(0==st||st>0)&&(N.pageSettings.currentPage=st+1,at(null)):st&&N&&(N.pageSettings.currentPage=st,at(null))},Dt=function(t){for(var e=function(e){var i=N.columns.find(function(t){return t.field===U[e]});i&&(i.visible=t)},i=0;i<(null==U?void 0:U.length);i++)e(i)};function St(t,e){return e?'\n <span style="color: red"> *</span>\n <span class="e-headertext">'.concat(t,"</span>\n "):'<span class="e-headertext">'.concat(t,"</span>")}var vt=function(t){t.column.template&&"EllipsisWithTooltip"===t.column.clipMode&&t.cell.classList.remove("e-ellipsistooltip")},It=function(t){"ArrowRight"!=t.key&&"ArrowLeft"!=t.key&&"Tab"!=t.key||(t.target.classList.contains("e-textbox")||t.target.classList.contains("e-combobox")||t.target.classList.contains("e-multiselect"))&&(t.cancel=!0)},zt=function(t){"filtering"!==t.requestType&&"paging"!==t.requestType||_&&_(dt())};return T?M.default.createElement(n.GridComponent,{allowPaging:!0,pageSettings:Mt,className:c,toolbar:yt,filterSettings:h?ut:void 0,allowFiltering:!!h,ref:function(t){t&&(N=t)},actionComplete:zt,allowExcelExport:p,allowPdfExport:g,toolbarClick:ft,created:ht,id:d,rowSelected:lt,rowDeselected:lt,selectionSettings:mt,rowDataBound:Nt,dataBound:jt,dataStateChange:w,queryCellInfo:vt,excelExportComplete:function(){Dt(!0)},height:Y||"",width:R||"",frozenRows:V,frozenColumns:F,keyPressed:It,allowResizing:K,allowTextWrap:et},M.default.createElement(n.ColumnsDirective,null,S&&M.default.createElement(n.ColumnDirective,{type:"checkbox",width:"50"}),a.map(function(t){return M.default.createElement(n.ColumnDirective,{type:t.type?t.type:"string",key:t.field,width:t.width,textAlign:t.textAlign,headerText:t.headerText?t.headerText:t.templateHeaderText,template:t.template?t.template:void 0,field:t.field,format:t.format,allowFiltering:1==t.allowFiltering,clipMode:t.clipMode,isPrimaryKey:t.isPrimaryKey,visible:t.visible,headerTemplate:t.headerText?St(t.headerText,t.mandatory):t.headerTemplate})})),M.default.createElement(n.Inject,{services:[n.Page,n.Sort,n.Filter,n.Group,n.Search,n.Toolbar,n.ExcelExport,n.PdfExport,n.Resize]})):M.default.createElement(n.GridComponent,{dataSource:rt,allowPaging:o,pageSettings:Mt,className:c,toolbar:yt,filterSettings:h?ut:void 0,allowFiltering:!!h,ref:function(t){t&&(N=t)},actionBegin:function(t){"filtering"===t.requestType&&q&&q(!0)},actionComplete:zt,allowExcelExport:p,allowPdfExport:g,toolbarClick:ft,created:ht,id:d,rowSelected:lt,rowDeselected:lt,selectionSettings:mt,rowDataBound:Nt,dataBound:jt,queryCellInfo:vt,height:Y||"",width:R||"",frozenRows:V,frozenColumns:F,keyPressed:It,allowResizing:K,allowTextWrap:et},M.default.createElement(n.ColumnsDirective,null,S&&M.default.createElement(n.ColumnDirective,{type:"checkbox",width:"50"}),a.map(function(t){return M.default.createElement(n.ColumnDirective,{type:t.type?t.type:"string",key:t.field,width:t.width,textAlign:t.textAlign,headerText:t.headerText?t.headerText:t.templateHeaderText,template:t.template?t.template:void 0,field:t.field,format:t.format,allowFiltering:1==t.allowFiltering,clipMode:t.clipMode,isPrimaryKey:t.isPrimaryKey,visible:t.visible,headerTemplate:t.headerText?St(t.headerText,t.mandatory):t.headerTemplate})})),M.default.createElement(n.Inject,{services:[n.Page,n.Sort,n.Filter,n.Group,n.Search,n.Toolbar,n.ExcelExport,n.PdfExport,n.Resize]}))},exports.IdleMonitor=function(e){var i,r,n=e.logOut,o=e.extendSession,s=t.useState(!1),a=s[0],u=s[1],c=["load","mousemove","mousedown","click","scroll","keypress"],h=function(){i&&clearTimeout(i),r&&clearTimeout(r),i=setTimeout(function(){return u(!0)},6e4),r=setTimeout(function(){return n},6e4)};return t.useEffect(function(){for(var t in c)window.addEventListener(c[t],h);return function(){for(var t in c)window.removeEventListener(c[t],h)}},[]),M.default.createElement(M.default.Fragment,null,M.default.createElement(ai,{title:"Session expire warning",show:a,onClose:function(){u(!1)},toggle:function(){return u(!1)},closeBtn:!1},M.default.createElement("div",{className:"mt-2"},"your session will expire in ",1," minutes. Do you want to extend the session?"),M.default.createElement("div",{className:"mt-5 btnMain"},M.default.createElement("button",{className:"btn btn-info me-2",onClick:n},"Logout"),M.default.createElement("button",{className:"btn btn-success",onClick:o},"Extend session"))))},exports.Modal=function(e){var i=e.isOpen,r=e.setIsOpen,n=e.onButtonClick,o=e.children,s=e.title,a=e.confirmBtn,u=void 0===a?"Yes":a,c=e.deletBtn,h=void 0===c?"No":c,l=function(t){n(t),r(!1)},p=function(t){t.target.closest(".bb-modal-container")||r(!1)};t.useEffect(function(){return i?document.addEventListener("mousedown",p):document.removeEventListener("mousedown",p),function(){document.removeEventListener("mousedown",p)}},[i,r]);var g=function(t){var e=t.children,i=t.onClick,r=t.className;return M.default.createElement("button",{onClick:i,className:r},e)};return i&&M.default.createElement("div",{className:"bb-modal-container"},M.default.createElement("div",{className:"bb-modal-content"},M.default.createElement("p",{className:"bb-modal-title"},s),M.default.createElement("div",{className:"bb-modal-children"},o),M.default.createElement("div",{className:"bb-modal-buttons"},M.default.createElement(g,{onClick:function(){return l("Action_1")},className:"bb-modal-buttons-action1"},u),M.default.createElement(g,{onClick:function(){return l("Action_2")},className:"bb-modal-buttons-action2"},h))))},exports.MultiSelectDropdown=function(t){var e=t.dataSource,r=t.placeholder,n=t.fields,o=t.onChange,s=t.className,a=t.required,u=t.label,c=t.id,h=t.name,l=t.mode,p=t.value,g=t.disabled,d=t.showSelectAll,f=t.idForSelectAll,y=t.allowFiltering,m=t.filterType,N=t.onFilterChange,j=t.onBlur,D=t.onBlurCallback;return M.default.createElement("div",null,u&&M.default.createElement("label",{htmlFor:c,className:"form-label"},u," ",a?M.default.createElement("i",{className:"req-lbl"},"*"):M.default.createElement(M.default.Fragment,null)),M.default.createElement(i.MultiSelectComponent,{id:c,dataSource:e,placeholder:r,change:function(t){f&&t.value&&e.length>0&&(t.value.length===e.length||t.value.length>=1e3)?(t.value=["5449A75B-7A82-41F4-BCC0-23391656568D"],null==o||o(t,{})):null==o||o(t,{})},value:p,fields:n,mode:l,className:s,name:h,changeOnBlur:!1,enabled:!g,type:"multiselect",selectAllText:"Select All",unSelectAllText:"UnSelect All",showSelectAll:d,enableSelectionOrder:!1,allowFiltering:y,filtering:"contains"===m?function(t){var i=e.filter(function(e){return e[n.text].toLowerCase().includes(t.text.toLowerCase())});t.updateData(i,""),null==N||N(t)}:void 0,onBlur:j,blur:D},M.default.createElement(i.Inject,{services:[i.CheckBoxSelection]})))},exports.Popup=ai,exports.Selector=function(t){var e=t.label,i=t.action,r=t.onSelect,n=t.className,o=t.id,s=t.name,a=function(t){var e=t.target.value;r&&r(e)},u=null==i?void 0:i.map(function(t){return M.default.createElement("div",{key:t},M.default.createElement("input",{type:"radio",id:t,name:s,value:t,onChange:a})," ",t)});return M.default.createElement("div",{className:n,id:o},e," : ",u)},exports.SimplePdfViewer=function(e){var i=e.apiUrl,r=e.maxWidth,n=void 0===r?300:r,o=e.isCarousal,s=void 0!==o&&o,a=e.pageMargin,u=void 0===a?8:a,c=t.useState(),h=c[0],l=c[1];return M.default.createElement("div",{className:"gbs-simplePdfViewer-container"},M.default.createElement("div",{className:"gbs-simplePdfViewer-document-container"},M.default.createElement(p.Document,{file:i,onLoadSuccess:function(t){var e=t.numPages;l(e)},options:Yo},s?M.default.createElement(j.default,Fe({},{dots:!0,infinite:!1,speed:500,slidesToShow:1,slidesToScroll:1}),Array.from(new Array(h||0),function(t,e){return M.default.createElement("div",{key:"page_".concat(e+1),style:{marginRight:"".concat(u,"px"),width:"".concat(n,"px")}},M.default.createElement(p.Page,{pageNumber:e+1,width:n}))})):Array.from(new Array(h||0),function(t,e){return M.default.createElement("div",{key:"page_".concat(e+1),style:{marginRight:"".concat(u,"px"),width:"".concat(n,"px")}},M.default.createElement(p.Page,{pageNumber:e+1,width:n}))}))))},exports.TextArea=function(e){var i=e.id,n=e.name,o=e.rows,s=e.cols,a=e.value,u=e.label,c=void 0===u?"":u,h=e.onChange,l=e.required,p=e.className,g=e.placeholder,d=e.disabled,f=e.onKeypress,y=e.maxLength,m=e.onBlur,N=e.defaultValue,j=e.enableTooltip,D=e.maxWords,S=t.useState(""),v=S[0],I=S[1],z=t.useRef(null);t.useEffect(function(){var t;I(null===(t=z.current)||void 0===t?void 0:t.value)},[N,a]);var b=function(t,e){e&&j||(t.cancel=!0)},w=function(t){var e=t.target.value,i=e.trim().split(/\s+/);D&&i.length>D||(I(e),null==h||h(t,{}))},O=function(t){t.stopPropagation(),null==f||f(t)};return M.default.createElement(M.default.Fragment,null,c&&M.default.createElement("label",{htmlFor:i,className:"form-label"},c," ",l?M.default.createElement("i",{className:"req-lbl"},"*"):M.default.createElement(M.default.Fragment,null)),null!=a?M.default.createElement(r.TooltipComponent,{beforeOpen:function(t){return b(t,v)},content:j?v:""},M.default.createElement("textarea",{id:i,name:n,rows:o,cols:s,value:a,onChange:w,onKeyDown:O,required:l,className:p,placeholder:g,disabled:d,maxLength:y,ref:z})):M.default.createElement(r.TooltipComponent,{beforeOpen:function(t){return b(t,v)},content:j?v:""},M.default.createElement("textarea",{id:i,name:n,rows:o,cols:s,onChange:w,required:l,className:p,placeholder:g,disabled:d,onKeyDown:O,defaultValue:N,onBlur:m,maxLength:y,ref:z})))},exports.TextTooltip=function(t){var e=t.title,i=t.tooltip;return M.default.createElement("span",{className:"bb-tooltip"},M.default.createElement("span",{className:"bb-data"},e),M.default.createElement("span",{className:"bb-tooltiptext"},i))},exports.Textbox=function(e){var i=e.type,n=void 0===i?"text":i,o=e.disabled,s=void 0!==o&&o,a=e.required,u=void 0!==a&&a,c=e.className,h=void 0===c?"":c,l=e.name,p=void 0===l?"":l,g=e.placeholder,d=void 0===g?"":g,f=e.value,y=e.onChange,m=e.onKeyPress,N=e.onKeyDown,j=e.label,D=void 0===j?"":j,S=e.id,v=e.minLength,I=e.maxLength,z=e.step,b=e.pattern,w=void 0===b?"":b,O=e.onBlur,T=e.defaultValue,L=e.checked,A=void 0!==L&&L,x=e.enableTooltip,C=e.disablePasting,E=void 0!==C&&C,k=e.autoComplete,P=void 0===k?"":k,U=e.inputRef,Q=t.useState(!1),Y=Q[0],R=Q[1],V=t.useState(f||T),F=V[0],B=V[1],W=t.useState(),G=W[0],H=W[1],q=function(t){w&&t.target.value&&!function(t){switch(w){case"email":return/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(t);case"phone":return/^[0-9]{10}$/.test(t);case"name":return/^[a-zA-Z0-9.]+$/.test(t)}return!0}(t.target.value)&&R(!0),null==O||O(t,{})},_=function(t){var e;if(H(null===(e=J.current)||void 0===e?void 0:e.value),R(!1),"number"===w)1===t.target.value.length&&"-"===t.target.value||!isNaN(t.target.value)?(null==y||y(t,{}),B(t.target.value)):t.target.value=F;else if("negativenumber"===w||"preventnegativenumber"===w)t.target.value.includes("-")||isNaN(t.target.value)?t.target.value=F:(null==y||y(t,{}),B(t.target.value));else if("lettersOnly"===w){/^[a-zA-Z]*$/.test(t.target.value)||""===t.target.value?(B(t.target.value),null==y||y(t,{})):t.target.value=F}else B(t.target.value),null==y||y(t,{})},J=t.useRef(null);t.useEffect(function(){var t;H(null===(t=J.current)||void 0===t?void 0:t.value)},[T,f]),t.useEffect(function(){U&&U(J)},[J,U]);var Z=function(t,e){e&&x||(t.cancel=!0)},K=function(t){null==N||N(t),t.stopPropagation()};return M.default.createElement(M.default.Fragment,null,D&&M.default.createElement("label",{htmlFor:S,className:"form-label"},D," ",u?M.default.createElement("i",{className:"req-lbl"},"*"):M.default.createElement(M.default.Fragment,null)),M.default.createElement(M.default.Fragment,null,null!=f?M.default.createElement(r.TooltipComponent,{beforeOpen:function(t){return Z(t,G)},content:x?G:""},M.default.createElement("input",{id:S,type:n,value:f,onChange:_,onKeyPress:m,onKeyDown:K,disabled:s,required:u,className:h,name:p,placeholder:d,minLength:v,maxLength:I,step:z,pattern:w,onBlur:q,defaultValue:T,checked:A,ref:J,onPaste:E?function(t){return t.preventDefault()}:void 0,autoComplete:P})):M.default.createElement(r.TooltipComponent,{beforeOpen:function(t){return Z(t,G)},content:x?G:""},M.default.createElement("input",{id:S,type:n,onChange:_,disabled:s,onKeyPress:m,onKeyDown:K,required:u,className:h,pattern:w,name:p,placeholder:d,minLength:v,maxLength:I,step:z,onBlur:q,defaultValue:T,checked:A,ref:J,onPaste:E?function(t){return t.preventDefault()}:void 0,autoComplete:P})),Y&&M.default.createElement("span",{className:"pat-val-error"},function(){switch(w){case"email":return"Invalid Mail Address";case"phone":return"Invalid Phone Number";case"name":return"Invalid Text Format"}return"Invalid Input"}())))},exports.TimePicker=function(t){var i=t.placeholder,r=t.className,n=t.minTime,o=t.maxTime,s=t.label,a=void 0===s?"":s,u=t.id,c=t.onChange,h=t.name,l=t.value,p=t.format,g=t.disabled,d=t.onClearing,f=t.allowEdit;return M.default.createElement("div",null,M.default.createElement("label",{htmlFor:u},a),M.default.createElement(e.TimePickerComponent,{id:u,placeholder:i,min:n,max:o,className:r,onChange:c,name:h,value:l,disabled:g,format:p,type:"timepicker",cleared:function(t){d(t)},allowEdit:f}))},exports.Toast=function(){var e=t.useRef(null),i=document.getElementsByTagName("body")[0];return i.hasAttribute("data-listener-bb-toast")||(document.addEventListener("bb_toast",function(t){var i;if("bb_toast"==t.detail.key){null===(i=e.current)||void 0===i||i.show({title:t.detail.title,content:t.detail.content,showProgressBar:"true"==t.detail.showProgressBar||!t.detail.showProgressBar,position:t.detail.position?t.detail.position:{X:"Top",Y:"Right"},timeOut:t.detail.timeOut?t.detail.timeOut:2e3});for(var r=document.getElementsByClassName("e-toast-title"),n={success:"green",warning:"orange",alert:"red"},o=0;o<r.length;o++)r[o].style.color=n[t.detail.type];var s=document.getElementsByClassName("e-toast-progress");for(o=0;o<s.length;o++)s[o].style.backgroundColor=n[t.detail.type]}},!1),i.setAttribute("data-listener-bb-toast","true")),M.default.createElement("div",null,M.default.createElement(c.ToastComponent,{ref:e,type:"toast"}))},exports.Tooltip=function(t){var e=t.id,i=t.content,n=t.target,o=t.className,s=t.position,a=t.children;return M.default.createElement(M.default.Fragment,null,M.default.createElement(r.TooltipComponent,{id:e,className:o,content:i,target:n,position:s}),a)},exports.Uploader=function(e){var i=e.fileCount,n=e.onFilesChange,s=e.onUploadCompleted,u=e.startUpload,c=e.batchId,h=e.documentTypeId,l=e.files,p=e.inputFileSize,g=e.fileTypes,d=e.listOnly,f=e.imageOnly,y=e.postExecuteParam,j=e.listView,D=e.documentAPI,S=e.placeholder,v=void 0===S?"Drag and drop files here":S,I=e.buttonText,z=void 0===I?"Choose file":I,b=e.imageToUpload,w=e.index,O=e.onClearFiles,T=e.onClose,L=e.fileRemoved,A=e.disabled,x=e.imageHeight,C=e.imageWidth,E=e.fileView,k=void 0===E||E;e.handleFileError;var P=e.showErrorMessage,U=void 0===P||P,Q=e.showDownloadProgress,Y=void 0!==Q&&Q,R=e.clientId,V=e.allowMultipleSelection,F=void 0===V||V,B=e.postBody,W=void 0===B?{}:B,G=t.useState([]),H=G[0],q=G[1],_=t.useState([]),J=_[0],Z=_[1],K=t.useState(!1),X=K[0],$=K[1],tt=t.useState(""),et=tt[0],it=tt[1],rt=M.default.useRef(null),nt=i,ot=t.useState(1),st=ot[0],at=ot[1],ut=t.useState([]),ct=ut[0],ht=ut[1],lt=t.useState(0),pt=lt[0],gt=lt[1],dt=t.useState(ui),ft=dt[0],Mt=dt[1],yt=t.useState(0),mt=yt[0],Nt=yt[1],jt=t.useState(""),Dt=jt[0],St=jt[1],vt=t.useState(0),It=vt[0],zt=vt[1],bt=t.useState(0),wt=bt[0],Ot=bt[1],Tt=t.useState(-1),Lt=Tt[0],At=Tt[1],xt=t.useState([]),Ct=xt[0],Et=xt[1],kt=t.useState(""),Pt=kt[0],Ut=kt[1],Qt=t.useState(!1),Yt=Qt[0],Rt=Qt[1],Vt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAD4AAABNCAYAAAD+d9crAAAACXBIWXMAAAsTAAALEwEAmpwYAAAF+mlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuMTYzNDk5LCAyMDE4LzA4LzEzLTE2OjQwOjIyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50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riDLqoqvRUpMwRsBeL20xvdO4/940MmpaPV4LR7Tfm4GeSo4GY3ylqmYBji6TfvxxG3e/+Wty7s4qixxcB0cAOLXcxCe++En8+Bcehafz1ncdkzPf9TVsYFcOtlP8Ec2YDdN/xu8xLUzdtfDfc3d9BrAEMPl7Fv7a7PdS/3fx60hgzyE4+q7gNAFcANiDkZY/NBfTx7MApQCbd+KizVM4n6expStgaSff95AwAsDp3YL3f3nGKxefwy3z1kABzpDMhJOYuQRhTYsN6wEkEycZ9mkGiufeQO8IXBvGzoMU+/dQbJIoI7C0vVKI2CdcR7+GNGeQsO3PgnoaL073LgvABDCbQ6vocWr3CcRG2pPkbeB/6f2KrDIJwXWvehL+B2Bi6PuvmQxqAAAAAElFTkSuQmCC";t.useEffect(function(){O&&O(Ft),Ct&&0!==Ct.length||te(!1)},[]);var Ft=function(){q([]),$(!1)};t.useEffect(function(){q(b||H),It>0&&Wt(st)},[ct,mt]),t.useEffect(function(){te(!1)},[h]),M.default.useEffect(function(){(!H||0==(null==H?void 0:H.length))&&l.length>0&&Xt(l)});var Bt=function(t){var e,i=H;if(i[t]&&i[t].isValid&&!a.utilService.isValidGUID(i[t].documentId)){At(t),Jt("Uploading...",t),Zt();var r=i[t].file;zt(r.size);var n=r.size%ui==0?r.size/ui:Math.floor(r.size/ui)+1;Ot(n),ht(r);var o=a.utilService.getGUID()+"."+r.name.split(".").pop();St(o)}else if(i[t]&&a.utilService.isValidGUID(i[t].documentId))Nt(100),Bt(t+1),H[t+1]||null==s||s(i);else if(i[t]&&!1===(null===(e=i[t])||void 0===e?void 0:e.isValid)&&t<(null==i?void 0:i.length))Bt(t+1);else if(t===(null==H?void 0:H.length))return},Wt=function(t){if(at(t+1),t<=wt){var e=ct.slice(pt,ft);Gt(e)}},Gt=function(t){return Be(void 0,void 0,void 0,function(){var e,i,r,n;return We(this,function(o){switch(o.label){case 0:return o.trys.push([0,7,,8]),[4,m.default.post(D+"core/7bda9c96-1af4-4b19-aa6d-98e1995e4255/document/uploadchunks",t,{params:{id:st,fileName:Dt,documentTypeId:h,clientId:R},headers:{"Content-Type":"application/json"}})];case 1:return e=o.sent(),(i=e.data).isSuccess?(gt(ft),Mt(ft+ui),st!=wt?[3,3]:[4,Ht()]):[3,5];case 2:return o.sent(),[3,4];case 3:Nt(r=st/wt*100),Jt("Uploading...",Lt,r),o.label=4;case 4:return[3,6];case 5:console.log("Error Occurred:",i.errorMessage),o.label=6;case 6:return[3,8];case 7:return n=o.sent(),console.log("error",n),[3,8];case 8:return[2]}})})},Ht=function(){return Be(void 0,void 0,void 0,function(){var t,e,i,r,n,o,a,l,p;return We(this,function(g){switch(g.label){case 0:return t=ct,(e=new FormData).append("fileName",Dt),e.append("physicalName",t.name),i={},[4,m.default.post(D+"core/7bda9c96-1af4-4b19-aa6d-98e1995e4255/document/uploadcomplete",i,{params:{fileName:Dt,documentTypeId:h,physicalName:t.name,clientId:R},data:e})];case 1:return r=g.sent(),n=null===(p=null===(l=r.config)||void 0===l?void 0:l.params)||void 0===p?void 0:p.physicalName.toLowerCase().split(".").pop(),(o=r.data).isSuccess&&(Jt("Uploaded Successfully",Lt,100),(a=Ge([],H,!0))[Lt].documentId=o.documentId,a[Lt].rowIndex=w,a[Lt].batchId=c,q(a),2==u?qt(o.documentId,n):(At(Lt+1),Bt(Lt+1),H[Lt+1]||null==s||s(a))),[2]}})})},qt=function(t,e){return Be(void 0,void 0,void 0,function(){var i,r,n;return We(this,function(o){switch(o.label){case 0:return i=null==g?void 0:g.map(function(t){return t.toLowerCase()}),r=null==i?void 0:i.filter(function(t){return t==e}),(new FormData).append("fileName",Dt),[4,m.default.post(D+"core/7bda9c96-1af4-4b19-aa6d-98e1995e4255/dataupload/"+("xlsx"==r?"uploadexceldata":"uploadtextdata"),W,{params:{documentId:t,batchId:c,postExecuteParam:y||""}})];case 1:return n=o.sent(),n.data.isSuccess&&(Jt("Exporting Data",Lt,5),_t(c)),[2]}})})},_t=function(t){var e=null;e=setInterval(function(){m.default.get(D+"core/7bda9c96-1af4-4b19-aa6d-98e1995e4255/dataupload/getbatchdetails?batchId="+t).then(function(t){var i=t.data;if(i.isSuccess){var r=i.data;5==r.processStatusId?(Jt("Completed",Lt,100),clearInterval(e),At(Lt+1),Bt(Lt+1),H[Lt+1]||null==s||s(H)):4==r.processStatusId?(Jt(r.remarks,Lt,100,"danger",r.processStatusId),null==s||s([{error:r.remarks}]),clearInterval(e)):6==r.processStatusId?Jt("Data validation...",Lt,r.progress,"info"):r.progress>5&&Jt("",Lt,r.progress)}},function(t){"ERR_NETWORK"==t.code&&Jt("Network Failure",Lt,100,"danger"),clearInterval(e)})},1e3)},Jt=function(t,e,i,r,n){void 0===i&&(i=0),void 0===r&&(r="success"),void 0===n&&(n=0);var o=Ge([],H,!0);o[e].statusMessage=t||o[e].statusMessage,o[e].progress=i,o[e].variant=r,o[e].processStatusId=n,q(o)},Zt=function(){Nt(0),at(1),gt(0),Mt(ui)};M.default.useEffect(function(){if(Z(b),Number(u)>0){var t=null==H?void 0:H.filter(function(t){return null==t?void 0:t.isValid});H&&0!==H.length&&H[0]?H.length>0&&t&&0===(null==t?void 0:t.length)?null==s||s(Ge([],H,!0)):Bt(0):null==s||s([])}},[u,J]);var Kt=function(t){var e=t[0].name.toLowerCase().split(".").pop();["gif","jpeg","png","jpg"].includes(e)?function(t){var e,i={},r=new FileReader;r.onloadend=function(){(e=new Image).src=r.result,e.onload=function(){i.height=e.height,i.width=e.width,ee(t,i)}},t&&r.readAsDataURL(t[0])}(t):ee(t,"")},Xt=function(t){return Be(void 0,void 0,void 0,function(){var e,i;return We(this,function(r){switch(r.label){case 0:if(X||!(t.length>0))return[3,10];e=0,r.label=1;case 1:if(!(e<t.length))return[3,9];if(!$t(t[e].fileName)||!a.utilService.isValidGUID(t[e].documentId)||t[e].file||1==t[e].fileFetched)return[3,7];r.label=2;case 2:return r.trys.push([2,4,5,6]),Rt(!0),[4,m.default.get(D+"core/7bda9c96-1af4-4b19-aa6d-98e1995e4255/document/download?documentId="+t[e].documentId,{responseType:"blob",onDownloadProgress:function(t){var e=Math.round(100*t.loaded/t.total);console.log(e)}})];case 3:return i=r.sent(),t[e].fileFetched=!0,t[e].src=URL.createObjectURL(new Blob([i.data])),[3,6];case 4:return r.sent(),[3,6];case 5:return Rt(!1),[7];case 6:return[3,8];case 7:t[e].src=Vt,r.label=8;case 8:return e++,[3,1];case 9:$(!0),q(t),r.label=10;case 10:return[2]}})})},$t=function(t){var e=t.split(".").pop();return["gif","jpeg","png","jpg"].includes(e)},te=function(t){return void 0===t&&(t=!1),Be(void 0,void 0,void 0,function(){var e,i,r,n,o,s,a;return We(this,function(u){switch(u.label){case 0:return h?t?[3,2]:[4,m.default.get(D+"core/7bda9c96-1af4-4b19-aa6d-98e1995e4255/document/getexcelcolumns",{params:{documentTypeId:h}})]:[3,3];case 1:for(e=u.sent(),i=e.data,r=[],n=0;n<i.length;n++)r.push(i[n].sourceColumn);return Et(r),r.length>0&&i[0].documentTypeName&&Ut(i[0].documentTypeName),[3,3];case 2:Ct.length>0&&(o=[],s=N.utils.book_new(),a=N.utils.json_to_sheet([]),N.utils.sheet_add_aoa(a,[Ct]),N.utils.sheet_add_json(a,o,{origin:"A2",skipHeader:!0}),N.utils.book_append_sheet(s,a,"Sheet1"),N.writeFile(s,Pt+".xlsx")),u.label=3;case 3:return[2]}})})},ee=function(t,e){var i=Number(nt),r="",o=!1,s=0;if(t&&t.length>0){for(var u=H?Ge([],H,!0):[],c=function(n){if(o=!0,r="",s=t[n].size/1024,0==i||i>=u.length+1){if(h=t[n].name,l=h.toLowerCase().split(".").pop(),g&&g.length>0&&(null==g?void 0:g.includes(l))||!g||0==g.length)if(Number(p)>0&&Number(p)<s)a.messageService.broadcast({key:"bb_toast",type:"alert",content:"File too large, allowed size is "+p+" KB",position:{X:"550",Y:"50"}}),o=!1;else{if(u.findIndex(function(e){return e.fileName==t[n].name})>-1)return a.messageService.broadcast({key:"bb_toast",type:"alert",content:"Can't upload duplicate files!",position:{X:"550",Y:"50"}}),{value:!1};(x&&e.height!=x||C&&e.width!=C)&&(a.messageService.broadcast({key:"bb_toast",type:"alert",content:"Please choose an image with height "+x+"px and width "+C+"px",position:{X:"550",Y:"50"}}),o=!1)}else a.messageService.broadcast({key:"bb_toast",type:"alert",content:"Invalid file, allowed types - "+(null==g?void 0:g.join(",")),position:{X:"550",Y:"50"}}),o=!1;o&&u.push({fileName:t[n].name,fileSize:s.toFixed(1)+" KB",isValid:o,errorMessage:r,file:t[n],statusMessage:"Ready to upload",progress:0,variant:"success",src:$t(t[n].name)?URL.createObjectURL(t[n]):Vt})}else{var c="You can upload only ".concat(i," file").concat(i>1?"s":"",".");it(c),a.messageService.broadcast({key:"bb_toast",type:"alert",content:c,position:{X:"550",Y:"50"}})}var h,l},h=0;h<t.length;h++){var l=c(h);if("object"==typeof l)return l.value}q(u),null==n||n(u)}return!0};return M.default.createElement("div",{className:"control-pane",ref:rt,onDrop:function(t){return!A&&!f&&((e=t).preventDefault(),it(""),Kt(e.dataTransfer.files),!0);var e},onDragOver:function(t){return t.preventDefault()}},M.default.createElement("div",{className:"control-section row uploadpreview"},M.default.createElement("div",{className:""},M.default.createElement("div",{className:"upload_wrapper"},M.default.createElement("div",{className:"upload-files-container"},1!=d&&M.default.createElement(M.default.Fragment,null,M.default.createElement("div",{className:"drag-file-area"},M.default.createElement("label",{className:"label"}," ",M.default.createElement("span",{className:"browse-files"},M.default.createElement("input",{type:"file",id:"bb-file-upload",className:"default-file-input",onClick:function(t){return function(t){t.target.value=null}(t)},multiple:F,onChange:function(t){return Kt(t.target.files),it(""),!0},disabled:A}),M.default.createElement("span",{className:"browse-files-text"},z)," "),M.default.createElement("span",{className:"dynamic-message"},v))),M.default.createElement("span",{className:"cannot-upload-message"}," ",M.default.createElement("span",{className:"material-icons-outlined"},"error")," ","Please select a file first"," ",M.default.createElement("span",{className:"material-icons-outlined cancel-alert-button"},"cancel")," ")),(null==g?void 0:g.includes("txt"))?M.default.createElement(M.default.Fragment,null):M.default.createElement("span",{className:"bb-excel-download-container"},Ct.length>0&&M.default.createElement("a",{className:"bb-download-custom-icon",onClick:function(){return te(!0)}}," Download Sample Document ",M.default.createElement("i",{className:"bi bi-file-earmark-spreadsheet-fill"}))),null==H?void 0:H.map(function(t,e){return M.default.createElement(M.default.Fragment,null,M.default.createElement("div",{className:"list"==j?"file-block-1":"file-block",style:{borderTop:"1px solid #d2d2d2"}},M.default.createElement("div",{className:"list"==j?"file-info-1":"file-info"},M.default.createElement("div",{className:"list"===j?"d-flex":""},1!=f&&M.default.createElement("span",{className:"material-icons-outlined file-icon"},M.default.createElement("img",{src:t.src})),1==f&&M.default.createElement("span",{className:"material-icons-outlined file-icon-image"},M.default.createElement("img",{src:t.src})),1!=d&&1!=f&&!A&&!(Number(u)>0)&&M.default.createElement("span",{className:"file-action file-action-remove",style:{color:"red"},onClick:function(){return function(t){var e=Ge([],H,!0),i=e.splice(t,1);1===i.length&&(i[0].index=t,q(e),null==L||L(i))}(e)}},M.default.createElement("i",{className:"bi bi-x-circle",onClick:T})),1!=f&&M.default.createElement("span",{className:"file-action file-action-download",style:{color:"green"},onClick:function(){return function(t,e){return Be(void 0,void 0,void 0,function(){var i,r,n,o,s,u;return We(this,function(c){switch(c.label){case 0:if(i=new Blob([]),!a.utilService.isValidGUID(t.documentId))return[3,5];c.label=1;case 1:return c.trys.push([1,3,,4]),r={responseType:"blob"},Y&&(r.onDownloadProgress=function(t){var i=Math.round(100*t.loaded/t.total);Jt("downloading...",e,i)}),[4,m.default.get(D+"core/7bda9c96-1af4-4b19-aa6d-98e1995e4255/document/download?documentId="+t.documentId,r)];case 2:return n=c.sent(),i=new Blob([n.data]),[3,4];case 3:return o=c.sent(),console.error("Error downloading file:",o),[2];case 4:return[3,6];case 5:i=new Blob([t.file]),c.label=6;case 6:return s=window.URL.createObjectURL(i),(u=document.createElement("a")).href=s,u.download=t.fileName,u.click(),window.URL.revokeObjectURL(s),[2]}})})}(t,e)}},M.default.createElement("i",{className:"bi bi-download"})),k&&1!=f&&t.documentId&&function(){if(t.fileName){var e=t.fileName.toLowerCase().split(".").pop();return["gif","jpeg","png","jpg","pdf","docx","doc"].includes(e)}return null}()&&M.default.createElement("span",{className:"file-action",style:{color:"blue"},onClick:function(){return function(t){var e;if(a.utilService.isValidGUID(t.documentId)){var i=null===(e=t.fileName)||void 0===e?void 0:e.split(".").pop(),r=JSON.stringify({message:"_showDocumentEditor",entity:{documentId:t.documentId,documentName:t.fileName,documentAPI:D,documentType:i}});setTimeout(function(){window.parent.postMessage(r,"*")},2e3)}}(t)}},M.default.createElement("i",{className:"bi bi-eye-fill",title:"View"})),1!=f&&M.default.createElement("div",{style:{width:"225px"}},M.default.createElement(r.TooltipComponent,{content:t.fileName},M.default.createElement("span",{className:"list"==j?"file-name-1":"file-name"},(i=t.fileName)?i.length>20?i.substring(0,15)+"..."+i.split(".").pop():i:"")),M.default.createElement("span",{className:"list"==j?"file-size-1":"file-size"},t.fileSize,t.isValid&&4!=t.processStatusId?M.default.createElement("span",{className:"upd-success-msg"},t.statusMessage):t.isValid&&4==t.processStatusId?M.default.createElement("span",{className:"upd-warning-msg"},t.statusMessage):M.default.createElement("span",{className:"upd-warning-msg"},t.errorMessage))))),U&&et&&e==H.length-1&&M.default.createElement("div",{className:"upd-cmn-error"},et),t.progress>0&&M.default.createElement(o.ProgressBar,{className:"progressbar",animated:!0,variant:t.variant,now:t.progress,label:"".concat(t.progress.toFixed(0),"%")})));var i}),0==(null==H?void 0:H.length)&&(1==d||1==f)&&M.default.createElement("div",{className:"bb-fu-nofiles"},Yt?M.default.createElement(o.Spinner,{animation:"border",role:"status",variant:"danger"},M.default.createElement("span",{className:"visually-hidden"},"Loading...")):M.default.createElement("span",null,"No files found !")))))))},exports.Viewer=function(){var e=t.useState({documentId:"",showEditor:!1,documentAPI:"",documentName:"",documentType:"",actualPath:"",downloadPdfFile:!1,downloadImageFile:!1}),i=e[0],r=e[1];t.useEffect(function(){window.addEventListener("message",n)},[]);var n=function(t){var e,i,n,s,a,u;try{var c=o(t.data);if(c.message)switch(c.message){case"_showDocumentEditor":c.entity&&r({documentId:(null===(e=c.entity)||void 0===e?void 0:e.documentId)||"",documentAPI:c.entity.documentAPI,showEditor:!0,documentName:c.entity.documentName,documentType:c.entity.documentType.toLowerCase(),actualPath:null===(i=c.entity)||void 0===i?void 0:i.actualPath,downloadPdfFile:!!(null===(n=c.entity)||void 0===n?void 0:n.downloadPdfFile)&&(null===(s=c.entity)||void 0===s?void 0:s.downloadPdfFile),downloadImageFile:!!(null===(a=c.entity)||void 0===a?void 0:a.downloadImageFile)&&(null===(u=c.entity)||void 0===u?void 0:u.downloadImageFile)});break;case"closeDoc":r(function(t){return Fe(Fe({},t),{showEditor:!1})})}}catch(t){}},o=function(t){try{return JSON.parse(t)}catch(t){return{message:"Failed"}}};return M.default.createElement(M.default.Fragment,null,i.showEditor&&M.default.createElement("div",{className:"popup-iframe"},("docx"===i.documentType||"doc"===i.documentType)&&M.default.createElement(pi,{documentId:i.documentId,documentAPI:i.documentAPI,documentName:i.documentName}),"pdf"===i.documentType&&M.default.createElement(ci,{documentId:i.documentId,documentAPI:i.documentAPI,documentName:i.documentName,actualPath:i.actualPath,downloadPdfFile:i.downloadPdfFile}),("jpg"===i.documentType||"jpeg"===i.documentType||"png"===i.documentType||"gif"===i.documentType)&&M.default.createElement(hi,{documentId:i.documentId,documentAPI:i.documentAPI,documentName:i.documentName,downloadImageFile:i.downloadImageFile})))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react"),e=require("@syncfusion/ej2-react-calendars"),i=require("@syncfusion/ej2-react-dropdowns"),r=require("@syncfusion/ej2-react-popups"),n=require("@syncfusion/ej2-react-grids"),o=require("react-bootstrap"),s=require("axios"),a=require("gbs-fwk-core"),u=require("xlsx"),c=require("@syncfusion/ej2-react-notifications"),h=require("@syncfusion/ej2-react-pdfviewer"),l=require("@syncfusion/ej2-react-documenteditor"),p=require("react-pdf");require("react-pdf/dist/esm/Page/AnnotationLayer.css"),require("react-pdf/dist/esm/Page/TextLayer.css");var g=require("react-slick");function d(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}function f(t){if(t&&t.__esModule)return t;var e=Object.create(null);return t&&Object.keys(t).forEach(function(i){if("default"!==i){var r=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,r.get?r:{enumerable:!0,get:function(){return t[i]}})}}),e.default=t,Object.freeze(e)}require("slick-carousel/slick/slick.css"),require("slick-carousel/slick/slick-theme.css");var M=d(t),y=f(t),m=d(s),N=f(u),j=d(g),D=function(t,e){return D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},D(t,e)};var S=function(){return S=Object.assign||function(t){for(var e,i=1,r=arguments.length;i<r;i++)for(var n in e=arguments[i])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},S.apply(this,arguments)};function v(t,e,i,r){return new(i||(i=Promise))(function(n,o){function s(t){try{u(r.next(t))}catch(t){o(t)}}function a(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?n(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(s,a)}u((r=r.apply(t,e||[])).next())})}function I(t,e){var i,r,n,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(u){return function(a){if(i)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(o=0)),o;)try{if(i=1,r&&(n=2&a[0]?r.return:a[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,a[1])).done)return n;switch(r=0,n&&(a=[2&a[0],n.value]),a[0]){case 0:case 1:n=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(n=o.trys,(n=n.length>0&&n[n.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]<n[3])){o.label=a[1];break}if(6===a[0]&&o.label<n[1]){o.label=n[1],n=a;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(a);break}n[2]&&o.ops.pop(),o.trys.pop();continue}a=e.call(t,o)}catch(t){a=[6,t],r=0}finally{i=n=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}}function z(t,e,i){if(i||2===arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError;function b(t,e){var i=e;return i.unshift(void 0),new(Function.prototype.bind.apply(t,i))}function w(t){var e,i=new Uint16Array(5);(window.msCrypto||window.crypto).getRandomValues(i);var r="ej2"+function(t){for(var e="",i=0;i<5;i++)e+=(i?",":"")+t[parseInt(i.toString(),10)];return e}(i),n=function(i){i.source===window&&"string"==typeof i.data&&i.data.length<=32&&i.data===r&&(t(),e())};return window.addEventListener("message",n,!1),window.postMessage(r,"*"),e=function(){window.removeEventListener("message",n),t=n=r=void 0}}function O(t,e){for(var i=e,r=t.replace(/\[/g,".").replace(/\]/g,"").split("."),n=0;n<r.length&&!P(i);n++)i=i[r[parseInt(n.toString(),10)]];return i}function T(t,e,i){var r,n,o=t.replace(/\[/g,".").replace(/\]/g,"").split("."),s=i||{},a=s,u=o.length;for(r=0;r<u;r++)n=o[parseInt(r.toString(),10)],r+1===u?a[""+n]=void 0===e?{}:e:k(a[""+n])&&(a[""+n]={}),a=a[""+n];return s}function L(t,e){delete t[""+e]}var A="undefined"!=typeof window?window:{};function x(t){return!k(t)&&t.constructor==={}.constructor}function C(t,e){if(!k(e))for(var i=t,r=e,n="deepMerge",o=0,s=Object.keys(e);o<s.length;o++){var a=s[o];k(i[""+n])||-1===i[""+n].indexOf(a)||!x(r[""+a])&&!Array.isArray(r[""+a])?i[""+a]=r[""+a]:E(i[""+a],i[""+a],r[""+a],!0)}}function E(t,e,i,r){var n=t&&"object"==typeof t?t:{},o=arguments.length;r&&(o-=1);for(var s=function(t){if(!a[t])return"continue";var e=a[t];Object.keys(e).forEach(function(t){var i,o=n[""+t],s=e[""+t];Array.isArray(s)&&Array.isArray(o)&&(s.length,o.length);r&&(x(s)||Array.isArray(s))?x(s)?(i=o||{},Array.isArray(i)&&i.hasOwnProperty("isComplexArray")?E(i,{},s,r):n[""+t]=E(i,{},s,r)):(i=o||[],n[""+t]=E([],i,s,i&&i.length||s&&s.length)):n[""+t]=s})},a=arguments,u=1;u<o;u++)s(u);return n}function k(t){return null==t}function P(t){return void 0===t}function U(t,e){return t===e||!(t===document||!t)&&U(t.parentNode,e)}function Q(t){try{throw new Error(t)}catch(t){throw t.message+"\n"+t.stack}}function Y(){return false}var R,V={latn:{_digits:"0123456789",_type:"numeric"}},F={decimal:".",group:",",percentSign:"%",plusSign:"+",minusSign:"-",infinity:"∞",nan:"NaN",exponential:"E"},B=[0,1,2,3,4,5,6,7,8,9],W=function(){function t(){}return t.getMainObject=function(t,e){return O("main."+e,t)},t.getNumberingSystem=function(t){return O("supplemental.numberingSystems",t)||this.numberingSystems},t.reverseObject=function(t,e){for(var i={},r=0,n=e||Object.keys(t);r<n.length;r++){var o=n[r];i.hasOwnProperty(t[o])||(i[t[o]]=o)}return i},t.getSymbolRegex=function(t){var e=t.map(function(t){return t.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}).join("|");return new RegExp(e,"g")},t.getSymbolMatch=function(t){for(var e={},i=0,r=Object.keys(F);i<r.length;i++){var n=r[i];e[t[n]]=F[n]}return e},t.constructRegex=function(t){for(var e=t.length,i="",r=0;r<e;r++)i+=r!==e-1?t[parseInt(r.toString(),10)]+"|":t[parseInt(r.toString(),10)];return i},t.convertValueParts=function(t,e,i){return t.replace(e,function(t){return i[t]})},t.getDefaultNumberingSystem=function(t){var e={};return e.obj=O("numbers",t),e.nSystem=O("defaultNumberingSystem",e.obj),e},t.getCurrentNumericOptions=function(t,e,i,r){var n={},o=this.getDefaultNumberingSystem(t);if(!P(o.nSystem)||r){var s=r?O("obj.mapperDigits",o):O(o.nSystem+"._digits",e);if(!P(s)){n.numericPair=this.reverseObject(s,B);var a=RegExp;n.numberParseRegex=new a(this.constructRegex(s),"g"),n.numericRegex="["+s[0]+"-"+s[9]+"]",i&&(n.numericRegex=s[0]+"-"+s[9],n.symbolNumberSystem=O(r?"numberSymbols":"symbols-numberSystem-"+o.nSystem,o.obj),n.symbolMatch=this.getSymbolMatch(n.symbolNumberSystem),n.numberSystem=o.nSystem)}}return n},t.getNumberMapper=function(t,e,i){var r={mapper:{}},n=this.getDefaultNumberingSystem(t);if(!P(n.nSystem)){r.numberSystem=n.nSystem,r.numberSymbols=O("symbols-numberSystem-"+n.nSystem,n.obj),r.timeSeparator=O("timeSeparator",r.numberSymbols);var o=O(n.nSystem+"._digits",e);if(!P(o))for(var s=0,a=B;s<a.length;s++){var u=a[s];r.mapper[u]=o[u]}}return r},t.nPair="numericPair",t.nRegex="numericRegex",t.numberingSystems=V,t}(),G={DJF:"Fdj",ERN:"Nfk",ETB:"Br",NAD:"$",ZAR:"R",XAF:"FCFA",GHS:"GH₵",XDR:"XDR",AED:"د.إ.",BHD:"د.ب.",DZD:"د.ج.",EGP:"ج.م.",ILS:"₪",IQD:"د.ع.",JOD:"د.ا.",KMF:"CF",KWD:"د.ك.",LBP:"ل.ل.",LYD:"د.ل.",MAD:"د.م.",MRU:"أ.م.",OMR:"ر.ع.",QAR:"ر.ق.",SAR:"ر.س.",SDG:"ج.س.",SOS:"S",SSP:"£",SYP:"ل.س.",TND:"د.ت.",YER:"ر.ي.",CLP:"$",INR:"₹",TZS:"TSh",EUR:"€",AZN:"₼",RUB:"₽",BYN:"Br",ZMW:"K",BGN:"лв.",NGN:"₦",XOF:"CFA",BDT:"৳",CNY:"¥",BAM:"КМ",UGX:"USh",USD:"$",CZK:"Kč",GBP:"£",DKK:"kr.",KES:"Ksh",CHF:"CHF",MVR:"ރ.",BTN:"Nu.",XCD:"EC$",AUD:"$",BBD:"$",BIF:"FBu",BMD:"$",BSD:"$",BWP:"P",BZD:"$",CAD:"$",NZD:"$",FJD:"$",FKP:"£",GIP:"£",GMD:"D",GYD:"$",HKD:"$",IDR:"Rp",JMD:"$",KYD:"$",LRD:"$",MGA:"Ar",MOP:"MOP$",MUR:"Rs",MWK:"MK",MYR:"RM",PGK:"K",PHP:"₱",PKR:"Rs",RWF:"RF",SBD:"$",SCR:"SR",SEK:"kr",SGD:"$",SHP:"£",SLL:"Le",ANG:"NAf.",SZL:"E",TOP:"T$",TTD:"$",VUV:"VT",WST:"WS$",ARS:"$",BOB:"Bs",BRL:"R$",COP:"$",CRC:"₡",CUP:"$",DOP:"$",GTQ:"Q",HNL:"L",MXN:"$",NIO:"C$",PAB:"B/.",PEN:"S/",PYG:"₲",UYU:"$",VES:"Bs.S",IRR:"ريال",GNF:"FG",CDF:"FC",HTG:"G",XPF:"FCFP",HRK:"kn",HUF:"Ft",AMD:"֏",ISK:"kr",JPY:"¥",GEL:"₾",CVE:"​",KZT:"₸",KHR:"៛",KPW:"₩",KRW:"₩",KGS:"сом",AOA:"Kz",LAK:"₭",MZN:"MTn",MKD:"ден",MNT:"₮",BND:"$",MMK:"K",NOK:"kr",NPR:"रु",AWG:"Afl.",SRD:"$",PLN:"zł",AFN:"؋",STN:"Db",MDL:"L",RON:"lei",UAH:"₴",LKR:"රු.",ALL:"Lekë",RSD:"дин.",TJS:"смн",THB:"฿",TMT:"m.",TRY:"₺",UZS:"сўм",VND:"₫",TWD:"NT$"};!function(t){var e=[28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990];t.getHijriDate=function(t){var i=t.getDate(),r=t.getMonth(),n=t.getFullYear(),o=r+1,s=n;o<3&&(s-=1,o+=12);var a=Math.floor(s/100),u=a-Math.floor(a/4)-2,c=Math.floor(365.25*(s+4716))+Math.floor(30.6001*(o+1))+i-u-1524,h=c+(u=(a=Math.floor((c-1867216.25)/36524.25))-Math.floor(a/4)+1)+1524,l=Math.floor((h-122.1)/365.25),p=Math.floor(365.25*l),g=Math.floor((h-p)/30.6001);i=h-p-Math.floor(30.6001*g),(r=Math.floor((h-p)/20.6001))>13&&(l+=1,r-=12),r-=1,n=l-4716;var d=c-24e5,f=10631/30,M=c-1948084,y=Math.floor(M/10631);M-=10631*y;var m=Math.floor((M-.1335)/f),N=30*y+m;M-=Math.floor(m*f+.1335);var j=Math.floor((M+28.5001)/29.5);13===j&&(j=12);for(var D=M-Math.floor(29.5001*j-29),S=0;S<e.length&&!(e[parseInt(S.toString(),10)]>d);S++);var v=S+16260,I=Math.floor((v-1)/12),z=I+1,b=v-12*I,w=d-e[S-1]+1;return(w+"").length>2&&(w=D,b=j,z=N),{year:z,month:b,date:w}},t.toGregorian=function(t,i,r){var n=r+e[12*(t-1)+1+(i-1)-16260-1]-1+24e5,o=Math.floor(n+.5),s=Math.floor((o-1867216.25)/36524.25),a=(s=o+1+s-Math.floor(s/4))+1524,u=Math.floor((a-122.1)/365.25),c=Math.floor(365.25*u),h=Math.floor((a-c)/30.6001),l=a-c-Math.floor(30.6001*h),p=h-(h>13.5?13:1),g=u-(p>2.5?4716:4715);return g<=0&&p--,new Date(g+"/"+p+"/"+l)}}(R||(R={}));var H,q=/\/MMMMM|MMMM|MMM|a|LLLL|LLL|EEEEE|EEEE|E|K|cccc|ccc|WW|W|G+|z+/gi,_="stand-alone",J=["sun","mon","tue","wed","thu","fri","sat"],Z={m:"getMinutes",h:"getHours",H:"getHours",s:"getSeconds",d:"getDate",f:"getMilliseconds"},K=function(){function t(){}return t.dateFormat=function(t,e,i){var r=this,n=H.getDependables(i,t,e.calendar);O("parserObject.numbers",n);var o=n.dateObject,s={isIslamic:H.islamicRegex.test(e.calendar)},a=e.format||H.getResultantPattern(e.skeleton,n.dateObject,e.type,!1,"");if(s.dateSeperator=H.getDateSeparator(n.dateObject),P(a))Q("Format options or type given must be invalid");else{a=H.ConvertDateToWeekFormat(a),s.pattern=a,s.numMapper=W.getNumberMapper(n.parserObject,W.getNumberingSystem(i));for(var u=0,c=a.match(q)||[];u<c.length;u++){var h=c[u],l=h.length,p=h[0];switch("K"===p&&(p="h"),p){case"E":case"c":s.weekday=n.dateObject[H.days][_][H.monthIndex[l]];break;case"M":case"L":s.month=n.dateObject[H.month][_][H.monthIndex[l]];break;case"a":s.designator=O("dayPeriods.format.wide",o);break;case"G":var g=l<=3?"eraAbbr":4===l?"eraNames":"eraNarrow";s.era=O("eras."+g,n.dateObject);break;case"z":s.timeZone=O("dates.timeZoneNames",n.parserObject)}}}return function(t){return isNaN(t.getDate())?null:r.intDateFormatter(t,s)}},t.intDateFormatter=function(t,e){for(var i="",r=e.pattern.match(H.dateParseRegex),n=this.getCurrentDateValue(t,e.isIslamic),o=0,s=r;o<s.length;o++){var a=s[o],u=a.length,c=a[0];"K"===c&&(c="h");var h=void 0,l="",p=void 0,g=void 0,d="";switch(c){case"M":case"L":h=n.month,u>2?i+=e.month[h]:p=!0;break;case"E":case"c":i+=e.weekday[J[t.getDay()]];break;case"H":case"h":case"m":case"s":case"d":case"f":if(p=!0,"d"===c)h=n.date;else if("f"===c){p=!1,g=!0;var f=(l=(l=t[Z[c]]().toString()).substring(0,u)).length;if(u!==f){if(u>3)continue;for(var M=0;M<u-f;M++)l="0"+l.toString()}d+=l}else h=t[Z[c]]();"h"===c&&(h=h%12||12);break;case"y":g=!0,d+=n.year,2===u&&(d=d.substr(d.length-2));break;case"a":var y=t.getHours()<12?"am":"pm";i+=e.designator[y];break;case"G":var m=t.getFullYear()<0?0:1,N=e.era[m];k(N)&&(N=e.era[m?0:1]),i+=N||"";break;case"'":i+="''"===a?"'":a.replace(/'/g,"");break;case"z":var j=t.getTimezoneOffset(),D=u<4?"+H;-H":e.timeZone.hourFormat;D=D.replace(/:/g,e.numMapper.timeSeparator),0===j?i+=e.timeZone.gmtZeroFormat:(g=!0,d=this.getTimeZoneValue(j,D)),d=e.timeZone.gmtFormat.replace(/\{0\}/,d);break;case":":i+=e.numMapper.numberSymbols.timeSeparator;break;case"/":i+=e.dateSeperator;break;case"W":p=!0,h=H.getWeekOfYear(t);break;default:i+=a}p&&(g=!0,d=this.checkTwodigitNumber(h,u)),g&&(i+=W.convertValueParts(d,H.latnParseRegex,e.numMapper.mapper))}return i},t.getCurrentDateValue=function(t,e){return e?R.getHijriDate(t):{year:t.getFullYear(),month:t.getMonth()+1,date:t.getDate()}},t.checkTwodigitNumber=function(t,e){var i=t+"";return 2===e&&2!==i.length?"0"+i:i},t.getTimeZoneValue=function(t,e){var i=this,r=e.split(";")[t>0?1:0],n=Math.abs(t);return r.replace(/HH?|mm/g,function(t){var e=t.length,r=-1!==t.indexOf("H");return i.checkTwodigitNumber(Math.floor(r?n/60:n%60),e)})},t}(),X={ms:"minimumSignificantDigits",ls:"maximumSignificantDigits",mf:"minimumFractionDigits",lf:"maximumFractionDigits"},$=["infinity","nan","group","decimal","exponential"],tt=function(){function t(){}return t.numberFormatter=function(t,e,i){var r,n=this,o=E({},e),s={},a={},u=H.getDependables(i,t,"",!0);u.numericObject,a.numberMapper=W.getNumberMapper(u.parserObject,W.getNumberingSystem(i),!0),a.currencySymbol=H.getCurrencySymbol(u.numericObject,o.currency||rt,e.altSymbol),a.percentSymbol=a.numberMapper.numberSymbols.percentSign,a.minusSymbol=a.numberMapper.numberSymbols.minusSign;var c=a.numberMapper.numberSymbols;if(e.format&&!H.formatRegex.test(e.format))s=H.customFormat(e.format,a,u.numericObject);else{E(o,H.getProperNumericSkeleton(e.format||"N")),o.isCurrency="currency"===o.type,o.isPercent="percent"===o.type,r=H.getSymbolPattern(o.type,a.numberMapper.numberSystem,u.numericObject,o.isAccount),o.groupOne=this.checkValueRange(o.maximumSignificantDigits,o.minimumSignificantDigits,!0),this.checkValueRange(o.maximumFractionDigits,o.minimumFractionDigits,!1,!0),P(o.fractionDigits)||(o.minimumFractionDigits=o.maximumFractionDigits=o.fractionDigits),P(o.useGrouping)&&(o.useGrouping=!0),o.isCurrency&&(r=r.replace(/\u00A4/g,H.defaultCurrency));var h=r.split(";");if(s.nData=H.getFormatData(h[1]||"-"+h[0],!0,a.currencySymbol),s.pData=H.getFormatData(h[0],!1,a.currencySymbol),o.useGrouping&&(o.groupSeparator=c[$[2]],o.groupData=this.getGroupingDetails(h[0])),P(o.minimumFractionDigits)&&(o.minimumFractionDigits=s.nData.minimumFraction),P(o.maximumFractionDigits)){var l=s.nData.maximumFraction;o.maximumFractionDigits=P(l)&&o.isPercent?0:l}var p=o.minimumFractionDigits,g=o.maximumFractionDigits;P(p)||P(g)||p>g&&(o.maximumFractionDigits=p)}return E(s.nData,o),E(s.pData,o),function(t){return isNaN(t)?c[$[1]]:isFinite(t)?n.intNumberFormatter(t,s,a,e):c[$[0]]}},t.getGroupingDetails=function(t){var e={},i=t.match(H.negativeDataRegex);if(i&&i[4]){var r=i[4],n=r.lastIndexOf(",");if(-1!==n){var o=r.split(".")[0];e.primary=o.length-n-1;var s=r.lastIndexOf(",",n-1);-1!==s&&(e.secondary=n-1-s)}}return e},t.checkValueRange=function(t,e,i,r){var n=r?"f":"s",o=0,s=X["l"+n],a=X["m"+n];if(P(t)||(this.checkRange(t,s,r),o++),P(e)||(this.checkRange(e,a,r),o++),2===o){if(!(t<e))return!0;Q(a+"specified must be less than the"+s)}else i&&1===o&&Q("Both"+a+"and"+a+"must be present");return!1},t.checkRange=function(t,e,i){var r=i?[0,20]:[1,21];(t<r[0]||t>r[1])&&Q(e+"value must be within the range"+r[0]+"to"+r[1])},t.intNumberFormatter=function(t,e,i,r){var n;if(!P(e.nData.type)){t<0?(t*=-1,n=e.nData):n=0===t&&e.zeroData||e.pData;var o="";if(n.isPercent&&(t*=100),n.groupOne)o=this.processSignificantDigits(t,n.minimumSignificantDigits,n.maximumSignificantDigits);else if(o=this.processFraction(t,n.minimumFractionDigits,n.maximumFractionDigits,r),n.minimumIntegerDigits&&(o=this.processMinimumIntegers(o,n.minimumIntegerDigits)),i.isCustomFormat&&n.minimumFractionDigits<n.maximumFractionDigits&&/\d+\.\d+/.test(o)){for(var s=o.split("."),a=s[1],u=a.length-1;u>=0&&("0"===a[""+u]&&u>=n.minimumFractionDigits);u--)a=a.slice(0,u);o=s[0]+"."+a}return"scientific"===n.type&&(o=(o=t.toExponential(n.maximumFractionDigits)).replace("e",i.numberMapper.numberSymbols[$[4]])),o=o.replace(".",i.numberMapper.numberSymbols[$[3]]),o="#,###,,;(#,###,,)"===n.format?this.customPivotFormat(parseInt(o,10)):o,n.useGrouping&&(o=this.groupNumbers(o,n.groupData.primary,n.groupSeparator||",",i.numberMapper.numberSymbols[$[3]]||".",n.groupData.secondary)),o=W.convertValueParts(o,H.latnParseRegex,i.numberMapper.mapper),"N/A"===n.nlead?n.nlead:"0"===o&&r&&"0"===r.format?o+n.nend:n.nlead+o+n.nend}},t.processSignificantDigits=function(t,e,i){var r=t+"";return r.length<e?t.toPrecision(e):+(r=t.toPrecision(i))+""},t.groupNumbers=function(t,e,i,r,n){for(var o=!k(n)&&0!==n,s=t.split(r),a=s[0],u=a.length,c="";u>e;)c=a.slice(u-e,u)+(c.length?i+c:""),u-=e,o&&(e=n,o=!1);return s[0]=a.slice(0,u)+(c.length?i:"")+c,s.join(r)},t.processFraction=function(t,e,i,r){var n=(t+"").split(".")[1],o=n?n.length:0;if(e&&o<e){var s="";if(0!==o){s+=t;for(var a=0;a<e-o;a++)s+="0";return s}return s=t.toFixed(e),t.toFixed(e)}if(!k(i)&&(o>i||0===i))return t.toFixed(i);var u=t+"";return"0"===u[0]&&r&&"###.00"===r.format&&(u=u.slice(1)),u},t.processMinimumIntegers=function(t,e){var i=t.split("."),r=i[0],n=r.length;if(n<e){for(var o=0;o<e-n;o++)r="0"+r;i[0]=r}return i.join(".")},t.customPivotFormat=function(t){if(t>=5e5){var e=(t/=1e6).toString().split(".");e[0];var i=e[1];return i&&+i.substring(0,1)>=5?Math.ceil(t).toString():Math.floor(t).toString()}return""},t}(),et=function(){function t(t){this.ranArray=[],this.boundedEvents={},k(t)||(this.context=t)}return t.prototype.on=function(t,e,i,r){if(!k(e)){var n=i||this.context;this.notExist(t)?this.boundedEvents[""+t]=[{handler:e,context:n,id:r}]:k(r)?this.isHandlerPresent(this.boundedEvents[""+t],e)||this.boundedEvents[""+t].push({handler:e,context:n}):-1===this.ranArray.indexOf(r)&&(this.ranArray.push(r),this.boundedEvents[""+t].push({handler:e,context:n,id:r}))}},t.prototype.off=function(t,e,i){if(!this.notExist(t)){var r=O(t,this.boundedEvents);if(e){for(var n=0;n<r.length;n++)if(i){if(r[parseInt(n.toString(),10)].id===i){r.splice(n,1);var o=this.ranArray.indexOf(i);-1!==o&&this.ranArray.splice(o,1);break}}else if(e===r[parseInt(n.toString(),10)].handler){r.splice(n,1);break}}else delete this.boundedEvents[""+t]}},t.prototype.notify=function(t,e,i,r){if(this.notExist(t))i&&i.call(this,e);else{e&&(e.name=t);var n=O(t,this.boundedEvents).slice(0);if(window.Blazor)return this.blazorCallback(n,e,i,r,0);for(var o=0,s=n;o<s.length;o++){var a=s[o];a.handler.call(a.context,e)}i&&i.call(this,e)}},t.prototype.blazorCallback=function(t,e,i,r,n){var o=this,s=n===t.length-1;if(n<t.length){var a=t[parseInt(n.toString(),10)],u=a.handler.call(a.context,e);if(u&&"function"==typeof u.then){if(!i)return u;u.then(function(u){if(u="string"==typeof u&&o.isJson(u)?JSON.parse(u,o.dateReviver):u,E(e,e,u,!0),!i||!s)return o.blazorCallback(t,e,i,r,n+1);i.call(a.context,e)}).catch(function(t){r&&r.call(a.context,"string"==typeof t&&o.isJson(t)?JSON.parse(t,o.dateReviver):t)})}else{if(!i||!s)return this.blazorCallback(t,e,i,r,n+1);i.call(a.context,e)}}},t.prototype.dateReviver=function(t,e){return Y&&"string"==typeof e&&null!==e.match(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/)?new Date(e):e},t.prototype.isJson=function(t){try{JSON.parse(t)}catch(t){return!1}return!0},t.prototype.destroy=function(){this.boundedEvents=this.context=void 0},t.prototype.offIntlEvents=function(){var t=this.boundedEvents.notifyExternalChange;if(t){for(var e=0;e<t.length;e++){var i=t[""+e].context;i&&i.detectFunction&&i.randomId&&!i.isRendered&&(this.off("notifyExternalChange",i.detectFunction,i.randomId),e--)}this.boundedEvents.notifyExternalChange.length||delete this.boundedEvents.notifyExternalChange}},t.prototype.notExist=function(t){return!1===this.boundedEvents.hasOwnProperty(t)||this.boundedEvents[t].length<=0},t.prototype.isHandlerPresent=function(t,e){for(var i=0,r=t;i<r.length;i++){if(r[i].handler===e)return!0}return!1},t}(),it=new et,rt="USD",nt=RegExp,ot={"en-US":{d:"M/d/y",D:"EEEE, MMMM d, y",f:"EEEE, MMMM d, y h:mm a",F:"EEEE, MMMM d, y h:mm:s a",g:"M/d/y h:mm a",G:"M/d/yyyy h:mm:ss tt",m:"MMMM d",M:"MMMM d",r:"ddd, dd MMM yyyy HH':'mm':'ss 'GMT'",R:"ddd, dd MMM yyyy HH':'mm':'ss 'GMT'",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"h:mm tt",T:"h:m:s tt",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",U:"dddd, MMMM d, yyyy h:mm:ss tt",y:"MMMM yyyy",Y:"MMMM yyyy"}};!function(t){t.negativeDataRegex=/^(('[^']+'|''|[^*#@0,.E])*)(\*.)?((([#,]*[0,]*0+)(\.0*[0-9]*#*)?)|([#,]*@+#*))(E\+?0+)?(('[^']+'|''|[^*#@0,.E])*)$/,t.customRegex=/^(('[^']+'|''|[^*#@0,.])*)(\*.)?((([0#,]*[0,]*[0#]*[0#\ ]*)(\.[0#]*)?)|([#,]*@+#*))(E\+?0+)?(('[^']+'|''|[^*#@0,.E])*)$/,t.latnParseRegex=/0|1|2|3|4|5|6|7|8|9/g;var e=/[0-9]/g;t.defaultCurrency="$";var i=["infinity","nan","group","decimal"],r=/G|M|L|H|c|'| a|yy|y|EEEE|E/g,n={G:"",M:"m",L:"m",H:"h",c:"d","'":'"'," a":" AM/PM",yy:"yy",y:"yyyy",EEEE:"dddd",E:"ddd"};t.dateConverterMapper=/dddd|ddd/gi;t.islamicRegex=/^islamic/;var o={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};t.formatRegex=new nt("(^[ncpae]{1})([0-1]?[0-9]|20)?$","i"),t.currencyFormatRegex=new nt("(^[ca]{1})([0-1]?[0-9]|20)?$","i"),t.curWithoutNumberRegex=/(c|a)$/gi;var s={$:"isCurrency","%":"isPercent","-":"isNegative",0:"nlead",1:"nend"};function a(e,i,r,n,o){var s,a=r||"date";if(o)s=l({skeleton:e},o).format||l({skeleton:"d"},"en-US").format;else{if(-1!==t.basicPatterns.indexOf(e)){if(s=O(a+"Formats."+e,i),"dateTime"===a){var u=O("dateFormats."+e,i),c=O("timeFormats."+e,i);s=s.replace("{1}",u).replace("{0}",c)}}else s=O("dateTimeFormats.availableFormats."+e,i);P(s)&&"yMd"===e&&(s="M/d/y")}return s}function u(e,i,r,n){var o={},s=r||"gregorian";if(o.parserObject=W.getMainObject(e,i)||t.defaultObject,n)o.numericObject=O("numbers",o.parserObject);else{var a="dates.calendars."+s;o.dateObject=O(a,o.parserObject)}return o}function c(t,e,i,r){return O(t+"Formats-numberSystem-"+e+(r?".accounting":".standard"),i)||(r?O(t+"Formats-numberSystem-"+e+".standard",i):"")}function h(e){e.match(t.dateConverterMapper);return e}function l(t,e){var i=t.format||t.skeleton,r=O((e||"en-US")+"."+i,ot);return r||(r=O("en-US."+i,ot)),r&&(r=h(r),t.format=r.replace(/tt/,"a")),t}function p(e){var i=e.match(t.formatRegex),r={},n=i[1].toUpperCase();return r.isAccount="A"===n,r.type=t.patternMatcher[n],e.length>1&&(r.fractionDigits=parseInt(i[2],10)),r}function g(i,r,n,o){var s=o?{}:{nlead:"",nend:""},a=i.match(t.customRegex);if(a){o||(s.nlead=d(a[1],n),s.nend=d(a[10],n),s.groupPattern=a[4]);var u=a[7];if(u&&r){var c=u.match(e);k(c)?s.minimumFraction=0:s.minimumFraction=c.length,s.maximumFraction=u.length-1}}return s}function d(e,i){return e?(e=e.replace(t.defaultCurrency,i),""===i?e.trim():e):""}function f(t,e,i){return O("currencies."+e+(i?"."+i:".symbol"),t)||O("currencies."+e+".symbol-alt-narrow",t)||"$"}function M(e,r,n){var o={type:"decimal",minimumFractionDigits:0,maximumFractionDigits:0},s=e.match(t.customRegex);if(k(s)||""===s[5]&&"N/A"!==e)return o.type=void 0,o;o.nlead=s[1],o.nend=s[10];var a=s[6],u=!!a.match(/\ $/g),h=-1!==a.replace(/\ $/g,"").indexOf(" ");o.useGrouping=-1!==a.indexOf(",")||h,a=a.replace(/,/g,"");var l=s[7];if(-1!==a.indexOf("0")&&(o.minimumIntegerDigits=a.length-a.indexOf("0")),k(l)||(o.minimumFractionDigits=l.lastIndexOf("0"),o.maximumFractionDigits=l.lastIndexOf("#"),-1===o.minimumFractionDigits&&(o.minimumFractionDigits=0),(-1===o.maximumFractionDigits||o.maximumFractionDigits<o.minimumFractionDigits)&&(o.maximumFractionDigits=o.minimumFractionDigits)),k(r)?E(o,y([o.nlead,o.nend],"%","%")):(r.isCustomFormat=!0,E(o,y([o.nlead,o.nend],"$",r.currencySymbol)),o.isCurrency||E(o,y([o.nlead,o.nend],"%",r.percentSymbol))),!k(n)){var p=c(o.type,r.numberMapper.numberSystem,n,!1);o.useGrouping&&(o.groupSeparator=h?" ":r.numberMapper.numberSymbols[i[2]],o.groupData=tt.getGroupingDetails(p.split(";")[0])),o.nlead=o.nlead.replace(/'/g,""),o.nend=u?" "+o.nend.replace(/'/g,""):o.nend.replace(/'/g,"")}return o}function y(t,e,i){for(var r={nlead:t[0],nend:t[1]},n=0;n<2;n++){var o=t[parseInt(n.toString(),10)],a=o.indexOf(e);if(-1!==a&&(a<o.indexOf("'")||a>o.lastIndexOf("'"))){r[s[n]]=o.substr(0,a)+i+o.substr(a+1),r[s[e]]=!0,r.type=r.isCurrency?"currency":"percent";break}}return r}function m(t,e,i){t+=".";for(var r=0;r<e;r++)t+="0";if(e<i)for(var n=i-e,o=0;o<n;o++)t+="#";return t}function N(t,e){for(var i=t.split("."),r="",n=0;n<e;n++)r+="0";return i[1]?r+"."+i[1]:r}function j(t){var e=t.split("."),i=e[0],r=3-i.length%3;t="";for(var n=(i=(r&&1===r?"#":2===r?"##":"")+i).length-1;n>0;n-=3)t=","+i[n-2]+i[n-1]+i[parseInt(n.toString(),10)]+t;return t=t.slice(1),e[1]?t+"."+e[1]:t}t.dateParseRegex=/([a-z])\1*|'([^']|'')+'|''|./gi,t.basicPatterns=["short","medium","long","full"],t.defaultObject={dates:{calendars:{gregorian:{months:{"stand-alone":{abbreviated:{1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"May",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Oct",11:"Nov",12:"Dec"},narrow:{1:"J",2:"F",3:"M",4:"A",5:"M",6:"J",7:"J",8:"A",9:"S",10:"O",11:"N",12:"D"},wide:{1:"January",2:"February",3:"March",4:"April",5:"May",6:"June",7:"July",8:"August",9:"September",10:"October",11:"November",12:"December"}}},days:{"stand-alone":{abbreviated:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},narrow:{sun:"S",mon:"M",tue:"T",wed:"W",thu:"T",fri:"F",sat:"S"},short:{sun:"Su",mon:"Mo",tue:"Tu",wed:"We",thu:"Th",fri:"Fr",sat:"Sa"},wide:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"}}},dayPeriods:{format:{wide:{am:"AM",pm:"PM"}}},eras:{eraNames:{0:"Before Christ","0-alt-variant":"Before Common Era",1:"Anno Domini","1-alt-variant":"Common Era"},eraAbbr:{0:"BC","0-alt-variant":"BCE",1:"AD","1-alt-variant":"CE"},eraNarrow:{0:"B","0-alt-variant":"BCE",1:"A","1-alt-variant":"CE"}},dateFormats:{full:"EEEE, MMMM d, y",long:"MMMM d, y",medium:"MMM d, y",short:"M/d/yy"},timeFormats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateTimeFormats:{full:"{1} 'at' {0}",long:"{1} 'at' {0}",medium:"{1}, {0}",short:"{1}, {0}",availableFormats:{d:"d",E:"ccc",Ed:"d E",Ehm:"E h:mm a",EHm:"E HH:mm",Ehms:"E h:mm:ss a",EHms:"E HH:mm:ss",Gy:"y G",GyMMM:"MMM y G",GyMMMd:"MMM d, y G",GyMMMEd:"E, MMM d, y G",h:"h a",H:"HH",hm:"h:mm a",Hm:"HH:mm",hms:"h:mm:ss a",Hms:"HH:mm:ss",hmsv:"h:mm:ss a v",Hmsv:"HH:mm:ss v",hmv:"h:mm a v",Hmv:"HH:mm v",M:"L",Md:"M/d",MEd:"E, M/d",MMM:"LLL",MMMd:"MMM d",MMMEd:"E, MMM d",MMMMd:"MMMM d",ms:"mm:ss",y:"y",yM:"M/y",yMd:"M/d/y",yMEd:"E, M/d/y",yMMM:"MMM y",yMMMd:"MMM d, y",yMMMEd:"E, MMM d, y",yMMMM:"MMMM y"}}},islamic:{months:{"stand-alone":{abbreviated:{1:"Muh.",2:"Saf.",3:"Rab. I",4:"Rab. II",5:"Jum. I",6:"Jum. II",7:"Raj.",8:"Sha.",9:"Ram.",10:"Shaw.",11:"Dhuʻl-Q.",12:"Dhuʻl-H."},narrow:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12"},wide:{1:"Muharram",2:"Safar",3:"Rabiʻ I",4:"Rabiʻ II",5:"Jumada I",6:"Jumada II",7:"Rajab",8:"Shaʻban",9:"Ramadan",10:"Shawwal",11:"Dhuʻl-Qiʻdah",12:"Dhuʻl-Hijjah"}}},days:{"stand-alone":{abbreviated:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},narrow:{sun:"S",mon:"M",tue:"T",wed:"W",thu:"T",fri:"F",sat:"S"},short:{sun:"Su",mon:"Mo",tue:"Tu",wed:"We",thu:"Th",fri:"Fr",sat:"Sa"},wide:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"}}},dayPeriods:{format:{wide:{am:"AM",pm:"PM"}}},eras:{eraNames:{0:"AH"},eraAbbr:{0:"AH"},eraNarrow:{0:"AH"}},dateFormats:{full:"EEEE, MMMM d, y G",long:"MMMM d, y G",medium:"MMM d, y G",short:"M/d/y GGGGG"},timeFormats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateTimeFormats:{full:"{1} 'at' {0}",long:"{1} 'at' {0}",medium:"{1}, {0}",short:"{1}, {0}",availableFormats:{d:"d",E:"ccc",Ed:"d E",Ehm:"E h:mm a",EHm:"E HH:mm",Ehms:"E h:mm:ss a",EHms:"E HH:mm:ss",Gy:"y G",GyMMM:"MMM y G",GyMMMd:"MMM d, y G",GyMMMEd:"E, MMM d, y G",h:"h a",H:"HH",hm:"h:mm a",Hm:"HH:mm",hms:"h:mm:ss a",Hms:"HH:mm:ss",M:"L",Md:"M/d",MEd:"E, M/d",MMM:"LLL",MMMd:"MMM d",MMMEd:"E, MMM d",MMMMd:"MMMM d",ms:"mm:ss",y:"y G",yyyy:"y G",yyyyM:"M/y GGGGG",yyyyMd:"M/d/y GGGGG",yyyyMEd:"E, M/d/y GGGGG",yyyyMMM:"MMM y G",yyyyMMMd:"MMM d, y G",yyyyMMMEd:"E, MMM d, y G",yyyyMMMM:"MMMM y G",yyyyQQQ:"QQQ y G",yyyyQQQQ:"QQQQ y G"}}}},timeZoneNames:{hourFormat:"+HH:mm;-HH:mm",gmtFormat:"GMT{0}",gmtZeroFormat:"GMT"}},numbers:{currencies:{USD:{displayName:"US Dollar",symbol:"$","symbol-alt-narrow":"$"},EUR:{displayName:"Euro",symbol:"€","symbol-alt-narrow":"€"},GBP:{displayName:"British Pound","symbol-alt-narrow":"£"}},defaultNumberingSystem:"latn",minimumGroupingDigits:"1","symbols-numberSystem-latn":{decimal:".",group:",",list:";",percentSign:"%",plusSign:"+",minusSign:"-",exponential:"E",superscriptingExponent:"×",perMille:"‰",infinity:"∞",nan:"NaN",timeSeparator:":"},"decimalFormats-numberSystem-latn":{standard:"#,##0.###"},"percentFormats-numberSystem-latn":{standard:"#,##0%"},"currencyFormats-numberSystem-latn":{standard:"¤#,##0.00",accounting:"¤#,##0.00;(¤#,##0.00)"},"scientificFormats-numberSystem-latn":{standard:"#E0"}}},t.blazorDefaultObject={numbers:{mapper:{0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9"},mapperDigits:"0123456789",numberSymbols:{decimal:".",group:",",plusSign:"+",minusSign:"-",percentSign:"%",nan:"NaN",timeSeparator:":",infinity:"∞"},timeSeparator:":",currencySymbol:"$",currencypData:{nlead:"$",nend:"",groupSeparator:",",groupData:{primary:3},maximumFraction:2,minimumFraction:2},percentpData:{nlead:"",nend:"%",groupSeparator:",",groupData:{primary:3},maximumFraction:2,minimumFraction:2},percentnData:{nlead:"-",nend:"%",groupSeparator:",",groupData:{primary:3},maximumFraction:2,minimumFraction:2},currencynData:{nlead:"($",nend:")",groupSeparator:",",groupData:{primary:3},maximumFraction:2,minimumFraction:2},decimalnData:{nlead:"-",nend:"",groupData:{primary:3},maximumFraction:2,minimumFraction:2},decimalpData:{nlead:"",nend:"",groupData:{primary:3},maximumFraction:2,minimumFraction:2}},dates:{dayPeriods:{am:"AM",pm:"PM"},dateSeperator:"/",days:{abbreviated:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},short:{sun:"Su",mon:"Mo",tue:"Tu",wed:"We",thu:"Th",fri:"Fr",sat:"Sa"},wide:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"}},months:{abbreviated:{1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"May",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Oct",11:"Nov",12:"Dec"},wide:{1:"January",2:"February",3:"March",4:"April",5:"May",6:"June",7:"July",8:"August",9:"September",10:"October",11:"November",12:"December"}},eras:{1:"AD"}}},t.monthIndex={3:"abbreviated",4:"wide",5:"narrow",1:"abbreviated"},t.month="months",t.days="days",t.patternMatcher={C:"currency",P:"percent",N:"decimal",A:"currency",E:"scientific"},t.getResultantPattern=a,t.getDependables=u,t.getSymbolPattern=c,t.ConvertDateToWeekFormat=h,t.compareBlazorDateFormats=l,t.getProperNumericSkeleton=p,t.getFormatData=g,t.changeCurrencySymbol=d,t.getCurrencySymbol=f,t.customFormat=function(t,e,i){for(var r={},n=t.split(";"),o=["pData","nData","zeroData"],s=0;s<n.length;s++)r[o[s]]=M(n[s],e,i);return k(r.nData)&&(r.nData=E({},r.pData),r.nData.nlead=k(e)?"-"+r.nData.nlead:e.minusSymbol+r.nData.nlead),r},t.customNumberFormat=M,t.isCurrencyPercent=y,t.getDateSeparator=function(t){var e=(O("dateFormats.short",t)||"").match(/[d‏M‏]([^d‏M])[d‏M‏]/i);return e?e[1]:"/"},t.getActualDateTimeFormat=function(t,e,i,o){var s=u(i,t,e.calendar),c=e.format||a(e.skeleton,s.dateObject,e.type);if(o){if(c=c.replace(r,function(t){return n[t]}),-1!==c.indexOf("z")){var h=c.match(/z/g).length,l=void 0,p={timeZone:{}};p.numMapper=W.getNumberMapper(s.parserObject,W.getNumberingSystem(i)),p.timeZone=O("dates.timeZoneNames",s.parserObject);var g=(new Date).getTimezoneOffset(),d=h<4?"+H;-H":p.timeZone.hourFormat;d=d.replace(/:/g,p.numMapper.timeSeparator),0===g?l=p.timeZone.gmtZeroFormat:(l=K.getTimeZoneValue(g,d),l=p.timeZone.gmtFormat.replace(/\{0\}/,l)),c=c.replace(/[z]+/,'"'+l+'"')}c=c.replace(/ $/,"")}return c},t.getActualNumberFormat=function(e,i,r,n){var o,s=u(r,e,"",!0),a={custom:!0};s.numericObject;var h={},l=(i.format||"").match(t.currencyFormatRegex);!t.formatRegex.test(i.format)||p(i.format||"N");var d,M={};if(l){M.numberMapper=W.getNumberMapper(s.parserObject,W.getNumberingSystem(r),!0);var y=f(s.numericObject,i.currency||rt,i.altSymbol),D=c("currency",M.numberMapper.numberSystem,s.numericObject,/a/i.test(i.format)),S=(D=D.replace(/\u00A4/g,y)).split(";");h.hasNegativePattern=S.length>1,h.nData=g(S[1]||"-"+S[0],!0,y),h.pData=g(S[0],!1,y),l[2]||i.minimumFractionDigits||i.maximumFractionDigits||(o=g(D.split(";")[0],!0,"",!0).minimumFraction)}if(t.formatRegex.test(i.format)||!i.format){if(E(a,p(i.format||"N")),a.custom=!1,d="###0",a.fractionDigits||i.minimumFractionDigits||i.maximumFractionDigits||o){a.fractionDigits&&(i.minimumFractionDigits=i.maximumFractionDigits=a.fractionDigits),d=m(d,o||a.fractionDigits||i.minimumFractionDigits||0,i.maximumFractionDigits||0)}if(i.minimumIntegerDigits&&(d=N(d,i.minimumIntegerDigits)),i.useGrouping&&(d=j(d)),"currency"===a.type||(a.type,0)){var v=d;d=h.pData.nlead+v+h.pData.nend,h.hasNegativePattern&&(d+=";"+h.nData.nlead+v+h.nData.nend)}"percent"===a.type&&(d+=" %")}else d=i.format.replace(/'/g,'"');return Object.keys(M).length>0&&(d=n?d:function(t,e){if(-1!==t.indexOf(",")){var i=t.split(",");t=i[0]+O("numberMapper.numberSymbols.group",e)+i[1].replace(".",O("numberMapper.numberSymbols.decimal",e))}else t=t.replace(".",O("numberMapper.numberSymbols.decimal",e));return t}(d,M)),d},t.fractionDigitsPattern=m,t.minimumIntegerPattern=N,t.groupingPattern=j,t.getWeekData=function(t,e){var i="sun",r=O("supplemental.weekData.firstDay",e),n=t;return/en-/.test(n)&&(n=n.slice(3)),n=n.slice(0,2).toUpperCase()+n.substr(2),r&&(i=r[""+n]||r[n.slice(0,2)]||"sun"),o[""+i]},t.replaceBlazorCurrency=function(t,e,i){var r=O(i||"",G);if(e!==r)for(var n=0,o=t;n<o.length;n++){var s=o[n];s.nend=s.nend.replace(e,r),s.nlead=s.nlead.replace(e,r)}},t.getWeekOfYear=function(t){var e,i=new Date(t.getFullYear(),0,1),r=i.getDay();r=r>=0?r:r+7;var n=Math.floor((t.getTime()-i.getTime()-6e4*(t.getTimezoneOffset()-i.getTimezoneOffset()))/864e5)+1;if(r<4){if((e=Math.floor((n+r-1)/7)+1)>52){var o=new Date(t.getFullYear()+1,0,1).getDay();e=(o=o>=0?o:o+7)<4?1:53}}else e=Math.floor((n+r-1)/7);return e}}(H||(H={}));var st=function(){function t(t,e,i){this.type="GET",this.emitError=!0,"string"==typeof t?(this.url=t,this.type=k(e)?this.type:e.toUpperCase(),this.contentType=i):x(t)&&Object.keys(t).length>0&&C(this,t),this.contentType=k(this.contentType)?"application/json; charset=utf-8":this.contentType}return t.prototype.send=function(t){var e=this,i={"application/json":"json","multipart/form-data":"formData","application/octet-stream":"blob","application/x-www-form-urlencoded":"formData"};try{k(this.fetchRequest)&&"GET"===this.type?this.fetchRequest=new Request(this.url,{method:this.type}):k(this.fetchRequest)&&(this.data=k(t)?this.data:t,this.fetchRequest=new Request(this.url,{method:this.type,headers:{"Content-Type":this.contentType},body:this.data}));var r={cancel:!1,fetchRequest:this.fetchRequest};return this.triggerEvent(this.beforeSend,r),r.cancel?null:(this.fetchResponse=fetch(this.fetchRequest),this.fetchResponse.then(function(t){if(e.triggerEvent(e.onLoad,t),!t.ok)throw t;for(var r="text",n=0,o=Object.keys(i);n<o.length;n++){var s=o[n];t.headers.get("Content-Type")&&-1!==t.headers.get("Content-Type").indexOf(s)&&(r=i[s])}return t[r]()}).then(function(t){return e.triggerEvent(e.onSuccess,t,e),t}).catch(function(t){var i={};return e.emitError&&(e.triggerEvent(e.onFailure,t),i=Promise.reject(t)),i}))}catch(t){return t}},t.prototype.triggerEvent=function(t,e,i){k(t)||"function"!=typeof t||t(e,i)},t}(),at=/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini|mobile/i,ut=/msie|trident/i,ct=/Trident\/7\./,ht=/(ipad|iphone|ipod touch)/i,lt=/(ipad|iphone|ipod touch);.*os 7_\d|(ipad|iphone|ipod touch);.*os 8_\d/i,pt=/android/i,gt=/trident|windows phone|edge/i,dt=/(version)[ /]([\w.]+)/i,ft={OPERA:/(opera|opr)(?:.*version|)[ /]([\w.]+)/i,EDGE:/(edge)(?:.*version|)[ /]([\w.]+)/i,CHROME:/(chrome|crios)[ /]([\w.]+)/i,PANTHOMEJS:/(phantomjs)[ /]([\w.]+)/i,SAFARI:/(safari)[ /]([\w.]+)/i,WEBKIT:/(webkit)[ /]([\w.]+)/i,MSIE:/(msie|trident) ([\w.]+)/i,MOZILLA:/(mozilla)(?:.*? rv:([\w.]+)|)/i};"undefined"!=typeof window&&(window.browserDetails=window.browserDetails||{});var Mt=function(){function t(){}return t.extractBrowserDetail=function(){for(var e={culture:{}},i=[],r=0,n=Object.keys(ft);r<n.length;r++){var o=n[r];if(i=t.userAgent.match(ft[""+o])){if(e.name="opr"===i[1].toLowerCase()?"opera":i[1].toLowerCase(),e.name="crios"===i[1].toLowerCase()?"chrome":e.name,e.version=i[2],e.culture.name=e.culture.language=navigator.language,t.userAgent.match(ct)){e.name="msie";break}var s=t.userAgent.match(dt);"safari"===e.name&&s&&(e.version=s[2]);break}}return e},t.getEvent=function(e){var i={start:{isPointer:"pointerdown",isTouch:"touchstart",isDevice:"mousedown"},move:{isPointer:"pointermove",isTouch:"touchmove",isDevice:"mousemove"},end:{isPointer:"pointerup",isTouch:"touchend",isDevice:"mouseup"},cancel:{isPointer:"pointercancel",isTouch:"touchcancel",isDevice:"mouseleave"}};return t.isPointer?i[""+e].isPointer:t.isTouch?i[""+e].isTouch+(t.isDevice?"":" "+i[""+e].isDevice):i[""+e].isDevice},t.getTouchStartEvent=function(){return t.getEvent("start")},t.getTouchEndEvent=function(){return t.getEvent("end")},t.getTouchMoveEvent=function(){return t.getEvent("move")},t.getTouchCancelEvent=function(){return t.getEvent("cancel")},t.isSafari=function(){return t.isDevice&&t.isIos&&t.isTouch&&"undefined"!=typeof window&&-1===window.navigator.userAgent.toLowerCase().indexOf("iphone")&&window.navigator.userAgent.toLowerCase().indexOf("safari")>-1},t.getValue=function(e,i){var r="undefined"!=typeof window?window.browserDetails:{};return"undefined"!=typeof navigator&&"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1&&!0===t.isTouch&&!ft.CHROME.test(navigator.userAgent)&&(r.isIos=!0,r.isDevice=!0,r.isTouch=!0,r.isPointer=!0),void 0===r[""+e]?r[""+e]=i.test(t.userAgent):r[""+e]},Object.defineProperty(t,"userAgent",{get:function(){return t.uA},set:function(e){t.uA=e,window.browserDetails={}},enumerable:!0,configurable:!0}),Object.defineProperty(t,"info",{get:function(){return P(window.browserDetails.info)?window.browserDetails.info=t.extractBrowserDetail():window.browserDetails.info},enumerable:!0,configurable:!0}),Object.defineProperty(t,"isIE",{get:function(){return t.getValue("isIE",ut)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"isTouch",{get:function(){return P(window.browserDetails.isTouch)?window.browserDetails.isTouch="ontouchstart"in window.navigator||window&&window.navigator&&window.navigator.maxTouchPoints>0||"ontouchstart"in window:window.browserDetails.isTouch},enumerable:!0,configurable:!0}),Object.defineProperty(t,"isPointer",{get:function(){return P(window.browserDetails.isPointer)?window.browserDetails.isPointer="pointerEnabled"in window.navigator:window.browserDetails.isPointer},enumerable:!0,configurable:!0}),Object.defineProperty(t,"isMSPointer",{get:function(){return P(window.browserDetails.isMSPointer)?window.browserDetails.isMSPointer="msPointerEnabled"in window.navigator:window.browserDetails.isMSPointer},enumerable:!0,configurable:!0}),Object.defineProperty(t,"isDevice",{get:function(){return t.getValue("isDevice",at)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"isIos",{get:function(){return t.getValue("isIos",ht)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"isIos7",{get:function(){return t.getValue("isIos7",lt)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"isAndroid",{get:function(){return t.getValue("isAndroid",pt)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"isWebView",{get:function(){return P(window.browserDetails.isWebView)?(window.browserDetails.isWebView=!(P(window.cordova)&&P(window.PhoneGap)&&P(window.phonegap)&&"object"!==window.forge),window.browserDetails.isWebView):window.browserDetails.isWebView},enumerable:!0,configurable:!0}),Object.defineProperty(t,"isWindows",{get:function(){return t.getValue("isWindows",gt)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"touchStartEvent",{get:function(){return P(window.browserDetails.touchStartEvent)?window.browserDetails.touchStartEvent=t.getTouchStartEvent():window.browserDetails.touchStartEvent},enumerable:!0,configurable:!0}),Object.defineProperty(t,"touchMoveEvent",{get:function(){return P(window.browserDetails.touchMoveEvent)?window.browserDetails.touchMoveEvent=t.getTouchMoveEvent():window.browserDetails.touchMoveEvent},enumerable:!0,configurable:!0}),Object.defineProperty(t,"touchEndEvent",{get:function(){return P(window.browserDetails.touchEndEvent)?window.browserDetails.touchEndEvent=t.getTouchEndEvent():window.browserDetails.touchEndEvent},enumerable:!0,configurable:!0}),Object.defineProperty(t,"touchCancelEvent",{get:function(){return P(window.browserDetails.touchCancelEvent)?window.browserDetails.touchCancelEvent=t.getTouchCancelEvent():window.browserDetails.touchCancelEvent},enumerable:!0,configurable:!0}),t.uA="undefined"!=typeof navigator?navigator.userAgent:"",t}(),yt=function(){function t(){}return t.addOrGetEventData=function(t){return"__eventList"in t?t.__eventList.events:(t.__eventList={},t.__eventList.events=[])},t.add=function(e,i,r,n,o){var s,a,u,c,h=t.addOrGetEventData(e);o?(a=r,u=o,s=function(){var t=this,e=arguments;clearTimeout(c),c=setTimeout(function(){return c=null,a.apply(t,e)},u)}):s=r,n&&(s=s.bind(n));for(var l=i.split(" "),p=0;p<l.length;p++)h.push({name:l[parseInt(p.toString(),10)],listener:r,debounce:s}),Mt.isIE?e.addEventListener(l[parseInt(p.toString(),10)],s):e.addEventListener(l[parseInt(p.toString(),10)],s,{passive:!1});return s},t.remove=function(e,i,r){for(var n=t.addOrGetEventData(e),o=i.split(" "),s=function(t){var i,s=-1;n&&0!==n.length&&n.some(function(e,n){return e.name===o[parseInt(t.toString(),10)]&&e.listener===r&&(s=n,i=e.debounce,!0)}),-1!==s&&n.splice(s,1),i&&e.removeEventListener(o[parseInt(t.toString(),10)],i)},a=0;a<o.length;a++)s(a)},t.clearEvents=function(e){var i,r;r=E([],r,i=t.addOrGetEventData(e));for(var n=0;n<r.length;n++){var o=r[parseInt(n.toString(),10)];e.removeEventListener(o.name,o.debounce),i.shift()}},t.trigger=function(e,i,r){for(var n=0,o=t.addOrGetEventData(e);n<o.length;n++){var s=o[n];s.name===i&&s.debounce.call(this,r)}},t}(),mt=/^svg|^path|^g/;function Nt(t,e){var i=mt.test(t)?document.createElementNS("http://www.w3.org/2000/svg",t):document.createElement(t);return void 0===e||(i.innerHTML=e.innerHTML?e.innerHTML:"",void 0!==e.className&&(i.className=e.className),void 0!==e.id&&(i.id=e.id),void 0!==e.styles&&i.setAttribute("style",e.styles),void 0!==e.attrs&&function(t,e){for(var i=Object.keys(e),r=t,n=0,o=i;n<o.length;n++){var s=o[n];if(x(r)){var a=s;"tabindex"===s&&(a="tabIndex"),r.attributes[""+a]=e[""+s]}else r.setAttribute(s,e[""+s])}}(i,e.attrs)),i}function jt(t,e){for(var i=St(e),r=RegExp,n=0,o=t;n<o.length;n++)for(var s=o[n],a=0,u=i;a<u.length;a++){var c=u[a];if(x(s)){var h=O("attributes.className",s);k(h)?T("attributes.className",c,s):new r("\\b"+c+"\\b","i").test(h)||T("attributes.className",h+" "+c,s)}else s.classList.contains(c)||s.classList.add(c)}return t}function Dt(t,e){for(var i=St(e),r=0,n=t;r<n.length;r++){var o=n[r],s=x(o);if(s?O("attributes.className",o):""!==o.className)for(var a=0,u=i;a<u.length;a++){var c=u[a];if(s){var h=O("attributes.className",o).split(" "),l=h.indexOf(c);-1!==l&&h.splice(l,1),T("attributes.className",h.join(" "),o)}else o.classList.remove(c)}}return t}function St(t){var e=[];return"string"==typeof t?e.push(t):e=t,e}function vt(t){var e=t;return""===e.style.visibility&&e.offsetWidth>0}function It(t,e,i){return void 0===e&&(e=document),t=zt(t),e.querySelector(t)}function zt(t){var e=/(!|"|\$|%|&|'|\(|\)|\*|\/|:|;|<|=|\?|@|\]|\^|`|{|}|\||\+|~)/g;if(t.match(/#[0-9]/g)||t.match(e)){for(var i=t.split(","),r=0;r<i.length;r++){for(var n=i[parseInt(r.toString(),10)].split(" "),o=0;o<n.length;o++)if(n[parseInt(o.toString(),10)].indexOf("#")>-1&&!n[parseInt(o.toString(),10)].match(/\[.*\]/)){var s=n[parseInt(o.toString(),10)].split("#");if(s[1].match(/^\d/)||s[1].match(e)){var a=n[parseInt(o.toString(),10)].split(".");a[0]=a[0].replace(/#/,"[id='")+"']",n[parseInt(o.toString(),10)]=a.join(".")}}i[parseInt(r.toString(),10)]=n.join(" ")}return i.join(",")}return t}function bt(t,e){var i=t;if("function"==typeof i.closest)return i.closest(e);for(;i&&1===i.nodeType;){if(Ot(i,e))return i;i=i.parentNode}return null}function wt(t,e){void 0!==e&&Object.keys(e).forEach(function(i){t.style[i]=e[i]})}function Ot(t,e){var i=t.matches||t.msMatchesSelector||t.webkitMatchesSelector;return i?i.call(t,e):-1!==[].indexOf.call(document.querySelectorAll(e),t)}var Tt=new RegExp("]"),Lt=function(){function t(t,e){this.isRendered=!1,this.isComplexArraySetter=!1,this.isServerRendered=!1,this.allowServerDataBinding=!0,this.isProtectedOnChange=!0,this.properties={},this.changedProperties={},this.oldProperties={},this.bulkChanges={},this.refreshing=!1,this.ignoreCollectionWatch=!1,this.finalUpdate=function(){},this.childChangedProperties={},this.modelObserver=new et(this),P(e)||(this.element="string"==typeof e?document.querySelector(e):e,k(this.element)||(this.isProtectedOnChange=!1,this.addInstance())),P(t)||this.setProperties(t,!0),this.isDestroyed=!1}return t.prototype.setProperties=function(t,e){var i=this.isProtectedOnChange;this.isProtectedOnChange=!!e,C(this,t),!0!==e&&(C(this.changedProperties,t),this.dataBind()),this.finalUpdate(),this.changedProperties={},this.oldProperties={},this.isProtectedOnChange=i},t.callChildDataBind=function(t,e){for(var i=0,r=Object.keys(t);i<r.length;i++){var n=r[i];if(e[""+n]instanceof Array)for(var o=0,s=e[""+n];o<s.length;o++){var a=s[o];void 0!==a.dataBind&&a.dataBind()}else e[""+n].dataBind()}},t.prototype.clearChanges=function(){this.finalUpdate(),this.changedProperties={},this.oldProperties={},this.childChangedProperties={}},t.prototype.dataBind=function(){if(t.callChildDataBind(this.childChangedProperties,this),Object.getOwnPropertyNames(this.changedProperties).length){var e=this.isProtectedOnChange,i=this.changedProperties,r=this.oldProperties;this.clearChanges(),this.isProtectedOnChange=!0,this.onPropertyChanged(i,r),this.isProtectedOnChange=e}},t.prototype.serverDataBind=function(t){},t.prototype.saveChanges=function(t,e,i){this.isProtectedOnChange||(this.oldProperties[""+t]=i,this.changedProperties[""+t]=e,this.finalUpdate(),this.finalUpdate=w(this.dataBind.bind(this)))},t.prototype.addEventListener=function(t,e){this.modelObserver.on(t,e)},t.prototype.removeEventListener=function(t,e){this.modelObserver.off(t,e)},t.prototype.trigger=function(t,e,i,r){var n=this;if(!0!==this.isDestroyed){var o=this.isProtectedOnChange;this.isProtectedOnChange=!1;var s=this.modelObserver.notify(t,e,i,r);if(Tt.test(t)){var a=O(t,this);if(a){if(window.Blazor){var u=a.call(this,e);u&&"function"==typeof u.then?i?u.then(function(t){i&&(t="string"==typeof t&&n.modelObserver.isJson(t)?JSON.parse(t):t,i.call(n,t))}).catch(function(t){r&&(t="string"==typeof t&&n.modelObserver.isJson(t)?JSON.parse(t):t,r.call(n,t))}):s=u:i&&i.call(this,e)}else a.call(this,e),i&&i.call(this,e)}else i&&i.call(this,e)}return this.isProtectedOnChange=o,s}},t.prototype.addInstance=function(){var t="e-"+this.getModuleName().toLowerCase();jt([this.element],["e-lib",t]),k(this.element.ej2_instances)?T("ej2_instances",[this],this.element):this.element.ej2_instances.push(this)},t.prototype.destroy=function(){var t=this;this.element.ej2_instances=this.element.ej2_instances?this.element.ej2_instances.filter(function(e){return e!==t}):[],Dt([this.element],["e-"+this.getModuleName()]),0===this.element.ej2_instances.length&&Dt([this.element],["e-lib"]),this.clearChanges(),this.modelObserver.destroy(),this.isDestroyed=!0},t}();function At(t,e,i,r){return t.properties.hasOwnProperty(e)&&t.properties[e]instanceof r||(t.properties[""+e]=b(r,[t,e,i])),t.properties[""+e]}function xt(t,e){return function(){return this.properties.hasOwnProperty(e)||(this.properties[""+e]=t),this.properties[""+e]}}function Ct(t,e){return function(i){if(this.properties[""+e]!==i){var r=this.properties.hasOwnProperty(e)?this.properties[e]:t;this.saveChanges(e,i,r),this.properties[""+e]=i}}}function Et(t,e,i){return function(){return At(this,e,t,i)}}function kt(t,e,i){return function(r){At(this,e,t,i).setProperties(r)}}function Pt(t){return function(e,i){var r={set:Ct(t,i),get:xt(t,i),enumerable:!0,configurable:!0};Object.defineProperty(e,i,r),Rt(e,i,"prop",t)}}function Ut(t,e){return function(i,r){var n={set:kt(t,r,e),get:Et(t,r,e),enumerable:!0,configurable:!0};Object.defineProperty(i,r,n),Rt(i,r,"complexProp",t,e)}}function Qt(){return function(t,e){var i={set:function(t){var i=this.properties[""+e];if(i!==t){var r=Vt(this,e);!1===P(i)&&r.context.removeEventListener(r.prefix,i),r.context.addEventListener(r.prefix,t),this.properties[""+e]=t}},get:xt(void 0,e),enumerable:!0,configurable:!0};Object.defineProperty(t,e,i),Rt(t,e,"event")}}function Yt(t){}function Rt(t,e,i,r,n){P(t.propList)&&(t.propList={props:[],complexProps:[],colProps:[],events:[],propNames:[],complexPropNames:[],colPropNames:[],eventNames:[]}),t.propList[i+"s"].push({propertyName:e,defaultValue:r,type:n}),t.propList[i+"Names"].push(e)}function Vt(t,e){if(!1===t.hasOwnProperty("parentObj"))return{context:t,prefix:e};var i=O("propName",t);return i&&(e=i+"-"+e),Vt(O("parentObj",t),e)}var Ft,Bt,Wt=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Gt=function(t,e,i,r){var n,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,i,s):n(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s};!function(t){function e(e){var i=t.call(this,e,void 0)||this;return i.easing={ease:"cubic-bezier(0.250, 0.100, 0.250, 1.000)",linear:"cubic-bezier(0.250, 0.250, 0.750, 0.750)",easeIn:"cubic-bezier(0.420, 0.000, 1.000, 1.000)",easeOut:"cubic-bezier(0.000, 0.000, 0.580, 1.000)",easeInOut:"cubic-bezier(0.420, 0.000, 0.580, 1.000)",elasticInOut:"cubic-bezier(0.5,-0.58,0.38,1.81)",elasticIn:"cubic-bezier(0.17,0.67,0.59,1.81)",elasticOut:"cubic-bezier(0.7,-0.75,0.99,1.01)"},i}var i;Wt(e,t),i=e,e.prototype.animate=function(t,e){e=e||{};var r,n,o=this.getModel(e);if("string"==typeof t)for(var s=0,a=Array.prototype.slice.call((r=t,void 0===(n=document)&&(n=document),r=zt(r),n.querySelectorAll(r)));s<a.length;s++){var u=a[s];o.element=u,i.delayAnimation(o)}else o.element=t,i.delayAnimation(o)},e.stop=function(t,e){t.style.animation="",t.removeAttribute("e-animate");var i=t.getAttribute("e-animation-id");if(i){var r=parseInt(i,10);cancelAnimationFrame(r),t.removeAttribute("e-animation-id")}e&&e.end&&e.end.call(this,e)},e.delayAnimation=function(t){Ft===Bt.Disable?(t.begin&&t.begin.call(this,t),t.end&&t.end.call(this,t)):t.delay?setTimeout(function(){i.applyAnimation(t)},t.delay):i.applyAnimation(t)},e.applyAnimation=function(t){var e=this;t.timeStamp=0;var i=0,r=0,n=0,o=t.duration;t.element.setAttribute("e-animate","true");var s=function(a){try{if(a){n=0===n?a:n,t.timeStamp=a+t.timeStamp-n,n=a,!i&&t.begin&&t.begin.call(e,t),i+=1;var u=t.timeStamp/i;t.timeStamp<o&&t.timeStamp+u<o&&t.element.getAttribute("e-animate")?(t.element.style.animation=t.name+" "+t.duration+"ms "+t.timingFunction,t.progress&&t.progress.call(e,t),requestAnimationFrame(s)):(cancelAnimationFrame(r),t.element.removeAttribute("e-animation-id"),t.element.removeAttribute("e-animate"),t.element.style.animation="",t.end&&t.end.call(e,t))}else r=requestAnimationFrame(s),t.element.setAttribute("e-animation-id",r.toString())}catch(i){cancelAnimationFrame(r),t.element.removeAttribute("e-animation-id"),t.fail&&t.fail.call(e,i)}};s()},e.prototype.getModel=function(t){return{name:t.name||this.name,delay:t.delay||this.delay,duration:void 0!==t.duration?t.duration:this.duration,begin:t.begin||this.begin,end:t.end||this.end,fail:t.fail||this.fail,progress:t.progress||this.progress,timingFunction:this.easing[t.timingFunction]?this.easing[t.timingFunction]:t.timingFunction||this.easing[this.timingFunction]}},e.prototype.onPropertyChanged=function(t,e){},e.prototype.getModuleName=function(){return"animation"},e.prototype.destroy=function(){},Gt([Pt("FadeIn")],e.prototype,"name",void 0),Gt([Pt(400)],e.prototype,"duration",void 0),Gt([Pt("ease")],e.prototype,"timingFunction",void 0),Gt([Pt(0)],e.prototype,"delay",void 0),Gt([Qt()],e.prototype,"progress",void 0),Gt([Qt()],e.prototype,"begin",void 0),Gt([Qt()],e.prototype,"end",void 0),Gt([Qt()],e.prototype,"fail",void 0),e=i=Gt([Yt],e)}(Lt),function(t){t.Default="Default",t.Enable="Enable",t.Disable="Disable"}(Bt||(Bt={}));var Ht,qt=function(){function t(t){this.loadedModules=[],this.parent=t}return t.prototype.inject=function(t,e){var i=t.length;if(0!==i){this.loadedModules.length&&this.clearUnusedModule(t);for(var r=0;r<i;r++)for(var n=t[parseInt(r.toString(),10)],o=0,s=e;o<s.length;o++){var a=s[o],u=n.member;if(a&&a.prototype.getModuleName()===n.member&&!this.isModuleLoaded(u)){var c=b(a,n.args),h=this.getMemberName(u);n.isProperty?T(h,a,this.parent):T(h,c,this.parent);var l=n;l.member=h,this.loadedModules.push(l)}}}else this.clean()},t.prototype.clean=function(){for(var t=0,e=this.loadedModules;t<e.length;t++){var i=e[t];i.isProperty||O(i.member,this.parent).destroy()}this.loadedModules=[]},t.prototype.getNonInjectedModules=function(t){var e=this;return t.filter(function(t){return!e.isModuleLoaded(t.member)})},t.prototype.clearUnusedModule=function(t){for(var e=this,i=t.map(function(t){return e.getMemberName(t.member)}),r=0,n=this.loadedModules.filter(function(t){return-1===i.indexOf(t.member)});r<n.length;r++){var o=n[r];o.isProperty||O(o.member,this.parent).destroy(),this.loadedModules.splice(this.loadedModules.indexOf(o),1),L(this.parent,o.member)}},t.prototype.getMemberName=function(t){return t[0].toLowerCase()+t.substring(1)+"Module"},t.prototype.isModuleLoaded=function(t){for(var e=0,i=this.loadedModules;e<i.length;e++){if(i[e].member===this.getMemberName(t))return!0}return!1},t}(),_t=function(){function t(t,e,i,r){this.isComplexArraySetter=!1,this.properties={},this.changedProperties={},this.childChangedProperties={},this.oldProperties={},this.finalUpdate=function(){},this.callChildDataBind=O("callChildDataBind",Lt),this.parentObj=t,this.controlParent=this.parentObj.controlParent||this.parentObj,this.propName=e,this.isParentArray=r,this.setProperties(i,!0)}return t.prototype.updateChange=function(t,e){!0===t?this.parentObj.childChangedProperties[""+e]=t:delete this.parentObj.childChangedProperties[""+e],this.parentObj.updateChange&&this.parentObj.updateChange(t,this.parentObj.propName)},t.prototype.updateTimeOut=function(){if(this.parentObj.updateTimeOut)this.parentObj.finalUpdate(),this.parentObj.updateTimeOut();else{var t=setTimeout(this.parentObj.dataBind.bind(this.parentObj));this.finalUpdate=function(){clearTimeout(t)}}},t.prototype.clearChanges=function(){this.finalUpdate(),this.updateChange(!1,this.propName),this.oldProperties={},this.changedProperties={}},t.prototype.setProperties=function(t,e){!0===e?(C(this,t),this.updateChange(!1,this.propName),this.clearChanges()):C(this,t)},t.prototype.dataBind=function(){if(this.callChildDataBind(this.childChangedProperties,this),this.isParentArray){var t=this.parentObj[this.propName].indexOf(this);Object.keys(this.changedProperties).length&&(T(this.propName+"."+t,this.changedProperties,this.parentObj.changedProperties),T(this.propName+"."+t,this.oldProperties,this.parentObj.oldProperties))}else this.parentObj.changedProperties[this.propName]=this.changedProperties,this.parentObj.oldProperties[this.propName]=this.oldProperties;this.clearChanges()},t.prototype.saveChanges=function(t,e,i,r){this.controlParent.isProtectedOnChange||(r||this.serverDataBind(t,e,!0),this.oldProperties[""+t]=i,this.changedProperties[""+t]=e,this.updateChange(!0,this.propName),this.finalUpdate(),this.updateTimeOut())},t.prototype.serverDataBind=function(t,e,i,r){},t.prototype.getParentKey=function(t){var e="",i=this.propName;if(this.isParentArray){e=this.parentObj[this.propName].indexOf(this);var r=this.parentObj[this.propName].length;r=t?r:r>0?r-1:0,i+=e=-1!==e?"-"+e:"-"+r}return this.controlParent!==this.parentObj&&(i=this.parentObj.getParentKey()+"."+this.propName+e),i},t}(),Jt=["grid","pivotview","treegrid","spreadsheet","rangeNavigator","DocumentEditor","listbox","inplaceeditor","PdfViewer","richtexteditor","DashboardLayout","chart","stockChart","circulargauge","diagram","heatmap","lineargauge","maps","slider","smithchart","barcode","sparkline","treemap","bulletChart","kanban","daterangepicker","schedule","gantt","signature","query-builder","drop-down-tree","carousel","filemanager","uploader","accordion","tab","treeview"],Zt=[115,121,110,99,102,117,115,105,111,110,46,105,115,76,105,99,86,97,108,105,100,97,116,101,100],Kt=function(){function t(t){var e;this.isValidated=!1,this.isLicensed=!0,this.version="25",this.platform=/JavaScript|ASPNET|ASPNETCORE|ASPNETMVC|FileFormats|essentialstudio/i,this.errors={noLicense:"<span>This application was built using a trial version of Syncfusion Essential Studio. To remove the license validation message permanently, a valid license key must be included.</span>",trailExpired:"<span>This application was built using a trial version of Syncfusion Essential Studio. To remove the license validation message permanently, a valid license key must be included.</span>",versionMismatched:"<span>The included Syncfusion license key is invalid.</span>",platformMismatched:"<span>The included Syncfusion license key is invalid.</span>",invalidKey:"<span>The included Syncfusion license key is invalid.</span>"},this.manager=(e=null,{setKey:function(t){e=t},getKey:function(){return e}}),this.npxManager={getKey:function(){return"npxKeyReplace"}},this.manager.setKey(t)}return t.prototype.validate=function(){if(!this.isValidated&&A&&!O($t(Zt),A)&&!O("Blazor",A)){var t=void 0,e=void 0;if(this.manager&&this.manager.getKey()||this.npxManager&&"npxKeyReplace"!==this.npxManager.getKey()){var i=this.getInfoFromKey();if(i&&i.length)for(var r=0,n=i;r<n.length;r++){var o=n[r];if(!this.platform.test(o.platform)||o.invalidPlatform)t=this.errors.platformMismatched;else if(-1===o.version.indexOf(this.version))t=(t=(t=this.errors.versionMismatched).replace("##LicenseVersion",o.version)).replace("##Requireversion",this.version+".x");else if(o.expiryDate){var s=new Date(o.expiryDate),a=new Date;if(!(s!==a&&s<a))break;t=this.errors.trailExpired}}else t=this.errors.invalidKey}else{var u=O($t([115,121,110,99,102,117,115,105,111,110,46,108,105,99,101,110,115,101,67,111,110,116,101,110,116]),A);e=O($t([115,121,110,99,102,117,115,105,111,110,46,99,108,97,105,109,65,99,99,111,117,110,116,85,82,76]),A),t=u&&""!==u?u:this.errors.noLicense}if(t&&"undefined"!=typeof document&&!k(document)){var c=Nt("div",{innerHTML:"<img src='data:image/svg+xml;base64,PHN2ZyB3aWR0a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z4KPC9jbGlwUGF0aD4KPC9kZWZzPgo8L3N2Zz4K' style=\"top: 6px;\n position: absolute;\n left: 16px;\n width: 24px;\n height: 24px;\"/>"+t+' <a style="text-decoration: none;color: #0D6EFD;font-weight: 500;" href='+(Ht=e&&""!==e?e:"https://www.syncfusion.com/account/claim-license-key?pl=SmF2YVNjcmlwdA==&vs=MjU=&utm_source=es_license_validation_banner&utm_medium=listing&utm_campaign=license-information")+">Claim your free account</a>"});c.setAttribute("style","position: fixed;\n top: 10px;\n left: 10px;\n right: 10px;\n font-size: 14px;\n background: #EEF2FF;\n color: #222222;\n z-index: 999999999;\n text-align: left;\n border: 1px solid #EEEEEE;\n padding: 10px 11px 10px 50px;\n border-radius: 8px;\n font-family: Helvetica Neue, Helvetica, Arial;"),document.body.appendChild(c),this.isLicensed=!1}this.isValidated=!0,T($t(Zt),this.isValidated,A)}return this.isLicensed},t.prototype.getDecryptedData=function(t){try{return atob(t)}catch(t){return""}},t.prototype.getInfoFromKey=function(){try{var t="",e=[5439488,7929856,5111808,6488064,4587520,7667712,5439488,6881280,5177344,7208960,4194304,4456448,6619136,7733248,5242880,7077888,6356992,7602176,4587520,7274496,7471104,7143424],i=[],r=[],n=!1,o=!1;this.manager.getKey()?t=this.manager.getKey():(o=!0,t=this.npxManager.getKey().split("npxKeyReplace")[1]);for(var s=t.split(";"),a=0,u=s;a<u.length;a++){var c=u[a],h=this.getDecryptedData(c);if(h){var l=0,p="";if(o){var g=h[h.length-1],d=[];for(f=0;f<h.length;f++)d[""+f]=h[""+f].charCodeAt(0)-g.charCodeAt(0);for(f=0;f<d.length;f++)p+=String.fromCharCode(d[parseInt(f.toString(),10)])}else for(var f=0;f<h.length;f++,l++){l===e.length&&(l=0);var M=h.charCodeAt(f);p+=String.fromCharCode(M^e[parseInt(l.toString(),10)]>>16)}this.platform.test(p)?(i=p.split(";"),n=!1,i.length>3&&r.push({platform:i[0],version:i[1],expiryDate:i[2]})):p&&p.split(";").length>3&&(n=!0)}}return n&&!r.length?[{invalidPlatform:n}]:r.length?r:null}catch(t){return null}},t}(),Xt=new Kt;function $t(t){for(var e="",i=0,r=t;i<r.length;i++){var n=r[i];e+=String.fromCharCode(n)}return e}var te,ee=function(t){return t&&function(t){Xt=new Kt(t)}(t),Xt.validate()},ie=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),re=function(t,e,i,r){var n,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,i,s):n(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s},ne=0,oe=0,se=0,ae=!0,ue=!1;!function(t){function e(e,i){var r=t.call(this,e,i)||this;return r.randomId=function(){if("undefined"!=typeof window){var t=new Uint16Array(5);return(window.msCrypto||window.crypto).getRandomValues(t)}}(),r.isStringTemplate=!1,r.needsID=!1,r.isReactHybrid=!1,k(r.enableRtl)&&r.setProperties({enableRtl:false},!0),k(r.locale)&&r.setProperties({locale:"en-US"},!0),r.moduleLoader=new qt(r),r.localObserver=new et(r),it.on("notifyExternalChange",r.detectFunction,r,r.randomId),"undefined"==typeof window||"undefined"==typeof document||ee()||-1!==Jt.indexOf(r.getModuleName())&&(se+=1)>5&&(ae=!1),P(i)||r.appendTo(),r}ie(e,t),e.prototype.requiredModules=function(){return[]},e.prototype.destroy=function(){this.isDestroyed||(this.enablePersistence&&(this.setPersistData(),this.detachUnloadEvent()),this.localObserver.destroy(),this.refreshing||(Dt([this.element],["e-control"]),this.trigger("destroyed",{cancel:!1}),t.prototype.destroy.call(this),this.moduleLoader.clean(),it.off("notifyExternalChange",this.detectFunction,this.randomId)))},e.prototype.refresh=function(){this.refreshing=!0,this.moduleLoader.clean(),this.destroy(),this.clearChanges(),this.localObserver=new et(this),this.preRender(),this.injectModules(),this.render(),this.refreshing=!1},e.prototype.accessMount=function(){this.mount&&!this.isReactHybrid&&this.mount()},e.prototype.getRootElement=function(){return this.isReactHybrid?this.actualElement:this.element},e.prototype.getLocalData=function(){var t=this.getModuleName()+this.element.id;return window.localStorage.getItem(t)},e.prototype.attachUnloadEvent=function(){this.handleUnload=this.handleUnload.bind(this),window.addEventListener("unload",this.handleUnload)},e.prototype.handleUnload=function(){this.setPersistData()},e.prototype.detachUnloadEvent=function(){window.removeEventListener("unload",this.handleUnload)},e.prototype.appendTo=function(e){if(k(e)||"string"!=typeof e?k(e)||(this.element=e):this.element=It(e,document),!k(this.element)){var i="e-"+this.getModuleName().toLowerCase();jt([this.element],["e-control",i]),this.isProtectedOnChange=!1,this.needsID&&!this.element.id&&(this.element.id=this.getUniqueID(this.getModuleName())),this.enablePersistence&&(this.mergePersistData(),this.attachUnloadEvent());var r=O("ej2_instances",this.element);r&&-1!==r.indexOf(this)||t.prototype.addInstance.call(this),this.preRender(),this.injectModules();var n={schedule:"all",diagram:"all",PdfViewer:"all",grid:["logger"],richtexteditor:["link","table","image","audio","video","formatPainter","emojiPicker","pasteCleanup","htmlEditor","toolbar"],treegrid:["filter"],gantt:["tooltip"],chart:["Export","Zoom"],accumulationchart:["Export"]},o=this.getModuleName();if(this.requiredModules&&(!n[""+o]||"all"!==n[""+o]))for(var s=this.requiredModules(),a=0,u=this.moduleLoader.getNonInjectedModules(s);a<u.length;a++){var c=u[a],h=c.name?c.name:c.member;if(!n[""+o]||-1===n[""+o].indexOf(c.member)){var l=o.charAt(0).toUpperCase()+o.slice(1);console.warn('[WARNING] :: Module "'+h+'" is not available in '+l+" component! You either misspelled the module name or forgot to load it.")}}ae||ue||(!function(){var t='\n <div style="\n position: fixed;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: rgba(0, 0, 0, 0.5);\n z-index: 99999;\n ">\n <div style="\n background: #FFFFFF;\n height: 455px;\n width: 840px;\n font-family: Helvetica Neue, Helvetica, Arial;\n color: #000000;\n box-shadow: 0px 4.8px 14.4px rgb(0 0 0 / 18%), 0px 25.6px 57.6px rgb(0 0 0 / 22%);\n display: block;\n margin: 8% auto;\n border-radius: 20px;\n ">\n <div style="\n position: absolute;\nwidth: 838px;\nheight: 62px;\nbackground-color: #F9F9F9;\nborder: 1px solid #EEEEEE;\nborder-top-left-radius: 20px;\nborder-top-right-radius: 20px;\n">\n <img src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQ2IiBoZWlnaHQ9IjMyIiB2aWV3Qm94PSIwIDAgMTQ2IDMyIiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJNNDAuNTk2NSAxNS4wMDc4SDMyLjQyNUMzMS41NTU3IDE1LjAwNzggMzAuOTAzNyAxNS4xODEyIDMwLjUxMjUgMTUuNDg0NkMzMC4xMjEzIDE1LjgzMTQgMjkuOTA0IDE2LjMwODIgMjkuOTA0IDE3LjA0NTFDMjkuOTA0IDE3LjYwODYgMzAuMDc3OCAxOC4wNDIxIDMwLjQyNTYgMTguMzAyMkMzMC43NzMzIDE4LjYwNTYgMzEuMjk0OSAxOC43MzU2IDMxLjk5MDMgMTguNzM1NkgzNi4zMzY5QzM4LjExODkgMTguNzM1NiAzOS40MjI5IDE5LjA4MjQgNDAuMTYxOCAxOS43MzI2QzQwLjk0NDIgMjAuNDI2MiA0MS4yOTE5IDIxLjU1MzIgNDEuMjkxOSAyMy4xMTM3QzQxLjI5MTkgMjQuNzE3NiA0MC44NTcyIDI1Ljg4OCAzOS45ODc5IDI2LjY2ODJDMzkuMTE4NiAyNy40MDUxIDM3LjcyNzcgMjcuNzk1MyAzNS44NTg3IDI3Ljc5NTNIMjc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DE1LjA1MTFIMTQzLjkxNFYxNS42NTc5SDE0NC4wNDRaIiBmaWxsPSIjMzU0M0E4Ii8+Cjwvc3ZnPgo=" style="\n text-align: left;\n width: 146px;\n position: absolute;\n top: 14px;\n left: 31px;\n">\n </div>\n <div style="\n position: relative;\n top: 80px;\n left: 32px;\n font-size: 20px;\n text-align: left;\n font-weight: 700;\n letter-spacing: 0.02em;\n font-style: normal;\n line-height: 125%;\n ">Claim your FREE account and get a key in less than a minute</div>\n <ul style="\n font-size: 15px;\n font-weight: 400;\n color: #333333;\n letter-spacing: 0.01em;\n position: relative;\n left: 32px;\n top: 88px;\n line-height: 180%;\n ">\n <li><span>Access to a 30-day free trial of any of our products.</span></li>\n <li><span>Access to 24x5 support by developers via the <a href="https://support.syncfusion.com/create?utm_source=es_license_validation_banner&utm_medium=listing&utm_campaign=license-information" style="text-decoration: none;\n color: #0D6EFD;\n font-weight: 500;">support tickets</a>, <a href="https://www.syncfusion.com/forums?utm_source=es_license_validation_banner&utm_medium=listing&utm_campaign=license-information" style="text-decoration: none;\n color: #0D6EFD;\n font-weight: 500;">forum</a>, <a href="https://www.syncfusion.com/feedback?utm_source=es_license_validation_banner&utm_medium=listing&utm_campaign=license-information\n " style="text-decoration: none;\n color: #0D6EFD;\n font-weight: 500;">feature &amp; feedback page</a> and chat.</span></li>\n <li><span>200+ <a href="https://www.syncfusion.com/succinctly-free-ebooks?utm_source=es_license_validation_banner&utm_medium=listing&utm_campaign=license-information" style="text-decoration: none;\n color: #0D6EFD;\n font-weight: 500;">ebooks </a>on the latest technologies, industry trends, and research topics.</span>\n </li>\n <li><span>Largest collection of over 7,000 flat and wireframe icons for free with Syncfusion <a href="https://www.syncfusion.com/downloads/metrostudio?utm_source=es_license_validation_banner&utm_medium=listing&utm_campaign=license-information\n " style="text-decoration: none;\n color: #0D6EFD;\n font-weight: 500;">Metro Studio.</a></span></li>\n <li><span>Free and unlimited access to Syncfusion technical <a href="https://www.syncfusion.com/blogs/?utm_source=es_license_validation_banner&utm_medium=listing&utm_campaign=license-information\n " style="text-decoration: none;\n color: #0D6EFD;\n font-weight: 500;">blogs</a> and <a href="https://www.syncfusion.com/resources/techportal/whitepapers?utm_source=es_license_validation_banner&utm_medium=listing&utm_campaign=license-information" style="text-decoration: none;\n color: #0D6EFD;\n font-weight: 500;">whitepapers.</a></span></li>\n </ul>\n <div style="\n font-size: 18px;\n font-weight: 700;\n position: relative;\n line-height: 125%;\n letter-spacing: 0.02em;\n top: 90px;\n left: 32px;\n ">Syncfusion is trusted by 29,000+ businesses worldwide</div>\n <img src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODIwIiBoZWlnaHQ9IjU2IiB2aWV3Qm94PSIwIDAgODIwIDU2IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPg0KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik00MjcuNjE3IDIyLjU2NTlWMjQuNzIyNkM0MjYuNTU4IDI0LjM2MzggNDI1LjM5OCAyNC4xNTQ0IDQyNC40NzQgMjQuMTU0NEM0MjMuMzMzIDI0LjE1NDQgNDIyLjY5OCAyNC40OTEyIDQyMi42OTggMjUuMDk2M0M0MjIuNjk4IDI1LjQ4MjQgNDIyLjk3NiAyNS43MzgzIDQyMy43NzMgMjYuMDg1NEw0MjUuOTE3IDI3LjAxNzRDNDI3LjYzMyAyNy43NjM5IDQyOC40OTcgMjguODUzIDQyOC40OTcgMzAuMjY4MUM0MjguNDk3IDMyLjQ1MjIgNDI2LjU0NiAzMy44MyA0MjMuNDUyIDMzLjgzQzQyMi4zMjQgMzMuODMgNDIxLjAxOCAzMy42NzM2IDQxOS42MzYgMzMuMzcwOVYzMS4xNDE2QzQyMS4wMDYgMzEuNTAyOCA0MjIuMjYyIDMxLjY5NTcgNDIzLjIzOSAzMS42OTU3QzQyNC41MTggMzEuNjk1NyA0MjUuMjAzIDMxLjM1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MjYxLjE1NSAzNy4wNjFMMjYxLjY2NCAzOC40OTM2TDI2MS43NTIgMzguNDk1NkwyNjIuMjY5IDM3LjA2MUgyNjEuMTU1VjM3LjA2MVpNMjY1Ljk4NCAzNy4wNjFWMzguNDk3N0gyNzMuMjk1VjM3LjA2MUgyNjUuOTg0WiIgZmlsbD0iIzFGNzBDMSIvPg0KPC9nPg0KPGRlZnM+DQo8Y2xpcFBhdGggaWQ9ImNsaXAwXzU4XzExMSI+DQo8cmVjdCB3aWR0aD0iNDQuNDQ3MyIgaGVpZ2h0PSIyOS42MzE1IiBmaWxsPSJ3aGl0ZSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoNzUzLjk1NSAxNC44MTU1KSIvPg0KPC9jbGlwUGF0aD4NCjxjbGlwUGF0aCBpZD0iY2xpcDFfNThfMTExIj4NCjxyZWN0IHdpZHRoPSI3Ni41NDgxIiBoZWlnaHQ9IjE2LjM1MDciIGZpbGw9IndoaXRlIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg1MjUuNTk5IDIwLjk4ODkpIi8+DQo8L2NsaXBQYXRoPg0KPGNsaXBQYXRoIGlkPSJjbGlwMl81OF8xMTEiPg0KPHJlY3Qgd2lkdGg9IjUyLjEzNzIiIGhlaWdodD0iMjAuOTk4NyIgZmlsbD0id2hpdGUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDIyMS4xNTggMTcuNDk5KSIvPg0KPC9jbGlwUGF0aD4NCjwvZGVmcz4NCjwvc3ZnPg0K" style="\n width: 742.5px;\n position: relative;\n top: 107px;\n left: 32px;\n ">\n <a href='+Ht+' style="\n float: left;\n border-radius: 56px;\n background: #0D6EFD;\n padding-top: 8px;\n width: 280px;\n height: 38px;\n text-align: center;\n position: relative;\n top: 127px;\n left: 274px;\n font-size: 16px;\n color: white;\n text-decoration: none;\n letter-spacing: 0.02em;\n ">Claim your FREE account</a>\n <div style="\n font-size: 14px;\n position: relative;\n top: 180px;\n left: 19px;\n letter-spacing: 0.02em;\n font-weight: 500;\n line-height: 125%;\n">have a Syncfusion account? <a href="https://www.syncfusion.com/account/login?ReturnUrl=/account/login" style="text-decoration: none;\ncolor: #0D6EFD;\nfont-weight: 500;">Sign In</a></div>\n </div>\n </div>';if("undefined"!=typeof document&&!k(document)){var e=Nt("div",{innerHTML:t});document.body.appendChild(e)}}(),ue=!0),this.render(),this.mount?this.accessMount():this.trigger("created")}},e.prototype.renderComplete=function(t){this.isRendered=!0},e.prototype.dataBind=function(){this.injectModules(),t.prototype.dataBind.call(this)},e.prototype.on=function(t,e,i){if("string"==typeof t)this.localObserver.on(t,e,i);else for(var r=0,n=t;r<n.length;r++){var o=n[r];this.localObserver.on(o.event,o.handler,o.context)}},e.prototype.off=function(t,e){if("string"==typeof t)this.localObserver.off(t,e);else for(var i=0,r=t;i<r.length;i++){var n=r[i];this.localObserver.off(n.event,n.handler)}},e.prototype.notify=function(t,e){!0!==this.isDestroyed&&this.localObserver.notify(t,e)},e.prototype.getInjectedModules=function(){return this.injectedModules},e.Inject=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.prototype.injectedModules||(this.prototype.injectedModules=[]);for(var i=0;i<t.length;i++)-1===this.prototype.injectedModules.indexOf(t[parseInt(i.toString(),10)])&&this.prototype.injectedModules.push(t[parseInt(i.toString(),10)])},e.prototype.createElement=function(t,e,i){return Nt(t,e)},e.prototype.triggerStateChange=function(t,e){this.isReactHybrid&&(this.setState(),this.currentContext={calls:t,args:e})},e.prototype.injectModules=function(){this.injectedModules&&this.injectedModules.length&&this.moduleLoader.inject(this.requiredModules(),this.injectedModules)},e.prototype.detectFunction=function(t){var e=Object.keys(t);e.length&&(this[e[0]]=t[e[0]])},e.prototype.mergePersistData=function(){var t;k(t=window.localStorage.getItem(this.getModuleName()+this.element.id))||""===t||this.setProperties(JSON.parse(t),!0)},e.prototype.setPersistData=function(){this.isDestroyed||window.localStorage.setItem(this.getModuleName()+this.element.id,this.getPersistData())},e.prototype.renderReactTemplates=function(t){k(t)||t()},e.prototype.clearTemplate=function(t,e){},e.prototype.getUniqueID=function(t){return this.isHistoryChanged()&&(ne=0),te=this.pageID(location.href),oe=history.length,t+"_"+te+"_"+ne++},e.prototype.pageID=function(t){var e=0;if(0===t.length)return e;for(var i=0;i<t.length;i++){e=(e<<5)-e+t.charCodeAt(i),e&=e}return Math.abs(e)},e.prototype.isHistoryChanged=function(){return te!==this.pageID(location.href)||oe!==history.length},e.prototype.addOnPersist=function(t){for(var e=this,i={},r=0,n=t;r<n.length;r++){var o,s=n[r];P(o=O(s,this))||T(s,this.getActualProperties(o),i)}return JSON.stringify(i,function(t,i){return e.getActualProperties(i)})},e.prototype.getActualProperties=function(t){return t instanceof _t?O("properties",t):t},e.prototype.ignoreOnPersist=function(t){return JSON.stringify(this.iterateJsonProperties(this.properties,t))},e.prototype.iterateJsonProperties=function(t,e){for(var i={},r=function(r){if(-1===e.indexOf(r)){var o=t[r];if("object"!=typeof o||o instanceof Array)i[""+r]=o;else{var s=e.filter(function(t){return new RegExp(r+".").test(t)}).map(function(t){return t.replace(r+".","")});i[""+r]=n.iterateJsonProperties(n.getActualProperties(o),s)}}},n=this,o=0,s=Object.keys(t);o<s.length;o++){r(s[o])}return i},re([Pt(!1)],e.prototype,"enablePersistence",void 0),re([Pt()],e.prototype,"enableRtl",void 0),re([Pt()],e.prototype,"locale",void 0),e=re([Yt],e)}(Lt),"undefined"!=typeof window&&window.addEventListener("popstate",function(){ne=0});var ce=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),he=function(t,e,i,r){var n,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,i,s):n(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s},le={left:0,top:0,bottom:0,right:0},pe={isDragged:!1},ge=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ce(e,t),he([Pt(0)],e.prototype,"left",void 0),he([Pt(0)],e.prototype,"top",void 0),e}(_t);!function(t){function e(e,r){var n=t.call(this,r,e)||this;return n.dragLimit=i.getDefaultPosition(),n.borderWidth=i.getDefaultPosition(),n.padding=i.getDefaultPosition(),n.diffX=0,n.prevLeft=0,n.prevTop=0,n.dragProcessStarted=!1,n.eleTop=0,n.tapHoldTimer=0,n.externalInitialize=!1,n.diffY=0,n.parentScrollX=0,n.parentScrollY=0,n.droppables={},n.bind(),n}var i;ce(e,t),i=e,e.prototype.bind=function(){this.toggleEvents(),Mt.isIE&&jt([this.element],"e-block-touch"),this.droppables[this.scope]={}},e.getDefaultPosition=function(){return E({},le)},e.prototype.toggleEvents=function(t){var e;P(this.handle)||(e=It(this.handle,this.element));var i=this.enableTapHold&&Mt.isDevice&&Mt.isTouch?this.mobileInitialize:this.initialize;t?yt.remove(e||this.element,Mt.isSafari()?"touchstart":Mt.touchStartEvent,i):yt.add(e||this.element,Mt.isSafari()?"touchstart":Mt.touchStartEvent,i,this)},e.prototype.mobileInitialize=function(t){var e=this,i=t.currentTarget;this.tapHoldTimer=setTimeout(function(){e.externalInitialize=!0,e.removeTapholdTimer(),e.initialize(t,i)},this.tapHoldThreshold),yt.add(document,Mt.isSafari()?"touchmove":Mt.touchMoveEvent,this.removeTapholdTimer,this),yt.add(document,Mt.isSafari()?"touchend":Mt.touchEndEvent,this.removeTapholdTimer,this)},e.prototype.removeTapholdTimer=function(){clearTimeout(this.tapHoldTimer),yt.remove(document,Mt.isSafari()?"touchmove":Mt.touchMoveEvent,this.removeTapholdTimer),yt.remove(document,Mt.isSafari()?"touchend":Mt.touchEndEvent,this.removeTapholdTimer)},e.prototype.getScrollableParent=function(t,e){return k(t)?null:t[{vertical:"scrollHeight",horizontal:"scrollWidth"}[""+e]]>t[{vertical:"clientHeight",horizontal:"clientWidth"}[""+e]]&&("vertical"===e?t.scrollTop>0:t.scrollLeft>0)?("vertical"===e?(this.parentScrollY=this.parentScrollY+(0===this.parentScrollY?t.scrollTop:t.scrollTop-this.parentScrollY),this.tempScrollHeight=t.scrollHeight):(this.parentScrollX=this.parentScrollX+(0===this.parentScrollX?t.scrollLeft:t.scrollLeft-this.parentScrollX),this.tempScrollWidth=t.scrollWidth),k(t)?t:this.getScrollableParent(t.parentNode,e)):this.getScrollableParent(t.parentNode,e)},e.prototype.getScrollableValues=function(){this.parentScrollX=0,this.parentScrollY=0,this.element.classList.contains("e-dialog")&&this.element.classList.contains("e-dlg-modal"),this.getScrollableParent(this.element.parentNode,"vertical"),this.getScrollableParent(this.element.parentNode,"horizontal")},e.prototype.initialize=function(t,e){if(this.currentStateTarget=t.target,!this.isDragStarted()){if(this.isDragStarted(!0),this.externalInitialize=!1,this.target=t.currentTarget||e,this.dragProcessStarted=!1,this.abort){var i=this.abort;"string"==typeof i&&(i=[i]);for(var r=0;r<i.length;r++)if(!k(bt(t.target,i[parseInt(r.toString(),10)])))return void(this.isDragStarted()&&this.isDragStarted(!0))}this.preventDefault&&!P(t.changedTouches)&&"touchstart"!==t.type&&t.preventDefault(),this.element.setAttribute("aria-grabbed","true");var n=this.getCoordinates(t);if(this.initialPosition={x:n.pageX,y:n.pageY},!this.clone){var o=this.element.getBoundingClientRect();this.getScrollableValues(),t.clientX===t.pageX&&(this.parentScrollX=0),t.clientY===t.pageY&&(this.parentScrollY=0),this.relativeXPosition=n.pageX-(o.left+this.parentScrollX),this.relativeYPosition=n.pageY-(o.top+this.parentScrollY)}this.externalInitialize?this.intDragStart(t):(yt.add(document,Mt.isSafari()?"touchmove":Mt.touchMoveEvent,this.intDragStart,this),yt.add(document,Mt.isSafari()?"touchend":Mt.touchEndEvent,this.intDestroy,this)),this.toggleEvents(!0),"touchstart"!==t.type&&this.isPreventSelect&&document.body.classList.add("e-prevent-select"),this.externalInitialize=!1,yt.trigger(document.documentElement,Mt.isSafari()?"touchstart":Mt.touchStartEvent,t)}},e.prototype.intDragStart=function(t){this.removeTapholdTimer();var e=!P(t.changedTouches);if(!e||1===t.changedTouches.length){var i,r=this.getCoordinates(t),n=getComputedStyle(this.element);this.margin={left:parseInt(n.marginLeft,10),top:parseInt(n.marginTop,10),right:parseInt(n.marginRight,10),bottom:parseInt(n.marginBottom,10)};var o=this.element;if(this.clone&&this.dragTarget){var s=bt(t.target,this.dragTarget);k(s)||(o=s)}this.isReplaceDragEle&&(o=this.currentStateCheck(t.target,o)),this.offset=this.calculateParentPosition(o),this.position=this.getMousePosition(t,this.isDragScroll);var a=this.initialPosition.x-r.pageX,u=this.initialPosition.y-r.pageY;if(Math.sqrt(a*a+u*u)>=this.distance||this.externalInitialize){var c=this.getHelperElement(t);if(!c||k(c))return;e&&t.preventDefault();var h=this.helperElement=c;if(this.parentClientRect=this.calculateParentPosition(h.offsetParent),this.dragStart){var l={event:t,element:o,target:this.getProperTargetElement(t),bindEvents:null,dragElement:h};this.trigger("dragStart",l)}this.dragArea?this.setDragArea():(this.dragLimit={left:0,right:0,bottom:0,top:0},this.borderWidth={top:0,left:0}),i={left:this.position.left-this.parentClientRect.left,top:this.position.top-this.parentClientRect.top},this.clone&&!this.enableTailMode&&(this.diffX=this.position.left-this.offset.left,this.diffY=this.position.top-this.offset.top),this.getScrollableValues();var p=getComputedStyle(o),g=parseFloat(p.marginTop);this.clone&&0!==g&&(i.top+=g),this.eleTop=isNaN(parseFloat(p.top))?0:parseFloat(p.top)-this.offset.top,this.enableScrollHandler&&!this.clone&&(i.top-=this.parentScrollY,i.left-=this.parentScrollX);var d=this.getProcessedPositionValue({top:i.top-this.diffY+"px",left:i.left-this.diffX+"px"});this.dragArea&&"string"!=typeof this.dragArea&&this.dragArea.classList.contains("e-kanban-content")&&"relative"===this.dragArea.style.position&&(i.top+=this.dragArea.scrollTop),this.dragElePosition={top:i.top,left:i.left},wt(h,this.getDragPosition({position:"absolute",left:d.left,top:d.top})),yt.remove(document,Mt.isSafari()?"touchmove":Mt.touchMoveEvent,this.intDragStart),yt.remove(document,Mt.isSafari()?"touchend":Mt.touchEndEvent,this.intDestroy),this.bindDragEvents(h)}}},e.prototype.bindDragEvents=function(t){vt(t)?(yt.add(document,Mt.isSafari()?"touchmove":Mt.touchMoveEvent,this.intDrag,this),yt.add(document,Mt.isSafari()?"touchend":Mt.touchEndEvent,this.intDragStop,this),this.setGlobalDroppables(!1,this.element,t)):(this.toggleEvents(),document.body.classList.remove("e-prevent-select"))},e.prototype.elementInViewport=function(t){for(this.top=t.offsetTop,this.left=t.offsetLeft,this.width=t.offsetWidth,this.height=t.offsetHeight;t.offsetParent;)t=t.offsetParent,this.top+=t.offsetTop,this.left+=t.offsetLeft;return this.top>=window.pageYOffset&&this.left>=window.pageXOffset&&this.top+this.height<=window.pageYOffset+window.innerHeight&&this.left+this.width<=window.pageXOffset+window.innerWidth},e.prototype.getProcessedPositionValue=function(t){return this.queryPositionInfo?this.queryPositionInfo(t):t},e.prototype.calculateParentPosition=function(t){if(k(t))return{left:0,top:0};var e=t.getBoundingClientRect(),i=getComputedStyle(t);return{left:e.left+window.pageXOffset-parseInt(i.marginLeft,10),top:e.top+window.pageYOffset-parseInt(i.marginTop,10)}},e.prototype.intDrag=function(t){if(P(t.changedTouches)||1===t.changedTouches.length){var e,i;this.clone&&t.changedTouches&&Mt.isDevice&&Mt.isTouch&&t.preventDefault(),this.position=this.getMousePosition(t,this.isDragScroll);var r=this.getDocumentWidthHeight("Height");r<this.position.top&&(this.position.top=r);var n=this.getDocumentWidthHeight("Width");if(n<this.position.left&&(this.position.left=n),this.drag){var o=this.getProperTargetElement(t);this.trigger("drag",{event:t,element:this.element,target:o})}var s=this.checkTargetElement(t);if(s.target&&s.instance){var a=!0;this.hoverObject&&(this.hoverObject.instance!==s.instance?this.triggerOutFunction(t,s):a=!1),a&&(s.instance.dragData[this.scope]=this.droppables[this.scope],s.instance.intOver(t,s.target),this.hoverObject=s)}else this.hoverObject&&this.triggerOutFunction(t,s);var u=this.droppables[this.scope].helper;this.parentClientRect=this.calculateParentPosition(this.helperElement.offsetParent);var c=this.parentClientRect.left,h=this.parentClientRect.top,l=this.getCoordinates(t),p=l.pageX,g=l.pageY,d=this.position.left-this.diffX,f=this.position.top-this.diffY,M=getComputedStyle(u);if(this.dragArea){if(this.enableAutoScroll&&this.setDragArea(),this.pageX!==p||this.skipDistanceCheck){var y=u.offsetWidth+(parseFloat(M.marginLeft)+parseFloat(M.marginRight));e=this.dragLimit.left>d&&d>0?this.dragLimit.left:this.dragLimit.right+window.pageXOffset<d+y&&d>0?d-(d-this.dragLimit.right)+window.pageXOffset-y:d<0?this.dragLimit.left:d}if(this.pageY!==g||this.skipDistanceCheck){var m=u.offsetHeight+(parseFloat(M.marginTop)+parseFloat(M.marginBottom));i=this.dragLimit.top>f&&f>0?this.dragLimit.top:this.dragLimit.bottom+window.pageYOffset<f+m&&f>0?f-(f-this.dragLimit.bottom)+window.pageYOffset-m:f<0?this.dragLimit.top:f}}else e=d,i=f;var N,j,D=h+this.borderWidth.top,S=c+this.borderWidth.left;if(this.dragProcessStarted&&(k(i)&&(i=this.prevTop),k(e)&&(e=this.prevLeft)),this.helperElement.classList.contains("e-treeview"))this.dragArea?(this.dragLimit.top=this.clone?this.dragLimit.top:0,N=i-D<0?this.dragLimit.top:i-this.borderWidth.top,j=e-S<0?this.dragLimit.left:e-this.borderWidth.left):(N=i-this.borderWidth.top,j=e-this.borderWidth.left);else if(this.dragArea){var v=this.helperElement.classList.contains("e-dialog");this.dragLimit.top=this.clone?this.dragLimit.top:0,N=i-D<0?this.dragLimit.top:i-D,j=e-S<0?v?e-(S-this.borderWidth.left):this.dragElePosition.left:e-S}else N=i-D,j=e-S;var I=parseFloat(getComputedStyle(this.element).marginTop);if(I>0&&(this.clone&&(N+=I,f<0&&(I+f>=0?N=I+f:N-=I),this.dragArea&&(N=this.dragLimit.bottom<N?this.dragLimit.bottom:N)),i-D<0))if(f+I+(u.offsetHeight-D)>=0){var z=this.dragLimit.top+f-D;z+I+D<0?N-=I+D:N=z}else N-=I+D;if(this.dragArea&&this.helperElement.classList.contains("e-treeview"))N=N+(m=u.offsetHeight+(parseFloat(M.marginTop)+parseFloat(M.marginBottom)))>this.dragLimit.bottom?this.dragLimit.bottom-m:N;this.enableScrollHandler&&!this.clone&&(N-=this.parentScrollY,j-=this.parentScrollX),this.dragArea&&"string"!=typeof this.dragArea&&this.dragArea.classList.contains("e-kanban-content")&&"relative"===this.dragArea.style.position&&(N+=this.dragArea.scrollTop);var b=this.getProcessedPositionValue({top:N+"px",left:j+"px"});wt(u,this.getDragPosition(b)),this.elementInViewport(u)||!this.enableAutoScroll||this.helperElement.classList.contains("e-treeview")||this.helperElement.scrollIntoView();var w=document.querySelectorAll(":hover");if(this.enableAutoScroll&&this.helperElement.classList.contains("e-treeview")){0===w.length&&(w=this.getPathElements(t));var O=this.getScrollParent(w,!1);this.elementInViewport(this.helperElement)?this.getScrollPosition(O,N):this.elementInViewport(this.helperElement)||(0===(w=[].slice.call(document.querySelectorAll(":hover"))).length&&(w=this.getPathElements(t)),O=this.getScrollParent(w,!0),this.getScrollPosition(O,N))}this.dragProcessStarted=!0,this.prevLeft=e,this.prevTop=i,this.position.left=e,this.position.top=i,this.pageX=p,this.pageY=g}},e.prototype.getScrollParent=function(t,e){for(var i,r=e?t.reverse():t,n=r.length-1;n>=0;n--)if(("auto"===(i=window.getComputedStyle(r[parseInt(n.toString(),10)])["overflow-y"])||"scroll"===i)&&r[parseInt(n.toString(),10)].scrollHeight>r[parseInt(n.toString(),10)].clientHeight)return r[parseInt(n.toString(),10)];if("visible"===(i=window.getComputedStyle(document.scrollingElement)["overflow-y"]))return document.scrollingElement.style.overflow="auto",document.scrollingElement},e.prototype.getScrollPosition=function(t,e){if(t&&t===document.scrollingElement)t.clientHeight+document.scrollingElement.scrollTop-this.helperElement.clientHeight<e&&t.getBoundingClientRect().height+this.parentClientRect.top>e?t.scrollTop+=this.helperElement.clientHeight:t.scrollTop>e-this.helperElement.clientHeight&&(t.scrollTop-=this.helperElement.clientHeight);else if(t&&t!==document.scrollingElement){var i=document.scrollingElement.scrollTop,r=this.helperElement.clientHeight;t.clientHeight+t.getBoundingClientRect().top-r+i<e?t.scrollTop+=this.helperElement.clientHeight:t.getBoundingClientRect().top>e-r-i&&(t.scrollTop-=this.helperElement.clientHeight)}},e.prototype.getPathElements=function(t){var e=t.clientX>0?t.clientX:0,i=t.clientY>0?t.clientY:0;return document.elementsFromPoint(e,i)},e.prototype.triggerOutFunction=function(t,e){this.hoverObject.instance.intOut(t,e.target),this.hoverObject.instance.dragData[this.scope]=null,this.hoverObject=null},e.prototype.getDragPosition=function(t){var e=E({},t);return this.axis&&("x"===this.axis?delete e.top:"y"===this.axis&&delete e.left),e},e.prototype.getDocumentWidthHeight=function(t){var e=document.body,i=document.documentElement;return Math.max(e["scroll"+t],i["scroll"+t],e["offset"+t],i["offset"+t],i["client"+t])},e.prototype.intDragStop=function(t){if(this.dragProcessStarted=!1,P(t.changedTouches)||1===t.changedTouches.length){if(-1!==["touchend","pointerup","mouseup"].indexOf(t.type)){if(this.dragStop){var e=this.getProperTargetElement(t);this.trigger("dragStop",{event:t,element:this.element,target:e,helper:this.helperElement})}this.intDestroy(t)}else this.element.setAttribute("aria-grabbed","false");var i=this.checkTargetElement(t);i.target&&i.instance&&(i.instance.dragStopCalled=!0,i.instance.dragData[this.scope]=this.droppables[this.scope],i.instance.intDrop(t,i.target)),this.setGlobalDroppables(!0),document.body.classList.remove("e-prevent-select")}},e.prototype.intDestroy=function(t){this.dragProcessStarted=!1,this.toggleEvents(),document.body.classList.remove("e-prevent-select"),this.element.setAttribute("aria-grabbed","false"),yt.remove(document,Mt.isSafari()?"touchmove":Mt.touchMoveEvent,this.intDragStart),yt.remove(document,Mt.isSafari()?"touchend":Mt.touchEndEvent,this.intDragStop),yt.remove(document,Mt.isSafari()?"touchend":Mt.touchEndEvent,this.intDestroy),yt.remove(document,Mt.isSafari()?"touchmove":Mt.touchMoveEvent,this.intDrag),this.isDragStarted()&&this.isDragStarted(!0)},e.prototype.onPropertyChanged=function(t,e){},e.prototype.getModuleName=function(){return"draggable"},e.prototype.isDragStarted=function(t){return t&&(pe.isDragged=!pe.isDragged),pe.isDragged},e.prototype.setDragArea=function(){var t,e,i,r=0,n=0;if(i="string"===typeof this.dragArea?It(this.dragArea):this.dragArea){var o=i.getBoundingClientRect();t=i.scrollWidth?i.scrollWidth:o.right-o.left,e=i.scrollHeight?this.dragArea&&!k(this.helperElement)&&this.helperElement.classList.contains("e-treeview")?i.clientHeight:i.scrollHeight:o.bottom-o.top;for(var s=["Top","Left","Bottom","Right"],a=getComputedStyle(i),u=0;u<s.length;u++){var c=s[parseInt(u.toString(),10)],h=a["border"+c+"Width"],l=a["padding"+c],p=c.toLowerCase();this.borderWidth[""+p]=isNaN(parseFloat(h))?0:parseFloat(h),this.padding[""+p]=isNaN(parseFloat(l))?0:parseFloat(l)}r=this.dragArea&&!k(this.helperElement)&&this.helperElement.classList.contains("e-treeview")?o.top+document.scrollingElement.scrollTop:o.top,n=o.left,this.dragLimit.left=n+this.borderWidth.left+this.padding.left,this.dragLimit.top=i.offsetTop+this.borderWidth.top+this.padding.top,this.dragLimit.right=n+t-(this.borderWidth.right+this.padding.right),this.dragLimit.bottom=r+e-(this.borderWidth.bottom+this.padding.bottom)}},e.prototype.getProperTargetElement=function(t){var e,i=this.getCoordinates(t),r=this.helperElement.style.pointerEvents||"",n=-1!==t.type.indexOf("pointer")&&"safari"===Mt.info.name&&parseInt(Mt.info.version,10)>12;return U(t.target,this.helperElement)||-1!==t.type.indexOf("touch")||n?(this.helperElement.style.pointerEvents="none",e=document.elementFromPoint(i.clientX,i.clientY),this.helperElement.style.pointerEvents=r):e=t.target,e},e.prototype.currentStateCheck=function(t,e){return k(this.currentStateTarget)||this.currentStateTarget===t?k(e)?t:e:this.currentStateTarget},e.prototype.getMousePosition=function(t,e){var i,r,n=void 0!==t.srcElement?t.srcElement:t.target,o=this.getCoordinates(t),s=k(n.offsetParent);if(e?(i=this.clone?o.pageX:o.pageX+(s?0:n.offsetParent.scrollLeft)-this.relativeXPosition,r=this.clone?o.pageY:o.pageY+(s?0:n.offsetParent.scrollTop)-this.relativeYPosition):(i=this.clone?o.pageX:o.pageX+window.pageXOffset-this.relativeXPosition,r=this.clone?o.pageY:o.pageY+window.pageYOffset-this.relativeYPosition),document.scrollingElement&&!e&&!this.clone){var a=document.scrollingElement,u=a.scrollHeight>0&&a.scrollHeight>a.clientHeight&&a.scrollTop>0;i=a.scrollWidth>0&&a.scrollWidth>a.clientWidth&&a.scrollLeft>0?i-a.scrollLeft:i,r=u?r-a.scrollTop:r}return{left:i-(this.margin.left+this.cursorAt.left),top:r-(this.margin.top+this.cursorAt.top)}},e.prototype.getCoordinates=function(t){return t.type.indexOf("touch")>-1?t.changedTouches[0]:t},e.prototype.getHelperElement=function(t){var e;return this.clone?this.helper?e=this.helper({sender:t,element:this.target}):(e=Nt("div",{className:"e-drag-helper e-block-touch",innerHTML:"Draggable"}),document.body.appendChild(e)):e=this.element,e},e.prototype.setGlobalDroppables=function(t,e,i){this.droppables[this.scope]=t?null:{draggable:e,helper:i,draggedElement:this.element}},e.prototype.checkTargetElement=function(t){var e=this.getProperTargetElement(t),i=this.getDropInstance(e);if(!i&&e&&!k(e.parentNode)){var r=bt(e.parentNode,".e-droppable")||e.parentElement;r&&(i=this.getDropInstance(r))}return{target:e,instance:i}},e.prototype.getDropInstance=function(t){var e,i=t&&t.ej2_instances;if(i)for(var r=0,n=i;r<n.length;r++){var o=n[r];if("droppable"===o.getModuleName()){e=o;break}}return e},e.prototype.destroy=function(){this.toggleEvents(!0),t.prototype.destroy.call(this)},he([Ut({},ge)],e.prototype,"cursorAt",void 0),he([Pt(!0)],e.prototype,"clone",void 0),he([Pt()],e.prototype,"dragArea",void 0),he([Pt()],e.prototype,"isDragScroll",void 0),he([Pt()],e.prototype,"isReplaceDragEle",void 0),he([Pt(!0)],e.prototype,"isPreventSelect",void 0),he([Qt()],e.prototype,"drag",void 0),he([Qt()],e.prototype,"dragStart",void 0),he([Qt()],e.prototype,"dragStop",void 0),he([Pt(1)],e.prototype,"distance",void 0),he([Pt()],e.prototype,"handle",void 0),he([Pt()],e.prototype,"abort",void 0),he([Pt()],e.prototype,"helper",void 0),he([Pt("default")],e.prototype,"scope",void 0),he([Pt("")],e.prototype,"dragTarget",void 0),he([Pt()],e.prototype,"axis",void 0),he([Pt()],e.prototype,"queryPositionInfo",void 0),he([Pt(!1)],e.prototype,"enableTailMode",void 0),he([Pt(!1)],e.prototype,"skipDistanceCheck",void 0),he([Pt(!0)],e.prototype,"preventDefault",void 0),he([Pt(!1)],e.prototype,"enableAutoScroll",void 0),he([Pt(!1)],e.prototype,"enableTapHold",void 0),he([Pt(750)],e.prototype,"tapHoldThreshold",void 0),he([Pt(!1)],e.prototype,"enableScrollHandler",void 0),e=i=he([Yt],e)}(Lt);var de=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),fe=function(t,e,i,r){var n,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,i,s):n(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s};!function(t){function e(e,i){var r=t.call(this,i,e)||this;return r.mouseOver=!1,r.dragData={},r.dragStopCalled=!1,r.bind(),r}de(e,t),e.prototype.bind=function(){this.wireEvents()},e.prototype.wireEvents=function(){yt.add(this.element,Mt.isSafari()?"touchend":Mt.touchEndEvent,this.intDrop,this)},e.prototype.onPropertyChanged=function(t,e){},e.prototype.getModuleName=function(){return"droppable"},e.prototype.intOver=function(t,e){if(!this.mouseOver){var i=this.dragData[this.scope];this.trigger("over",{event:t,target:e,dragData:i}),this.mouseOver=!0}},e.prototype.intOut=function(t,e){this.mouseOver&&(this.trigger("out",{evt:t,target:e}),this.mouseOver=!1)},e.prototype.intDrop=function(t,e){if(this.dragStopCalled){this.dragStopCalled=!1;var i,r=!0,n=this.dragData[this.scope],o=!!n&&(n.helper&&vt(n.helper));o&&(i=this.isDropArea(t,n.helper,e),this.accept&&(r=Ot(n.helper,this.accept))),o&&this.drop&&i.canDrop&&r&&this.trigger("drop",{event:t,target:i.target,droppedElement:n.helper,dragData:n}),this.mouseOver=!1}},e.prototype.isDropArea=function(t,e,i){var r={canDrop:!0,target:i||t.target},n="touchend"===t.type;if(n||r.target===e){e.style.display="none";var o=n?t.changedTouches[0]:t,s=document.elementFromPoint(o.clientX,o.clientY);r.canDrop=!1,r.canDrop=U(s,this.element),r.canDrop&&(r.target=s),e.style.display=""}return r},e.prototype.destroy=function(){yt.remove(this.element,Mt.isSafari()?"touchend":Mt.touchEndEvent,this.intDrop),t.prototype.destroy.call(this)},fe([Pt()],e.prototype,"accept",void 0),fe([Pt("default")],e.prototype,"scope",void 0),fe([Qt()],e.prototype,"drop",void 0),fe([Qt()],e.prototype,"over",void 0),fe([Qt()],e.prototype,"out",void 0),e=fe([Yt],e)}(Lt);var Me=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),ye=function(t,e,i,r){var n,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,i,s):n(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s},me={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,space:32,escape:27,pageup:33,pagedown:34,end:35,home:36,leftarrow:37,uparrow:38,rightarrow:39,downarrow:40,insert:45,delete:46,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,semicolon:186,plus:187,comma:188,minus:189,dot:190,forwardslash:191,graveaccent:192,openbracket:219,backslash:220,closebracket:221,singlequote:222};!function(t){function e(e,r){var n=t.call(this,r,e)||this;return n.keyPressHandler=function(t){for(var e=t.altKey,r=t.ctrlKey,o=t.shiftKey,s=t.which,a=0,u=Object.keys(n.keyConfigs);a<u.length;a++)for(var c=u[a],h=0,l=n.keyConfigs[""+c].split(",");h<l.length;h++){var p=l[h],g=i.getKeyConfigData(p.trim());e===g.altKey&&r===g.ctrlKey&&o===g.shiftKey&&s===g.keyCode&&(t.action=c,n.keyAction&&n.keyAction(t))}},n.bind(),n}var i;Me(e,t),i=e,e.prototype.destroy=function(){this.unwireEvents(),t.prototype.destroy.call(this)},e.prototype.onPropertyChanged=function(t,e){},e.prototype.bind=function(){this.wireEvents()},e.prototype.getModuleName=function(){return"keyboard"},e.prototype.wireEvents=function(){this.element.addEventListener(this.eventName,this.keyPressHandler)},e.prototype.unwireEvents=function(){this.element.removeEventListener(this.eventName,this.keyPressHandler)},e.getKeyConfigData=function(t){if(t in this.configCache)return this.configCache[""+t];var e=t.toLowerCase().split("+"),r={altKey:-1!==e.indexOf("alt"),ctrlKey:-1!==e.indexOf("ctrl"),shiftKey:-1!==e.indexOf("shift"),keyCode:null};return e[e.length-1].length>1&&Number(e[e.length-1])?r.keyCode=Number(e[e.length-1]):r.keyCode=i.getKeyCode(e[e.length-1]),i.configCache[""+t]=r,r},e.getKeyCode=function(t){return me[""+t]||t.toUpperCase().charCodeAt(0)},e.configCache={},ye([Pt({})],e.prototype,"keyConfigs",void 0),ye([Pt("keyup")],e.prototype,"eventName",void 0),ye([Qt()],e.prototype,"keyAction",void 0),e=i=ye([Yt],e)}(Lt);var Ne=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),je=function(t,e,i,r){var n,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(o<3?n(s):o>3?n(e,i,s):n(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s},De=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ne(e,t),je([Pt(50)],e.prototype,"swipeThresholdDistance",void 0),e}(_t),Se=/(Up|Down)/;!function(t){function e(e,i){var r=t.call(this,i,e)||this;return r.touchAction=!0,r.tapCount=0,r.startEvent=function(t){if(!0===r.touchAction){var e=r.updateChangeTouches(t);void 0!==t.changedTouches&&(r.touchAction=!1),r.isTouchMoved=!1,r.movedDirection="",r.startPoint=r.lastMovedPoint={clientX:e.clientX,clientY:e.clientY},r.startEventData=e,r.hScrollLocked=r.vScrollLocked=!1,r.tStampStart=Date.now(),r.timeOutTapHold=setTimeout(function(){r.tapHoldEvent(t)},r.tapHoldThreshold),yt.add(r.element,Mt.touchMoveEvent,r.moveEvent,r),yt.add(r.element,Mt.touchEndEvent,r.endEvent,r),yt.add(r.element,Mt.touchCancelEvent,r.cancelEvent,r)}},r.moveEvent=function(t){var e=r.updateChangeTouches(t);r.movedPoint=e,r.isTouchMoved=!(e.clientX===r.startPoint.clientX&&e.clientY===r.startPoint.clientY);var i={};r.isTouchMoved&&(clearTimeout(r.timeOutTapHold),r.calcScrollPoints(t),i=E(i,{},{startEvents:r.startEventData,originalEvent:t,startX:r.startPoint.clientX,startY:r.startPoint.clientY,distanceX:r.distanceX,distanceY:r.distanceY,scrollDirection:r.scrollDirection,velocity:r.getVelocity(e)}),r.trigger("scroll",i),r.lastMovedPoint={clientX:e.clientX,clientY:e.clientY})},r.cancelEvent=function(t){clearTimeout(r.timeOutTapHold),clearTimeout(r.timeOutTap),r.tapCount=0,r.swipeFn(t),yt.remove(r.element,Mt.touchCancelEvent,r.cancelEvent)},r.endEvent=function(t){r.swipeFn(t),r.isTouchMoved||"function"==typeof r.tap&&(r.trigger("tap",{originalEvent:t,tapCount:++r.tapCount}),r.timeOutTap=setTimeout(function(){r.tapCount=0},r.tapThreshold)),r.modeclear()},r.swipeFn=function(t){clearTimeout(r.timeOutTapHold),clearTimeout(r.timeOutTap);var e=r.updateChangeTouches(t),i=e.clientX-r.startPoint.clientX,n=e.clientY-r.startPoint.clientY;i=Math.floor(i<0?-1*i:i),n=Math.floor(n<0?-1*n:i),r.isTouchMoved=i>1||n>1,/Firefox/.test(Mt.userAgent)&&0===e.clientX&&0===e.clientY&&"mouseup"===t.type&&(r.isTouchMoved=!1),r.endPoint=e,r.calcPoints(t);var o={originalEvent:t,startEvents:r.startEventData,startX:r.startPoint.clientX,startY:r.startPoint.clientY,distanceX:r.distanceX,distanceY:r.distanceY,swipeDirection:r.movedDirection,velocity:r.getVelocity(e)};if(r.isTouchMoved){var s=void 0,a=r.swipeSettings.swipeThresholdDistance;s=E(s,r.defaultArgs,o);var u=!1,c=r.element,h=r.isScrollable(c),l=Se.test(r.movedDirection);(a<r.distanceX&&!l||a<r.distanceY&&l)&&(u=!h||r.checkSwipe(c,l)),u&&r.trigger("swipe",s)}r.modeclear()},r.modeclear=function(){r.modeClear=setTimeout(function(){r.touchAction=!0},"function"!=typeof r.tap?0:20),r.lastTapTime=(new Date).getTime(),yt.remove(r.element,Mt.touchMoveEvent,r.moveEvent),yt.remove(r.element,Mt.touchEndEvent,r.endEvent),yt.remove(r.element,Mt.touchCancelEvent,r.cancelEvent)},r.bind(),r}Ne(e,t),e.prototype.onPropertyChanged=function(t,e){},e.prototype.bind=function(){this.wireEvents(),Mt.isIE&&this.element.classList.add("e-block-touch")},e.prototype.destroy=function(){this.unwireEvents(),t.prototype.destroy.call(this)},e.prototype.wireEvents=function(){yt.add(this.element,Mt.touchStartEvent,this.startEvent,this)},e.prototype.unwireEvents=function(){yt.remove(this.element,Mt.touchStartEvent,this.startEvent)},e.prototype.getModuleName=function(){return"touch"},e.prototype.isScrollable=function(t){var e=getComputedStyle(t),i=e.overflow+e.overflowX+e.overflowY;return!!/(auto|scroll)/.test(i)},e.prototype.tapHoldEvent=function(t){var e;this.tapCount=0,this.touchAction=!0,yt.remove(this.element,Mt.touchMoveEvent,this.moveEvent),yt.remove(this.element,Mt.touchEndEvent,this.endEvent),e={originalEvent:t},this.trigger("tapHold",e),yt.remove(this.element,Mt.touchCancelEvent,this.cancelEvent)},e.prototype.calcPoints=function(t){var e=this.updateChangeTouches(t);this.defaultArgs={originalEvent:t},this.distanceX=Math.abs(Math.abs(e.clientX)-Math.abs(this.startPoint.clientX)),this.distanceY=Math.abs(Math.abs(e.clientY)-Math.abs(this.startPoint.clientY)),this.distanceX>this.distanceY?this.movedDirection=e.clientX>this.startPoint.clientX?"Right":"Left":this.movedDirection=e.clientY<this.startPoint.clientY?"Up":"Down"},e.prototype.calcScrollPoints=function(t){var e=this.updateChangeTouches(t);this.defaultArgs={originalEvent:t},this.distanceX=Math.abs(Math.abs(e.clientX)-Math.abs(this.lastMovedPoint.clientX)),this.distanceY=Math.abs(Math.abs(e.clientY)-Math.abs(this.lastMovedPoint.clientY)),(this.distanceX>this.distanceY||!0===this.hScrollLocked)&&!1===this.vScrollLocked?(this.scrollDirection=e.clientX>this.lastMovedPoint.clientX?"Right":"Left",this.hScrollLocked=!0):(this.scrollDirection=e.clientY<this.lastMovedPoint.clientY?"Up":"Down",this.vScrollLocked=!0)},e.prototype.getVelocity=function(t){var e=t.clientX,i=t.clientY,r=Date.now(),n=e-this.startPoint.clientX,o=i-this.startPoint.clientX,s=r-this.tStampStart;return Math.sqrt(n*n+o*o)/s},e.prototype.checkSwipe=function(t,e){var i=["scroll","offset"],r=e?["Height","Top"]:["Width","Left"];return t[i[0]+r[0]]<=t[i[1]+r[0]]||(0===t[i[0]+r[1]]||t[i[1]+r[0]]+t[i[0]+r[1]]>=t[i[0]+r[0]])},e.prototype.updateChangeTouches=function(t){return t.changedTouches&&0!==t.changedTouches.length?t.changedTouches[0]:t},je([Qt()],e.prototype,"tap",void 0),je([Qt()],e.prototype,"tapHold",void 0),je([Qt()],e.prototype,"swipe",void 0),je([Qt()],e.prototype,"scroll",void 0),je([Pt(350)],e.prototype,"tapThreshold",void 0),je([Pt(750)],e.prototype,"tapHoldThreshold",void 0),je([Ut({},De)],e.prototype,"swipeSettings",void 0),e=je([Yt],e)}(Lt);var ve=new RegExp("\\n|\\r|\\s\\s+","g"),Ie=new RegExp(/'|"/g),ze=new RegExp("if ?\\("),be=new RegExp("else if ?\\("),we=new RegExp("else"),Oe=new RegExp("for ?\\("),Te=new RegExp("(/if|/for)"),Le=new RegExp("\\((.*)\\)",""),Ae=new RegExp("^[0-9]+$","g"),xe=new RegExp("[\\w\"'.\\s+]+","g"),Ce=new RegExp('"(.*?)"',"g"),Ee=new RegExp("[\\w\"'@#$.\\s-+]+","g"),ke=new RegExp("\\${([^}]*)}","g"),Pe=/^\..*/gm,Ue=/\\/gi,Qe=/\\\\/gi,Ye=new RegExp("[\\w\"'@#$.\\s+]+","g"),Re=/\window\./gm;function Ve(t,e,i){if("function"==typeof t)return t;var r="data",n=function(t,e,i,r){var n=0,o=[],s=t.match(/class="([^"]+|)\s{2}/g),a="";s&&s.forEach(function(e){a=e.replace(/\s\s+/g," "),t=t.replace(e,a)});if(ke.test(t)){for(var u=!1,c="",h=0;h<t.length;h++)"$"===t[h+""]&&"{"===t[h+1]?u=!0:"}"===t[h+""]&&(u=!1),c+='"'!==t[h+""]||u?t[h+""]:'\\"';t=c}else t=t.replace(/\\?"/g,'\\"');return t.replace(ve,"").replace(Ce,"'$1'").replace(ke,function(t,s,a,u){var c=/@|#|\$/gm,h=s.match(Le);if(h){var l=h[1];if(be.test(s))s='";} '+s.replace(h[1],l.replace(xe,function(t){return Fe(t=t.trim(),!Ie.test(t)&&-1===o.indexOf(t),e,o,r)}))+'{ \n str = str + "';else if(ze.test(s))s='"; '+s.replace(h[1],l.replace(Ee,function(t){return Ge(t,e,o,r)}))+'{ \n str = str + "';else if(Oe.test(s)){var p=h[1].split(" of ");s='"; '+s.replace(h[1],function(t){return o.push(p[0]),o.push(p[0]+"Index"),"var i"+(n+=1)+"=0; i"+n+" < "+Fe(p[1],!0,e,o,r)+".length; i"+n+"++"})+"{ \n "+p[0]+"= "+Fe(p[1],!0,e,o,r)+"[i"+n+"]; \n var "+p[0]+"Index=i"+n+'; \n str = str + "'}else{var g=s.split("("),d=i&&i.hasOwnProperty(g[0])?"this.":"global";d=/\./.test(g[0])?"":d;var f=h[1].split(",");0===h[1].length||/data/.test(f[0])||/window./.test(f[0])||(h[1]="global"===d?e+"."+h[1]:h[1]);var M=/@|\$|#/gm,y=/\]\./gm;if(Re.test(s)&&y.test(s)||M.test(s))/@|\$|#|\]\./gm.test(s)&&(s='"+ '+("global"===d?"":d)+s.replace(h[1],l.replace(Ye,function(t){return Ge(t,e,o,r)}))+'+ "');else s='" + '+("global"===d?"":d)+s.replace(l,Fe(h[1].replace(/,( |)data.|,/gi,","+e+".").replace(/,( |)data.window/gi,",window"),"global"!==d,e,o,r))+'+"'}}else we.test(s)?s='"; '+s.replace(we,'} else { \n str = str + "'):s.match(Te)?s=s.replace(Te,'"; \n } \n str = str + "'):c.test(s)?(s.match(Ue)&&(s=We(s)),s='"+'+Be(s,-1===o.indexOf(s),e,o)+'"]+"'):s=s.match(Ue)?'"+'+Be(s=We(s),-1===o.indexOf(s),e,o)+'"]+"':""!==s?'"+'+Fe(s.replace(/,/gi,"+"+e+"."),-1===o.indexOf(s),e,o,r)+'+"':"${}";return s})}(t,r,e,i);return new Function(r,'var str="'+n+"\";var valueRegEx = (/value=\\'([A-Za-z0-9 _]*)((.)([\\w)(!-;?-■\\s]+)['])/g);\n var hrefRegex = (/(?:href)([\\s='\"./]+)([\\w-./?=&\\\\#\"]+)((.)([\\w)(!-;/?-■\\s]+)['])/g);\n if(str.match(valueRegEx)){\n var check = str.match(valueRegEx);\n var str1 = str;\n for (var i=0; i < check.length; i++) {\n var check1 = str.match(valueRegEx)[i].split('value=')[1];\n var change = check1.match(/^'/) !== null ? check1.replace(/^'/, '\"') : check1;\n change =change.match(/.$/)[0] === '\\'' ? change.replace(/.$/,'\"') : change;\n str1 = str1.replace(check1, change);\n }\n str = str.replace(str, str1);\n }\n else if (str.match(/(?:href='')/) === null) {\n if(str.match(hrefRegex)) {\n var check = str.match(hrefRegex);\n var str1 = str;\n for (var i=0; i < check.length; i++) {\n var check1 = str.match(hrefRegex)[i].split('href=')[1];\n if (check1) {\n var change = check1.match(/^'/) !== null ? check1.replace(/^'/, '\"') : check1;\n change =change.match(/.$/)[0] === '\\'' ? change.replace(/.$/,'\"') : change;\n str1 = str1.replace(check1, change);\n }\n }\n str = str.replace(str, str1);\n }\n }\n return str;").bind(e)}function Fe(t,e,i,r,n){return!e||Ae.test(t)||-1!==r.indexOf(t.split(".")[0])||n||"true"===t||"false"===t?t:i+"."+t}function Be(t,e,i,r){return e&&!Ae.test(t)&&-1===r.indexOf(t.split(".")[0])?i+'["'+t:t}function We(t){return t.match(Qe)||(t=t.replace(Ue,"\\\\")),t}function Ge(t,e,i,r){t=t.trim();if(/\window\./gm.test(t))return t;var n=/'|"/gm;return/@|\$|#/gm.test(t)&&(t=Be(t,-1===i.indexOf(t),e,i)+'"]'),Pe.test(t)?function(t,e,i,r){return!e||Ae.test(t)||-1!==r.indexOf(t.split(".")[0])||/^\..*/gm.test(t)?t:i+"."+t}(t,!n.test(t)&&-1===i.indexOf(t),e,i):Fe(t,!n.test(t)&&-1===i.indexOf(t),e,i,r)}(new(function(){function t(){}return t.prototype.compile=function(t,e,i){return void 0===e&&(e={}),Ve(t,e)},t}())).compile;var He=function(){function t(t){return this.subQuery=null,this.isChild=!1,this.distincts=[],this.queries=[],this.key="",this.fKey="","string"==typeof t?this.fromTable=t:t&&t instanceof Array&&(this.lookups=t),this.expands=[],this.sortedColumns=[],this.groupedColumns=[],this.subQuery=null,this.isChild=!1,this.params=[],this.lazyLoad=[],this}return t.prototype.setKey=function(t){return this.key=t,this},t.prototype.using=function(t){return this.dataManager=t,this},t.prototype.execute=function(t,e,i,r){return(t=t||this.dataManager)?t.executeQuery(this,e,i,r):Je.throwError('Query - execute() : dataManager needs to be is set using "using" function or should be passed as argument')},t.prototype.executeLocal=function(t){return(t=t||this.dataManager)?t.executeLocal(this):Je.throwError('Query - executeLocal() : dataManager needs to be is set using "using" function or should be passed as argument')},t.prototype.clone=function(){var e=new t;return e.queries=this.queries.slice(0),e.key=this.key,e.isChild=this.isChild,e.dataManager=this.dataManager,e.fromTable=this.fromTable,e.params=this.params.slice(0),e.expands=this.expands.slice(0),e.sortedColumns=this.sortedColumns.slice(0),e.groupedColumns=this.groupedColumns.slice(0),e.subQuerySelector=this.subQuerySelector,e.subQuery=this.subQuery,e.fKey=this.fKey,e.isCountRequired=this.isCountRequired,e.distincts=this.distincts.slice(0),e.lazyLoad=this.lazyLoad.slice(0),e},t.prototype.from=function(t){return this.fromTable=t,this},t.prototype.addParams=function(t,e){return"function"==typeof e?this.params.push({key:t,fn:e}):this.params.push({key:t,value:e}),this},t.prototype.distinct=function(t){return this.distincts="string"==typeof t?[].slice.call([t],0):t.slice(0),this},t.prototype.expand=function(t){return this.expands="string"==typeof t?[].slice.call([t],0):t.slice(0),this},t.prototype.where=function(t,e,i,r,n,o){e=e?e.toLowerCase():null;var s=null;return"string"==typeof t?s=new qe(t,e,i,r,n,o):t instanceof qe&&(s=t),this.queries.push({fn:"onWhere",e:s}),this},t.prototype.search=function(t,e,i,r,n){"string"==typeof e&&(e=[e]),i&&"none"!==i||(i="contains");var o=Je.fnOperators[i];return this.queries.push({fn:"onSearch",e:{fieldNames:e,operator:i,searchKey:t,ignoreCase:r,ignoreAccent:n,comparer:o}}),this},t.prototype.sortBy=function(t,e,i){return this.sortByForeignKey(t,e,i)},t.prototype.sortByForeignKey=function(e,i,r,n){var o,s,a=k(n)?"ascending":n;if("string"==typeof e&&Je.endsWith(e.toLowerCase()," desc")&&(e=e.replace(/ desc$/i,""),i="descending"),i&&"string"!=typeof i||(a=i?i.toLowerCase():"ascending",i=Je.fnSort(i)),r){o=t.filterQueries(this.queries,"onSortBy");for(var u=0;u<o.length;u++)if("string"==typeof(s=o[u].e.fieldName)){if(s===e)return this}else if(s instanceof Array)for(var c=0;c<s.length;c++)if(s[c]===e||e.toLowerCase()===s[c]+" desc")return this}return this.queries.push({fn:"onSortBy",e:{fieldName:e,comparer:i,direction:a}}),this},t.prototype.sortByDesc=function(t){return this.sortBy(t,"descending")},t.prototype.group=function(t,e,i){return this.sortBy(t,null,!0),this.queries.push({fn:"onGroup",e:{fieldName:t,comparer:e||null,format:i||null}}),this},t.prototype.page=function(t,e){return this.queries.push({fn:"onPage",e:{pageIndex:t,pageSize:e}}),this},t.prototype.range=function(t,e){return this.queries.push({fn:"onRange",e:{start:t,end:e}}),this},t.prototype.take=function(t){return this.queries.push({fn:"onTake",e:{nos:t}}),this},t.prototype.skip=function(t){return this.queries.push({fn:"onSkip",e:{nos:t}}),this},t.prototype.select=function(t){return"string"==typeof t&&(t=[].slice.call([t],0)),this.queries.push({fn:"onSelect",e:{fieldNames:t}}),this},t.prototype.hierarchy=function(t,e){return this.subQuerySelector=e,this.subQuery=t,this},t.prototype.foreignKey=function(t){return this.fKey=t,this},t.prototype.requiresCount=function(){return this.isCountRequired=!0,this},t.prototype.aggregate=function(t,e){return this.queries.push({fn:"onAggregates",e:{field:e,type:t}}),this},t.filterQueries=function(t,e){return t.filter(function(t){return t.fn===e})},t.filterQueryLists=function(t,e){for(var i=t.filter(function(t){return-1!==e.indexOf(t.fn)}),r={},n=0;n<i.length;n++)r[i[n].fn]||(r[i[n].fn]=i[n].e);return r},t}(),qe=function(){function t(e,i,r,n,o,s){return void 0===n&&(n=!1),this.ignoreAccent=!1,this.isComplex=!1,"string"==typeof e?(this.field=e,this.operator=i.toLowerCase(),this.value=r,this.matchCase=s,this.ignoreCase=n,this.ignoreAccent=o,this.isComplex=!1,this.comparer=Je.fnOperators.processOperator(this.operator)):(e instanceof t&&r instanceof t||r instanceof Array)&&(this.isComplex=!0,this.condition=i.toLowerCase(),this.predicates=[e],this.matchCase=e.matchCase,this.ignoreCase=e.ignoreCase,this.ignoreAccent=e.ignoreAccent,r instanceof Array?[].push.apply(this.predicates,r):this.predicates.push(r)),this}return t.and=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.combinePredicates([].slice.call(e,0),"and")},t.prototype.and=function(e,i,r,n,o){return t.combine(this,e,i,r,"and",n,o)},t.or=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.combinePredicates([].slice.call(e,0),"or")},t.prototype.or=function(e,i,r,n,o){return t.combine(this,e,i,r,"or",n,o)},t.ornot=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.combinePredicates([].slice.call(e,0),"or not")},t.prototype.ornot=function(e,i,r,n,o){return t.combine(this,e,i,r,"ornot",n,o)},t.andnot=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.combinePredicates([].slice.call(e,0),"and not")},t.prototype.andnot=function(e,i,r,n,o){return t.combine(this,e,i,r,"andnot",n,o)},t.fromJson=function(t){if(t instanceof Array){for(var e=[],i=0,r=t.length;i<r;i++)e.push(this.fromJSONData(t[i]));return e}var n=t;return this.fromJSONData(n)},t.prototype.validate=function(t){var e,i,r=this.predicates?this.predicates:[];if(!this.isComplex&&this.comparer)return this.condition&&-1!==this.condition.indexOf("not")?(this.condition=""===this.condition.split("not")[0]?void 0:this.condition.split("not")[0],!this.comparer.call(this,Je.getObject(this.field,t),this.value,this.ignoreCase,this.ignoreAccent)):this.comparer.call(this,Je.getObject(this.field,t),this.value,this.ignoreCase,this.ignoreAccent);i=this.condition&&-1!==this.condition.indexOf("not")?-1!==this.condition.indexOf("and"):"and"===this.condition;for(var n=0;n<r.length;n++)if(n>0&&this.condition&&-1!==this.condition.indexOf("not")&&(r[n].condition=r[n].condition?r[n].condition+"not":"not"),e=r[n].validate(t),i){if(!e)return!1}else if(e)return!0;return i},t.prototype.toJson=function(){var t,e;if(this.isComplex){t=[],e=this.predicates;for(var i=0;i<e.length;i++)t.push(e[i].toJson())}return{isComplex:this.isComplex,field:this.field,operator:this.operator,value:this.value,ignoreCase:this.ignoreCase,ignoreAccent:this.ignoreAccent,condition:this.condition,predicates:t,matchCase:this.matchCase}},t.combinePredicates=function(e,i){if(1===e.length){if(!(e[0]instanceof Array))return e[0];e=e[0]}return new t(e[0],i,e.slice(1))},t.combine=function(e,i,r,n,o,s,a){return i instanceof t?t[o](e,i):"string"==typeof i?t[o](e,new t(i,r,n,s,a)):Je.throwError("Predicate - "+o+" : invalid arguments")},t.fromJSONData=function(e){for(var i=e.predicates||[],r=i.length,n=[],o=0;o<r;o++)n.push(this.fromJSONData(i[o]));return e.isComplex?new t(n[0],e.condition,n.slice(1)):new t(e.field,e.operator,e.value,e.ignoreCase,e.ignoreAccent)},t}(),_e={GroupGuid:"{271bbba0-1ee7}"},Je=function(){function t(){}return t.getValue=function(t,e){return"function"==typeof t?t.call(e||{}):t},t.endsWith=function(t,e){return t.slice&&t.slice(-e.length)===e},t.notEndsWith=function(t,e){return t.slice&&t.slice(-e.length)!==e},t.startsWith=function(t,e){return t.slice(0,e.length)===e},t.notStartsWith=function(t,e){return t.slice(0,e.length)!==e},t.wildCard=function(t,e){var i,r;if(-1!==e.indexOf("[")&&(e=e.split("[").join("[[]")),-1!==e.indexOf("(")&&(e=e.split("(").join("[(]")),-1!==e.indexOf(")")&&(e=e.split(")").join("[)]")),-1!==e.indexOf("\\")&&(e=e.split("\\").join("[\\\\]")),-1!==e.indexOf("*")){"*"!==e.charAt(0)&&(e="^"+e),"*"!==e.charAt(e.length-1)&&(e+="$"),i=e.split("*");for(var n=0;n<i.length;n++)-1===i[n].indexOf(".")?i[n]=i[n]+".*":i[n]=i[n]+"*";e=i.join("")}return-1===e.indexOf("%3f")&&-1===e.indexOf("?")||(r=-1!==e.indexOf("%3f")?e.split("%3f"):e.split("?"),e=r.join(".")),new RegExp(e,"g").test(t)},t.like=function(e,i){return-1!==i.indexOf("%")&&("%"===i.charAt(0)&&i.lastIndexOf("%")<2?(i=i.substring(1,i.length),t.startsWith(t.toLowerCase(e),t.toLowerCase(i))):"%"===i.charAt(i.length-1)&&i.indexOf("%")>i.length-3?(i=i.substring(0,i.length-1),t.endsWith(t.toLowerCase(e),t.toLowerCase(i))):i.lastIndexOf("%")!==i.indexOf("%")&&i.lastIndexOf("%")>i.indexOf("%")+1?(i=i.substring(i.indexOf("%")+1,i.lastIndexOf("%")),-1!==e.indexOf(i)):-1!==e.indexOf(i))},t.fnSort=function(e){return"ascending"===(e=e?t.toLowerCase(e):"ascending")?this.fnAscending:this.fnDescending},t.fnAscending=function(t,e){return k(t)&&k(e)||null==e?-1:"string"==typeof t?t.localeCompare(e):null==t?1:t-e},t.fnDescending=function(t,e){return k(t)&&k(e)?-1:null==e?1:"string"==typeof t?-1*t.localeCompare(e):null==t?-1:e-t},t.extractFields=function(t,e){for(var i={},r=0;r<e.length;r++)i=this.setValue(e[r],this.getObject(e[r],t),i);return i},t.select=function(t,e){for(var i=[],r=0;r<t.length;r++)i.push(this.extractFields(t[r],e));return i},t.group=function(e,i,r,n,o,s,a){n=n||1;var u=e,c="GroupGuid";if(u.GroupGuid===_e[c]){for(var h=function(t){if(k(o))u[t].items=l.group(u[t].items,i,r,u.level+1,null,s,a),u[t].count=u[t].items.length;else{var e,n=o.filter(function(e){return e.key===u[t].key});e=o.indexOf(n[0]),u[t].items=l.group(u[t].items,i,r,u.level+1,o[e].items,s,a),u[t].count=o[e].count}},l=this,p=0;p<u.length;p++)h(p);return u.childLevels+=1,u}var g={},d=[];d.GroupGuid=_e[c],d.level=n,d.childLevels=0,d.records=u;for(var f=function(t){var e=M.getVal(u,t,i);if(k(s)||(e=s(e,i)),!g[e]&&(g[e]={key:e,count:0,items:[],aggregates:{},field:i},d.push(g[e]),!k(o))){var n=o.filter(function(t){return t.key===g[e].key});g[e].count=n[0].count}g[e].count=k(o)?g[e].count+=1:g[e].count,(!a||a&&r.length)&&g[e].items.push(u[t])},M=this,y=0;y<u.length;y++)f(y);if(r&&r.length){var m=function(e){for(var i={},n=void 0,s=r,a=0;a<r.length;a++)if(n=t.aggregates[r[a].type],k(o))n&&(i[s[a].field+" - "+s[a].type]=n(d[e].items,s[a].field));else{var u=o.filter(function(t){return t.key===d[e].key});n&&(i[s[a].field+" - "+s[a].type]=n(u[0].items,s[a].field))}d[e].aggregates=i};for(y=0;y<d.length;y++)m(y)}if(a&&d.length&&r.length)for(y=0;y<d.length;y++)d[y].items=[];return u.length&&d||u},t.buildHierarchy=function(t,e,i,r,n){var o,s={};for(r.result&&(r=r.result),r.GroupGuid&&this.throwError("DataManager: Do not have support Grouping in hierarchy"),o=0;o<r.length;o++){(s[a=this.getObject(t,r[o])]||(s[a]=[])).push(r[o])}for(o=0;o<i.length;o++){var a=this.getObject(n||t,i[o]);i[o][e]=s[a]}},t.getFieldList=function(t,e,i){if(void 0===i&&(i=""),null==e)return this.getFieldList(t,[],i);for(var r=t,n=0,o=Object.keys(t);n<o.length;n++){var s=o[n];"object"!=typeof r[s]||r[s]instanceof Array?e.push(i+s):this.getFieldList(r[s],e,i+s+".")}return e},t.getObject=function(t,e){if(!t)return e;if(e){if(-1===t.indexOf(".")){var i=t.charAt(0).toLowerCase()+t.slice(1),r=t.charAt(0).toUpperCase()+t.slice(1);return k(e[t])?k(e[i])?k(e[r])?null:e[r]:e[i]:e[t]}for(var n=e,o=t.split("."),s=0;s<o.length&&null!=n;s++){if(void 0===(n=n[o[s]])){var a=o[s].charAt(0).toUpperCase()+o[s].slice(1);n=e[a]||e[a.charAt(0).toLowerCase()+a.slice(1)]||null}e=n}return n}},t.setValue=function(t,e,i){var r,n,o=t.toString().split("."),s=i||{},a=s,u=o.length;for(r=0;r<u;r++)n=o[r],r+1===u?a[n]=void 0===e?void 0:e:k(a[n])&&(a[n]={}),a=a[n];return s},t.sort=function(t,e,i){if(t.length<=1)return t;var r=parseInt((t.length/2).toString(),10),n=t.slice(0,r),o=t.slice(r);return n=this.sort(n,e,i),o=this.sort(o,e,i),this.merge(n,o,e,i)},t.ignoreDiacritics=function(e){return"string"!=typeof e?e:e.split("").map(function(e){return e in t.diacritics?t.diacritics[e]:e}).join("")},t.merge=function(t,e,i,r){for(var n,o=[];t.length>0||e.length>0;)n=t.length>0&&e.length>0?r?r(this.getVal(t,0,i),this.getVal(e,0,i),t[0],e[0])<=0?t:e:t[0][i]<t[0][i]?t:e:t.length>0?t:e,o.push(n.shift());return o},t.getVal=function(t,e,i){return i?this.getObject(i,t[e]):t[e]},t.toLowerCase=function(t){return t?"string"==typeof t?t.toLowerCase():t.toString():0===t||!1===t?t.toString():""},t.callAdaptorFunction=function(t,e,i,r){if(e in t){var n=t[e](i,r);k(n)||(i=n)}return i},t.getAddParams=function(e,i,r){var n={};return t.callAdaptorFunction(e,"addParams",{dm:i,query:r,params:r.params,reqParams:n}),n},t.isPlainObject=function(t){return!!t&&t.constructor===Object},t.isCors=function(){var t=null;try{t=new window.XMLHttpRequest}catch(t){}return!!t&&"withCredentials"in t},t.getGuid=function(t){var e;return(t||"")+"00000000-0000-4000-0000-000000000000".replace(/0/g,function(t,i){if("crypto"in window&&"getRandomValues"in crypto){var r=new Uint8Array(1);window.crypto.getRandomValues(r),e=r[0]%16|0}else e=16*Math.random()|0;return"0123456789abcdef"[19===i?3&e|8:e]})},t.isNull=function(t){return null==t},t.getItemFromComparer=function(e,i,r){var n,o,s,a=0,u="string"==typeof t.getVal(e,0,i);if(e.length)for(;k(n)&&a<e.length;)n=t.getVal(e,a,i),s=e[a++];for(;a<e.length;a++)k(o=t.getVal(e,a,i))||(u&&(n=+n,o=+o),r(n,o)>0&&(n=o,s=e[a]));return s},t.distinct=function(e,i,r){r=!k(r)&&r;var n,o=[],s={};return e.forEach(function(a,u){(n="object"==typeof e[u]?t.getVal(e,u,i):e[u])in s||(o.push(r?e[u]:n),s[n]=1)}),o},t.processData=function(t,e){var i=this.prepareQuery(t),r=new oi(e);t.requiresCounts&&i.requiresCount();var n=r.executeLocal(i),o={result:t.requiresCounts?n.result:n,count:n.count,aggregates:JSON.stringify(n.aggregates)};return t.requiresCounts?o:n},t.prepareQuery=function(e){var i=this,r=new He;(e.select&&r.select(e.select),e.where)&&t.parse.parseJson(e.where).filter(function(t){if(k(t.condition))r.where(t.field,t.operator,t.value,t.ignoreCase,t.ignoreAccent);else{var e=[];t.field?e.push(new qe(t.field,t.operator,t.value,t.ignoreCase,t.ignoreAccent)):e=e.concat(i.getPredicate(t.predicates)),"or"===t.condition?r.where(qe.or(e)):"and"===t.condition&&r.where(qe.and(e))}});e.search&&t.parse.parseJson(e.search).filter(function(t){return r.search(t.key,t.fields,t.operator,t.ignoreCase,t.ignoreAccent)});return e.aggregates&&e.aggregates.filter(function(t){return r.aggregate(t.type,t.field)}),e.sorted&&e.sorted.filter(function(t){return r.sortBy(t.name,t.direction)}),e.skip&&r.skip(e.skip),e.take&&r.take(e.take),e.group&&e.group.filter(function(t){return r.group(t)}),r},t.getPredicate=function(t){for(var e=[],i=0;i<t.length;i++){var r=t[i];if(r.field)e.push(new qe(r.field,r.operator,r.value,r.ignoreCase,r.ignoreAccent));else{for(var n=[],o=this.getPredicate(r.predicates),s=0,a=Object.keys(o);s<a.length;s++){var u=a[s];n.push(o[u])}e.push("or"===r.condition?qe.or(n):qe.and(n))}}return e},t.serverTimezoneOffset=null,t.timeZoneHandling=!0,t.throwError=function(t){try{throw new Error(t)}catch(t){throw t.message+"\n"+t.stack}},t.aggregates={sum:function(e,i){for(var r,n=0,o="number"!=typeof t.getVal(e,0,i),s=0;s<e.length;s++)r=t.getVal(e,s,i),isNaN(r)||null===r||(o&&(r=+r),n+=r);return n},average:function(e,i){return t.aggregates.sum(e,i)/e.length},min:function(e,i){var r;return"function"==typeof i&&(r=i,i=null),t.getObject(i,t.getItemFromComparer(e,i,r||t.fnAscending))},max:function(e,i){var r;return"function"==typeof i&&(r=i,i=null),t.getObject(i,t.getItemFromComparer(e,i,r||t.fnDescending))},truecount:function(t,e){return new oi(t).executeLocal((new He).where(e,"equal",!0,!0)).length},falsecount:function(t,e){return new oi(t).executeLocal((new He).where(e,"equal",!1,!0)).length},count:function(t,e){return t.length}},t.operatorSymbols={"<":"lessthan",">":"greaterthan","<=":"lessthanorequal",">=":"greaterthanorequal","==":"equal","!=":"notequal","*=":"contains","$=":"endswith","^=":"startswith"},t.odBiOperator={"<":" lt ",">":" gt ","<=":" le ",">=":" ge ","==":" eq ","!=":" ne ",lessthan:" lt ",lessthanorequal:" le ",greaterthan:" gt ",greaterthanorequal:" ge ",equal:" eq ",notequal:" ne "},t.odUniOperator={"$=":"endswith","^=":"startswith","*=":"substringof",endswith:"endswith",startswith:"startswith",contains:"substringof",doesnotendwith:"not endswith",doesnotstartwith:"not startswith",doesnotcontain:"not substringof",wildcard:"wildcard",like:"like"},t.odv4UniOperator={"$=":"endswith","^=":"startswith","*=":"contains",endswith:"endswith",startswith:"startswith",contains:"contains",doesnotendwith:"not endswith",doesnotstartwith:"not startswith",doesnotcontain:"not contains",wildcard:"wildcard",like:"like"},t.diacritics={"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","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W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"},t.fnOperators={equal:function(e,i,r,n){return n&&(e=t.ignoreDiacritics(e),i=t.ignoreDiacritics(i)),r?t.toLowerCase(e)===t.toLowerCase(i):e===i},notequal:function(e,i,r,n){return n&&(e=t.ignoreDiacritics(e),i=t.ignoreDiacritics(i)),!t.fnOperators.equal(e,i,r)},lessthan:function(e,i,r){return r?t.toLowerCase(e)<t.toLowerCase(i):(k(e)&&(e=void 0),e<i)},greaterthan:function(e,i,r){return r?t.toLowerCase(e)>t.toLowerCase(i):e>i},lessthanorequal:function(e,i,r){return r?t.toLowerCase(e)<=t.toLowerCase(i):(k(e)&&(e=void 0),e<=i)},greaterthanorequal:function(e,i,r){return r?t.toLowerCase(e)>=t.toLowerCase(i):e>=i},contains:function(e,i,r,n){return n&&(e=t.ignoreDiacritics(e),i=t.ignoreDiacritics(i)),r?!k(e)&&!k(i)&&-1!==t.toLowerCase(e).indexOf(t.toLowerCase(i)):!k(e)&&!k(i)&&-1!==e.toString().indexOf(i)},doesnotcontain:function(e,i,r,n){return n&&(e=t.ignoreDiacritics(e),i=t.ignoreDiacritics(i)),r?!k(e)&&!k(i)&&-1===t.toLowerCase(e).indexOf(t.toLowerCase(i)):!k(e)&&!k(i)&&-1===e.toString().indexOf(i)},isnotnull:function(t){return null!=t},isnull:function(t){return null==t},startswith:function(e,i,r,n){return n&&(e=t.ignoreDiacritics(e),i=t.ignoreDiacritics(i)),r?e&&i&&t.startsWith(t.toLowerCase(e),t.toLowerCase(i)):e&&i&&t.startsWith(e,i)},doesnotstartwith:function(e,i,r,n){return n&&(e=t.ignoreDiacritics(e),i=t.ignoreDiacritics(i)),r?e&&i&&t.notStartsWith(t.toLowerCase(e),t.toLowerCase(i)):e&&i&&t.notStartsWith(e,i)},like:function(e,i,r,n){return n&&(e=t.ignoreDiacritics(e),i=t.ignoreDiacritics(i)),r?e&&i&&t.like(t.toLowerCase(e),t.toLowerCase(i)):e&&i&&t.like(e,i)},isempty:function(t){return void 0===t||""===t},isnotempty:function(t){return void 0!==t&&""!==t},wildcard:function(e,i,r,n){return n&&(e=t.ignoreDiacritics(e),i=t.ignoreDiacritics(i)),r?(e||"boolean"==typeof e)&&i&&"object"!=typeof e&&t.wildCard(t.toLowerCase(e),t.toLowerCase(i)):(e||"boolean"==typeof e)&&i&&t.wildCard(e,i)},endswith:function(e,i,r,n){return n&&(e=t.ignoreDiacritics(e),i=t.ignoreDiacritics(i)),r?e&&i&&t.endsWith(t.toLowerCase(e),t.toLowerCase(i)):e&&i&&t.endsWith(e,i)},doesnotendwith:function(e,i,r,n){return n&&(e=t.ignoreDiacritics(e),i=t.ignoreDiacritics(i)),r?e&&i&&t.notEndsWith(t.toLowerCase(e),t.toLowerCase(i)):e&&i&&t.notEndsWith(e,i)},processSymbols:function(e){var i=t.operatorSymbols[e];return i?t.fnOperators[i]:t.throwError("Query - Process Operator : Invalid operator")},processOperator:function(e){var i=t.fnOperators[e];return i||t.fnOperators.processSymbols(e)}},t.parse={parseJson:function(e){return"string"!=typeof e||!/^[\s]*\[|^[\s]*\{(.)+:/g.test(e)&&-1!==e.indexOf('"')?e instanceof Array?t.parse.iterateAndReviveArray(e):"object"==typeof e&&null!==e&&t.parse.iterateAndReviveJson(e):e=JSON.parse(e,t.parse.jsonReviver),e},iterateAndReviveArray:function(e){for(var i=0;i<e.length;i++)"object"==typeof e[i]&&null!==e[i]?t.parse.iterateAndReviveJson(e[i]):"string"!=typeof e[i]||/^[\s]*\[|^[\s]*\{(.)+:|\"/g.test(e[i])&&-1!==e[i].toString().indexOf('"')?e[i]=t.parse.parseJson(e[i]):e[i]=t.parse.jsonReviver("",e[i])},iterateAndReviveJson:function(e){for(var i,r=0,n=Object.keys(e);r<n.length;r++){var o=n[r];t.startsWith(o,"__")||("object"==typeof(i=e[o])?i instanceof Array?t.parse.iterateAndReviveArray(i):i&&t.parse.iterateAndReviveJson(i):e[o]=t.parse.jsonReviver(e[o],i))}},jsonReviver:function(e,i){if("string"==typeof i){var r=/^\/Date\(([+-]?[0-9]+)([+-][0-9]{4})?\)\/$/.exec(i),n=t.timeZoneHandling?t.serverTimezoneOffset:null;if(r)return t.dateParse.toTimeZone(new Date(parseInt(r[1],10)),n,!0);if(/^(\d{4}\-\d\d\-\d\d([tT][\d:\.]*){1})([zZ]|([+\-])(\d\d):?(\d\d))?$/.test(i)){var o=i.indexOf("Z")>-1||i.indexOf("z")>-1,s=i.split(/[^0-9.]/);if(o){if(s[5].indexOf(".")>-1){var a=s[5].split(".");s[5]=a[0],s[6]=new Date(i).getUTCMilliseconds().toString()}else s[6]="00";i=t.dateParse.toTimeZone(new Date(parseInt(s[0],10),parseInt(s[1],10)-1,parseInt(s[2],10),parseInt(s[3],10),parseInt(s[4],10),parseInt(s[5]?s[5]:"00",10),parseInt(s[6],10)),t.serverTimezoneOffset,!1)}else{var u=new Date(parseInt(s[0],10),parseInt(s[1],10)-1,parseInt(s[2],10),parseInt(s[3],10),parseInt(s[4],10),parseInt(s[5]?s[5]:"00",10)),c=parseInt(s[6],10),h=parseInt(s[7],10);if(isNaN(c)&&isNaN(h))return u;i.indexOf("+")>-1?u.setHours(u.getHours()-c,u.getMinutes()-h):u.setHours(u.getHours()+c,u.getMinutes()+h),i=t.dateParse.toTimeZone(u,t.serverTimezoneOffset,!1)}null==t.serverTimezoneOffset&&(i=t.dateParse.addSelfOffset(i))}}return i},isJson:function(e){return"string"==typeof e[0]?e:t.parse.parseJson(e)},isGuid:function(t){return null!=/[A-Fa-f0-9]{8}(?:-[A-Fa-f0-9]{4}){3}-[A-Fa-f0-9]{12}/i.exec(t)},replacer:function(e,i){return t.isPlainObject(e)?t.parse.jsonReplacer(e,i):e instanceof Array?t.parse.arrayReplacer(e):e instanceof Date?t.parse.jsonReplacer({val:e},i).val:e},jsonReplacer:function(e,i){for(var r,n=0,o=Object.keys(e);n<o.length;n++){var s=o[n];if((r=e[s])instanceof Date){var a=r;null==t.serverTimezoneOffset?e[s]=t.dateParse.toTimeZone(a,null).toJSON():(a=new Date(+a+36e5*t.serverTimezoneOffset),e[s]=t.dateParse.toTimeZone(t.dateParse.addSelfOffset(a),null).toJSON())}}return e},arrayReplacer:function(e){for(var i=0;i<e.length;i++)t.isPlainObject(e[i])?e[i]=t.parse.jsonReplacer(e[i]):e[i]instanceof Date&&(e[i]=t.parse.jsonReplacer({date:e[i]}).date);return e},jsonDateReplacer:function(e,i){if("value"===e&&i){if("string"==typeof i){var r=/^\/Date\(([+-]?[0-9]+)([+-][0-9]{4})?\)\/$/.exec(i);if(r)i=t.dateParse.toTimeZone(new Date(parseInt(r[1],10)),null,!0);else if(/^(\d{4}\-\d\d\-\d\d([tT][\d:\.]*){1})([zZ]|([+\-])(\d\d):?(\d\d))?$/.test(i)){var n=i.split(/[^0-9]/);i=t.dateParse.toTimeZone(new Date(parseInt(n[0],10),parseInt(n[1],10)-1,parseInt(n[2],10),parseInt(n[3],10),parseInt(n[4],10),parseInt(n[5],10)),null,!0)}}if(i instanceof Date)return i=t.dateParse.addSelfOffset(i),null===t.serverTimezoneOffset?t.dateParse.toTimeZone(t.dateParse.addSelfOffset(i),null).toJSON():(i=t.dateParse.toTimeZone(i,i.getTimezoneOffset()/60-t.serverTimezoneOffset,!1)).toJSON()}return i}},t.dateParse={addSelfOffset:function(t){return new Date(+t-6e4*t.getTimezoneOffset())},toUTC:function(t){return new Date(+t+6e4*t.getTimezoneOffset())},toTimeZone:function(e,i,r){if(null===i)return e;var n=r?t.dateParse.toUTC(e):e;return new Date(+n-36e5*i)},toLocalTime:function(t){var e=t,i=-e.getTimezoneOffset(),r=i>=0?"+":"-",n=function(t){var e=Math.floor(Math.abs(t));return(e<10?"0":"")+e};return e.getFullYear()+"-"+n(e.getMonth()+1)+"-"+n(e.getDate())+"T"+n(e.getHours())+":"+n(e.getMinutes())+":"+n(e.getSeconds())+r+n(i/60)+":"+n(i%60)}},t}(),Ze=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Ke={GroupGuid:"{271bbba0-1ee7}"},Xe=function(){function t(e){this.options={from:"table",requestType:"json",sortBy:"sorted",select:"select",skip:"skip",group:"group",take:"take",search:"search",count:"requiresCounts",where:"where",aggregates:"aggregates",expand:"expand"},this.type=t,this.dataSource=e,this.pvt={}}return t.prototype.processResponse=function(t,e,i,r){return t},t}(),$e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ze(e,t),e.prototype.processQuery=function(t,e){for(var i,r,n,o=t.dataSource.json.slice(0),s=o.length,a=!0,u={},c=0,h=[],l=0;l<e.lazyLoad.length;l++)c++,u[e.lazyLoad[l].key]=e.lazyLoad[l].value;var p={};for(l=0;l<e.queries.length;l++)"onPage"!==(r=e.queries[l]).fn&&"onGroup"!==r.fn||!e.lazyLoad.length?(i=this[r.fn].call(this,o,r.e,e),"onAggregates"===r.fn?p[r.e.field+" - "+r.e.type]=i:o=void 0!==i?i:o,"onPage"!==r.fn&&"onSkip"!==r.fn&&"onTake"!==r.fn&&"onRange"!==r.fn||(a=!1),a&&(s=o.length)):("onGroup"===r.fn&&h.push(r.e),"onPage"===r.fn&&(n=r.e));if(c){var g={query:e,lazyLoad:u,result:o,group:h,page:n},d=this.lazyLoadGroup(g);o=d.result,s=d.count}return e.isCountRequired&&(o={result:o,count:s,aggregates:p}),o},e.prototype.lazyLoadGroup=function(t){var e=0,i=this.getAggregate(t.query),r=t.result;if(k(t.lazyLoad.onDemandGroupInfo)){s=t.group[0].fieldName;e=(r=Je.group(r,s,i,null,null,t.group[0].comparer,!0)).length;a=r;t.page&&(r=this.onPage(r,t.page,t.query)),this.formGroupResult(r,a)}else{for(var n=t.lazyLoad.onDemandGroupInfo,o=n.where.length-1;o>=0;o--)r=this.onWhere(r,n.where[o]);if(t.group.length!==n.level){var s=t.group[n.level].fieldName;r=Je.group(r,s,i,null,null,t.group[0].comparer,!0)}e=r.length;var a=r;r=(r=r.slice(n.skip)).slice(0,n.take),t.group.length!==n.level&&this.formGroupResult(r,a)}return{result:r,count:e}},e.prototype.formGroupResult=function(t,e){if(t.length&&e.length){var i="GroupGuid",r="childLevels",n="level",o="records";t[i]=e[i],t[r]=e[r],t[n]=e[n],t[o]=e[o]}return t},e.prototype.getAggregate=function(t){var e=He.filterQueries(t.queries,"onAggregates"),i=[];if(e.length)for(var r=void 0,n=0;n<e.length;n++)r=e[n].e,i.push({type:r.type,field:Je.getValue(r.field,t)});return i},e.prototype.batchRequest=function(t,e,i){var r,n=e.deletedRecords.length;for(r=0;r<e.addedRecords.length;r++)this.insert(t,e.addedRecords[r]);for(r=0;r<e.changedRecords.length;r++)this.update(t,i.key,e.changedRecords[r]);for(r=0;r<n;r++)this.remove(t,i.key,e.deletedRecords[r]);return e},e.prototype.onWhere=function(t,e){return t&&t.length?t.filter(function(t){if(e)return e.validate(t)}):t},e.prototype.onAggregates=function(t,e){var i=Je.aggregates[e.type];return t&&i&&0!==t.length?i(t,e.field):null},e.prototype.onSearch=function(t,e){return t&&t.length?(0===e.fieldNames.length&&Je.getFieldList(t[0],e.fieldNames),t.filter(function(t){for(var i=0;i<e.fieldNames.length;i++)if(e.comparer.call(t,Je.getObject(e.fieldNames[i],t),e.searchKey,e.ignoreCase,e.ignoreAccent))return!0;return!1})):t},e.prototype.onSortBy=function(t,e,i){if(!t||!t.length)return t;var r,n=Je.getValue(e.fieldName,i);if(!n)return t.sort(e.comparer);if(n instanceof Array){for(var o=(n=n.slice(0)).length-1;o>=0;o--)n[o]&&(r=e.comparer,Je.endsWith(n[o]," desc")&&(r=Je.fnSort("descending"),n[o]=n[o].replace(" desc","")),t=Je.sort(t,n[o],r));return t}return Je.sort(t,n,e.comparer)},e.prototype.onGroup=function(t,e,i){if(!t||!t.length)return t;var r=this.getAggregate(i);return Je.group(t,Je.getValue(e.fieldName,i),r,null,null,e.comparer)},e.prototype.onPage=function(t,e,i){var r=Je.getValue(e.pageSize,i),n=(Je.getValue(e.pageIndex,i)-1)*r,o=n+r;return t&&t.length?t.slice(n,o):t},e.prototype.onRange=function(t,e){return t&&t.length?t.slice(Je.getValue(e.start),Je.getValue(e.end)):t},e.prototype.onTake=function(t,e){return t&&t.length?t.slice(0,Je.getValue(e.nos)):t},e.prototype.onSkip=function(t,e){return t&&t.length?t.slice(Je.getValue(e.nos)):t},e.prototype.onSelect=function(t,e){return t&&t.length?Je.select(t,Je.getValue(e.fieldNames)):t},e.prototype.insert=function(t,e,i,r,n){return k(n)?t.dataSource.json.push(e):t.dataSource.json.splice(n,0,e)},e.prototype.remove=function(t,e,i,r){var n,o=t.dataSource.json;for("object"!=typeof i||i instanceof Date||(i=Je.getObject(e,i)),n=0;n<o.length&&Je.getObject(e,o[n])!==i;n++);return n!==o.length?o.splice(n,1):null},e.prototype.update=function(t,e,i,r){var n,o,s=t.dataSource.json;for(k(e)||(o=O(e,i)),n=0;n<s.length&&(k(e)||O(e,s[n])!==o);n++);return n<s.length?C(s[n],i):null},e}(Xe),ti=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ze(e,t),e.prototype.processQuery=function(t,e,i){var r,n,o=this.getQueryRequest(e),s=He.filterQueryLists(e.queries,["onSelect","onPage","onSkip","onTake","onRange"]),a=e.params,u=t.dataSource.url,c=null,h=this.options,l={sorts:[],groups:[],filters:[],searches:[],aggregates:[]};"onPage"in s?(r=s.onPage,n=((n=Je.getValue(r.pageIndex,e))-1)*(c=Je.getValue(r.pageSize,e))):"onRange"in s&&(n=(r=s.onRange).start,c=r.end-r.start);for(var p=0;p<o.sorts.length;p++)r=Je.getValue(o.sorts[p].e.fieldName,e),l.sorts.push(Je.callAdaptorFunction(this,"onEachSort",{name:r,direction:o.sorts[p].e.direction},e));i&&(r=this.getFiltersFrom(i,e))&&l.filters.push(Je.callAdaptorFunction(this,"onEachWhere",r.toJson(),e));for(p=0;p<o.filters.length;p++){var g=Je.callAdaptorFunction(this,"onEachWhere",o.filters[p].e.toJson(),e);this.getModuleName&&"ODataV4Adaptor"===this.getModuleName()&&!k(o.filters[p].e.key)&&o.filters.length>1&&(g="("+g+")"),l.filters.push(g);for(var d=0,f="object"==typeof l.filters[p]?Object.keys(l.filters[p]):[];d<f.length;d++){var M=f[d];Je.isNull(l[M])&&delete l[M]}}for(p=0;p<o.searches.length;p++)r=o.searches[p].e,l.searches.push(Je.callAdaptorFunction(this,"onEachSearch",{fields:r.fieldNames,operator:r.operator,key:r.searchKey,ignoreCase:r.ignoreCase},e));for(p=0;p<o.groups.length;p++)l.groups.push(Je.getValue(o.groups[p].e.fieldName,e));for(p=0;p<o.aggregates.length;p++)r=o.aggregates[p].e,l.aggregates.push({type:r.type,field:Je.getValue(r.field,e)});var y={};if(this.getRequestQuery(h,e,s,l,y),Je.callAdaptorFunction(this,"addParams",{dm:t,query:e,params:a,reqParams:y}),e.lazyLoad.length)for(p=0;p<e.lazyLoad.length;p++)y[e.lazyLoad[p].key]=e.lazyLoad[p].value;for(var m=0,N=Object.keys(y);m<N.length;m++){M=N[m];(Je.isNull(y[M])||""===y[M]||0===y[M].length)&&delete y[M]}h.skip in y&&h.take in y||null===c||(y[h.skip]=Je.callAdaptorFunction(this,"onSkip",n,e),y[h.take]=Je.callAdaptorFunction(this,"onTake",c,e));var j=this.pvt;return this.pvt={},"json"===this.options.requestType?{data:JSON.stringify(y,Je.parse.jsonDateReplacer),url:u,pvtData:j,type:"POST",contentType:"application/json; charset=utf-8"}:(r=this.convertToQueryString(y,e,t),{type:"GET",url:(r=(-1!==t.dataSource.url.indexOf("?")?"&":"/")+r).length?u.replace(/\/*$/,r):u,pvtData:j})},e.prototype.getRequestQuery=function(t,e,i,r,n){var o=n;o[t.from]=e.fromTable,t.apply&&e.distincts.length&&(o[t.apply]="onDistinct"in this?Je.callAdaptorFunction(this,"onDistinct",e.distincts):""),!e.distincts.length&&t.expand&&(o[t.expand]="onExpand"in this&&"onSelect"in i?Je.callAdaptorFunction(this,"onExpand",{selects:Je.getValue(i.onSelect.fieldNames,e),expands:e.expands},e):e.expands),o[t.select]="onSelect"in i&&!e.distincts.length?Je.callAdaptorFunction(this,"onSelect",Je.getValue(i.onSelect.fieldNames,e),e):"",o[t.count]=e.isCountRequired?Je.callAdaptorFunction(this,"onCount",e.isCountRequired,e):"",o[t.search]=r.searches.length?Je.callAdaptorFunction(this,"onSearch",r.searches,e):"",o[t.skip]="onSkip"in i?Je.callAdaptorFunction(this,"onSkip",Je.getValue(i.onSkip.nos,e),e):"",o[t.take]="onTake"in i?Je.callAdaptorFunction(this,"onTake",Je.getValue(i.onTake.nos,e),e):"",o[t.where]=r.filters.length||r.searches.length?Je.callAdaptorFunction(this,"onWhere",r.filters,e):"",o[t.sortBy]=r.sorts.length?Je.callAdaptorFunction(this,"onSortBy",r.sorts,e):"",o[t.group]=r.groups.length?Je.callAdaptorFunction(this,"onGroup",r.groups,e):"",o[t.aggregates]=r.aggregates.length?Je.callAdaptorFunction(this,"onAggregates",r.aggregates,e):"",o.param=[]},e.prototype.convertToQueryString=function(t,e,i){return""},e.prototype.processResponse=function(t,e,i,r,n,o){if(r&&r.headers.get("Content-Type")&&-1!==r.headers.get("Content-Type").indexOf("application/json")){var s=Je.timeZoneHandling;e&&!e.timeZoneHandling&&(Je.timeZoneHandling=!1),t=Je.parse.parseJson(t),Je.timeZoneHandling=s}var a=n,u=a.pvtData||{},c=t?t.groupDs:[];if(r&&r.headers.get("Content-Type")&&-1!==r.headers.get("Content-Type").indexOf("xml"))return i.isCountRequired?{result:[],count:0}:[];var h=JSON.parse(a.data);if(h&&"batch"===h.action&&t&&t.addedRecords)return o.addedRecords=t.addedRecords,o;t&&t.d&&(t=t.d);var l={};t&&"count"in t&&(l.count=t.count),l.result=t&&t.result?t.result:t;var p=!1;if(Array.isArray(t.result)&&t.result.length){if(k(t.result[0].key)||(l.result=this.formRemoteGroupedData(l.result,1,u.groups.length-1)),i&&i.lazyLoad.length&&u.groups.length)for(var g=0;g<i.lazyLoad.length;g++)if("onDemandGroupInfo"===i.lazyLoad[g].key){var d=i.lazyLoad[g].value.level;u.groups.length===d&&(p=!0)}}return p||this.getAggregateResult(u,t,l,c,i),Je.isNull(l.count)?l.result:{result:l.result,count:l.count,aggregates:l.aggregates}},e.prototype.formRemoteGroupedData=function(t,e,i){for(var r=0;r<t.length;r++)t[r].items.length&&Object.keys(t[r].items[0]).indexOf("key")>-1&&this.formRemoteGroupedData(t[r].items,e+1,i-1);var n="GroupGuid",o="records";return t[n]=Ke[n],t.level=e,t.childLevels=i,t[o]=t[0].items.length?this.getGroupedRecords(t,!k(t[0].items[o])):[],t},e.prototype.getGroupedRecords=function(t,e){for(var i=[],r=0;r<t.length;r++)if(e)i=i.concat(t[r].items.records);else for(var n=0;n<t[r].items.length;n++)i.push(t[r].items[n]);return i},e.prototype.onGroup=function(t){return this.pvt.groups=t,t},e.prototype.onAggregates=function(t){this.pvt.aggregates=t},e.prototype.batchRequest=function(t,e,i,r,n){return{type:"POST",url:t.dataSource.batchUrl||t.dataSource.crudUrl||t.dataSource.removeUrl||t.dataSource.url,contentType:"application/json; charset=utf-8",dataType:"json",data:JSON.stringify(E({},{changed:e.changedRecords,added:e.addedRecords,deleted:e.deletedRecords,action:"batch",table:i[undefined],key:i[undefined]},Je.getAddParams(this,t,r)))}},e.prototype.beforeSend=function(t,e){},e.prototype.insert=function(t,e,i,r){return{url:t.dataSource.insertUrl||t.dataSource.crudUrl||t.dataSource.url,data:JSON.stringify(E({},{value:e,table:i,action:"insert"},Je.getAddParams(this,t,r)))}},e.prototype.remove=function(t,e,i,r,n){return{type:"POST",url:t.dataSource.removeUrl||t.dataSource.crudUrl||t.dataSource.url,data:JSON.stringify(E({},{key:i,keyColumn:e,table:r,action:"remove"},Je.getAddParams(this,t,n)))}},e.prototype.update=function(t,e,i,r,n){return{type:"POST",url:t.dataSource.updateUrl||t.dataSource.crudUrl||t.dataSource.url,data:JSON.stringify(E({},{value:i,action:"update",keyColumn:e,key:Je.getObject(e,i),table:r},Je.getAddParams(this,t,n)))}},e.prototype.getFiltersFrom=function(t,e){var i,r=e.fKey,n=r,o=e.key,s=[];"object"!=typeof t[0]&&(n=null);for(var a=0;a<t.length;a++)i="object"==typeof t[0]?Je.getObject(o||n,t[a]):t[a],s.push(new qe(r,"equal",i));return qe.or(s)},e.prototype.getAggregateResult=function(t,e,i,r,n){var o=e;if(e&&e.result&&(o=e.result),t&&t.aggregates&&t.aggregates.length){var s=t.aggregates,a=void 0,u=o,c={};e.aggregate&&(u=e.aggregate);for(var h=0;h<s.length;h++)(a=Je.aggregates[s[h].type])&&(c[s[h].field+" - "+s[h].type]=a(u,s[h].field));i.aggregates=c}var l=Array.isArray(e.result)&&e.result.length&&!k(e.result[0].key);if(t&&t.groups&&t.groups.length&&!l){var p=t.groups;for(h=0;h<p.length;h++){k(r)||(r=Je.group(r,p[h]));var g=He.filterQueries(n.queries,"onGroup")[h].e;o=Je.group(o,p[h],t.aggregates,null,r,g.comparer)}i.result=o}return i},e.prototype.getQueryRequest=function(t){var e={sorts:[],groups:[],filters:[],searches:[],aggregates:[]};return e.sorts=He.filterQueries(t.queries,"onSortBy"),e.groups=He.filterQueries(t.queries,"onGroup"),e.filters=He.filterQueries(t.queries,"onWhere"),e.searches=He.filterQueries(t.queries,"onSearch"),e.aggregates=He.filterQueries(t.queries,"onAggregates"),e},e.prototype.addParams=function(t){var e=t.reqParams;t.params.length&&(e.params={});for(var i=0,r=t.params;i<r.length;i++){var n=r[i];if(e[n.key])throw new Error("Query() - addParams: Custom Param is conflicting other request arguments");e[n.key]=n.value,n.fn&&(e[n.key]=n.fn.call(t.query,n.key,t.query,t.dm)),e.params[n.key]=e[n.key]}},e}(Xe),ei=function(t){function e(e){var i=t.call(this)||this;return i.options=E({},i.options,{requestType:"get",accept:"application/json;odata=light;q=1,application/json;odata=verbose;q=0.5",multipartAccept:"multipart/mixed",sortBy:"$orderby",select:"$select",skip:"$skip",take:"$top",count:"$inlinecount",where:"$filter",expand:"$expand",batch:"$batch",changeSet:"--changeset_",batchPre:"batch_",contentId:"Content-Id: ",batchContent:"Content-Type: multipart/mixed; boundary=",changeSetContent:"Content-Type: application/http\nContent-Transfer-Encoding: binary ",batchChangeSetContentType:"Content-Type: application/json; charset=utf-8 ",updateType:"PUT"}),E(i.options,e||{}),i}return Ze(e,t),e.prototype.getModuleName=function(){return"ODataAdaptor"},e.prototype.onPredicate=function(t,i,r){var n,o,s="",a=t.value,u=typeof a,c=t.field?e.getField(t.field):null;if(a instanceof Date&&(a="datetime'"+Je.parse.replacer(a)+"'"),"string"===u&&(a=a.replace(/'/g,"''"),t.ignoreCase&&(a=a.toLowerCase()),"like"!==t.operator&&(a=encodeURIComponent(a)),"wildcard"!==t.operator&&"like"!==t.operator&&(a="'"+a+"'"),r&&(c="cast("+c+", 'Edm.String')"),Je.parse.isGuid(a)&&(o="guid"),t.ignoreCase&&(o||(c="tolower("+c+")"),a=a.toLowerCase())),"isempty"===t.operator||"isnull"===t.operator||"isnotempty"===t.operator||"isnotnull"===t.operator?(n=-1!==t.operator.indexOf("isnot")?Je.odBiOperator.notequal:Je.odBiOperator.equal,a="isnull"===t.operator||"isnotnull"===t.operator?null:"''"):n=Je.odBiOperator[t.operator],n)return s+=c,s+=n,o&&(s+=o),s+a;if("like"===(n=k(this.getModuleName)||"ODataV4Adaptor"!==this.getModuleName()?Je.odUniOperator[t.operator]:Je.odv4UniOperator[t.operator]))-1!==a.indexOf("%")&&("%"===a.charAt(0)&&a.lastIndexOf("%")<2?(a=a.substring(1,a.length),n=k(this.getModuleName)||"ODataV4Adaptor"!==this.getModuleName()?Je.odUniOperator.startswith:Je.odv4UniOperator.startswith):"%"===a.charAt(a.length-1)&&a.indexOf("%")>a.length-3?(a=a.substring(0,a.length-1),n=k(this.getModuleName)||"ODataV4Adaptor"!==this.getModuleName()?Je.odUniOperator.endswith:Je.odv4UniOperator.endswith):a.lastIndexOf("%")!==a.indexOf("%")&&a.lastIndexOf("%")>a.indexOf("%")+1?(a=a.substring(a.indexOf("%")+1,a.lastIndexOf("%")),n=k(this.getModuleName)||"ODataV4Adaptor"!==this.getModuleName()?Je.odUniOperator.contains:Je.odv4UniOperator.contains):n=k(this.getModuleName)||"ODataV4Adaptor"!==this.getModuleName()?Je.odUniOperator.contains:Je.odv4UniOperator.contains),a="'"+(a=encodeURIComponent(a))+"'";else if("wildcard"===n)if(-1!==a.indexOf("*")){var h=a.split("*"),l=void 0,p=0;if(0!==a.indexOf("*")&&-1===h[0].indexOf("%3f")&&-1===h[0].indexOf("?")&&(l="'"+(l=h[0])+"'",s+=(n=k(this.getModuleName)||"ODataV4Adaptor"!==this.getModuleName()?Je.odUniOperator.startswith:Je.odv4UniOperator.startswith)+"(",s+=c+",",o&&(s+=o),s+=l+")",p++),a.lastIndexOf("*")!==a.length-1&&-1===h[h.length-1].indexOf("%3f")&&-1===h[h.length-1].indexOf("?")&&(l="'"+(l=h[h.length-1])+"'",p>0&&(s+=" and "),s+=(n=k(this.getModuleName)||"ODataV4Adaptor"!==this.getModuleName()?Je.odUniOperator.endswith:Je.odv4UniOperator.endswith)+"(",s+=c+",",o&&(s+=o),s+=l+")",p++),h.length>2)for(var g=1;g<h.length-1;g++)if(-1===h[g].indexOf("%3f")&&-1===h[g].indexOf("?")){if(l="'"+(l=h[g])+"'",p>0&&(s+=" and "),"substringof"===(n=k(this.getModuleName)||"ODataV4Adaptor"!==this.getModuleName()?Je.odUniOperator.contains:Je.odv4UniOperator.contains)||"not substringof"===n){var d=l;l=c,c=d}s+=n+"(",s+=c+",",o&&(s+=o),s+=l+")",p++}0===p?(n=k(this.getModuleName)||"ODataV4Adaptor"!==this.getModuleName()?Je.odUniOperator.contains:Je.odv4UniOperator.contains,-1===a.indexOf("?")&&-1===a.indexOf("%3f")||(a=-1!==a.indexOf("?")?a.split("?").join(""):a.split("%3f").join("")),a="'"+a+"'"):n="wildcard"}else n=k(this.getModuleName)||"ODataV4Adaptor"!==this.getModuleName()?Je.odUniOperator.contains:Je.odv4UniOperator.contains,-1===a.indexOf("?")&&-1===a.indexOf("%3f")||(a=-1!==a.indexOf("?")?a.split("?").join(""):a.split("%3f").join("")),a="'"+a+"'";if("substringof"===n||"not substringof"===n){d=a;a=c,c=d}return"wildcard"!==n&&(s+=n+"(",s+=c+",",o&&(s+=o),s+=a+")"),s},e.prototype.addParams=function(e){t.prototype.addParams.call(this,e),delete e.reqParams.params},e.prototype.onComplexPredicate=function(t,e,i){for(var r=[],n=0;n<t.predicates.length;n++)r.push("("+this.onEachWhere(t.predicates[n],e,i)+")");return r.join(" "+t.condition+" ")},e.prototype.onEachWhere=function(t,e,i){return t.isComplex?this.onComplexPredicate(t,e,i):this.onPredicate(t,e,i)},e.prototype.onWhere=function(t){return this.pvt.search&&t.push(this.onEachWhere(this.pvt.search,null,!0)),t.join(" and ")},e.prototype.onEachSearch=function(t){t.fields&&0===t.fields.length&&Je.throwError("Query() - Search : oData search requires list of field names to search");for(var e=this.pvt.search||[],i=0;i<t.fields.length;i++)e.push(new qe(t.fields[i],t.operator,t.key,t.ignoreCase));this.pvt.search=e},e.prototype.onSearch=function(t){return this.pvt.search=qe.or(this.pvt.search),""},e.prototype.onEachSort=function(t){var i=[];if(t.name instanceof Array)for(var r=0;r<t.name.length;r++)i.push(e.getField(t.name[r])+("descending"===t.direction?" desc":""));else i.push(e.getField(t.name)+("descending"===t.direction?" desc":""));return i.join(",")},e.prototype.onSortBy=function(t){return t.reverse().join(",")},e.prototype.onGroup=function(t){return this.pvt.groups=t,[]},e.prototype.onSelect=function(t){for(var i=0;i<t.length;i++)t[i]=e.getField(t[i]);return t.join(",")},e.prototype.onAggregates=function(t){return this.pvt.aggregates=t,""},e.prototype.onCount=function(t){return!0===t?"allpages":""},e.prototype.beforeSend=function(t,e,i){Je.endsWith(i.url,this.options.batch)&&"post"===i.type.toLowerCase()?(e.headers.set("Accept",this.options.multipartAccept),e.headers.set("DataServiceVersion","2.0")):e.headers.set("Accept",this.options.accept),e.headers.set("DataServiceVersion","2.0"),e.headers.set("MaxDataServiceVersion","2.0")},e.prototype.processResponse=function(t,e,i,r,n,o){var s="odata.metadata";if(n&&"GET"===n.type&&!this.rootUrl&&t[s]){var a=t[s].split("/$metadata#");this.rootUrl=a[0],this.resourceTableName=a[1]}if(!k(t.d)){var u=i&&i.isCountRequired?t.d.results:t.d,c="__metadata";if(!k(u))for(var h=0;h<u.length;h++)k(u[h][c])||delete u[h][c]}var l=n&&n.pvtData,p=this.processBatchResponse(t,i,r,n,o);if(p)return p;var g=r&&n.fetchRequest.headers.get("DataServiceVersion"),d=null,f=g&&parseInt(g,10)||2;if(i&&i.isCountRequired){var M="__count";(t[M]||t["odata.count"])&&(d=t[M]||t["odata.count"]),t.d&&(t=t.d),(t[M]||t["odata.count"])&&(d=t[M]||t["odata.count"])}3===f&&t.value&&(t=t.value),t.d&&(t=t.d),f<3&&t.results&&(t=t.results);var y={};return y.count=d,y.result=t,this.getAggregateResult(l,t,y,null,i),Je.isNull(d)?y.result:{result:y.result,count:y.count,aggregates:y.aggregates}},e.prototype.convertToQueryString=function(t,e,i){var r=[],n="table",o=t[n]||"";delete t[n],i.dataSource.requiresFormat&&(t.$format="json");for(var s=0,a=Object.keys(t);s<a.length;s++){var u=a[s];r.push(u+"="+t[u])}return r=r.join("&"),i.dataSource.url&&-1!==i.dataSource.url.indexOf("?")&&!o?r:r.length?o+"?"+r:o||""},e.prototype.localTimeReplacer=function(t,e){for(var i=0,r=k(e)?[]:Object.keys(e);i<r.length;i++){var n=r[i];e[n]instanceof Date&&(e[n]=Je.dateParse.toLocalTime(e[n]))}return e},e.prototype.insert=function(t,e,i){return{url:(t.dataSource.insertUrl||t.dataSource.url).replace(/\/*$/,i?"/"+i:""),data:JSON.stringify(e,this.options.localTime?this.localTimeReplacer:null)}},e.prototype.remove=function(t,e,i,r){var n;return n="string"!=typeof i||Je.parse.isGuid(i)?"("+i+")":"('"+i+"')",{type:"DELETE",url:(t.dataSource.removeUrl||t.dataSource.url).replace(/\/*$/,r?"/"+r:"")+n}},e.prototype.update=function(t,e,i,r,n,o){var s;return"PATCH"!==this.options.updateType||k(o)||(i=this.compareAndRemove(i,o,e)),s="string"!=typeof i[e]||Je.parse.isGuid(i[e])?"("+i[e]+")":"('"+i[e]+"')",{type:this.options.updateType,url:(t.dataSource.updateUrl||t.dataSource.url).replace(/\/*$/,r?"/"+r:"")+s,data:JSON.stringify(i,this.options.localTime?this.localTimeReplacer:null),accept:this.options.accept}},e.prototype.batchRequest=function(t,e,i,r,n){var o=i.guid=Je.getGuid(this.options.batchPre),s=this.rootUrl?this.rootUrl+"/"+this.options.batch:t.dataSource.url.replace(/\/*$/,"/"+this.options.batch);i.url=this.resourceTableName?this.resourceTableName:i.url;var a={url:i.url,key:i.key,cid:1,cSet:Je.getGuid(this.options.changeSet)},u="--"+o+"\n";return u+="Content-Type: multipart/mixed; boundary="+a.cSet.replace("--","")+"\n",this.pvt.changeSet=0,u+=this.generateInsertRequest(e.addedRecords,a,t),u+=this.generateUpdateRequest(e.changedRecords,a,t,n?n.changedRecords:[]),u+=this.generateDeleteRequest(e.deletedRecords,a,t),u+=a.cSet+"--\n",{type:"POST",url:s,dataType:"json",contentType:"multipart/mixed; charset=UTF-8;boundary="+o,data:u+="--"+o+"--"}},e.prototype.generateDeleteRequest=function(t,e,i){if(!t)return"";var r={method:"DELETE ",url:function(t,e,i){var r=Je.getObject(i,t[e]);return"number"==typeof r||Je.parse.isGuid(r)?"("+r+")":r instanceof Date?"("+t[e][i].toJSON()+")":"('"+r+"')"},data:function(t,e){return""}};return this.generateBodyContent(t,e,r,i)+"\n"},e.prototype.generateInsertRequest=function(t,e,i){if(!t)return"";var r={method:"POST ",url:function(t,e,i){return""},data:function(t,e){return JSON.stringify(t[e])+"\n\n"}};return this.generateBodyContent(t,e,r,i)},e.prototype.generateUpdateRequest=function(t,e,i,r){var n=this;if(!t)return"";t.forEach(function(t){return t=n.compareAndRemove(t,r.filter(function(i){return Je.getObject(e.key,i)===Je.getObject(e.key,t)})[0],e.key)});var o={method:this.options.updateType+" ",url:function(t,e,i){return"number"==typeof t[e][i]||Je.parse.isGuid(t[e][i])?"("+t[e][i]+")":t[e][i]instanceof Date?"("+t[e][i].toJSON()+")":"('"+t[e][i]+"')"},data:function(t,e){return JSON.stringify(t[e])+"\n\n"}};return this.generateBodyContent(t,e,o,i)},e.getField=function(t){return t.replace(/\./g,"/")},e.prototype.generateBodyContent=function(t,e,i,r){for(var n="",o=0;o<t.length;o++)n+="\n"+e.cSet+"\n",n+=this.options.changeSetContent+"\n\n",n+=i.method,"POST "===i.method?n+=(r.dataSource.insertUrl||r.dataSource.crudUrl||e.url)+i.url(t,o,e.key)+" HTTP/1.1\n":"PUT "===i.method||"PATCH "===i.method?n+=(r.dataSource.updateUrl||r.dataSource.crudUrl||e.url)+i.url(t,o,e.key)+" HTTP/1.1\n":"DELETE "===i.method&&(n+=(r.dataSource.removeUrl||r.dataSource.crudUrl||e.url)+i.url(t,o,e.key)+" HTTP/1.1\n"),n+="Accept: "+this.options.accept+"\n",n+="Content-Id: "+this.pvt.changeSet+++"\n",n+=this.options.batchChangeSetContentType+"\n",k(t[o]["@odata.etag"])?n+="\n":(n+="If-Match: "+t[o]["@odata.etag"]+"\n\n",delete t[o]["@odata.etag"]),n+=i.data(t,o);return n},e.prototype.processBatchResponse=function(t,e,i,r,n){if(i&&i.headers.get("Content-Type")&&-1!==i.headers.get("Content-Type").indexOf("xml"))return e.isCountRequired?{result:[],count:0}:[];if(r&&this.options.batch&&Je.endsWith(r.url,this.options.batch)&&"post"===r.type.toLowerCase()){var o=i.headers.get("Content-Type"),s=void 0,a=void 0,u=t+"";if(o=o.substring(o.indexOf("=batchresponse")+1),(u=u.split(o)).length<2)return{};u=u[1];var c=/(?:\bContent-Type.+boundary=)(changesetresponse.+)/i.exec(u);c&&u.replace(c[0],"");for(var h=c?c[1]:"",l=(u=u.split(h)).length;l>-1;l--)/\bContent-ID:/i.test(u[l])&&/\bHTTP.+201/.test(u[l])&&(s=parseInt(/\bContent-ID: (\d+)/i.exec(u[l])[1],10),n.addedRecords[s]&&(a=Je.parse.parseJson(/^\{.+\}/m.exec(u[l])[0]),E({},n.addedRecords[s],this.processResponse(a))));return n}return null},e.prototype.compareAndRemove=function(t,e,i){var r=this;return k(e)||Object.keys(t).forEach(function(n){n!==i&&"@odata.etag"!==n&&(Je.isPlainObject(t[n])?(r.compareAndRemove(t[n],e[n]),0===Object.keys(t[n]).filter(function(t){return"@odata.etag"!==t}).length&&delete t[n]):(t[n]===e[n]||t[n]&&e[n]&&t[n].valueOf()===e[n].valueOf())&&delete t[n])}),t},e}(ti);!function(t){function e(e){var i=t.call(this,e)||this;return i.options=E({},i.options,{requestType:"get",accept:"application/json, text/javascript, */*; q=0.01",multipartAccept:"multipart/mixed",sortBy:"$orderby",select:"$select",skip:"$skip",take:"$top",count:"$count",search:"$search",where:"$filter",expand:"$expand",batch:"$batch",changeSet:"--changeset_",batchPre:"batch_",contentId:"Content-Id: ",batchContent:"Content-Type: multipart/mixed; boundary=",changeSetContent:"Content-Type: application/http\nContent-Transfer-Encoding: binary ",batchChangeSetContentType:"Content-Type: application/json; charset=utf-8 ",updateType:"PATCH",localTime:!1,apply:"$apply"}),E(i.options,e||{}),i}Ze(e,t),e.prototype.getModuleName=function(){return"ODataV4Adaptor"},e.prototype.onCount=function(t){return!0===t?"true":""},e.prototype.onPredicate=function(e,i,r){var n="",o=e.value,s=o instanceof Date;if(i instanceof He)for(var a=this.getQueryRequest(i),u=0;u<a.filters.length;u++)a.filters[u].e.key===e.value&&(r=!0);return n=t.prototype.onPredicate.call(this,e,i,r),s&&(n=n.replace(/datetime'(.*)'$/,"$1")),Je.parse.isGuid(o)&&(n=n.replace("guid","").replace(/'/g,"")),n},e.prototype.onEachSearch=function(t){var e=this.pvt.searches||[];e.push(t.key),this.pvt.searches=e},e.prototype.onSearch=function(t){return this.pvt.searches.join(" OR ")},e.prototype.onExpand=function(t){var e=this,i={},r={},n=t.expands.slice(),o=[];return t.selects.filter(function(t){return t.indexOf(".")>-1}).forEach(function(t){var r=t.split(".");if(r[0]in i||(i[r[0]]=[]),2===r.length)i[r[0]].length&&-1!==Object.keys(i).indexOf(r[0])?-1!==i[r[0]][0].indexOf("$expand")&&-1===i[r[0]][0].indexOf(";$select=")?i[r[0]][0]=i[r[0]][0]+";$select="+r[1]:i[r[0]][0]=i[r[0]][0]+","+r[1]:i[r[0]].push("$select="+r[1]);else{for(var n="$select="+r[r.length-1],o="",s="",a=1;a<r.length-1;a++)o=o+"$expand="+r[a]+"(",s+=")";var u=o+n+s;if(i[r[0]].length&&-1!==Object.keys(i).indexOf(r[0])&&e.expandQueryIndex(i[r[0]],!0)){var c=e.expandQueryIndex(i[r[0]]);i[r[0]][c]=i[r[0]][c]+u.replace("$expand=",",")}else i[r[0]].push(u)}}),Object.keys(i).forEach(function(t){-1===n.indexOf(t)&&n.push(t)}),n.forEach(function(t){r[t]=t in i?t+"("+i[t].join(";")+")":t}),Object.keys(r).forEach(function(t){return o.push(r[t])}),o.join(",")},e.prototype.expandQueryIndex=function(t,e){for(var i=0;i<t.length;i++)if(-1!==t[i].indexOf("$expand"))return!!e||i;return!e&&0},e.prototype.onDistinct=function(t){return"groupby(("+t.map(function(t){return ei.getField(t)}).join(",")+"))"},e.prototype.onSelect=function(e){return t.prototype.onSelect.call(this,e.filter(function(t){return-1===t.indexOf(".")}))},e.prototype.beforeSend=function(t,e,i){"POST"!==i.type&&"PUT"!==i.type&&"PATCH"!==i.type||e.headers.set("Prefer","return=representation"),e.headers.set("Accept",this.options.accept)},e.prototype.processResponse=function(e,i,r,n,o,s){var a="@odata.context",u="@context";if(o&&"GET"===o.type&&!this.rootUrl&&(e[a]||e[u])){var c=e[a]?e[a].split("/$metadata#"):e[u].split("/$metadata#");this.rootUrl=c[0],this.resourceTableName=c[1]}var h=o&&o.pvtData,l=t.prototype.processBatchResponse.call(this,e,r,n,o,s);if(l)return l;var p=null,g="@odata.count",d="@count";r&&r.isCountRequired&&(g in e?p=e[g]:d in e&&(p=e[d])),e=k(e.value)?e:e.value;var f={};return f.count=p,f.result=e,this.getAggregateResult(h,e,f,null,r),Je.isNull(p)?f.result:{result:f.result,count:p,aggregates:f.aggregates}}}(ei),function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Ze(e,t),e.prototype.getModuleName=function(){return"WebApiAdaptor"},e.prototype.insert=function(t,e,i){return{type:"POST",url:t.dataSource.url,data:JSON.stringify(e)}},e.prototype.remove=function(t,e,i,r){return{type:"DELETE",url:t.dataSource.url+"/"+i,data:JSON.stringify(i)}},e.prototype.update=function(t,e,i,r){return{type:"PUT",url:t.dataSource.url,data:JSON.stringify(i)}},e.prototype.batchRequest=function(t,e,i){var r=this,n=i.guid=Je.getGuid(this.options.batchPre),o=t.dataSource.url.replace(/\/*$/,"/"+this.options.batch);i.url=this.resourceTableName?this.resourceTableName:i.url;for(var s=[],a=function(r,o){e.addedRecords.forEach(function(o,a){var u=function(t,e,i){return""};s.push("--"+n),s.push("Content-Type: application/http; msgtype=request",""),s.push("POST /api/"+(t.dataSource.insertUrl||t.dataSource.crudUrl||i.url)+u(e.addedRecords,r,i.key)+" HTTP/1.1"),s.push("Content-Type: application/json; charset=utf-8"),s.push("Host: "+location.host),s.push("",o?JSON.stringify(o):"")})},u=0,c=e.addedRecords.length;u<c;u++)a(u);var h=function(o,a){e.changedRecords.forEach(function(a,u){r.options.updateType;var c=function(t,e,i){return""};s.push("--"+n),s.push("Content-Type: application/http; msgtype=request",""),s.push("PUT /api/"+(t.dataSource.updateUrl||t.dataSource.crudUrl||i.url)+c(e.changedRecords,o,i.key)+" HTTP/1.1"),s.push("Content-Type: application/json; charset=utf-8"),s.push("Host: "+location.host),s.push("",a?JSON.stringify(a):"")})};for(u=0,c=e.changedRecords.length;u<c;u++)h(u);var l=function(r,o){e.deletedRecords.forEach(function(o,a){var u=function(t,e,i){var r=Je.getObject(i,t[e]);return"number"==typeof r||Je.parse.isGuid(r)?"/"+r:r instanceof Date?"/"+t[e][i].toJSON():"/'"+r+"'"};s.push("--"+n),s.push("Content-Type: application/http; msgtype=request",""),s.push("DELETE /api/"+(t.dataSource.removeUrl||t.dataSource.crudUrl||i.url)+u(e.deletedRecords,r,i.key)+" HTTP/1.1"),s.push("Content-Type: application/json; charset=utf-8"),s.push("Host: "+location.host),s.push("",o?JSON.stringify(o):"")})};for(u=0,c=e.deletedRecords.length;u<c;u++)l(u);return s.push("--"+n+"--",""),{type:"POST",url:o,contentType:"multipart/mixed; boundary="+n,data:s.join("\r\n")}},e.prototype.beforeSend=function(t,e,i){e.headers.set("Accept","application/json, text/javascript, */*; q=0.01")},e.prototype.processResponse=function(t,e,i,r,n,o){var s=n&&n.pvtData,a=null,u={};if(n&&"post"!==n.type.toLowerCase()){var c=r&&n.fetchRequest.headers.get("DataServiceVersion"),h=c&&parseInt(c,10)||2;i&&i.isCountRequired&&(Je.isNull(t.Count)||(a=t.Count)),h<3&&t.Items&&(t=t.Items),u.count=a,u.result=t,this.getAggregateResult(s,t,u,null,i)}return u.result=u.result||t,Je.isNull(a)?u.result:{result:u.result,count:u.count,aggregates:u.aggregates}}}(ei),function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Ze(e,t),e.prototype.processQuery=function(t,e,i){var r=(new ti).processQuery(t,e,i),n=Je.parse.parseJson(r.data),o={};if(n.param)for(var s=0;s<n.param.length;s++){var a=n.param[s],u=Object.keys(a)[0];o[u]=a[u]}o.value=n;return{data:JSON.stringify(o),url:r.url,pvtData:r.pvtData,type:"POST",contentType:"application/json; charset=utf-8"}}}(ti);var ii=function(t){function e(){var e=t.call(this)||this;return T("beforeSend",ti.prototype.beforeSend,e),e}return Ze(e,t),e.prototype.insert=function(t,e,i,r,n){return this.pvt.position=n,this.updateType="add",{url:t.dataSource.insertUrl||t.dataSource.crudUrl||t.dataSource.url,data:JSON.stringify(E({},{value:e,table:i,action:"insert"},Je.getAddParams(this,t,r)))}},e.prototype.remove=function(e,i,r,n,o){return t.prototype.remove.call(this,e,i,r),{type:"POST",url:e.dataSource.removeUrl||e.dataSource.crudUrl||e.dataSource.url,data:JSON.stringify(E({},{key:r,keyColumn:i,table:n,action:"remove"},Je.getAddParams(this,e,o)))}},e.prototype.update=function(t,e,i,r,n){return this.updateType="update",this.updateKey=e,{type:"POST",url:t.dataSource.updateUrl||t.dataSource.crudUrl||t.dataSource.url,data:JSON.stringify(E({},{value:i,action:"update",keyColumn:e,key:i[e],table:r},Je.getAddParams(this,t,n)))}},e.prototype.processResponse=function(e,i,r,n,o,s,a){var u;if(e="batch"===(o?JSON.parse(o.data):e).action?Je.parse.parseJson(e):e,"add"===this.updateType&&t.prototype.insert.call(this,i,e,null,null,this.pvt.position),"update"===this.updateType&&t.prototype.update.call(this,i,this.updateKey,e),this.updateType=void 0,e.added)for(u=0;u<e.added.length;u++)t.prototype.insert.call(this,i,e.added[u]);if(e.changed)for(u=0;u<e.changed.length;u++)t.prototype.update.call(this,i,a.key,e.changed[u]);if(e.deleted)for(u=0;u<e.deleted.length;u++)t.prototype.remove.call(this,i,a.key,e.deleted[u]);return e},e.prototype.batchRequest=function(t,e,i,r,n){return{type:"POST",url:t.dataSource.batchUrl||t.dataSource.crudUrl||t.dataSource.url,contentType:"application/json; charset=utf-8",dataType:"json",data:JSON.stringify(E({},{changed:e.changedRecords,added:e.addedRecords,deleted:e.deletedRecords,action:"batch",table:i.url,key:i.key},Je.getAddParams(this,t,r)))}},e.prototype.addParams=function(t){(new ti).addParams(t)},e}($e),ri=function(t){function e(e){var i=t.call(this)||this;return i.options=E({},i.options,{getData:new Function,addRecord:new Function,updateRecord:new Function,deleteRecord:new Function,batchUpdate:new Function}),E(i.options,e||{}),i}return Ze(e,t),e.prototype.getModuleName=function(){return"CustomDataAdaptor"},e}(ti);!function(t){function e(e){var i=t.call(this)||this;return i.opt=e,i.schema=i.opt.response,i.query=i.opt.query,i.getVariables=i.opt.getVariables?i.opt.getVariables:function(){},i.getQuery=function(){return i.query},i}Ze(e,t),e.prototype.getModuleName=function(){return"GraphQLAdaptor"},e.prototype.processQuery=function(e,i){var r=t.prototype.processQuery.apply(this,arguments),n=JSON.parse(r.data),o={};["skip","take","sorted","table","select","where","search","requiresCounts","aggregates","params"].filter(function(t){o[t]="searchwhereparams".indexOf(t)>-1?JSON.stringify(n[t]):n[t]});var s=this.getVariables()||{};s.datamanager=o;var a=JSON.stringify({query:this.getQuery(),variables:s});return r.data=a,r},e.prototype.processResponse=function(t,e,i,r,n){var o,s,a=t,u=O(this.schema.result,a.data);this.schema.count&&(o=O(this.schema.count,a.data)),this.schema.aggregates&&(s=k(s=O(this.schema.aggregates,a.data))?s:Je.parse.parseJson(s));var c=n.pvtData||{},h={result:u,aggregates:s},l=h;return c&&c.groups&&c.groups.length&&this.getAggregateResult(c,l,h,null,i),k(o)?h.result:{result:h.result,count:o,aggregates:s}},e.prototype.insert=function(){var e=t.prototype.insert.apply(this,arguments);return this.generateCrudData(e,"insert")},e.prototype.update=function(){var e=t.prototype.update.apply(this,arguments);return this.generateCrudData(e,"update")},e.prototype.remove=function(){var e=t.prototype.remove.apply(this,arguments);return this.generateCrudData(e,"remove")},e.prototype.batchRequest=function(e,i,r,n,o){var s=t.prototype.batchRequest.apply(this,arguments),a=JSON.parse(s.data);return a.key=r.key,s.data=JSON.stringify(a),this.generateCrudData(s,"batch")},e.prototype.generateCrudData=function(t,e){var i=JSON.parse(t.data);return t.data=JSON.stringify({query:this.opt.getMutation(e),variables:i}),t}}(ti);var ni=function(t){function e(e,i,r){var n=t.call(this)||this;n.isCrudAction=!1,n.isInsertAction=!1,k(e)||(n.cacheAdaptor=e),n.pageSize=r,n.guidId=Je.getGuid("cacheAdaptor");window.localStorage.setItem(n.guidId,JSON.stringify({keys:[],results:[]}));var o=n.guidId;return k(i)||setInterval(function(){for(var t=Je.parse.parseJson(window.localStorage.getItem(o)),e=[],r=0;r<t.results.length;r++){var n=+new Date,s=+new Date(t.results[r].timeStamp);t.results[r].timeStamp=n-s,n-s>i&&e.push(r)}for(r=0;r<e.length;r++)t.results.splice(e[r],1),t.keys.splice(e[r],1);window.localStorage.removeItem(o),window.localStorage.setItem(o,JSON.stringify(t))},i),n}return Ze(e,t),e.prototype.generateKey=function(t,e){var i=this.getQueryRequest(e),r=He.filterQueryLists(e.queries,["onSelect","onPage","onSkip","onTake","onRange"]),n=t,o="onPage";o in r&&(n+=r[o].pageIndex),i.sorts.forEach(function(t){n+=t.e.direction+t.e.fieldName}),i.groups.forEach(function(t){n+=t.e.fieldName}),i.searches.forEach(function(t){n+=t.e.searchKey});for(var s=0;s<i.filters.length;s++){var a=i.filters[s];if(a.e.isComplex){var u=e.clone();u.queries=[];for(var c=0;c<a.e.predicates.length;c++)u.queries.push({fn:"onWhere",e:a.e.predicates[c],filter:e.queries.filter});n+=a.e.condition+this.generateKey(t,u)}else n+=a.e.field+a.e.operator+a.e.value}return n},e.prototype.processQuery=function(t,e,i){var r=this.generateKey(t.dataSource.url,e),n=Je.parse.parseJson(window.localStorage.getItem(this.guidId)),o=n?n.results[n.keys.indexOf(r)]:null;return null==o||this.isCrudAction||this.isInsertAction?(this.isCrudAction=null,this.isInsertAction=null,this.cacheAdaptor.processQuery.apply(this.cacheAdaptor,[].slice.call(arguments,0))):o},e.prototype.processResponse=function(t,e,i,r,n,o){if(this.isInsertAction||n&&this.cacheAdaptor.options.batch&&Je.endsWith(n.url,this.cacheAdaptor.options.batch)&&"post"===n.type.toLowerCase())return this.cacheAdaptor.processResponse(t,e,i,r,n,o);t=this.cacheAdaptor.processResponse.apply(this.cacheAdaptor,[].slice.call(arguments,0));var s=i?this.generateKey(e.dataSource.url,i):e.dataSource.url,a={},u=(a=Je.parse.parseJson(window.localStorage.getItem(this.guidId))).keys.indexOf(s);for(-1!==u&&(a.results.splice(u,1),a.keys.splice(u,1)),a.results[a.keys.push(s)-1]={keys:s,result:t.result,timeStamp:new Date,count:t.count};a.results.length>this.pageSize;)a.results.splice(0,1),a.keys.splice(0,1);return window.localStorage.setItem(this.guidId,JSON.stringify(a)),t},e.prototype.beforeSend=function(t,e,i){!k(this.cacheAdaptor.options.batch)&&Je.endsWith(i.url,this.cacheAdaptor.options.batch)&&"post"===i.type.toLowerCase()&&e.headers.set("Accept",this.cacheAdaptor.options.multipartAccept),t.dataSource.crossDomain||e.headers.set("Accept",this.cacheAdaptor.options.accept)},e.prototype.update=function(t,e,i,r){return this.isCrudAction=!0,this.cacheAdaptor.update(t,e,i,r)},e.prototype.insert=function(t,e,i){return this.isInsertAction=!0,this.cacheAdaptor.insert(t,e,i)},e.prototype.remove=function(t,e,i,r){return this.isCrudAction=!0,this.cacheAdaptor.remove(t,e,i,r)},e.prototype.batchRequest=function(t,e,i){return this.cacheAdaptor.batchRequest(t,e,i)},e}(ti),oi=function(){function t(t,e,i){var r,n=this;return this.dateParse=!0,this.timeZoneHandling=!0,this.persistQuery={},this.isInitialLoad=!1,this.requests=[],this.isInitialLoad=!0,t||this.dataSource||(t=[]),i=i||t.adaptor,t&&!1===t.timeZoneHandling&&(this.timeZoneHandling=t.timeZoneHandling),t instanceof Array?r={json:t,offline:!0}:"object"==typeof t?(t.json||(t.json=[]),t.enablePersistence||(t.enablePersistence=!1),t.id||(t.id=""),t.ignoreOnPersist||(t.ignoreOnPersist=[]),r={url:t.url,insertUrl:t.insertUrl,removeUrl:t.removeUrl,updateUrl:t.updateUrl,crudUrl:t.crudUrl,batchUrl:t.batchUrl,json:t.json,headers:t.headers,accept:t.accept,data:t.data,timeTillExpiration:t.timeTillExpiration,cachingPageSize:t.cachingPageSize,enableCaching:t.enableCaching,requestType:t.requestType,key:t.key,crossDomain:t.crossDomain,jsonp:t.jsonp,dataType:t.dataType,offline:void 0!==t.offline?t.offline:!(t.adaptor instanceof ii||t.adaptor instanceof ri)&&!t.url,requiresFormat:t.requiresFormat,enablePersistence:t.enablePersistence,id:t.id,ignoreOnPersist:t.ignoreOnPersist}):Je.throwError("DataManager: Invalid arguments"),void 0!==r.requiresFormat||Je.isCors()||(r.requiresFormat=!!k(r.crossDomain)||r.crossDomain),void 0===r.dataType&&(r.dataType="json"),this.dataSource=r,this.defaultQuery=e,this.dataSource.enablePersistence&&this.dataSource.id&&window.addEventListener("unload",this.setPersistData.bind(this)),r.url&&r.offline&&!r.json.length?(this.isDataAvailable=!1,this.adaptor=i||new ei,this.dataSource.offline=!1,this.ready=this.executeQuery(e||new He),this.ready.then(function(t){n.dataSource.offline=!0,n.isDataAvailable=!0,r.json=t.result,n.adaptor=new $e})):this.adaptor=r.offline?new $e:new ei,!r.jsonp&&this.adaptor instanceof ei&&(r.jsonp="callback"),this.adaptor=i||this.adaptor,r.enableCaching&&(this.adaptor=new ni(this.adaptor,r.timeTillExpiration,r.cachingPageSize)),this}return t.prototype.getPersistedData=function(t){var e=localStorage.getItem(t||this.dataSource.id);return JSON.parse(e)},t.prototype.setPersistData=function(t,e,i){localStorage.setItem(e||this.dataSource.id,JSON.stringify(i||this.persistQuery))},t.prototype.setPersistQuery=function(t){var e=this,i=this.getPersistedData();if(this.isInitialLoad&&i&&Object.keys(i).length){this.persistQuery=i,this.persistQuery.queries=this.persistQuery.queries.filter(function(t){if(e.dataSource.ignoreOnPersist&&e.dataSource.ignoreOnPersist.length&&t.fn&&e.dataSource.ignoreOnPersist.some(function(e){return t.fn===e}))return!1;if("onWhere"===t.fn){var i=t.e;if(i&&i.isComplex&&i.predicates instanceof Array){var r=i.predicates.map(function(t){if(t.predicates&&t.predicates instanceof Array){var e=t.predicates.map(function(t){var e=t.field,i=t.operator,r=t.value,n=t.ignoreCase,o=t.ignoreAccent,s=t.matchCase;return new qe(e,i,r,n,o,s)});return"and"===t.condition?qe.and(e):qe.or(e)}var i=t.field,r=t.operator,n=t.value,o=t.ignoreCase,s=t.ignoreAccent,a=t.matchCase;return new qe(i,r,n,o,s,a)});t.e=new qe(r[0],i.condition,r.slice(1))}}return!0});var r=E(new He,this.persistQuery);return this.isInitialLoad=!1,r}return this.persistQuery=t,this.isInitialLoad=!1,t},t.prototype.setDefaultQuery=function(t){return this.defaultQuery=t,this},t.prototype.executeLocal=function(e){this.defaultQuery||e instanceof He||Je.throwError("DataManager - executeLocal() : A query is required to execute"),this.dataSource.json||Je.throwError("DataManager - executeLocal() : Json data is required to execute"),this.dataSource.enablePersistence&&this.dataSource.id&&(e=this.setPersistQuery(e)),e=e||this.defaultQuery;var i=this.adaptor.processQuery(this,e);if(e.subQuery){var r=e.subQuery.fromTable,n=e.subQuery.lookups,o=e.isCountRequired?i.result:i;n&&n instanceof Array&&Je.buildHierarchy(e.subQuery.fKey,r,o,n,e.subQuery.key);for(var s=0;s<o.length;s++)o[s][r]instanceof Array&&(o[s]=E({},{},o[s]),o[s][r]=this.adaptor.processResponse(e.subQuery.using(new t(o[s][r].slice(0))).executeLocal(),this,e))}return this.adaptor.processResponse(i,this,e)},t.prototype.executeQuery=function(e,i,r,n){var o=this,s="makeRequest";this.dataSource.enablePersistence&&this.dataSource.id&&(e=this.setPersistQuery(e)),"function"==typeof e&&(n=r,r=i,i=e,e=null),e||(e=this.defaultQuery),e instanceof He||Je.throwError("DataManager - executeQuery() : A query is required to execute");var a=new si,u={query:e};if(!this.dataSource.offline&&void 0!==this.dataSource.url&&""!==this.dataSource.url||!k(this.adaptor[s])||this.isCustomDataAdaptor(this.adaptor)){var c=this.adaptor.processQuery(this,e);k(this.adaptor[s])?!k(c.url)||this.isCustomDataAdaptor(this.adaptor)?(this.requests=[],this.makeRequest(c,a,u,e)):(u=t.getDeferedArgs(e,c,u),a.resolve(u)):this.adaptor[s](c,a,u,e)}else t.nextTick(function(){var i=o.executeLocal(e);u=t.getDeferedArgs(e,i,u),a.resolve(u)});return(i||r)&&a.promise.then(i,r),n&&a.promise.then(n,n),a.promise},t.getDeferedArgs=function(t,e,i){return t.isCountRequired?(i.result=e.result,i.count=e.count,i.aggregates=e.aggregates):i.result=e,i},t.nextTick=function(t){(window.setImmediate||window.setTimeout)(t,0)},t.prototype.extendRequest=function(t,e,i){return E({},{type:"GET",dataType:this.dataSource.dataType,crossDomain:this.dataSource.crossDomain,jsonp:this.dataSource.jsonp,cache:!0,processData:!1,onSuccess:e,onFailure:i},t)},t.prototype.makeRequest=function(t,e,i,r){var n=this,o=!!r.subQuerySelector,s=function(t){i.error=t,e.reject(i)},a=function(t,r,n,o,s,a,u){i.xhr=n,i.count=r?parseInt(r.toString(),10):0,i.result=t,i.request=o,i.aggregates=a,i.actual=s,i.virtualSelectRecords=u,e.resolve(i)},u=function(t,e){var u=new si,c={parent:i};r.subQuery.isChild=!0;var h=n.adaptor.processQuery(n,r.subQuery,t?n.adaptor.processResponse(t):e),l=n.makeRequest(h,u,c,r.subQuery);return o||u.then(function(e){t&&(Je.buildHierarchy(r.subQuery.fKey,r.subQuery.fromTable,t,e,r.subQuery.key),a(t,e.count,e.xhr))},s),l},c=this.extendRequest(t,function(t,e){if(n.isGraphQLAdaptor(n.adaptor)&&!k(t.errors))return s(t.errors);n.isCustomDataAdaptor(n.adaptor)&&(e=E({},n.fetchReqOption,e)),-1===e.contentType.indexOf("xml")&&n.dateParse&&(t=Je.parse.parseJson(t));var i=n.adaptor.processResponse(t,n,r,e.fetchRequest,e),c=0,h=null,l=t.virtualSelectRecords;r.isCountRequired&&(c=i.count,h=i.aggregates,i=i.result),r.subQuery?o||u(i,e):a(i,c,e.fetchRequest,e.type,t,h,l)},s);if(this.isCustomDataAdaptor(this.adaptor)){this.fetchReqOption=c;var h=c;this.adaptor.options.getData({data:h.data,onSuccess:h.onSuccess,onFailure:h.onFailure})}else{var l=new st(c);l.beforeSend=function(){n.beforeSend(l.fetchRequest,l)},(c=l.send()).catch(function(t){return!0}),this.requests.push(l)}if(o){var p=r.subQuerySelector.call(this,{query:r.subQuery,parent:r});p&&p.length?Promise.all([c,u(null,p)]).then(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var i=t[0],s=n.adaptor.processResponse(i[0],n,r,n.requests[0].fetchRequest,n.requests[0]),u=0;r.isCountRequired&&(u=s.count,s=s.result);var c=n.adaptor.processResponse(i[1],n,r.subQuery,n.requests[1].fetchRequest,n.requests[1]);u=0,r.subQuery.isCountRequired&&(u=c.count,c=c.result),Je.buildHierarchy(r.subQuery.fKey,r.subQuery.fromTable,s,c,r.subQuery.key),o=!1,a(s,u,n.requests[0].fetchRequest)}):o=!1}return c},t.prototype.beforeSend=function(t,e){this.adaptor.beforeSend(this,t,e);for(var i,r=this.dataSource.headers,n=0;r&&n<r.length;n++){i=[];for(var o=0,s=Object.keys(r[n]);o<s.length;o++){var a=s[o];i.push(a),t.headers.set(a,r[n][a])}}},t.prototype.saveChanges=function(t,e,i,r,n){var o=this;i instanceof He&&(r=i,i=null);var s={url:i,key:e||this.dataSource.key},a=this.adaptor.batchRequest(this,t,s,r||new He,n),u="dofetchRequest";if(this.dataSource.offline)return a;if(k(this.adaptor[u])){if(this.isCustomDataAdaptor(this.adaptor))return this.dofetchRequest(a,this.adaptor.options.batchUpdate);var c=new si,h=new st(a);return h.beforeSend=function(){o.beforeSend(h.fetchRequest,h)},h.onSuccess=function(e,i){o.isGraphQLAdaptor(o.adaptor)&&(k(e.errors)||h.onFailure(JSON.stringify(e.errors))),c.resolve(o.adaptor.processResponse(e,o,null,i.fetchRequest,i,t,s))},h.onFailure=function(t){c.reject([{error:t}])},h.send().catch(function(t){return!0}),c.promise}return this.adaptor[u](a)},t.prototype.insert=function(t,e,i,r){e instanceof He&&(i=e,e=null);var n=this.adaptor.insert(this,t,e,i,r),o="dofetchRequest";return this.dataSource.offline?n:k(this.adaptor[o])?this.dofetchRequest(n,this.adaptor.options.addRecord):this.adaptor[o](n)},t.prototype.remove=function(t,e,i,r){"object"==typeof e&&(e=Je.getObject(t,e)),i instanceof He&&(r=i,i=null);var n=this.adaptor.remove(this,t,e,i,r),o="dofetchRequest";if(this.dataSource.offline)return n;if(k(this.adaptor[o])){var s=this.adaptor.options.deleteRecord;return this.dofetchRequest(n,s)}return this.adaptor[o](n)},t.prototype.update=function(t,e,i,r,n){i instanceof He&&(r=i,i=null);var o=this.adaptor.update(this,t,e,i,r,n),s="dofetchRequest";if(this.dataSource.offline)return o;if(k(this.adaptor[s])){var a=this.adaptor.options.updateRecord;return this.dofetchRequest(o,a)}return this.adaptor[s](o)},t.prototype.isCustomDataAdaptor=function(t){return this.adaptor.getModuleName&&"CustomDataAdaptor"===this.adaptor.getModuleName()},t.prototype.isGraphQLAdaptor=function(t){return this.adaptor.getModuleName&&"GraphQLAdaptor"===this.adaptor.getModuleName()},t.prototype.successFunc=function(t,e){if(this.isGraphQLAdaptor(this.adaptor)){var i="object"==typeof t?t:JSON.parse(t);k(i.errors)||this.failureFunc(JSON.stringify(i.errors))}this.isCustomDataAdaptor(this.adaptor)&&(e=E({},this.fetchReqOption,e));try{Je.parse.parseJson(t)}catch(e){t=[]}t=this.adaptor.processResponse(Je.parse.parseJson(t),this,null,e.fetchRequest,e),this.fetchDeffered.resolve(t)},t.prototype.failureFunc=function(t){this.fetchDeffered.reject([{error:t}])},t.prototype.dofetchRequest=function(t,e){var i=this;if(t=E({},{type:"POST",contentType:"application/json; charset=utf-8",processData:!1},t),this.fetchDeffered=new si,this.isCustomDataAdaptor(this.adaptor))this.fetchReqOption=t,e.call(this,{data:t.data,onSuccess:this.successFunc.bind(this),onFailure:this.failureFunc.bind(this)});else{var r=new st(t);r.beforeSend=function(){i.beforeSend(r.fetchRequest,r)},r.onSuccess=this.successFunc.bind(this),r.onFailure=this.failureFunc.bind(this),r.send().catch(function(t){return!0})}return this.fetchDeffered.promise},t.prototype.clearPersistence=function(){window.removeEventListener("unload",this.setPersistData.bind(this)),this.dataSource.enablePersistence=!1,this.persistQuery={},window.localStorage.setItem(this.dataSource.id,"[]")},t}(),si=function(){var t=this;this.promise=new Promise(function(e,i){t.resolve=e,t.reject=i}),this.then=this.promise.then.bind(this.promise),this.catch=this.promise.catch.bind(this.promise)},ai=function(t){var e=t.className,i=void 0===e?"":e,r=t.children,n=t.title,o=void 0===n?"":n,s=t.iconClass,a=void 0===s?"":s,u=t.show,c=void 0!==u&&u,h=t.onClose,l=t.closeBtn,p=void 0===l||l;return M.default.createElement(M.default.Fragment,null,c&&M.default.createElement("div",{id:"results",className:"search-results "+i},M.default.createElement("div",{className:"popup"},M.default.createElement("div",{className:"popup-layout"},M.default.createElement("div",{className:"popup-header"},M.default.createElement("div",{className:"popHeadWrap"},M.default.createElement("div",{className:"IconWrap"},a&&M.default.createElement("i",{className:a})),M.default.createElement("div",{className:"popup-header-caption"},o)),M.default.createElement("div",{className:p?"":"hidden"},M.default.createElement("div",{className:"popup-header-close"},M.default.createElement("i",{className:"bi bi-x-lg",onClick:h})))),M.default.createElement("div",{className:"popup-body"},M.default.createElement("div",{className:"popup-form-inner-layout row"},M.default.createElement(M.default.Fragment,null,r)))))))},ui=1048576,ci=function(e){var i=e.documentId,r=e.documentAPI,n=e.documentName,o=e.actualPath,s=e.downloadPdfFile,a=t.useState({documentAPI:"",documentId:"",readOnly:!1,documentName:"",actualPath:"",downloadPdfFile:!1}),u=a[0],c=a[1];t.useEffect(function(){p()},[]),t.useEffect(function(){if(""!=u.documentAPI&&""!=u.documentId)document.getElementById("pdfviewer-container").ej2_instances[0].load(u.documentId,null),l();else if(""!=u.actualPath){document.getElementById("pdfviewer-container").ej2_instances[0].load(u.actualPath,null),l()}},[u.documentAPI,u.actualPath]);var l=function(){String(document.body.children[2].getAttribute("style")).indexOf("font-family: Helvetica Neue, Helvetica, Arial;")>-1&&(document.body.children[2].style.display="none");setTimeout(function(){var t,e=document.getElementById("pdfviewer-container_toolbarItemsContainer"),i=document.getElementById("pdfviewer-container_submitFormContainer");if(i&&(i.style.display="none"),e&&e.children.length>0){for(var r=e.children[0],n=!1,o='<div class="pdf-action-container" style="float: right">',s=0;s<r.children.length;s++)"savePdfBtn"==r.children[s].id&&(n=!0);n||(o+='<div id="closePdfBtn" class="e-toolbar-item e-pv-pan-tool-container e-popup-text action-btn-sep" aria-disabled="false" style="color: #5c636a; " title="Close" >\n <svg id="closePdftbSVG" width="20" height="20" style="width: 18px" fill="currentColor" class="bi bi-close" viewBox="0 0 16 16">\n <path d="M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8 2.146 2.854Z"/>\n </svg>\n </div> \n <div class="e-toolbar-item e-pv-pan-separator-container e-separator" aria-disabled="false"></div>',o+="</div>",r.insertAdjacentHTML("beforeend",o+"</div>")),null===(t=document.getElementById("closePdfBtn"))||void 0===t||t.addEventListener("click",function(){return t="closeDoc",e=JSON.stringify({message:t,date:Date.now()}),void window.postMessage(e,"*");var t,e})}},2e3)},p=function(){c({documentAPI:r,documentId:i,readOnly:u.readOnly,documentName:n,actualPath:o||"",downloadPdfFile:s||!1})};return M.default.createElement(M.default.Fragment,null,""!=u.documentAPI&&M.default.createElement(M.default.Fragment,null,M.default.createElement("div",{className:"control-section"},M.default.createElement(h.PdfViewerComponent,{id:"pdfviewer-container",documentPath:"",serviceUrl:u.documentAPI+"api/PdfViewer",style:{height:"100vh"},downloadFileName:n,enableDownload:u.downloadPdfFile,contextMenuOption:"None"},M.default.createElement(h.Inject,{services:[h.Toolbar,h.Magnification,h.Navigation,h.Annotation,h.LinkAnnotation,h.BookmarkView,h.ThumbnailView,h.Print,h.TextSearch,h.FormFields,h.FormDesigner]})))))},hi=function(e){var i=e.documentId,r=e.documentAPI,n=e.documentName,o=e.downloadImageFile,s=t.useState(""),u=s[0],c=s[1],h=t.useState({documentAPI:"",documentId:"",readOnly:!1,documentName:"",downloadImageFile:!1}),l=h[0],p=h[1];t.useEffect(function(){g()},[]);var g=function(){p({documentAPI:r,documentId:i,documentName:n,readOnly:!1,downloadImageFile:o||!1})};t.useEffect(function(){d(l.documentId)},[l.documentId]);var d=function(t){return v(void 0,void 0,void 0,function(){var e,i;return I(this,function(r){switch(r.label){case 0:return a.utilService.isValidGUID(t)?[4,m.default.get(l.documentAPI+"core/7bda9c96-1af4-4b19-aa6d-98e1995e4255/document/download?documentId="+t,{responseType:"blob",onDownloadProgress:function(t){var e=Math.round(100*t.loaded/t.total);console.log(e)}})]:[3,2];case 1:return i=r.sent(),e=URL.createObjectURL(new Blob([i.data])),c(e),[3,3];case 2:e="",r.label=3;case 3:return[2]}})})};return M.default.createElement(M.default.Fragment,null,""!=l.documentAPI&&M.default.createElement("div",{className:"img-container"},M.default.createElement("button",{onClick:function(){return t="closeDoc",e=JSON.stringify({message:t,date:Date.now()}),void window.parent.postMessage(e,"*");var t,e}},"X"),l.downloadImageFile&&M.default.createElement("button",{onClick:function(){if(u){var t=document.createElement("a");t.href=u,t.download=l.documentName||"image",document.body.appendChild(t),t.click(),document.body.removeChild(t)}},className:"download-button"},M.default.createElement("span",null,M.default.createElement("i",{className:"bi bi-download"}))),M.default.createElement("img",{className:"image-content",src:u,alt:""})))},li=[{prefixIcon:"e-close",tooltipText:"Close",text:"Close",id:"closeDocument"},"Separator","Undo","Redo","Separator","Image","Table","Hyperlink","Bookmark","TableOfContents","Separator","Header","Footer","PageSetup","PageNumber","Break","InsertFootnote","InsertEndnote","Separator","Find","Separator","Comments","TrackChanges","LocalClipboard","Separator","FormFields","UpdateFields"];l.DocumentEditorComponent.Inject(l.Print,l.SfdtExport,l.WordExport,l.TextExport,l.Selection,l.Search,l.Editor,l.ImageResizer,l.EditorHistory,l.ContextMenu,l.OptionsPane,l.HyperlinkDialog,l.TableDialog,l.BookmarkDialog,l.TableOfContentsDialog,l.PageSetupDialog,l.StyleDialog,l.ListDialog,l.ParagraphDialog,l.BulletsAndNumberingDialog,l.FontDialog,l.TablePropertiesDialog,l.BordersAndShadingDialog,l.TableOptionsDialog,l.CellOptionsDialog,l.StylesDialog,l.Toolbar),l.DocumentEditorContainerComponent.Inject(l.Toolbar,l.EditorHistory);var pi=function(e){var i,r=e.documentId,n=e.documentAPI,o=e.documentName,s=t.useState({documentAPI:"",documentId:"",readOnly:!1,documentName:""}),a=s[0],u=s[1];t.useEffect(function(){c()},[]);var c=function(){u({documentAPI:n,documentId:r,documentName:o,readOnly:!1})};t.useEffect(function(){""!=a.documentAPI&&""!=a.documentId&&h(a.documentId)},[a.documentId]);var h=function(t){var e=new XMLHttpRequest,r={keyXc:t},n=a.documentAPI+"api/DocumentEditor/LoadDocument";e.open("POST",n,!0),e.setRequestHeader("Content-Type","application/json;charset=UTF-8"),e.setRequestHeader("Access-Control-Allow-Origin","http://localhost:5002"),e.onreadystatechange=function(){4===e.readyState&&(200!==e.status&&304!==e.status||(i.open(e.responseText),setTimeout(function(){i.enableTrackChanges||(i.enableTrackChanges=!0)},1e3)))},e.send(JSON.stringify(r))},p=function(t){var e=JSON.stringify({message:t,date:Date.now()});window.parent.postMessage(e,"*")},g=function(t){var e=t.event,i=e.ctrlKey,r=e.metaKey,n=e.keyCode;(i||r)&&[67,88,86].includes(n)&&(t.event.preventDefault(),t.event.stopPropagation(),t.isHandled=!0)};return M.default.createElement(M.default.Fragment,null,""!=a.documentAPI&&M.default.createElement(M.default.Fragment,null,M.default.createElement("div",{onContextMenu:function(t){document.querySelectorAll(".e-menu-item").forEach(function(t){t.style.display="none"})}},M.default.createElement(l.DocumentEditorContainerComponent,{height:"100vh",enableToolbar:!0,serviceUrl:n+"/",enableTrackChanges:!0,ref:function(t){t&&((i=t.documentEditor).keyDown=g)},toolbarItems:li,toolbarClick:function(t){switch(t.item.id){case"closeDocument":p("closeDoc");break;case"expand":p("expand")}}.bind(undefined),documentEditorSettings:{optimizeSfdt:!1},restrictEditing:!0}))))};function gi(t){return"[object String]"===Object.prototype.toString.call(t)?"$s"+t:"$o"+t.toString()}var di=function(){function t(t){this.table={},this.nElements=0,this.toStr=t||gi}return t.prototype.getValue=function(t){var e=this.table["$"+this.toStr(t)];if(void 0!==e)return e.value},t.prototype.setValue=function(t,e){var i="$"+this.toStr(t);this.table[i],this.nElements++,this.table[i]={key:t,value:e}},t.prototype.remove=function(t){var e="$"+this.toStr(t),i=this.table[e];return delete this.table[e],this.nElements--,i.value},t.prototype.keys=function(){for(var t=[],e=Object.keys(this.table),i=0;i<e.length;i++){var r=this.table[e[i]];t.push(r.key)}return t},t.prototype.values=function(){for(var t=[],e=Object.keys(this.table),i=0;i<e.length;i++){var r=this.table[e[i]];t.push(r.value)}return t},t.prototype.containsKey=function(t){return!(void 0===this.getValue(t))},t.prototype.clear=function(){this.table={},this.nElements=0},t.prototype.size=function(){return this.nElements},t}(),fi=function(){function t(t){this.stringStartMark="/",this.internalValue="",this.isSaving6=!1,this.position6=-1,this.internalValue=this.normalizeValue(t)}return Object.defineProperty(t.prototype,"status",{get:function(){return this.status6},set:function(t){this.status6=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isSaving",{get:function(){return this.isSaving6},set:function(t){this.isSaving6=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"objectCollectionIndex",{get:function(){return this.index6},set:function(t){this.index6=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"position",{get:function(){return this.position6},set:function(t){this.position6=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clonedObject",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.internalValue},set:function(t){var e=t;null!==t&&t.length>0?(e=t,this.internalValue=this.normalizeValue(e)):this.internalValue=e},enumerable:!0,configurable:!0}),t.prototype.save=function(t){t.write(this.toString())},t.prototype.toString=function(){return this.stringStartMark+this.escapeString(this.value)},t.prototype.clone=function(e){var i=new t;return i.value=this.internalValue,i},t.prototype.escapeString=function(e){for(var i="",r=0,n=e.length;r<n;r++){var o=e[r];t.delimiters.indexOf(o),i+=o}return i},t.prototype.normalizeValue=function(t,e){return t},t.delimiters="()<>[]{}/%}",t.replacements=[" ","\t","\n","\r"],t}(),Mi=function(){function t(){this.forTest="test",this.forTest=t.obj}return t.obj="obj",t.endObj="endobj",t.r="R",t.whiteSpace=" ",t.slash="/",t.newLine="\r\n",t.stream="stream",t.endStream="endstream",t.xref="xref",t.f="f",t.n="n",t.trailer="trailer",t.startxref="startxref",t.eof="%%EOF",t.header="%PDF-1.5",t.beginText="BT",t.endText="ET",t.beginPath="m",t.appendLineSegment="l",t.stroke="S",t.fill="f",t.fillEvenOdd="f*",t.fillStroke="B",t.fillStrokeEvenOdd="B*",t.appendbeziercurve="c",t.appendRectangle="re",t.saveState="q",t.restoreState="Q",t.paintXObject="Do",t.modifyCtm="cm",t.modifyTM="Tm",t.setLineWidth="w",t.setLineCapStyle="J",t.setLineJoinStyle="j",t.setDashPattern="d",t.setFlatnessTolerance="i",t.closePath="h",t.closeStrokePath="s",t.closeFillStrokePath="b",t.setCharacterSpace="Tc",t.setWordSpace="Tw",t.setHorizontalScaling="Tz",t.setTextLeading="TL",t.setFont="Tf",t.setRenderingMode="Tr",t.setTextRise="Ts",t.setTextScaling="Tz",t.setCoords="Td",t.goToNextLine="T*",t.setText="Tj",t.setTextWithFormatting="TJ",t.setTextOnNewLine="'",t.selectcolorspaceforstroking="CS",t.selectcolorspacefornonstroking="cs",t.setrbgcolorforstroking="RG",t.setrbgcolorfornonstroking="rg",t.setcmykcolorforstroking="K",t.setcmykcolorfornonstroking="k",t.setgraycolorforstroking="G",t.setgraycolorfornonstroking="g",t.clipPath="W",t.clipPathEvenOdd="W*",t.endPath="n",t.setGraphicsState="gs",t.comment="%",t.evenOdd="*",t.setMiterLimit="M",t.setColorAndPattern="scn",t.setColorAndPatternStroking="SCN",t}(),yi=function(){this.pages="Pages",this.kids="Kids",this.count="Count",this.resources="Resources",this.type="Type",this.size="Size",this.mediaBox="MediaBox",this.parent="Parent",this.root="Root",this.decodeParms="DecodeParms",this.filter="Filter",this.font="Font",this.type1="Type1",this.baseFont="BaseFont",this.encoding="Encoding",this.subtype="Subtype",this.contents="Contents",this.procset="ProcSet",this.colorSpace="ColorSpace",this.extGState="ExtGState",this.pattern="Pattern",this.xObject="XObject",this.length="Length",this.width="Width",this.height="Height",this.bitsPerComponent="BitsPerComponent",this.image="Image",this.dctdecode="DCTDecode",this.columns="Columns",this.blackIs1="BlackIs1",this.k="K",this.s="S",this.predictor="Predictor",this.deviceRgb="DeviceRGB",this.next="Next",this.action="Action",this.link="Link",this.a="A",this.annot="Annot",this.p="P",this.c="C",this.rect="Rect",this.uri="URI",this.annots="Annots",this.ca="ca",this.CA="CA",this.xyz="XYZ",this.fit="Fit",this.dest="Dest",this.BM="BM",this.flatedecode="FlateDecode",this.rotate="Rotate",this.bBox="BBox",this.form="Form",this.w="W",this.cIDFontType2="CIDFontType2",this.cIDToGIDMap="CIDToGIDMap",this.identity="Identity",this.dw="DW",this.fontDescriptor="FontDescriptor",this.cIDSystemInfo="CIDSystemInfo",this.fontName="FontName",this.flags="Flags",this.fontBBox="FontBBox",this.missingWidth="MissingWidth",this.stemV="StemV",this.italicAngle="ItalicAngle",this.capHeight="CapHeight",this.ascent="Ascent",this.descent="Descent",this.leading="Leading",this.avgWidth="AvgWidth",this.fontFile2="FontFile2",this.maxWidth="MaxWidth",this.xHeight="XHeight",this.stemH="StemH",this.registry="Registry",this.ordering="Ordering",this.supplement="Supplement",this.type0="Type0",this.identityH="Identity-H",this.toUnicode="ToUnicode",this.descendantFonts="DescendantFonts",this.background="Background",this.shading="Shading",this.matrix="Matrix",this.antiAlias="AntiAlias",this.function="Function",this.extend="Extend",this.shadingType="ShadingType",this.coords="Coords",this.domain="Domain",this.range="Range",this.functionType="FunctionType",this.bitsPerSample="BitsPerSample",this.patternType="PatternType",this.paintType="PaintType",this.tilingType="TilingType",this.xStep="XStep",this.yStep="YStep",this.viewerPreferences="ViewerPreferences",this.centerWindow="CenterWindow",this.displayTitle="DisplayTitle",this.fitWindow="FitWindow",this.hideMenuBar="HideMenubar",this.hideToolBar="HideToolbar",this.hideWindowUI="HideWindowUI",this.pageMode="PageMode",this.pageLayout="PageLayout",this.duplex="Duplex",this.printScaling="PrintScaling"},mi=function(){function t(t){if(this.position7=-1,this.primitiveItems=new di,this.prefix="<<",this.suffix=">>",this.resources=[],this.object=null,this.archive=!0,this.isResource=!1,void 0===t)this.primitiveItems=new di,this.encrypt=!0,this.dictionaryProperties=new yi;else{this.primitiveItems=new di;for(var e=t.items.keys(),i=t.items.values(),r=0;r<t.items.size();r++)this.primitiveItems.setValue(e[r],i[r]);this.status=t.status,this.freezeChanges(this),this.encrypt=!0,this.dictionaryProperties=new yi}}return Object.defineProperty(t.prototype,"items",{get:function(){return this.primitiveItems},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"status",{get:function(){return this.status7},set:function(t){this.status7=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isSaving",{get:function(){return this.isSaving7},set:function(t){this.isSaving7=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"objectCollectionIndex",{get:function(){return this.index7},set:function(t){this.index7=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clonedObject",{get:function(){return this.object},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"position",{get:function(){return this.position7},set:function(t){this.position7=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"Count",{get:function(){return this.primitiveItems.size()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"Dictionary",{get:function(){return this},enumerable:!0,configurable:!0}),t.prototype.getArchive=function(){return this.archive},t.prototype.setArchive=function(t){this.archive=t},t.prototype.setEncrypt=function(t){this.encrypt=t,this.modify()},t.prototype.getEncrypt=function(){return this.encrypt},t.prototype.freezeChanges=function(t){this.bChanged=!1},t.prototype.clone=function(e){return new t},t.prototype.modify=function(){this.bChanged=!0},t.prototype.remove=function(t){"string"!=typeof t?(this.primitiveItems.remove(t.value),this.modify()):this.remove(new fi(t))},t.prototype.containsKey=function(t){return this.primitiveItems.containsKey(t.toString())},t.prototype.onBeginSave=function(){this.beginSave.sender.beginSave()},t.prototype.onFontDictionaryBeginSave=function(){this.fontDictionaryBeginSave.sender.fontDictionaryBeginSave()},t.prototype.onDescendantFontBeginSave=function(){this.descendantFontBeginSave.sender.descendantFontBeginSave()},t.prototype.onTemplateBeginSave=function(){this.pageBeginDrawTemplate.sender.pageBeginSave()},t.prototype.onBeginAnnotationSave=function(){this.annotationBeginSave.sender.beginSave()},t.prototype.onSectionBeginSave=function(t){var e=this.sectionBeginSave;e.sender.beginSave(e.state,t)},t.prototype.save=function(t,e){void 0===e?this.save(t,!0):(t.write(this.prefix),void 0!==this.beginSave&&this.onBeginSave(),void 0!==this.descendantFontBeginSave&&this.onDescendantFontBeginSave(),void 0!==this.fontDictionaryBeginSave&&this.onFontDictionaryBeginSave(),void 0!==this.annotationBeginSave&&this.onBeginAnnotationSave(),void 0!==this.sectionBeginSave&&this.onSectionBeginSave(t),void 0!==this.pageBeginDrawTemplate&&this.onTemplateBeginSave(),this.Count>0&&this.saveItems(t),t.write(this.suffix),t.write(Mi.newLine))},t.prototype.saveItems=function(t){t.write(Mi.newLine);for(var e=this.primitiveItems.keys(),i=this.primitiveItems.values(),r=0;r<e.length;r++){var n=e[r];new fi(n).save(t),t.write(Mi.whiteSpace),i[r].save(t),t.write(Mi.newLine)}},t}(),Ni=function(t){this.sender=t},ji=function(t){this.sender=t},Di=function(t){this.sender=t},Si=function(t,e){this.sender=t,this.state=e},vi=function(t){this.sender=t},Ii=function(){function t(t){this.position5=-1,this.value=t}return Object.defineProperty(t.prototype,"intValue",{get:function(){return this.value},set:function(t){this.value=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isInteger",{get:function(){return this.integer},set:function(t){this.integer=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"status",{get:function(){return this.status5},set:function(t){this.status5=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isSaving",{get:function(){return this.isSaving5},set:function(t){this.isSaving5=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"objectCollectionIndex",{get:function(){return this.index5},set:function(t){this.index5=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"position",{get:function(){return this.position5},set:function(t){this.position5=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clonedObject",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.save=function(t){t.write(this.intValue.toString())},t.prototype.clone=function(e){return new t(this.value)},t.floatToString=function(t){var e=t.toFixed(2);return"0.00"===e&&(e=".00"),e},t.min=function(t,e,i){var r=Math.min(t,e);return Math.min(i,r)},t}(),zi=function(){function t(e){if(this.startMark="[",this.endMark="]",this.position9=-1,this.clonedObject9=null,this.isFont=!1,void 0===e)this.internalElements=[];else if(void 0===e||e instanceof t){var i=e;this.internalElements=[];for(n=0;n<i.elements.length;n++)this.internalElements.push(i.elements[n])}else for(var r=e,n=0;n<r.length;n++){var o=new Ii(r[n]);this.add(o)}}return t.prototype.items=function(t){return this.internalElements[t]},Object.defineProperty(t.prototype,"count",{get:function(){return this.internalElements.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"status",{get:function(){return this.status9},set:function(t){this.status9=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isSaving",{get:function(){return this.isSaving9},set:function(t){this.isSaving9=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clonedObject",{get:function(){return this.clonedObject9},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"position",{get:function(){return this.position9},set:function(t){this.position9=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"objectCollectionIndex",{get:function(){return this.index9},set:function(t){this.index9=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"CrossTable",{get:function(){return this.pdfCrossTable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"elements",{get:function(){return this.internalElements},enumerable:!0,configurable:!0}),t.prototype.add=function(t){void 0===this.internalElements&&(this.internalElements=[]),this.internalElements.push(t),this.markedChange()},t.prototype.markedChange=function(){this.bChanged=!0},t.prototype.contains=function(t){for(var e=0;e<this.internalElements.length;e++){var i=this.internalElements[e],r=t;if(null!=i&&void 0!==i&&null!=r&&void 0!==r&&i.value===r.value)return!0}return!1},t.prototype.getItems=function(t){return this.internalElements[t]},t.prototype.save=function(t){t.write(this.startMark);for(var e=0,i=this.count;e<i;e++)this.getItems(e).save(t),e+1!==i&&t.write(Mi.whiteSpace);t.write(this.endMark)},t.prototype.clone=function(e){this.clonedObject9=null;for(var i=new t,r=0;r<this.internalElements.length;r++){var n=this.internalElements[r];i.add(n.clone(e))}return i.pdfCrossTable=e,this.clonedObject9=i,i},t.fromRectangle=function(e){return new t([e.x,e.y,e.width,e.height])},t.prototype.insert=function(t,e){if(t<this.internalElements.length&&t>0){for(var i=[],r=0;r<t;r++)i.push(this.internalElements[r]);i.push(e);for(r=t;r<this.internalElements.length;r++)i.push(this.internalElements[r]);this.internalElements=i}else this.internalElements.push(e);this.markChanged()},t.prototype.indexOf=function(t){return this.internalElements.indexOf(t)},t.prototype.remove=function(t){var e=this.internalElements.indexOf(t);this.internalElements[e]=null,this.markChanged()},t.prototype.removeAt=function(t){if(this.internalElements.length>t){for(var e=[],i=0;i<t;i++)e.push(this.internalElements[i]);for(i=t+1;i<this.internalElements.length;i++)e.push(this.internalElements[i]);this.internalElements=e}this.markChanged()},t.prototype.clear=function(){this.internalElements=[],this.markChanged()},t.prototype.markChanged=function(){this.bChanged=!0},t}(),bi=function(){function t(){}return t.save=function(t,e){if(null==t||""===t)throw new Error("ArgumentException: fileName cannot be undefined, null or empty");var i=t.substring(t.lastIndexOf(".")+1,t.length),r=this.getMimeType(i);if(""!==r&&(e=new Blob([e],{type:r})),this.isMicrosoftBrowser)navigator.msSaveBlob(e,t);else{var n=document.createElementNS("http://www.w3.org/1999/xhtml","a");this.saveInternal(t,i,e,n,"download"in n)}},t.saveInternal=function(t,e,i,r,n){if(n){r.download=t;var o=window.URL.createObjectURL(i);r.href=o;var s=document.createEvent("MouseEvent");s.initEvent("click",!0,!0),r.dispatchEvent(s),setTimeout(function(){window.URL.revokeObjectURL(o),o=void 0})}else if("docx"!==e&&"xlsx"!==e){var a=window.URL.createObjectURL(i);window.open(a,"_blank")||(window.location.href=a)}else{var u=new FileReader;u.onloadend=function(){window.open(u.result,"_blank")||(window.location.href=u.result)},u.readAsDataURL(i)}},t.getMimeType=function(t){var e="";switch(t){case"html":e="text/html";break;case"pdf":e="application/pdf";break;case"docx":e="application/vnd.openxmlformats-officedocument.wordprocessingml.document";break;case"xlsx":e="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";break;case"txt":e="text/plain"}return e},t}(),wi=function(){function t(t){this.emitBOM=!0,this.encodingType="Ansi",this.initBOM(t)}return Object.defineProperty(t.prototype,"includeBom",{get:function(){return this.emitBOM},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return this.encodingType},set:function(t){this.encodingType=t},enumerable:!0,configurable:!0}),t.prototype.initBOM=function(t){this.emitBOM=null==t||t},t.prototype.getByteCount=function(t){return Oi(t,"string"),""===t?this.utf8Len(t.charCodeAt(0)):(null!==this.type&&void 0!==this.type||(this.type="Ansi"),this.getByteCountInternal(t,0,t.length))},t.prototype.utf8Len=function(t){return t<=127?1:t<=2047?2:t<=65535?3:t<=2097151?4:0},t.prototype.isHighSurrogate=function(t){return t>=55296&&t<=56319},t.prototype.toCodepoint=function(t,e){return((t=(1023&t)<<10)|1023&e)+65536},t.prototype.getByteCountInternal=function(t,e,i){var r=0;if("Utf8"===this.encodingType||"Unicode"===this.encodingType){for(var n="Utf8"===this.encodingType,o=0;o<i;o++){var s=t.charCodeAt(n?e:e++);if(this.isHighSurrogate(s))if(n){var a=s,u=t.charCodeAt(++e);r+=this.utf8Len(this.toCodepoint(a,u))}else r+=4,++o;else r+=n?this.utf8Len(s):2;n&&e++}return r}return r=i},t.prototype.getBytes=function(t,e,i){if(Oi(t,"string"),Oi(e,"charIndex"),Oi(i,"charCount"),e<0||i<0)throw new RangeError("Argument Out Of Range Exception: charIndex or charCount is less than zero");if(t.length-e<i)throw new RangeError("Argument Out Of Range Exception: charIndex and charCount do not denote a valid range in string");if(""===t)return new ArrayBuffer(0);null!==this.type&&void 0!==this.type||(this.type="Ansi");var r=this.getByteCountInternal(t,e,i);switch(this.type){case"Utf8":return this.getBytesOfUtf8Encoding(r,t,e,i);case"Unicode":return this.getBytesOfUnicodeEncoding(r,t,e,i);default:return this.getBytesOfAnsiEncoding(r,t,e,i)}},t.prototype.getString=function(t,e,i){if(Oi(t,"bytes"),Oi(e,"index"),Oi(i,"count"),e<0||i<0)throw new RangeError("Argument Out Of Range Exception: index or count is less than zero");if(t.byteLength-e<i)throw new RangeError("Argument Out Of Range Exception: index and count do not denote a valid range in bytes");if(0===t.byteLength||0===i)return"";null!==this.type&&void 0!==this.type||(this.type="Ansi");var r="",n=new Uint8Array(t);switch(this.type){case"Utf8":return this.getStringOfUtf8Encoding(n,e,i);case"Unicode":var o=new Uint16Array(t);return r=this.getStringofUnicodeEncoding(o,e,i);default:for(var s=e,a=0;a<i;a++){var u=n[s];r+=String.fromCharCode(u),s++}return r}},t.prototype.getBytesOfAnsiEncoding=function(t,e,i,r){for(var n=new ArrayBuffer(t),o=new Uint8Array(n),s=0,a=0;a<r;a++){var u=e.charCodeAt(i++);o[s]=u<2048?u:63,s++}return n},t.prototype.getBytesOfUtf8Encoding=function(t,e,i,r){for(var n=new ArrayBuffer(t),o=new Uint8Array(n),s=i,a=0,u=0;u<r;u++){var c=e.charCodeAt(s);c<=127?o[a]=c:c<2048?(o[a]=192|c>>6,o[++a]=128|63&c):c<55296||c>=57344?(o[a]=224|c>>12,o[++a]=128|c>>6&63,o[++a]=128|63&c):(o[a]=239,o[++a]=191,o[++a]=189),++a,++s}return n},t.prototype.getBytesOfUnicodeEncoding=function(t,e,i,r){for(var n=new ArrayBuffer(t),o=new Uint16Array(n),s=0;s<r;s++){var a=e.charCodeAt(s);o[s]=a}return n},t.prototype.getStringOfUtf8Encoding=function(t,e,i){for(var r=0,n=e,o="";r<i;r++){for(var s=t[n++];n>t.length;)return o;s>127&&(s>191&&s<224&&n<i?s=(31&s)<<6|63&t[n]:s>223&&s<240&&n<t.byteLength?s=(15&s)<<12|(63&t[n])<<6|63&t[++n]:s>239&&s<248&&n<t.byteLength&&(s=(7&s)<<18|(63&t[n])<<12|(63&t[++n])<<6|63&t[++n]),++n),o+=String.fromCharCode(s)}return o},t.prototype.getStringofUnicodeEncoding=function(t,e,i){if(i>t.length)throw new RangeError("ArgumentOutOfRange_Count");for(var r=new Uint16Array(i),n=0;n<i&&n<t.length;n++)r[n]=t[e++];return String.fromCharCode.apply(null,r)},t.prototype.destroy=function(){this.emitBOM=void 0,this.encodingType=void 0},t}();function Oi(t,e){if(null==t)throw new Error("ArgumentException: "+e+" cannot be null or undefined")}var Ti,Li=function(){function t(t){this.bufferBlob=new Blob([""]),this.bufferText="",this.init(t),bi.isMicrosoftBrowser=!!navigator.msSaveBlob}return Object.defineProperty(t.prototype,"buffer",{get:function(){return this.flush(),this.bufferBlob},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"encoding",{get:function(){return this.enc},enumerable:!0,configurable:!0}),t.prototype.init=function(t){null==t?(this.enc=new wi(!1),this.enc.type="Utf8"):(this.enc=t,this.setBomByte())},t.prototype.setBomByte=function(){if(this.encoding.includeBom)switch(this.encoding.type){case"Unicode":var t=new ArrayBuffer(2),e=new Uint8Array(t);e[0]=255,e[1]=254,this.bufferBlob=new Blob([t]);break;case"Utf8":var i=new ArrayBuffer(3),r=new Uint8Array(i);r[0]=239,r[1]=187,r[2]=191,this.bufferBlob=new Blob([i]);break;default:this.bufferBlob=new Blob([""])}},t.prototype.save=function(t){""!==this.bufferText&&this.flush(),bi.save(t,this.buffer)},t.prototype.write=function(t){if(void 0===this.encoding)throw new Error("Object Disposed Exception: current writer is disposed");Oi(t,"string"),this.bufferText+=t,this.bufferText.length>=10240&&this.flush()},t.prototype.flush=function(){if(void 0!==this.bufferText&&null!==this.bufferText&&0!==this.bufferText.length){var t=this.encoding.getBytes(this.bufferText,0,this.bufferText.length);this.bufferText="",this.bufferBlob=new Blob([this.bufferBlob,t])}},t.prototype.writeLine=function(t){if(void 0===this.encoding)throw new Error("Object Disposed Exception: current writer is disposed");Oi(t,"string"),this.bufferText=this.bufferText+t+"\r\n",this.bufferText.length>=10240&&this.flush()},t.prototype.destroy=function(){this.bufferBlob=void 0,this.bufferText=void 0,this.enc instanceof wi&&this.enc.destroy(),this.enc=void 0},t}(),Ai=new Int16Array(286),xi=new Uint8Array(286),Ci=new Int16Array(30),Ei=new Uint8Array(30),ki=function(){function t(e){this.pendingBuffer=new Uint8Array(65536),this.pendingBufLength=0,this.pendingBufCache=0,this.pendingBufBitsInCache=0,this.bufferPosition=0,this.extraBits=0,this.currentHash=0,this.matchStart=0,this.matchLength=0,this.matchPrevAvail=!1,this.blockStart=0,this.stringStart=0,this.lookAhead=0,this.totalBytesIn=0,this.inputOffset=0,this.inputEnd=0,this.windowSize=32768,this.windowMask=this.windowSize-1,this.hashSize=32768,this.hashMask=this.hashSize-1,this.hashShift=Math.floor(17/3),this.maxDist=this.windowSize-262,this.checkSum=1,this.noWrap=!1,t.isHuffmanTreeInitiated||(t.initHuffmanTree(),t.isHuffmanTreeInitiated=!0),this.treeLiteral=new Pi(this,286,257,15),this.treeDistances=new Pi(this,30,1,15),this.treeCodeLengths=new Pi(this,19,4,7),this.arrDistances=new Uint16Array(16384),this.arrLiterals=new Uint8Array(16384),this.stream=[],this.dataWindow=new Uint8Array(2*this.windowSize),this.hashHead=new Int16Array(this.hashSize),this.hashPrevious=new Int16Array(this.windowSize),this.blockStart=this.stringStart=1,this.noWrap=e,e||this.writeZLibHeader()}return Object.defineProperty(t.prototype,"compressedData",{get:function(){return this.stream},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"getCompressedString",{get:function(){var t="";if(void 0!==this.stream)for(var e=0;e<this.stream.length;e++)t+=String.fromCharCode.apply(null,this.stream[e]);return t},enumerable:!0,configurable:!0}),t.prototype.write=function(t,e,i){if(null==t)throw new Error("ArgumentException: data cannot null or undefined");var r=e+i;if(0>e||e>r||r>t.length)throw new Error("ArgumentOutOfRangeException: Offset or length is incorrect");if("string"==typeof t){var n=new wi(!1);n.type="Utf8",r=e+(t=new Uint8Array(n.getBytes(t,0,t.length))).length}for(this.inputBuffer=t,this.inputOffset=e,this.inputEnd=r,this.noWrap||(this.checkSum=Ui.checksumUpdate(this.checkSum,this.inputBuffer,this.inputOffset,r));this.inputEnd!==this.inputOffset||0!==this.pendingBufLength;)this.pendingBufferFlush(),this.compressData(!1)},t.prototype.writeZLibHeader=function(){var t=30720;t|=64,t+=31-t%31,this.pendingBufferWriteShortBytes(t)},t.prototype.pendingBufferWriteShortBytes=function(t){this.pendingBuffer[this.pendingBufLength++]=t>>8,this.pendingBuffer[this.pendingBufLength++]=t},t.prototype.compressData=function(t){var e;do{this.fillWindow();var i=t&&this.inputEnd===this.inputOffset;e=this.compressSlow(i,t)}while(0===this.pendingBufLength&&e);return e},t.prototype.compressSlow=function(t,e){if(this.lookAhead<262&&!t)return!1;for(;this.lookAhead>=262||t;){if(0===this.lookAhead)return this.lookAheadCompleted(e);this.stringStart>=2*this.windowSize-262&&this.slideWindow();var i=this.matchStart,r=this.matchLength;if(this.lookAhead>=3&&this.discardMatch(),r>=3&&this.matchLength<=r?r=this.matchPreviousBest(i,r):this.matchPreviousAvailable(),this.bufferPosition>=16384)return this.huffmanIsFull(e)}return!0},t.prototype.discardMatch=function(){var t=this.insertString();0!==t&&this.stringStart-t<=this.maxDist&&this.findLongestMatch(t)&&this.matchLength<=5&&3===this.matchLength&&this.stringStart-this.matchStart>4096&&(this.matchLength=2)},t.prototype.matchPreviousAvailable=function(){this.matchPrevAvail&&this.huffmanTallyLit(255&this.dataWindow[this.stringStart-1]),this.matchPrevAvail=!0,this.stringStart++,this.lookAhead--},t.prototype.matchPreviousBest=function(t,e){this.huffmanTallyDist(this.stringStart-1-t,e),e-=2;do{this.stringStart++,this.lookAhead--,this.lookAhead>=3&&this.insertString()}while(--e>0);return this.stringStart++,this.lookAhead--,this.matchPrevAvail=!1,this.matchLength=2,e},t.prototype.lookAheadCompleted=function(t){return this.matchPrevAvail&&this.huffmanTallyLit(255&this.dataWindow[this.stringStart-1]),this.matchPrevAvail=!1,this.huffmanFlushBlock(this.dataWindow,this.blockStart,this.stringStart-this.blockStart,t),this.blockStart=this.stringStart,!1},t.prototype.huffmanIsFull=function(t){var e=this.stringStart-this.blockStart;this.matchPrevAvail&&e--;var i=t&&0===this.lookAhead&&!this.matchPrevAvail;return this.huffmanFlushBlock(this.dataWindow,this.blockStart,e,i),this.blockStart+=e,!i},t.prototype.fillWindow=function(){for(this.stringStart>=this.windowSize+this.maxDist&&this.slideWindow();this.lookAhead<262&&this.inputOffset<this.inputEnd;){var t=2*this.windowSize-this.lookAhead-this.stringStart;t>this.inputEnd-this.inputOffset&&(t=this.inputEnd-this.inputOffset),this.dataWindow.set(this.inputBuffer.subarray(this.inputOffset,this.inputOffset+t),this.stringStart+this.lookAhead),this.inputOffset+=t,this.totalBytesIn+=t,this.lookAhead+=t}this.lookAhead>=3&&this.updateHash()},t.prototype.slideWindow=function(){this.dataWindow.set(this.dataWindow.subarray(this.windowSize,this.windowSize+this.windowSize),0),this.matchStart-=this.windowSize,this.stringStart-=this.windowSize,this.blockStart-=this.windowSize;for(var t=0;t<this.hashSize;++t){var e=65535&this.hashHead[t];this.hashHead[t]=e>=this.windowSize?e-this.windowSize:0}for(t=0;t<this.windowSize;t++){e=65535&this.hashPrevious[t];this.hashPrevious[t]=e>=this.windowSize?e-this.windowSize:0}},t.prototype.insertString=function(){var t,e=(this.currentHash<<this.hashShift^this.dataWindow[this.stringStart+2])&this.hashMask;return this.hashPrevious[this.stringStart&this.windowMask]=t=this.hashHead[e],this.hashHead[e]=this.stringStart,this.currentHash=e,65535&t},t.prototype.findLongestMatch=function(t){var e,i=4096,r=258,n=this.stringStart,o=this.stringStart+this.matchLength,s=Math.max(this.matchLength,2),a=Math.max(this.stringStart-this.maxDist,0),u=this.stringStart+258-1,c=this.dataWindow[o-1],h=this.dataWindow[o],l=this.dataWindow;s>=32&&(i>>=2),r>this.lookAhead&&(r=this.lookAhead);do{if(l[t+s]===h&&l[t+s-1]===c&&l[t]===l[n]&&l[t+1]===l[n+1]){for(e=t+2,n+=2;l[++n]===l[++e]&&l[++n]===l[++e]&&l[++n]===l[++e]&&l[++n]===l[++e]&&l[++n]===l[++e]&&l[++n]===l[++e]&&l[++n]===l[++e]&&l[++n]===l[++e]&&n<u;);if(n>o){if(this.matchStart=t,o=n,(s=n-this.stringStart)>=r)break;c=l[o-1],h=l[o]}n=this.stringStart}}while((t=65535&this.hashPrevious[t&this.windowMask])>a&&0!==--i);return this.matchLength=Math.min(s,this.lookAhead),this.matchLength>=3},t.prototype.updateHash=function(){this.currentHash=this.dataWindow[this.stringStart]<<this.hashShift^this.dataWindow[this.stringStart+1]},t.prototype.huffmanTallyLit=function(t){return this.arrDistances[this.bufferPosition]=0,this.arrLiterals[this.bufferPosition++]=t,this.treeLiteral.codeFrequencies[t]++,this.bufferPosition>=16384},t.prototype.huffmanTallyDist=function(t,e){this.arrDistances[this.bufferPosition]=t,this.arrLiterals[this.bufferPosition++]=e-3;var i=this.huffmanLengthCode(e-3);this.treeLiteral.codeFrequencies[i]++,i>=265&&i<285&&(this.extraBits+=Math.floor((i-261)/4));var r=this.huffmanDistanceCode(t-1);return this.treeDistances.codeFrequencies[r]++,r>=4&&(this.extraBits+=Math.floor(r/2-1)),this.bufferPosition>=16384},t.prototype.huffmanFlushBlock=function(t,e,i,r){this.treeLiteral.codeFrequencies[256]++,this.treeLiteral.buildTree(),this.treeDistances.buildTree(),this.treeLiteral.calculateBLFreq(this.treeCodeLengths),this.treeDistances.calculateBLFreq(this.treeCodeLengths),this.treeCodeLengths.buildTree();for(var n=4,o=18;o>n;o--)this.treeCodeLengths.codeLengths[Pi.huffCodeLengthOrders[o]]>0&&(n=o+1);var s=14+3*n+this.treeCodeLengths.getEncodedLength()+this.treeLiteral.getEncodedLength()+this.treeDistances.getEncodedLength()+this.extraBits,a=this.extraBits;for(o=0;o<286;o++)a+=this.treeLiteral.codeFrequencies[o]*xi[o];for(o=0;o<30;o++)a+=this.treeDistances.codeFrequencies[o]*Ei[o];s>=a&&(s=a),e>=0&&i+4<s>>3?this.huffmanFlushStoredBlock(t,e,i,r):s==a?(this.pendingBufferWriteBits(2+(r?1:0),3),this.treeLiteral.setStaticCodes(Ai,xi),this.treeDistances.setStaticCodes(Ci,Ei),this.huffmanCompressBlock(),this.huffmanReset()):(this.pendingBufferWriteBits(4+(r?1:0),3),this.huffmanSendAllTrees(n),this.huffmanCompressBlock(),this.huffmanReset())},t.prototype.huffmanFlushStoredBlock=function(t,e,i,r){this.pendingBufferWriteBits(0+(r?1:0),3),this.pendingBufferAlignToByte(),this.pendingBufferWriteShort(i),this.pendingBufferWriteShort(~i),this.pendingBufferWriteByteBlock(t,e,i),this.huffmanReset()},t.prototype.huffmanLengthCode=function(t){if(255===t)return 285;for(var e=257;t>=8;)e+=4,t>>=1;return e+t},t.prototype.huffmanDistanceCode=function(t){for(var e=0;t>=4;)e+=2,t>>=1;return e+t},t.prototype.huffmanSendAllTrees=function(t){this.treeCodeLengths.buildCodes(),this.treeLiteral.buildCodes(),this.treeDistances.buildCodes(),this.pendingBufferWriteBits(this.treeLiteral.treeLength-257,5),this.pendingBufferWriteBits(this.treeDistances.treeLength-1,5),this.pendingBufferWriteBits(t-4,4);for(var e=0;e<t;e++)this.pendingBufferWriteBits(this.treeCodeLengths.codeLengths[Pi.huffCodeLengthOrders[e]],3);this.treeLiteral.writeTree(this.treeCodeLengths),this.treeDistances.writeTree(this.treeCodeLengths)},t.prototype.huffmanReset=function(){this.bufferPosition=0,this.extraBits=0,this.treeLiteral.reset(),this.treeDistances.reset(),this.treeCodeLengths.reset()},t.prototype.huffmanCompressBlock=function(){for(var t=0;t<this.bufferPosition;t++){var e=255&this.arrLiterals[t],i=this.arrDistances[t];if(0!==i--){var r=this.huffmanLengthCode(e);this.treeLiteral.writeCodeToStream(r);var n=Math.floor((r-261)/4);n>0&&n<=5&&this.pendingBufferWriteBits(e&(1<<n)-1,n);var o=this.huffmanDistanceCode(i);this.treeDistances.writeCodeToStream(o),(n=Math.floor(o/2-1))>0&&this.pendingBufferWriteBits(i&(1<<n)-1,n)}else this.treeLiteral.writeCodeToStream(e)}this.treeLiteral.writeCodeToStream(256)},t.prototype.pendingBufferWriteBits=function(t,e){var i=new Uint32Array(1);i[0]=this.pendingBufCache|t<<this.pendingBufBitsInCache,this.pendingBufCache=i[0],this.pendingBufBitsInCache+=e,this.pendingBufferFlushBits()},t.prototype.pendingBufferFlush=function(t){if(this.pendingBufferFlushBits(),this.pendingBufLength>0){var e=new Uint8Array(this.pendingBufLength);e.set(this.pendingBuffer.subarray(0,this.pendingBufLength),0),this.stream.push(e)}this.pendingBufLength=0},t.prototype.pendingBufferFlushBits=function(){for(var t=0;this.pendingBufBitsInCache>=8&&this.pendingBufLength<65536;)this.pendingBuffer[this.pendingBufLength++]=this.pendingBufCache,this.pendingBufCache>>=8,this.pendingBufBitsInCache-=8,t++;return t},t.prototype.pendingBufferWriteByteBlock=function(t,e,i){var r=t.subarray(e,e+i);this.pendingBuffer.set(r,this.pendingBufLength),this.pendingBufLength+=i},t.prototype.pendingBufferWriteShort=function(t){this.pendingBuffer[this.pendingBufLength++]=t,this.pendingBuffer[this.pendingBufLength++]=t>>8},t.prototype.pendingBufferAlignToByte=function(){this.pendingBufBitsInCache>0&&(this.pendingBuffer[this.pendingBufLength++]=this.pendingBufCache),this.pendingBufCache=0,this.pendingBufBitsInCache=0},t.initHuffmanTree=function(){for(var t=0;t<144;)Ai[t]=Pi.bitReverse(48+t<<8),xi[t++]=8;for(;t<256;)Ai[t]=Pi.bitReverse(256+t<<7),xi[t++]=9;for(;t<280;)Ai[t]=Pi.bitReverse(-256+t<<9),xi[t++]=7;for(;t<286;)Ai[t]=Pi.bitReverse(-88+t<<8),xi[t++]=8;for(t=0;t<30;t++)Ci[t]=Pi.bitReverse(t<<11),Ei[t]=5},t.prototype.close=function(){do{this.pendingBufferFlush(!0),this.compressData(!0)||(this.pendingBufferFlush(!0),this.pendingBufferAlignToByte(),this.noWrap||(this.pendingBufferWriteShortBytes(this.checkSum>>16),this.pendingBufferWriteShortBytes(65535&this.checkSum)),this.pendingBufferFlush(!0))}while(this.inputEnd!==this.inputOffset||0!==this.pendingBufLength)},t.prototype.destroy=function(){this.stream=[],this.stream=void 0,this.pendingBuffer=void 0,this.treeLiteral=void 0,this.treeDistances=void 0,this.treeCodeLengths=void 0,this.arrLiterals=void 0,this.arrDistances=void 0,this.hashHead=void 0,this.hashPrevious=void 0,this.dataWindow=void 0,this.inputBuffer=void 0,this.pendingBufLength=void 0,this.pendingBufCache=void 0,this.pendingBufBitsInCache=void 0,this.bufferPosition=void 0,this.extraBits=void 0,this.currentHash=void 0,this.matchStart=void 0,this.matchLength=void 0,this.matchPrevAvail=void 0,this.blockStart=void 0,this.stringStart=void 0,this.lookAhead=void 0,this.totalBytesIn=void 0,this.inputOffset=void 0,this.inputEnd=void 0,this.windowSize=void 0,this.windowMask=void 0,this.hashSize=void 0,this.hashMask=void 0,this.hashShift=void 0,this.maxDist=void 0,this.checkSum=void 0,this.noWrap=void 0},t.isHuffmanTreeInitiated=!1,t}(),Pi=function(){function t(t,e,i,r){this.writer=t,this.codeMinCount=i,this.maxLength=r,this.codeFrequency=new Uint16Array(e),this.lengthCount=new Int32Array(r)}return Object.defineProperty(t.prototype,"treeLength",{get:function(){return this.codeCount},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"codeLengths",{get:function(){return this.codeLength},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"codeFrequencies",{get:function(){return this.codeFrequency},enumerable:!0,configurable:!0}),t.prototype.setStaticCodes=function(t,e){var i=new Int16Array(t.length);i.set(t,0),this.codes=i;var r=new Uint8Array(e.length);r.set(e,0),this.codeLength=r},t.prototype.reset=function(){for(var t=0;t<this.codeFrequency.length;t++)this.codeFrequency[t]=0;this.codes=void 0,this.codeLength=void 0},t.prototype.writeCodeToStream=function(t){this.writer.pendingBufferWriteBits(65535&this.codes[t],this.codeLength[t])},t.prototype.buildCodes=function(){var e=new Int32Array(this.maxLength);this.codes=new Int16Array(this.codeCount);for(var i=0,r=0;r<this.maxLength;r++)e[r]=i,i+=this.lengthCount[r]<<15-r;for(var n=0;n<this.codeCount;n++){var o=this.codeLength[n];o>0&&(this.codes[n]=t.bitReverse(e[o-1]),e[o-1]+=1<<16-o)}},t.bitReverse=function(e){return t.reverseBits[15&e]<<12|t.reverseBits[e>>4&15]<<8|t.reverseBits[e>>8&15]<<4|t.reverseBits[e>>12]},t.prototype.getEncodedLength=function(){for(var t=0,e=0;e<this.codeFrequency.length;e++)t+=this.codeFrequency[e]*this.codeLength[e];return t},t.prototype.calculateBLFreq=function(t){for(var e,i,r,n=-1,o=0;o<this.codeCount;){r=1;var s=this.codeLength[o];for(0===s?(e=138,i=3):(e=6,i=3,n!==s&&(t.codeFrequency[s]++,r=0)),n=s,o++;o<this.codeCount&&n===this.codeLength[o]&&(o++,!(++r>=e)););r<i?t.codeFrequency[n]+=r:0!==n?t.codeFrequency[16]++:r<=10?t.codeFrequency[17]++:t.codeFrequency[18]++}},t.prototype.writeTree=function(t){for(var e,i,r,n=-1,o=0;o<this.codeCount;){r=1;var s=this.codeLength[o];for(0===s?(e=138,i=3):(e=6,i=3,n!==s&&(t.writeCodeToStream(s),r=0)),n=s,o++;o<this.codeCount&&n===this.codeLength[o]&&(o++,!(++r>=e)););if(r<i)for(;r-- >0;)t.writeCodeToStream(n);else 0!==n?(t.writeCodeToStream(16),this.writer.pendingBufferWriteBits(r-3,2)):r<=10?(t.writeCodeToStream(17),this.writer.pendingBufferWriteBits(r-3,3)):(t.writeCodeToStream(18),this.writer.pendingBufferWriteBits(r-11,7))}},t.prototype.buildTree=function(){for(var t=this.codeFrequency.length,e=new Int32Array(t),i=0,r=0,n=0;n<t;n++){var o=this.codeFrequency[n];if(0!==o){for(var s=i++,a=0;s>0&&this.codeFrequency[e[a=Math.floor((s-1)/2)]]>o;)e[s]=e[a],s=a;e[s]=n,r=n}}for(;i<2;)e[i++]=r<2?++r:0;this.codeCount=Math.max(r+1,this.codeMinCount);for(var u=i,c=new Int32Array(4*i-2),h=new Int32Array(2*i-1),l=0;l<i;l++){var p=e[l],g=2*l;c[g]=p,c[g+1]=-1,h[l]=this.codeFrequency[p]<<8,e[l]=l}this.constructHuffmanTree(e,i,h,u,c),this.buildLength(c)},t.prototype.constructHuffmanTree=function(t,e,i,r,n){do{for(var o=t[0],s=t[--e],a=i[s],u=0,c=1;c<e;)c+1<e&&i[t[c]]>i[t[c+1]]&&c++,t[u]=t[c],c=2*(u=c)+1;for(;(c=u)>0&&i[t[u=Math.floor((c-1)/2)]]>a;)t[c]=t[u];t[c]=s;var h=t[0];n[2*(s=r++)]=o,n[2*s+1]=h;var l=Math.min(255&i[o],255&i[h]);for(i[s]=a=i[o]+i[h]-l+1,u=0,c=1;c<e;)c+1<e&&i[t[c]]>i[t[c+1]]&&c++,t[u]=t[c],c=2*(u=c)+1;for(;(c=u)>0&&i[t[u=Math.floor((c-1)/2)]]>a;)t[c]=t[u];t[c]=s}while(e>1)},t.prototype.buildLength=function(t){this.codeLength=new Uint8Array(this.codeFrequency.length);for(var e=Math.floor(t.length/2),i=Math.floor((e+1)/2),r=0,n=0;n<this.maxLength;n++)this.lengthCount[n]=0;if(0!==(r=this.calculateOptimalCodeLength(t,r,e))){var o=this.maxLength-1;do{for(;0===this.lengthCount[--o];);do{this.lengthCount[o]--,this.lengthCount[++o]++,r-=1<<this.maxLength-1-o}while(r>0&&o<this.maxLength-1)}while(r>0);this.recreateTree(t,r,i)}},t.prototype.recreateTree=function(t,e,i){this.lengthCount[this.maxLength-1]+=e,this.lengthCount[this.maxLength-2]-=e;for(var r=2*i,n=this.maxLength;0!==n;n--)for(var o=this.lengthCount[n-1];o>0;){var s=2*t[r++];-1===t[s+1]&&(this.codeLength[t[s]]=n,o--)}},t.prototype.calculateOptimalCodeLength=function(t,e,i){var r=new Int32Array(i);r[i-1]=0;for(var n=i-1;n>=0;n--){var o=2*n+1;if(-1!==t[o]){(s=r[n]+1)>this.maxLength&&(s=this.maxLength,e++),r[t[o-1]]=r[t[o]]=s}else{var s=r[n];this.lengthCount[s-1]++,this.codeLength[t[o-1]]=r[n]}}return e},t.reverseBits=[0,8,4,12,2,10,6,14,1,9,5,13,3,11,7,15],t.huffCodeLengthOrders=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],t}(),Ui=function(){function t(){}return t.checksumUpdate=function(e,i,r,n){var o=new Uint32Array(1);o[0]=e;for(var s=o[0],a=o[0]=65535&s,u=o[0]=s>>t.checkSumBitOffset;n>0;){var c=Math.min(n,t.checksumIterationCount);for(n-=c;--c>=0;)u+=a+=o[0]=255&i[r++];a%=t.checksumBase,u%=t.checksumBase}return s=u<<t.checkSumBitOffset|a},t.checkSumBitOffset=16,t.checksumBase=65521,t.checksumIterationCount=3800,t}(),Qi=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Yi=function(t){function e(e,i){var r=t.call(this,e)||this;return r.dicPrefix="stream",r.dicSuffix="endstream",r.clonedObject2=null,r.bCompress=!0,void 0!==e||void 0!==i?(r.dataStream2=[],r.dataStream2=i,r.bCompress2=!1):(r.dataStream2=[],r.bCompress2=!0),r}return Qi(e,t),Object.defineProperty(e.prototype,"internalStream",{get:function(){return this.dataStream2},set:function(t){this.dataStream2=[],this.dataStream2=t,this.modify()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"compress",{get:function(){return this.bCompress},set:function(t){this.bCompress=t,this.modify()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this.dataStream2},set:function(t){this.dataStream2=[],this.dataStream2=t,this.modify()},enumerable:!0,configurable:!0}),e.prototype.clearStream=function(){this.internalStream=[],this.items.containsKey(this.dictionaryProperties.filter)&&this.remove(this.dictionaryProperties.filter),this.bCompress=!0,this.modify()},e.prototype.write=function(t){if(null==t)throw new Error("ArgumentNullException:text");if(t.length<=0)throw new Error("ArgumentException: Can not write an empty string, text");this.dataStream2.push(t),this.modify()},e.prototype.writeBytes=function(t){if(null===t)throw new Error("ArgumentNullException:data");if(t.length<=0)throw new Error("ArgumentException: Can not write an empty bytes, data");for(var e="",i=0;i<t.length;i++)e+=String.fromCharCode(t[i]);this.dataStream2.push(e),this.modify()},e.prototype.onCmapBeginSave=function(){this.cmapBeginSave.sender.cmapBeginSave()},e.prototype.onFontProgramBeginSave=function(){this.fontProgramBeginSave.sender.fontProgramBeginSave()},e.prototype.compressContent=function(t,e){if(this.bCompress){for(var i=[],r=0;r<t.length;r++)i.push(t.charCodeAt(r));var n=new Uint8Array(i),o=new ki;o.write(n,0,n.length),o.close(),t=o.getCompressedString,this.addFilter(this.dictionaryProperties.flatedecode)}return t},e.prototype.addFilter=function(t){var e=this.items.getValue(this.dictionaryProperties.filter);e instanceof rr&&(e=e.object);var i=e,r=e;null!=r&&((i=new zi).insert(0,r),this.items.setValue(this.dictionaryProperties.filter,i)),r=new fi(t),null==i?this.items.setValue(this.dictionaryProperties.filter,r):i.insert(0,r)},e.prototype.save=function(e){void 0!==this.cmapBeginSave&&this.onCmapBeginSave(),void 0!==this.fontProgramBeginSave&&this.onFontProgramBeginSave();for(var i="",r=0;r<this.data.length;r++)i+=this.data[r];i.length>1&&!this.isResource&&(i="q\r\n"+i+"Q\r\n");var n=(i=this.compressContent(i,e)).length;this.items.setValue(this.dictionaryProperties.length,new Ii(n)),t.prototype.save.call(this,e,!1),e.write(this.dicPrefix),e.write(Mi.newLine),i.length>0&&e.write(i),e.write(Mi.newLine),e.write(this.dicSuffix),e.write(Mi.newLine)},e.bytesToString=function(t){for(var e="",i=0;i<t.length;i++)e+=String.fromCharCode(t[i]);return e},e}(mi),Ri=function(t){this.sender=t},Vi=function(t){this.sender=t};!function(t){var e,i;(e=t.ForceEncoding||(t.ForceEncoding={}))[e.None=0]="None",e[e.Ascii=1]="Ascii",e[e.Unicode=2]="Unicode",function(t){t[t.StringValue=0]="StringValue",t[t.ByteBuffer=1]="ByteBuffer"}(i||(i={}))}(Ti||(Ti={}));var Fi,Bi,Wi,Gi,Hi,qi,_i,Ji,Zi,Ki,Xi,$i,tr,er=function(){function t(t){if(this.bHex=!1,this.position1=-1,this.clonedObject1=null,this.bDecrypted=!1,this.isParentDecrypted=!1,this.isPacked=!1,this.isFormField=!1,this.isColorSpace=!1,this.isHexString=!0,void 0===t)this.bHex=!1;else if(!(t.length>0&&"0xfeff"===t[0])){this.stringValue=t,this.data=[];for(var e=0;e<t.length;++e)this.data.push(t.charCodeAt(e))}}return Object.defineProperty(t.prototype,"hex",{get:function(){return this.bHex},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.stringValue},set:function(t){this.stringValue=t,this.data=null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"status",{get:function(){return this.status1},set:function(t){this.status1=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isSaving",{get:function(){return this.isSaving1},set:function(t){this.isSaving1=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"objectCollectionIndex",{get:function(){return this.index1},set:function(t){this.index1=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clonedObject",{get:function(){return this.clonedObject1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"position",{get:function(){return this.position1},set:function(t){this.position1=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"CrossTable",{get:function(){return this.crossTable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"converted",{get:function(){return this.bConverted},set:function(t){this.bConverted=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"encode",{get:function(){return this.bForceEncoding},set:function(t){this.bForceEncoding=t},enumerable:!0,configurable:!0}),t.bytesToHex=function(t){if(null==t)return"";return""},t.prototype.save=function(e){if(null===e)throw new Error("ArgumentNullException : writer");void 0!==this.encode&&this.encode===Ti.ForceEncoding.Ascii?e.write(this.pdfEncode()):e.write(t.stringMark[0]+this.value+t.stringMark[1])},t.prototype.pdfEncode=function(){var e="";if(void 0!==this.encode&&this.encode===Ti.ForceEncoding.Ascii){for(var i=this.escapeSymbols(this.value),r=0;r<i.length;r++)e+=String.fromCharCode(i[r]);e=t.stringMark[0]+e+t.stringMark[1]}else e=this.value;return e},t.prototype.escapeSymbols=function(t){for(var e=[],i=0;i<t.length;i++){var r=t.charCodeAt(i);switch(r){case 40:case 41:case 92:e.push(92),e.push(r);break;case 13:e.push(92),e.push(114);break;default:e.push(r)}}return e},t.prototype.clone=function(e){if(null!==this.clonedObject1&&this.clonedObject1.CrossTable===e)return this.clonedObject1;this.clonedObject1=null;var i=new t(this.stringValue);return i.bHex=this.bHex,i.crossTable=e,i.isColorSpace=this.isColorSpace,this.clonedObject1=i,i},t.toUnicodeArray=function(t,e){if(null==t)throw new Error("Argument Null Exception : value");for(var i=[],r=0;r<t.length;r++){var n=t.charCodeAt(r);i.push(n/256>>>0),i.push(255&n)}return i},t.byteToString=function(t){if(null==t)throw new Error("Argument Null Exception : stream");for(var e="",i=0;i<t.length;++i)e+=String.fromCharCode(t[i]);return e},t.stringMark="()",t.hexStringMark="<>",t.hexFormatPattern="{0:X2}",t}(),ir=function(){function t(t,e){this.index3=-1,this.position3=-1,this.objNumber=0,this.genNumber=0,"number"==typeof t&&"number"==typeof e?(this.objNumber=t,this.genNumber=e):(this.objNumber=Number(t),this.genNumber=Number(e))}return Object.defineProperty(t.prototype,"status",{get:function(){return this.status3},set:function(t){this.status3=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isSaving",{get:function(){return this.isSaving3},set:function(t){this.isSaving3=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"objectCollectionIndex",{get:function(){return this.index3},set:function(t){this.index3=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"position",{get:function(){return this.position3},set:function(t){this.position3=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clonedObject",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.save=function(t){t.write(this.toString())},t.prototype.toString=function(){return this.objNumber.toString()+" "+this.genNumber.toString()+" R"},t.prototype.clone=function(t){return null},t}(),rr=function(){function t(t,e){this.index4=-1,this.position4=-1,this.objectIndex=-1,this.dictionaryProperties=new yi,this.initialize(t)}return Object.defineProperty(t.prototype,"status",{get:function(){return this.status4},set:function(t){this.status4=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isSaving",{get:function(){return this.isSaving4},set:function(t){this.isSaving4=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"objectCollectionIndex",{get:function(){return this.index4},set:function(t){this.index4=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"position",{get:function(){return this.position4},set:function(t){this.position4=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clonedObject",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"object",{get:function(){return this.primitiveObject},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"reference",{get:function(){return this.pdfReference},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.objectIndex},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.primitiveObject},enumerable:!0,configurable:!0}),t.prototype.initialize=function(t){if(t instanceof zi||t instanceof mi||t instanceof fi||t instanceof Ii||t instanceof Yi||t instanceof ir||t instanceof er)this.primitiveObject=t;else{var e=t;this.initialize(e.element)}},t.prototype.save=function(t){t.position;var e=t.document.crossTable;this.object.isSaving=!0;e.getReference(this.object).save(t)},t.prototype.clone=function(t){return null},t}();!function(t){t[t.Left=0]="Left",t[t.Center=1]="Center",t[t.Right=2]="Right"}(Fi||(Fi={})),function(t){t[t.Top=0]="Top",t[t.Middle=1]="Middle",t[t.Bottom=2]="Bottom"}(Bi||(Bi={})),function(t){t[t.Left=0]="Left",t[t.Center=1]="Center",t[t.Right=2]="Right",t[t.Justify=3]="Justify"}(Wi||(Wi={})),function(t){t[t.Fill=0]="Fill",t[t.Stroke=1]="Stroke",t[t.FillStroke=2]="FillStroke",t[t.None=3]="None",t[t.ClipFlag=4]="ClipFlag",t[t.ClipFill=4]="ClipFill",t[t.ClipStroke=5]="ClipStroke",t[t.ClipFillStroke=6]="ClipFillStroke",t[t.Clip=7]="Clip"}(Gi||(Gi={})),function(t){t[t.Miter=0]="Miter",t[t.Round=1]="Round",t[t.Bevel=2]="Bevel"}(Hi||(Hi={})),function(t){t[t.Flat=0]="Flat",t[t.Round=1]="Round",t[t.Square=2]="Square"}(qi||(qi={})),function(t){t[t.Solid=0]="Solid",t[t.Dash=1]="Dash",t[t.Dot=2]="Dot",t[t.DashDot=3]="DashDot",t[t.DashDotDot=4]="DashDotDot",t[t.Custom=5]="Custom"}(_i||(_i={})),function(t){t[t.Winding=0]="Winding",t[t.Alternate=1]="Alternate"}(Ji||(Ji={})),function(t){t[t.Rgb=0]="Rgb",t[t.Cmyk=1]="Cmyk",t[t.GrayScale=2]="GrayScale",t[t.Indexed=3]="Indexed"}(Zi||(Zi={})),function(t){t[t.Normal=0]="Normal",t[t.Multiply=1]="Multiply",t[t.Screen=2]="Screen",t[t.Overlay=3]="Overlay",t[t.Darken=4]="Darken",t[t.Lighten=5]="Lighten",t[t.ColorDodge=6]="ColorDodge",t[t.ColorBurn=7]="ColorBurn",t[t.HardLight=8]="HardLight",t[t.SoftLight=9]="SoftLight",t[t.Difference=10]="Difference",t[t.Exclusion=11]="Exclusion",t[t.Hue=12]="Hue",t[t.Saturation=13]="Saturation",t[t.Color=14]="Color",t[t.Luminosity=15]="Luminosity"}(Ki||(Ki={})),function(t){t[t.Centimeter=0]="Centimeter",t[t.Pica=1]="Pica",t[t.Pixel=2]="Pixel",t[t.Point=3]="Point",t[t.Inch=4]="Inch",t[t.Document=5]="Document",t[t.Millimeter=6]="Millimeter"}(Xi||(Xi={})),function(t){t[t.Fit=0]="Fit",t[t.Center=1]="Center",t[t.Stretch=2]="Stretch",t[t.Tile=3]="Tile"}($i||($i={})),function(t){t[t.None=0]="None",t[t.LeftToRight=1]="LeftToRight",t[t.RightToLeft=2]="RightToLeft"}(tr||(tr={}));var nr,or,sr,ar,ur,cr,hr,lr,pr,gr,dr,fr,Mr,yr=function(){function t(e,i,r,n){void 0===e?void 0!==i&&void 0!==r&&void 0!==n?this.assignRGB(i,r,n):this.filled=!1:e instanceof t?(this.redColor=e.r,this.greenColor=e.g,this.blueColor=e.b,this.grayColor=e.gray,this.alpha=e.alpha,this.filled=0!==this.alpha):"number"==typeof e&&void 0===i&&void 0===r&&void 0===n?(e<0&&(e=0),e>1&&(e=1),this.redColor=e*t.maxColourChannelValue,this.greenColor=e*t.maxColourChannelValue,this.blueColor=e*t.maxColourChannelValue,this.cyanColor=e,this.magentaColor=e,this.yellowColor=e,this.blackColor=e,this.grayColor=e,this.alpha=t.maxColourChannelValue,this.filled=!0):void 0===n?this.assignRGB(e,i,r):this.assignRGB(i,r,n,e)}return t.prototype.assignRGB=function(e,i,r,n){void 0===e||void 0===i||void 0===r?this.filled=!1:(this.cyanColor=0,this.magentaColor=0,this.yellowColor=0,this.blackColor=0,this.grayColor=0,this.redColor=e,this.greenColor=i,this.blueColor=r,this.alpha=void 0===n?t.maxColourChannelValue:n,this.filled=!0,this.assignCMYK(e,i,r))},t.prototype.assignCMYK=function(e,i,r){var n=e/t.maxColourChannelValue,o=i/t.maxColourChannelValue,s=r/t.maxColourChannelValue,a=Ii.min(1-n,1-o,1-s),u=1===a?0:(1-n-a)/(1-a),c=1===a?0:(1-o-a)/(1-a),h=1===a?0:(1-s-a)/(1-a);this.blackColor=a,this.cyanColor=u,this.magentaColor=c,this.yellowColor=h},Object.defineProperty(t.prototype,"r",{get:function(){return this.redColor},set:function(t){this.redColor=t,this.assignCMYK(this.redColor,this.greenColor,this.blueColor),this.filled=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"red",{get:function(){return this.r/t.maxColourChannelValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"b",{get:function(){return this.blueColor},set:function(t){this.blueColor=t,this.assignCMYK(this.redColor,this.greenColor,this.blueColor),this.filled=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"blue",{get:function(){return this.b/t.maxColourChannelValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"c",{get:function(){return this.cyanColor},set:function(t){this.cyanColor=t<0?0:t>1?1:t,this.assignRGB(this.cyanColor,this.magentaColor,this.yellowColor,this.blackColor),this.filled=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"k",{get:function(){return this.blackColor},set:function(t){this.blackColor=t<0?0:t>1?1:t,this.assignRGB(this.cyanColor,this.magentaColor,this.yellowColor,this.blackColor),this.filled=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"m",{get:function(){return this.magentaColor},set:function(t){this.magentaColor=t<0?0:t>1?1:t,this.assignRGB(this.cyanColor,this.magentaColor,this.yellowColor,this.blackColor),this.filled=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this.yellowColor},set:function(t){this.yellowColor=t<0?0:t>1?1:t,this.assignRGB(this.cyanColor,this.magentaColor,this.yellowColor,this.blackColor),this.filled=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"g",{get:function(){return this.greenColor},set:function(t){this.greenColor=t,this.assignCMYK(this.redColor,this.greenColor,this.blueColor),this.filled=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"green",{get:function(){return this.g/t.maxColourChannelValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"gray",{get:function(){return(this.redColor+this.greenColor+this.blueColor)/(3*t.maxColourChannelValue)},set:function(e){this.grayColor=e<0?0:e>1?1:e,this.r=this.grayColor*t.maxColourChannelValue,this.g=this.grayColor*t.maxColourChannelValue,this.b=this.grayColor*t.maxColourChannelValue,this.assignCMYK(this.redColor,this.greenColor,this.blueColor),this.filled=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isEmpty",{get:function(){return!this.filled},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"a",{get:function(){return this.alpha},set:function(t){this.alpha=t<0?0:t,this.filled=!0},enumerable:!0,configurable:!0}),t.prototype.toString=function(t,e){if(this.isEmpty)return"";var i="";switch(t){case Zi.Rgb:i=this.rgbToString(e);break;case Zi.GrayScale:i=this.grayScaleToString(e);break;case Zi.Cmyk:i=this.cmykToString(e)}return i},t.prototype.grayScaleToString=function(e){var i=this.gray,r="",n=null;return null==(n=e?t.grayStringsSroke.containsKey(i)?t.grayStringsSroke.getValue(i):null:t.grayStringsFill.containsKey(i)?t.grayStringsFill.getValue(i):null)?e&&(r=i.toString()+" G",t.grayStringsSroke.setValue(i,r)):r=n.toString(),r+Mi.newLine},t.prototype.rgbToString=function(e){var i=this.r,r=this.g,n=this.b,o=(i<<16)+(r<<8)+n;e&&(o+=1<<24);var s="",a=null;if(t.rgbStrings.containsKey(o)&&(a=t.rgbStrings.getValue(o)),null==a){var u=i/t.maxColourChannelValue,c=r/t.maxColourChannelValue,h=n/t.maxColourChannelValue;s=e?u.toString()+" "+c.toString()+" "+h.toString()+" RG":u.toString()+" "+c.toString()+" "+h.toString()+" rg",t.rgbStrings.setValue(o,s)}else s=a.toString();return s+Mi.newLine},t.prototype.cmykToString=function(t){var e=this.c,i=this.m,r=this.y,n=this.b;return e.toString()+" "+i.toString()+" "+r.toString()+" "+n.toString()+" K"+Mi.newLine},t.prototype.toArray=function(t){var e=new zi;if(t===Zi.Rgb)e.add(new Ii(this.red)),e.add(new Ii(this.green)),e.add(new Ii(this.blue));return e},t.rgbStrings=new di,t.grayStringsSroke=new di,t.grayStringsFill=new di,t.maxColourChannelValue=255,t}(),mr=function(t,e){void 0===t?(this.x=0,this.y=0):(this.x=null!==t?t:0,this.y=null!==e?e:0)},Nr=function(t,e){void 0===e?(this.height=0,this.width=0):(this.height=null!==e?e:0,this.width=null!==t?t:0)},jr=function(t,e,i,r){if(typeof t==typeof t&&void 0===t)this.x=0,this.y=0,this.height=0,this.width=0;else if(t instanceof mr&&e instanceof Nr&&void 0===i){var n=t;this.x=n.x,this.y=n.y;var o=e;this.height=o.height,this.width=o.width}else{var s=t,a=e,u=i,c=r;this.x=s,this.y=a,this.height=c,this.width=u}},Dr=function(){function t(t,e,i,r){this.left=t,this.top=e,this.right=i,this.bottom=r}return Object.defineProperty(t.prototype,"width",{get:function(){return this.right-this.left},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.bottom-this.top},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"topLeft",{get:function(){return new mr(this.left,this.top)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return new Nr(this.width,this.height)},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.topLeft+"x"+this.size},t}(),Sr=function(){function t(){}return t.prototype.clone=function(){return this},t}(),vr=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Ir=function(t){function e(e){var i=t.call(this)||this;return i.pdfColor=e,i}return vr(e,t),Object.defineProperty(e.prototype,"color",{get:function(){return this.pdfColor},set:function(t){this.pdfColor=t},enumerable:!0,configurable:!0}),e.prototype.monitorChanges=function(t,e,i,r,n){if(null==e)throw new Error("ArgumentNullException:streamWriter");var o=!1;return o=!0,e.setColorAndSpace(this.pdfColor,n,!1),o},e.prototype.resetChanges=function(t){t.setColorAndSpace(new yr(0,0,0),Zi.Rgb,!1)},e}(Sr);!function(t){t[t.Regular=0]="Regular",t[t.Bold=1]="Bold",t[t.Italic=2]="Italic",t[t.Underline=4]="Underline",t[t.Strikeout=8]="Strikeout"}(nr||(nr={})),function(t){t[t.Helvetica=0]="Helvetica",t[t.Courier=1]="Courier",t[t.TimesRoman=2]="TimesRoman",t[t.Symbol=3]="Symbol",t[t.ZapfDingbats=4]="ZapfDingbats"}(or||(or={})),function(t){t[t.Standard=0]="Standard",t[t.TrueType=1]="TrueType",t[t.TrueTypeEmbedded=2]="TrueTypeEmbedded"}(sr||(sr={})),function(t){t[t.None=0]="None",t[t.Word=1]="Word",t[t.WordOnly=2]="WordOnly",t[t.Character=3]="Character"}(ar||(ar={})),function(t){t[t.None=0]="None",t[t.SuperScript=1]="SuperScript",t[t.SubScript=2]="SubScript"}(ur||(ur={})),function(t){t[t.Unknown=0]="Unknown",t[t.StandardEncoding=1]="StandardEncoding",t[t.MacRomanEncoding=2]="MacRomanEncoding",t[t.MacExpertEncoding=3]="MacExpertEncoding",t[t.WinAnsiEncoding=4]="WinAnsiEncoding",t[t.PdfDocEncoding=5]="PdfDocEncoding",t[t.IdentityH=6]="IdentityH"}(cr||(cr={})),function(t){t[t.Apple=0]="Apple",t[t.Microsoft=4]="Microsoft",t[t.Trimmed=6]="Trimmed"}(hr||(hr={})),function(t){t[t.Unknown=0]="Unknown",t[t.Symbol=1]="Symbol",t[t.Unicode=2]="Unicode",t[t.Macintosh=3]="Macintosh"}(lr||(lr={})),function(t){t[t.AppleUnicode=0]="AppleUnicode",t[t.Macintosh=1]="Macintosh",t[t.Iso=2]="Iso",t[t.Microsoft=3]="Microsoft"}(pr||(pr={})),function(t){t[t.Undefined=0]="Undefined",t[t.Unicode=1]="Unicode"}(gr||(gr={})),function(t){t[t.Roman=0]="Roman",t[t.Japanese=1]="Japanese",t[t.Chinese=2]="Chinese"}(dr||(dr={})),function(t){t[t.FixedPitch=1]="FixedPitch",t[t.Serif=2]="Serif",t[t.Symbolic=4]="Symbolic",t[t.Script=8]="Script",t[t.Nonsymbolic=32]="Nonsymbolic",t[t.Italic=64]="Italic",t[t.ForceBold=262144]="ForceBold"}(fr||(fr={})),function(t){t[t.Arg1And2AreWords=1]="Arg1And2AreWords",t[t.ArgsAreXyValues=2]="ArgsAreXyValues",t[t.RoundXyToGrid=4]="RoundXyToGrid",t[t.WeHaveScale=8]="WeHaveScale",t[t.Reserved=16]="Reserved",t[t.MoreComponents=32]="MoreComponents",t[t.WeHaveAnXyScale=64]="WeHaveAnXyScale",t[t.WeHaveTwoByTwo=128]="WeHaveTwoByTwo",t[t.WeHaveInstructions=256]="WeHaveInstructions",t[t.UseMyMetrics=512]="UseMyMetrics"}(Mr||(Mr={}));var zr,br=function(){function t(t,e){this.scalingFactor=100,this.wordWrapType=ar.Word,this.internalLineLimit=!0,this.wordWrapType=ar.Word,void 0!==t&&"string"!=typeof t&&(this.textAlignment=t),void 0!==e&&(this.verticalAlignment=e)}return Object.defineProperty(t.prototype,"alignment",{get:function(){return this.textAlignment},set:function(t){this.textAlignment=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"textDirection",{get:function(){return this.direction},set:function(t){this.direction=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineAlignment",{get:function(){return void 0===this.verticalAlignment||null==this.verticalAlignment?Bi.Top:this.verticalAlignment},set:function(t){this.verticalAlignment=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rightToLeft",{get:function(){return void 0!==this.isRightToLeft&&null!=this.isRightToLeft&&this.isRightToLeft},set:function(t){this.isRightToLeft=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"characterSpacing",{get:function(){return void 0===this.internalCharacterSpacing||null==this.internalCharacterSpacing?0:this.internalCharacterSpacing},set:function(t){this.internalCharacterSpacing=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"wordSpacing",{get:function(){return void 0===this.internalWordSpacing||null==this.internalWordSpacing?0:this.internalWordSpacing},set:function(t){this.internalWordSpacing=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineSpacing",{get:function(){return void 0===this.leading||null==this.leading?0:this.leading},set:function(t){this.leading=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clipPath",{get:function(){return void 0!==this.clip&&null!=this.clip&&this.clip},set:function(t){this.clip=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"subSuperScript",{get:function(){return void 0===this.pdfSubSuperScript||null==this.pdfSubSuperScript?ur.None:this.pdfSubSuperScript},set:function(t){this.pdfSubSuperScript=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paragraphIndent",{get:function(){return void 0===this.internalParagraphIndent||null==this.internalParagraphIndent?0:this.internalParagraphIndent},set:function(t){this.internalParagraphIndent=t,this.firstLineIndent=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineLimit",{get:function(){return this.internalLineLimit},set:function(t){this.internalLineLimit=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"measureTrailingSpaces",{get:function(){return void 0!==this.trailingSpaces&&null!=this.trailingSpaces&&this.trailingSpaces},set:function(t){this.trailingSpaces=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"noClip",{get:function(){return void 0!==this.isNoClip&&null!=this.isNoClip&&this.isNoClip},set:function(t){this.isNoClip=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"wordWrap",{get:function(){return this.wordWrapType},set:function(t){this.wordWrapType=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"horizontalScalingFactor",{get:function(){return this.scalingFactor},set:function(t){if(t<=0)throw new Error("ArgumentOutOfRangeException:The scaling factor cant be less of equal to zero, ScalingFactor");this.scalingFactor=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstLineIndent",{get:function(){return void 0===this.initialLineIndent||null==this.initialLineIndent?0:this.initialLineIndent},set:function(t){this.initialLineIndent=t},enumerable:!0,configurable:!0}),t.prototype.clone=function(){return this},t}(),wr=function(){function t(t){if(this.currentPosition=0,null==t)throw new Error("ArgumentNullException:text");this.text=t}return Object.defineProperty(t.prototype,"length",{get:function(){return this.text.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"end",{get:function(){return this.currentPosition===this.text.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"position",{get:function(){return this.currentPosition},set:function(t){this.currentPosition=t},enumerable:!0,configurable:!0}),t.getCharsCount=function(t,e){if("string"==typeof e){if(null==t)throw new Error("ArgumentNullException:wholeText");for(var i=0,r=0;-1!==(r=t.indexOf(e,r));)i++,r++;return i}if(null==t)throw new Error("ArgumentNullException:text");if(null==e)throw new Error("ArgumentNullException:symbols");for(var n=0,o=0,s=t.length;o<s;o++){var a=t[o];this.contains(e,a)&&n++}return n},t.prototype.readLine=function(){for(var t=this.currentPosition;t<this.length;){var e=this.text[t];switch(e){case"\r":case"\n":var i=this.text.substr(this.currentPosition,t-this.currentPosition);return this.currentPosition=t+1,"\r"===e&&this.currentPosition<this.length&&"\n"===this.text[this.currentPosition]&&this.currentPosition++,i}t++}if(t>this.currentPosition){var r=this.text.substr(this.currentPosition,t-this.currentPosition);return this.currentPosition=t,r}return null},t.prototype.peekLine=function(){var t=this.currentPosition,e=this.readLine();return this.currentPosition=t,e},t.prototype.readWord=function(){for(var t=this.currentPosition;t<this.length;){var e=this.text[t];switch(e){case"\r":case"\n":var i=this.text.substr(this.currentPosition,t-this.currentPosition);return this.currentPosition=t+1,"\r"===e&&this.currentPosition<this.length&&"\n"===this.text[this.currentPosition]&&this.currentPosition++,i;case" ":case"\t":t===this.currentPosition&&t++;var r=this.text.substr(this.currentPosition,t-this.currentPosition);return this.currentPosition=t,r}t++}if(t>this.currentPosition){var n=this.text.substr(this.currentPosition,t-this.currentPosition);return this.currentPosition=t,n}return null},t.prototype.peekWord=function(){var t=this.currentPosition,e=this.readWord();return this.currentPosition=t,e},t.prototype.read=function(t){if(void 0===t){var e="0";return this.end||(e=this.text[this.currentPosition],this.currentPosition++),e}for(var i=0,r="";!this.end&&i<t;){r+=e=this.read(),i++}return r},t.prototype.peek=function(){var t="0";return this.end||(t=this.text[this.currentPosition]),t},t.prototype.close=function(){this.text=null},t.prototype.readToEnd=function(){var t;return t=0===this.currentPosition?this.text:this.text.substr(this.currentPosition,this.length-this.currentPosition),this.currentPosition=this.length,t},t.contains=function(t,e){for(var i=!1,r=0;r<t.length;r++)if(t[r]===e){i=!0;break}return i},t.whiteSpace=" ",t.tab="\t",t.spaces=[t.whiteSpace,t.tab],t.whiteSpacePattern="^[ \t]+$",t}(),Or=function(){function t(){this.isOverloadWithPosition=!1}return t.prototype.layout=function(t,e,i,r,n,o,s){if(r instanceof jr){this.initialize(t,e,i,r,n),this.isOverloadWithPosition=o,this.clientSize=s;var a=this.doLayout();return this.clear(),a}this.initialize(t,e,i,r),this.isOverloadWithPosition=n,this.clientSize=o;a=this.doLayout();return this.clear(),a},t.prototype.initialize=function(t,e,i,r,n){if("number"==typeof n){if(null==t)throw new Error("ArgumentNullException:text");if(null==e)throw new Error("ArgumentNullException:font");this.text=t,this.font=e,this.format=i,this.size=new Nr(r.width,r.height),this.rectangle=r,this.pageHeight=n,this.reader=new wr(t)}else this.initialize(t,e,i,new jr(new mr(0,0),r),0)},t.prototype.clear=function(){this.font=null,this.format=null,this.reader.close(),this.reader=null,this.text=null},t.prototype.doLayout=function(){for(var t=new Tr,e=new Tr,i=[],r=this.reader.peekLine(),n=this.getLineIndent(!0);null!=r;){if(null!==(e=this.layoutLine(r,n))||void 0!==e){var o=0,s=this.copyToResult(t,e,i,o),a=s.success;if(o=s.numInserted,!a){this.reader.read(o);break}}this.reader.readLine(),r=this.reader.peekLine(),n=this.getLineIndent(!1)}return this.finalizeResult(t,i),t},t.prototype.getLineIndent=function(t){var e=0;return null!=this.format&&(e=t?this.format.firstLineIndent:this.format.paragraphIndent,e=this.size.width>0?Math.min(this.size.width,e):e),e},t.prototype.getLineHeight=function(){var t=this.font.height;return null!=this.format&&0!==this.format.lineSpacing&&(t=this.format.lineSpacing+this.font.height),t},t.prototype.getLineWidth=function(t){return this.font.getLineWidth(t,this.format)},t.prototype.layoutLine=function(t,e){var i=new Tr;i.layoutLineHeight=this.getLineHeight();var r=[],n=this.size.width,o=this.getLineWidth(t)+e,s=zr.FirstParagraphLine,a=!0;if(n<=0||Math.round(o)<=Math.round(n))this.addToLineResult(i,r,t,o,zr.NewLineBreak|s);else{var u="",c="";o=e;var h=e,l=new wr(t),p=l.peekWord();for(p.length!==l.length&&" "===p&&(c+=p,u+=p,l.position+=1,p=l.peekWord());null!=p;){c+=p;var g=this.getLineWidth(c.toString())+h;if(" "===c.toString()&&(c="",g=0),g>n){if(this.getWrapType()===ar.None)break;if(c.length===p.length){if(this.getWrapType()===ar.WordOnly){i.textRemainder=t.substring(l.position);break}if(1===c.length){u+=p;break}a=!1,c="",p=l.peek().toString();continue}this.getLineWidth(p.toString())>n?this.format.wordWrap=ar.Character:void 0!==this.format&&null!==this.format&&(this.format.wordWrap=ar.Word),this.getWrapType()===ar.Character&&a?(a=!1,c="",c+=u.toString(),p=l.peek().toString()):(" "!==(d=u.toString())&&this.addToLineResult(i,r,d,o,zr.LayoutBreak|s),this.isOverloadWithPosition&&(n=this.clientSize.width),c="",u="",o=0,h=0,g=0,s=zr.None,p=a?p:l.peekWord(),a=!0)}else u+=p,o=g,a?(l.readWord(),p=l.peekWord()):(l.read(),p=l.peek().toString())}if(u.length>0){var d=u.toString();this.addToLineResult(i,r,d,o,zr.NewLineBreak|zr.LastParagraphLine)}l.close()}i.layoutLines=[];for(var f=0;f<r.length;f++)i.layoutLines.push(r[f]);return r=[],i},t.prototype.addToLineResult=function(t,e,i,r,n){var o=new Lr;o.text=i,o.width=r,o.lineType=n,e.push(o);var s=t.actualSize;s.height+=this.getLineHeight(),s.width=Math.max(s.width,r),t.size=s},t.prototype.copyToResult=function(t,e,i,r){var n=!0,o=null!=this.format&&!this.format.lineLimit,s=t.actualSize.height,a=this.size.height;if(this.pageHeight>0&&a+this.rectangle.y>this.pageHeight&&(a=this.rectangle.y-this.pageHeight,a=Math.max(a,-a)),r=0,null!=e.lines)for(var u=0,c=e.lines.length;u<c;u++){var h=s+e.lineHeight;if(!(h<=a||a<=0||o)){n=!1;break}var l=e.lines[u];r+=l.text.length,l=this.trimLine(l,0===i.length),i.push(l);var p=t.actualSize;p.width=Math.max(p.width,l.width),t.size=p,s=h}if(s!=t.size.height){var g=t.actualSize;g.height=s,t.size=g}return{success:n,numInserted:r}},t.prototype.finalizeResult=function(t,e){t.layoutLines=[];for(var i=0;i<e.length;i++)t.layoutLines.push(e[i]);t.layoutLineHeight=this.getLineHeight(),this.reader.end||(t.textRemainder=this.reader.readToEnd()),e=[]},t.prototype.trimLine=function(t,e){var i=t.text,r=t.width;t.lineType,zr.FirstParagraphLine;null==this.format||this.format.rightToLeft;return wr.spaces,(i=i.trim()).length!==t.text.length&&(r=this.getLineWidth(i),(t.lineType&zr.FirstParagraphLine)>0&&(r+=this.getLineIndent(e))),t.text=i,t.width=r,t},t.prototype.getWrapType=function(){return null!=this.format?this.format.wordWrap:ar.Word},t}(),Tr=function(){function t(){}return Object.defineProperty(t.prototype,"remainder",{get:function(){return this.textRemainder},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"actualSize",{get:function(){return void 0===this.size&&(this.size=new Nr(0,0)),this.size},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lines",{get:function(){return this.layoutLines},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineHeight",{get:function(){return this.layoutLineHeight},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"empty",{get:function(){return null==this.layoutLines||0===this.layoutLines.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineCount",{get:function(){return this.empty?0:this.layoutLines.length},enumerable:!0,configurable:!0}),t}(),Lr=function(){function t(){}return Object.defineProperty(t.prototype,"lineType",{get:function(){return this.type},set:function(t){this.type=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.content},set:function(t){this.content=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.lineWidth},set:function(t){this.lineWidth=t},enumerable:!0,configurable:!0}),t}();!function(t){t[t.None=0]="None",t[t.NewLineBreak=1]="NewLineBreak",t[t.LayoutBreak=2]="LayoutBreak",t[t.FirstParagraphLine=4]="FirstParagraphLine",t[t.LastParagraphLine=8]="LastParagraphLine"}(zr||(zr={}));var Ar,xr=function(){function t(t,e){this.fontStyle=nr.Regular,"number"==typeof t&&void 0===e?this.fontSize=t:(this.fontSize=t,this.setStyle(e))}return Object.defineProperty(t.prototype,"name",{get:function(){return this.metrics.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this.fontSize},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.metrics.getHeight(null)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"style",{get:function(){return this.fontStyle},set:function(t){this.fontStyle=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bold",{get:function(){return(this.style&nr.Bold)>0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"italic",{get:function(){return(this.style&nr.Italic)>0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strikeout",{get:function(){return(this.style&nr.Strikeout)>0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"underline",{get:function(){return(this.style&nr.Underline)>0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"metrics",{get:function(){return this.fontMetrics},set:function(t){this.fontMetrics=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.pdfFontInternals},enumerable:!0,configurable:!0}),t.prototype.measureString=function(t,e,i,r,n){if("string"==typeof t&&void 0===e)return this.measureString(t,null);if("string"==typeof t&&(e instanceof br||null==e)&&void 0===i&&void 0===r){var o=e;return this.measureString(t,o,0,0)}if("string"==typeof t&&(e instanceof br||null==e)&&"number"==typeof i&&"number"==typeof r){o=e;return this.measureString(t,0,o,i,r)}if("string"==typeof t&&"number"==typeof e&&(i instanceof br||null==i)&&"number"==typeof r&&"number"==typeof n){var s=new Nr(e,0),a=i;return this.measureString(t,s,a,r,n)}if(null==t)throw Error('ArgumentNullException("text")');o=e,a=i;var u=(new Or).layout(t,this,a,o,!1,new Nr(0,0));return r=t.length,n=u.empty?0:u.lines.length,u.actualSize},t.prototype.equalsTo=function(t){return this.equalsToFont(t)},t.prototype.getInternals=function(){return this.pdfFontInternals},t.prototype.setInternals=function(t){if(null==t)throw new Error("ArgumentNullException:internals");this.pdfFontInternals=t},t.prototype.setStyle=function(t){this.fontStyle=t},t.prototype.applyFormatSettings=function(t,e,i){var r=i;if(null!=e&&i>0&&(0!==e.characterSpacing&&(r+=(t.length-1)*e.characterSpacing),0!==e.wordSpacing)){var n=wr.spaces;r+=wr.getCharsCount(t,n)*e.wordSpacing}return r},t.charSizeMultiplier=.001,t.syncObject=new Object,t}(),Cr=function(){function t(t){this.streamWriter=t}return Object.defineProperty(t.prototype,"document",{get:function(){return this.pdfDocument},set:function(t){this.pdfDocument=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"position",{get:function(){return this.streamWriter.buffer.size},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this.streamWriter.buffer.size},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"stream",{get:function(){return this.streamWriter},enumerable:!0,configurable:!0}),t.prototype.write=function(t){var e=t;this.streamWriter.write(e)},t}();!function(t){t[t.None=0]="None",t[t.Registered=1]="Registered"}(Ar||(Ar={}));var Er,kr=function(){function t(){this.objectCollections=[],this.mainObjectCollection=new di,this.primitiveObjectCollection=new di}return Object.defineProperty(t.prototype,"count",{get:function(){return this.objectCollections.length},enumerable:!0,configurable:!0}),t.prototype.items=function(t){return this.objectCollections[t]},Object.defineProperty(t.prototype,"outIsNew",{get:function(){return this.isNew},enumerable:!0,configurable:!0}),t.prototype.add=function(t){var e=new Pr(t);this.objectCollections.push(e),this.primitiveObjectCollection.containsKey(t)||this.primitiveObjectCollection.setValue(t,this.objectCollections.length-1),t.position=this.index=this.objectCollections.length-1,t.status=Ar.Registered},t.prototype.lookFor=function(t){var e=-1;if(-1!==t.position)return t.position;if(this.primitiveObjectCollection.containsKey(t)&&this.count===this.primitiveObjectCollection.size())e=this.primitiveObjectCollection.getValue(t);else for(var i=this.count-1;i>=0;i--){if(this.objectCollections[i].object===t){e=i;break}}return e},t.prototype.getReference=function(t,e){return this.index=this.lookFor(t),this.isNew=!1,{reference:this.objectCollections[this.index].reference,wasNew:e}},t.prototype.trySetReference=function(t,e,i){return this.index=this.lookFor(t),this.objectCollections[this.index].setReference(e),!0},t.prototype.destroy=function(){for(var t=0,e=this.objectCollections;t<e.length;t++){var i=e[t];void 0!==i&&(i.pdfObject.position=-1,i.pdfObject.isSaving=void 0,i.pdfObject.objectCollectionIndex=void 0,i.pdfObject.position=void 0)}this.objectCollections=[],this.mainObjectCollection=new di,this.primitiveObjectCollection=new di},t}(),Pr=function(){function t(t,e){this.pdfObject=t,this.pdfReference=e}return Object.defineProperty(t.prototype,"object",{get:function(){return this.pdfObject},set:function(t){this.pdfObject=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"reference",{get:function(){return this.pdfReference},enumerable:!0,configurable:!0}),t.prototype.setReference=function(t){this.pdfReference=t},t}(),Ur=function(){function t(t){this.isStreamCopied=!1,t instanceof Co&&(this.document=t)}return Object.defineProperty(t.prototype,"pdfObjects",{get:function(){return this.objects},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"crossTable",{get:function(){return this.pdfCrossTable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentSavingObj",{get:function(){return this.currentSavingObject},set:function(t){this.currentSavingObject=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"catalog",{get:function(){return this.pdfCatalog},set:function(t){this.pdfCatalog=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"viewerPreferences",{get:function(){return this.pdfCatalog.viewerPreferences},enumerable:!0,configurable:!0}),t.prototype.setMainObjectCollection=function(t){this.objects=t},t.prototype.setCrossTable=function(t){this.pdfCrossTable=t},t.prototype.setCatalog=function(t){this.pdfCatalog=t},t.prototype.save=function(t){var e=this,i=new wi(!0),r=new Li(i);if(void 0===t){var n=new wi(!0),o=new Li(n);return new Promise(function(t,i){var r={};r.blobData=new Blob([e.document.docSave(o,!0)],{type:"application/pdf"}),t(r)})}this.document.docSave(r,t,!0)},t.prototype.clone=function(){return this.document},t}();!function(t){t[t.Free=0]="Free",t[t.Normal=1]="Normal",t[t.Packed=2]="Packed"}(Er||(Er={}));var Qr,Yr,Rr,Vr,Fr=function(){function t(t){this.currentPosition=-1,this.value=t}return Object.defineProperty(t.prototype,"status",{get:function(){return this.objectStatus},set:function(t){this.objectStatus=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isSaving",{get:function(){return this.saving},set:function(t){this.saving=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"objectCollectionIndex",{get:function(){return this.index},set:function(t){this.index=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"position",{get:function(){return this.currentPosition},set:function(t){this.currentPosition=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clonedObject",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.save=function(t){t.write(this.boolToStr(this.value))},t.prototype.clone=function(e){return new t(this.value)},t.prototype.boolToStr=function(t){return t?"true":"false"},t}(),Br=function(){function t(t){this._dictionaryProperties=new yi,this._centerWindow=!1,this._fitWindow=!1,this._displayTitle=!1,this._splitWindow=!1,this._hideMenuBar=!1,this._hideToolBar=!1,this._hideWindowUI=!1,this._pageMode=Qr.UseNone,this._pageLayout=Yr.SinglePage,this._dictionary=new mi,this._duplex=Rr.None,this._catalog=t}return Object.defineProperty(t.prototype,"centerWindow",{get:function(){return this._centerWindow},set:function(t){this._centerWindow=t,this._dictionary.items.setValue(this._dictionaryProperties.centerWindow,new Fr(this._centerWindow))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"displayTitle",{get:function(){return this._displayTitle},set:function(t){this._displayTitle=t,this._dictionary.items.setValue(this._dictionaryProperties.displayTitle,new Fr(this._displayTitle))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fitWindow",{get:function(){return this._fitWindow},set:function(t){this._fitWindow=t,this._dictionary.items.setValue(this._dictionaryProperties.fitWindow,new Fr(this._fitWindow))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hideMenuBar",{get:function(){return this._hideMenuBar},set:function(t){this._hideMenuBar=t,this._dictionary.items.setValue(this._dictionaryProperties.hideMenuBar,new Fr(this._hideMenuBar))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hideToolBar",{get:function(){return this._hideToolBar},set:function(t){this._hideToolBar=t,this._dictionary.items.setValue(this._dictionaryProperties.hideToolBar,new Fr(this._hideToolBar))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hideWindowUI",{get:function(){return this._hideWindowUI},set:function(t){this._hideWindowUI=t,this._dictionary.items.setValue(this._dictionaryProperties.hideWindowUI,new Fr(this._hideWindowUI))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pageMode",{get:function(){return this._pageMode},set:function(t){this._pageMode=t,this._catalog.items.setValue(this._dictionaryProperties.pageMode,new fi(this._mapPageMode(this._pageMode)))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"duplex",{get:function(){return this._duplex},set:function(t){this._duplex=t,this._catalog.items.setValue(this._dictionaryProperties.duplex,new fi(this._mapDuplexMode(this._duplex)))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pageLayout",{get:function(){return this._pageLayout},set:function(t){this._pageLayout=t,this._catalog.items.setValue(this._dictionaryProperties.pageLayout,new fi(this._mapPageLayout(this._pageLayout)))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pageScaling",{get:function(){return this._pageScaling},set:function(t){this._pageScaling=t,this._pageScaling===Vr.AppDefault&&this._dictionary.items.containsKey(this._dictionaryProperties.printScaling)?this._dictionary.items.remove(this._dictionaryProperties.printScaling):this._pageScaling===Vr.None&&this._dictionary.items.setValue(this._dictionaryProperties.printScaling,new fi("None"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this._dictionary},enumerable:!0,configurable:!0}),t.prototype._mapDuplexMode=function(t){switch(t){case Rr.Simplex:return"Simplex";case Rr.DuplexFlipShortEdge:return"DuplexFlipShortEdge";case Rr.DuplexFlipLongEdge:return"DuplexFlipLongEdge";case Rr.None:return"None"}},t.prototype._mapPageMode=function(t){switch(t){case Qr.UseNone:return"UseNone";case Qr.UseOutlines:return"UseOutlines";case Qr.UseThumbs:return"UseThumbs";case Qr.FullScreen:return"FullScreen";case Qr.UseOC:return"UseOC";case Qr.UseAttachments:return"UseAttachments"}},t.prototype._mapPageLayout=function(t){switch(t){case Yr.SinglePage:return"SinglePage";case Yr.OneColumn:return"OneColumn";case Yr.TwoColumnLeft:return"TwoColumnLeft";case Yr.TwoColumnRight:return"TwoColumnRight";case Yr.TwoPageLeft:return"TwoPageLeft";case Yr.TwoPageRight:return"TwoPageRight"}},t}();!function(t){t[t.UseNone=0]="UseNone",t[t.UseOutlines=1]="UseOutlines",t[t.UseThumbs=2]="UseThumbs",t[t.FullScreen=3]="FullScreen",t[t.UseOC=4]="UseOC",t[t.UseAttachments=5]="UseAttachments"}(Qr||(Qr={})),function(t){t[t.SinglePage=0]="SinglePage",t[t.OneColumn=1]="OneColumn",t[t.TwoColumnLeft=2]="TwoColumnLeft",t[t.TwoColumnRight=3]="TwoColumnRight",t[t.TwoPageLeft=4]="TwoPageLeft",t[t.TwoPageRight=5]="TwoPageRight"}(Yr||(Yr={})),function(t){t[t.Simplex=0]="Simplex",t[t.DuplexFlipShortEdge=1]="DuplexFlipShortEdge",t[t.DuplexFlipLongEdge=2]="DuplexFlipLongEdge",t[t.None=3]="None"}(Rr||(Rr={})),function(t){t[t.AppDefault=0]="AppDefault",t[t.None=1]="None"}(Vr||(Vr={}));var Wr,Gr,Hr,qr,_r,Jr,Zr=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Kr=function(t){function e(){var e=t.call(this)||this;return e.sections=null,e.tempDictionaryProperties=new yi,e.items.setValue((new yi).type,new fi("Catalog")),e}return Zr(e,t),Object.defineProperty(e.prototype,"pages",{get:function(){return this.sections},set:function(t){t.element,this.sections=t,this.items.setValue(this.tempDictionaryProperties.pages,new rr(t))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"viewerPreferences",{get:function(){return null!==this._viewerPreferences&&void 0!==this._viewerPreferences||(this._viewerPreferences=new Br(this),this.items.setValue(this.tempDictionaryProperties.viewerPreferences,new rr(this._viewerPreferences.element))),this._viewerPreferences},enumerable:!0,configurable:!0}),e}(mi),Xr=function(){function t(){this.objects=new di,this.maxGenNumIndex=0,this.objectCount=0,this.dictionaryProperties=new yi}return Object.defineProperty(t.prototype,"isMerging",{get:function(){return this.merging},set:function(t){this.merging=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"trailer",{get:function(){return null==this.internalTrailer&&(this.internalTrailer=new Yi),this.internalTrailer},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"document",{get:function(){return this.pdfDocument},set:function(t){this.pdfDocument=t,this.items=this.pdfDocument.pdfObjects},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pdfObjects",{get:function(){return this.items},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"objectCollection",{get:function(){return this.pdfDocument.pdfObjects},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"count",{get:function(){return this.objectCount},set:function(t){this.objectCount=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"nextObjNumber",{get:function(){return this.count=this.count+1,this.count},enumerable:!0,configurable:!0}),t.prototype.save=function(t,e){this.saveHead(t),this.mappedReferences=null,this.objects.clear(),this.markTrailerReferences(),this.saveObjects(t);var i=this.count,r=t.position;this.registerObject(0,new ir(0,-1),!0);t.write(Mi.xref),t.write(Mi.newLine),this.saveSections(t),this.saveTrailer(t,this.count,0),this.saveTheEndess(t,r),this.count=i;for(var n=0;n<this.objectCollection.count;++n){this.objectCollection.items(n).object.isSaving=!1}if(void 0===e)return t.stream.buffer;t.stream.save(e)},t.prototype.saveTheEndess=function(t,e){t.write(Mi.newLine+Mi.startxref+Mi.newLine),t.write(e.toString()+Mi.newLine),t.write(Mi.eof+Mi.newLine)},t.prototype.saveTrailer=function(t,e,i){t.write(Mi.trailer+Mi.newLine);var r=this.trailer;r.items.setValue(this.dictionaryProperties.size,new Ii(this.objectCount+1)),(r=new mi(r)).setEncrypt(!1),r.save(t)},t.prototype.saveSections=function(t){var e=0,i=0;do{i=this.prepareSubsection(e),this.saveSubsection(t,e,i),e+=i}while(0!==i)},t.prototype.saveSubsection=function(t,e,i){if(!(i<=0||e>=this.count)){t.write(e+" "+(i+1)+Mi.newLine);for(var r=e;r<=e+i;++r){var n=this.objects.getValue(r),o="";o=n.type===Er.Free?this.getItem(n.offset,65535,!0):this.getItem(n.offset,n.generation,!1),t.write(o)}}},t.prototype.getItem=function(t,e,i){var r="",n=10-t.toString().length;e<=0&&(e=0);for(var o=5-e.toString().length<=0?0:5-e.toString().length,s=0;s<n;s++)r+="0";r=r+t.toString()+" ";for(s=0;s<o;s++)r+="0";return r=(r=r+e.toString()+" ")+(i?Mi.f:Mi.n)+Mi.newLine},t.prototype.prepareSubsection=function(t){for(var e,i=0,r=this.count,n=0;n<this.document.pdfObjects.count;n++){this.document.pdfObjects.items(n).reference.toString().split(" ")}if(t>=r)return i;for(t=e=t;e<r;++e)++i;return i},t.prototype.markTrailerReferences=function(){this.trailer.items.keys(),this.trailer.items.values()},t.prototype.saveHead=function(t){var e=this.generateFileVersion(t.document);t.write("%PDF-"+e),t.write(Mi.newLine)},t.prototype.generateFileVersion=function(t){return"1."+4..toString()},t.prototype.getReference=function(t,e){if(void 0===e){return this.getReference(t,!1)}return this.getSubReference(t,e)},t.prototype.getSubReference=function(t,e){var i,r=!1,n=null;if(this.items.count>0&&t.objectCollectionIndex>0&&this.items.count>t.objectCollectionIndex-1){var o=this.document.pdfObjects.getReference(t,i);n=o.reference,i=o.wasNew}if(i=null==n&&t.status!==Ar.Registered,null==n){var s=this.nextObjNumber;n=new ir(s,0);var a=void 0;if(i){this.document.pdfObjects.add(t),this.document.pdfObjects.trySetReference(t,n,a);var u=this.document.pdfObjects.count-1,c=this.document.pdfObjects.objectCollections[u].reference.objNumber,h=this.document.pdfObjects.objectCollections[this.document.pdfObjects.count-1];this.document.pdfObjects.mainObjectCollection.setValue(c,h),t.position=-1}else this.document.pdfObjects.trySetReference(t,n,a);t.objectCollectionIndex=n.objNumber,t.status=Ar.None,r=!0}return r||this.bForceNew,n},t.prototype.saveObjects=function(t){for(var e=this.objectCollection,i=0;i<e.count;++i){var r=e.items(i).object;r.isSaving=!0,this.saveIndirectObject(r,t)}},t.prototype.saveIndirectObject=function(t,e){var i=this.getReference(t);t instanceof Kr&&this.trailer.items.setValue(this.dictionaryProperties.root,i),this.pdfDocument.currentSavingObj=i,t.getArchive(),this.registerObject(e.position,i),this.doSaveObject(t,i,e)},t.prototype.doSaveObject=function(t,e,i){i.length,i.write(e.objNumber.toString()),i.write(Mi.whiteSpace),i.write(e.genNumber.toString()),i.write(Mi.whiteSpace),i.write(Mi.obj),i.write(Mi.newLine),t.save(i),i.stream,i.write(Mi.endObj),i.write(Mi.newLine)},t.prototype.registerObject=function(t,e,i){"boolean"==typeof i?(this.objects.setValue(e.objNumber,new $r(t,e,i)),this.maxGenNumIndex=Math.max(this.maxGenNumIndex,e.genNumber)):void 0===i&&(this.objects.setValue(e.objNumber,new $r(t,e)),this.maxGenNumIndex=Math.max(this.maxGenNumIndex,e.genNumber))},t.dereference=function(t){return null!=t&&(t=t.object),t},t}(),$r=function(){function t(t,e,i){var r=t;this.offsetNumber=r;var n=e;this.generation=n.genNumber,this.object=n.objNumber,this.type=void 0===i?Er.Normal:Er.Free}return Object.defineProperty(t.prototype,"objectNumber",{get:function(){return this.object},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"offset",{get:function(){return this.offsetNumber},enumerable:!0,configurable:!0}),t}(),tn=function(){function t(){}return t.letter=new Nr(612,792),t.note=new Nr(540,720),t.legal=new Nr(612,1008),t.a0=new Nr(2380,3368),t.a1=new Nr(1684,2380),t.a2=new Nr(1190,1684),t.a3=new Nr(842,1190),t.a4=new Nr(595,842),t.a5=new Nr(421,595),t.a6=new Nr(297,421),t.a7=new Nr(210,297),t.a8=new Nr(148,210),t.a9=new Nr(105,148),t.a10=new Nr(74,105),t.b0=new Nr(2836,4008),t.b1=new Nr(2004,2836),t.b2=new Nr(1418,2004),t.b3=new Nr(1002,1418),t.b4=new Nr(709,1002),t.b5=new Nr(501,709),t.archE=new Nr(2592,3456),t.archD=new Nr(1728,2592),t.archC=new Nr(1296,1728),t.archB=new Nr(864,1296),t.archA=new Nr(648,864),t.flsa=new Nr(612,936),t.halfLetter=new Nr(396,612),t.letter11x17=new Nr(792,1224),t.ledger=new Nr(1224,792),t}();!function(t){t[t.Portrait=0]="Portrait",t[t.Landscape=1]="Landscape"}(Wr||(Wr={})),function(t){t[t.RotateAngle0=0]="RotateAngle0",t[t.RotateAngle90=1]="RotateAngle90",t[t.RotateAngle180=2]="RotateAngle180",t[t.RotateAngle270=3]="RotateAngle270"}(Gr||(Gr={})),function(t){t[t.None=0]="None",t[t.Numeric=1]="Numeric",t[t.LowerLatin=2]="LowerLatin",t[t.LowerRoman=3]="LowerRoman",t[t.UpperLatin=4]="UpperLatin",t[t.UpperRoman=5]="UpperRoman"}(Hr||(Hr={})),function(t){t[t.None=0]="None",t[t.Bottom=1]="Bottom",t[t.Top=2]="Top",t[t.Left=3]="Left",t[t.Right=4]="Right",t[t.Fill=5]="Fill"}(qr||(qr={})),function(t){t[t.None=0]="None",t[t.TopLeft=1]="TopLeft",t[t.TopCenter=2]="TopCenter",t[t.TopRight=3]="TopRight",t[t.MiddleLeft=4]="MiddleLeft",t[t.MiddleCenter=5]="MiddleCenter",t[t.MiddleRight=6]="MiddleRight",t[t.BottomLeft=7]="BottomLeft",t[t.BottomCenter=8]="BottomCenter",t[t.BottomRight=9]="BottomRight"}(_r||(_r={})),function(t){t[t.None=0]="None",t[t.Top=1]="Top",t[t.Bottom=2]="Bottom",t[t.Left=3]="Left",t[t.Right=4]="Right"}(Jr||(Jr={}));var en,rn=function(){function t(){this.pdfMargin=40,this.setMargins(this.pdfMargin)}return Object.defineProperty(t.prototype,"left",{get:function(){return this.leftMargin},set:function(t){this.leftMargin=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return this.topMargin},set:function(t){this.topMargin=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return this.rightMargin},set:function(t){this.rightMargin=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return this.bottomMargin},set:function(t){this.bottomMargin=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"all",{set:function(t){this.setMargins(t)},enumerable:!0,configurable:!0}),t.prototype.setMargins=function(t,e,i,r){void 0===e?this.leftMargin=this.topMargin=this.rightMargin=this.bottomMargin=t:void 0===i?(this.leftMargin=this.rightMargin=t,this.bottomMargin=this.topMargin=e):(this.leftMargin=t,this.topMargin=e,this.rightMargin=i,this.bottomMargin=r)},t.prototype.clone=function(){return this},t}(),nn=function(){function t(t){this.pageMargins=new rn,this.pageSize=tn.a4,this.rotateAngle=Gr.RotateAngle0,this.pageOrientation=Wr.Portrait,this.pageOrigin=new mr(0,0),this.isRotation=!1,"number"==typeof t&&this.pageMargins.setMargins(t)}return Object.defineProperty(t.prototype,"size",{get:function(){return this.pageSize},set:function(t){this.setSize(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"orientation",{get:function(){return this.pageOrientation},set:function(t){this.pageOrientation!==t&&(this.pageOrientation=t,this.updateSize(t))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"margins",{get:function(){return this.pageMargins},set:function(t){this.pageMargins=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.pageSize.width},set:function(t){this.pageSize.width=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.pageSize.height},set:function(t){this.pageSize.height=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"origin",{get:function(){return this.pageOrigin},set:function(t){this.pageOrigin=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rotate",{get:function(){return this.rotateAngle},set:function(t){this.rotateAngle=t,this.isRotation=!0},enumerable:!0,configurable:!0}),t.prototype.updateSize=function(t){var e=Math.min(this.pageSize.width,this.pageSize.height),i=Math.max(this.pageSize.width,this.pageSize.height);switch(t){case Wr.Portrait:this.pageSize=new Nr(e,i);break;case Wr.Landscape:this.pageSize=new Nr(i,e)}},t.prototype.clone=function(){return this.pageMargins=this.pageMargins.clone(),this},t.prototype.getActualSize=function(){var t=this.width-(this.margins.left+this.margins.right),e=this.height-(this.margins.top+this.margins.bottom);return new Nr(t,e)},t.prototype.setSize=function(t){var e=Math.min(t.width,t.height),i=Math.max(t.width,t.height);this.orientation===Wr.Portrait?this.pageSize=new Nr(e,i):this.pageSize=new Nr(i,e)},t}(),on=function(){function t(t){if(null==t)throw new Error("ArgumentNullException:stream");this.stream=t}return t.prototype.clear=function(){this.stream.clearStream()},t.prototype.setGraphicsState=function(t){t instanceof fi?(this.stream.write(t.toString()),this.stream.write(Mi.whiteSpace),this.writeOperator(Mi.setGraphicsState)):(this.stream.write(Mi.slash),this.stream.write(t),this.stream.write(Mi.whiteSpace),this.writeOperator(Mi.setGraphicsState))},t.prototype.executeObject=function(t){this.stream.write(t.toString()),this.stream.write(Mi.whiteSpace),this.writeOperator(Mi.paintXObject),this.stream.write(Mi.newLine)},t.prototype.closePath=function(){this.writeOperator(Mi.closePath)},t.prototype.clipPath=function(t){this.stream.write(Mi.clipPath),t&&this.stream.write(Mi.evenOdd),this.stream.write(Mi.whiteSpace),this.stream.write(Mi.endPath),this.stream.write(Mi.newLine)},t.prototype.closeFillStrokePath=function(t){this.stream.write(Mi.closeFillStrokePath),t?(this.stream.write(Mi.evenOdd),this.stream.write(Mi.newLine)):this.stream.write(Mi.newLine)},t.prototype.fillStrokePath=function(t){this.stream.write(Mi.fillStroke),t?(this.stream.write(Mi.evenOdd),this.stream.write(Mi.newLine)):this.stream.write(Mi.newLine)},t.prototype.fillPath=function(t){this.stream.write(Mi.fill),t?(this.stream.write(Mi.evenOdd),this.stream.write(Mi.newLine)):this.stream.write(Mi.newLine)},t.prototype.endPath=function(){this.writeOperator(Mi.n)},t.prototype.closeFillPath=function(t){this.writeOperator(Mi.closePath),this.stream.write(Mi.fill),t?(this.stream.write(Mi.evenOdd),this.stream.write(Mi.newLine)):this.stream.write(Mi.newLine)},t.prototype.closeStrokePath=function(){this.writeOperator(Mi.closeStrokePath)},t.prototype.setTextScaling=function(t){this.stream.write(Ii.floatToString(t)),this.stream.write(Mi.whiteSpace),this.writeOperator(Mi.setTextScaling)},t.prototype.strokePath=function(){this.writeOperator(Mi.stroke)},t.prototype.restoreGraphicsState=function(){this.writeOperator(Mi.restoreState)},t.prototype.saveGraphicsState=function(){this.writeOperator(Mi.saveState)},t.prototype.startNextLine=function(t,e){void 0===t?this.writeOperator(Mi.goToNextLine):t instanceof mr?(this.writePoint(t),this.writeOperator(Mi.setCoords)):(this.writePoint(t,e),this.writeOperator(Mi.setCoords))},t.prototype.showText=function(t){this.checkTextParam(t),this.writeText(t),this.writeOperator(Mi.setText)},t.prototype.setLeading=function(t){this.stream.write(Ii.floatToString(t)),this.stream.write(Mi.whiteSpace),this.writeOperator(Mi.setTextLeading)},t.prototype.beginPath=function(t,e){this.writePoint(t,e),this.writeOperator(Mi.beginPath)},t.prototype.beginText=function(){this.writeOperator(Mi.beginText)},t.prototype.endText=function(){this.writeOperator(Mi.endText)},t.prototype.appendRectangle=function(t,e,i,r){t instanceof jr?this.appendRectangle(t.x,t.y,t.width,t.height):(this.writePoint(t,e),this.writePoint(i,r),this.writeOperator(Mi.appendRectangle))},t.prototype.appendLineSegment=function(t,e){t instanceof mr?this.appendLineSegment(t.x,t.y):(this.writePoint(t,e),this.writeOperator(Mi.appendLineSegment))},t.prototype.setTextRenderingMode=function(t){this.stream.write(t.toString()),this.stream.write(Mi.whiteSpace),this.writeOperator(Mi.setRenderingMode)},t.prototype.setCharacterSpacing=function(t){this.stream.write(Ii.floatToString(t)),this.stream.write(Mi.whiteSpace),this.stream.write(Mi.setCharacterSpace),this.stream.write(Mi.newLine)},t.prototype.setWordSpacing=function(t){this.stream.write(Ii.floatToString(t)),this.stream.write(Mi.whiteSpace),this.writeOperator(Mi.setWordSpace)},t.prototype.showNextLineText=function(t,e){t instanceof er?(this.checkTextParam(t),this.writeText(t),this.writeOperator(Mi.setTextOnNewLine)):(this.checkTextParam(t),this.writeText(t,e),this.writeOperator(Mi.setTextOnNewLine))},t.prototype.setColorSpace=function(t,e){if(t instanceof fi&&"boolean"==typeof e){var i=t,r=(n=e)?Mi.selectcolorspaceforstroking:Mi.selectcolorspacefornonstroking;this.stream.write(i.toString()),this.stream.write(Mi.whiteSpace),this.stream.write(r),this.stream.write(Mi.newLine)}else{i=t;var n=e;this.setColorSpace(new fi(i),n)}},t.prototype.modifyCtm=function(t){if(null==t)throw new Error("ArgumentNullException:matrix");this.stream.write(t.toString()),this.stream.write(Mi.whiteSpace),this.writeOperator(Mi.modifyCtm)},t.prototype.setFont=function(t,e,i){if("string"==typeof e)this.setFont(t,new fi(e),i);else{if(null==t)throw new Error("ArgumentNullException:font");this.stream.write(e.toString()),this.stream.write(Mi.whiteSpace),this.stream.write(Ii.floatToString(i)),this.stream.write(Mi.whiteSpace),this.writeOperator(Mi.setFont)}},t.prototype.writeOperator=function(t){this.stream.write(t),this.stream.write(Mi.newLine)},t.prototype.checkTextParam=function(t){if(null==t)throw new Error("ArgumentNullException:text");if("string"==typeof t&&""===t)throw new Error("ArgumentException:The text can not be an empty string, text")},t.prototype.writeText=function(t,e){if(t instanceof er&&void 0===e)this.stream.write(t.pdfEncode());else{var i=void 0,r=void 0;e?(i=er.hexStringMark[0],r=er.hexStringMark[1]):(i=er.stringMark[0],r=er.stringMark[1]),this.stream.write(i),this.stream.write(t),this.stream.write(r)}},t.prototype.writePoint=function(t,e){if(t instanceof mr&&void 0===e)this.writePoint(t.x,t.y);else{var i=t;this.stream.write(Ii.floatToString(i)),this.stream.write(Mi.whiteSpace),e=this.updateY(e),this.stream.write(Ii.floatToString(e)),this.stream.write(Mi.whiteSpace)}},t.prototype.updateY=function(t){return-t},t.prototype.write=function(t){var e="";e+=t,e+=Mi.newLine,this.writeOperator(e)},t.prototype.writeComment=function(t){if(!(null!=t&&t.length>0))throw new Error("Invalid comment");var e="";e+=Mi.comment,e+=Mi.whiteSpace,e+=t,this.writeOperator(e)},t.prototype.setColorAndSpace=function(t,e,i){t.isEmpty||(this.stream.write(t.toString(e,i)),this.stream.write(Mi.newLine))},t.prototype.setLineDashPattern=function(t,e){this.setLineDashPatternHelper(t,e)},t.prototype.setLineDashPatternHelper=function(t,e){var i="[";if(t.length>1)for(var r=0;r<t.length;r++)r===t.length-1?i+=t[r].toString():i+=t[r].toString()+" ";i+="] ",i+=e.toString(),i+=" "+Mi.setDashPattern,this.stream.write(i),this.stream.write(Mi.newLine)},t.prototype.setMiterLimit=function(t){this.stream.write(Ii.floatToString(t)),this.stream.write(Mi.whiteSpace),this.writeOperator(Mi.setMiterLimit)},t.prototype.setLineWidth=function(t){this.stream.write(Ii.floatToString(t)),this.stream.write(Mi.whiteSpace),this.writeOperator(Mi.setLineWidth)},t.prototype.setLineCap=function(t){this.stream.write(t.toString()),this.stream.write(Mi.whiteSpace),this.writeOperator(Mi.setLineCapStyle)},t.prototype.setLineJoin=function(t){this.stream.write(t.toString()),this.stream.write(Mi.whiteSpace),this.writeOperator(Mi.setLineJoinStyle)},Object.defineProperty(t.prototype,"position",{get:function(){return this.stream.position},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){var t=0;if(0!==this.stream.data.length&&-1!==this.stream.data.length)for(var e=0;e<this.stream.data.length;e++)t+=this.stream.data[e].length;return t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"document",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.appendBezierSegment=function(t,e,i,r,n,o){t instanceof mr&&e instanceof mr&&i instanceof mr?(this.writePoint(t.x,t.y),this.writePoint(e.x,e.y),this.writePoint(i.x,i.y)):(this.writePoint(t,e),this.writePoint(i,r),this.writePoint(n,o)),this.writeOperator(Mi.appendbeziercurve)},t.prototype.setColourWithPattern=function(t,e,i){if(null!=t){var r=t.length,n=0;for(n=0;n<r;++n)this.stream.write(t[n].toString()),this.stream.write(Mi.whiteSpace)}null!=e&&(this.stream.write(e.toString()),this.stream.write(Mi.whiteSpace)),i?this.writeOperator(Mi.setColorAndPatternStroking):this.writeOperator(Mi.setColorAndPattern)},t}(),sn=function(){function t(t,e){this.pdfColor=new yr(0,0,0),this.dashOffsetValue=0,this.penDashPattern=[0],this.pdfDashStyle=_i.Solid,this.pdfLineCap=0,this.pdfLineJoin=0,this.penWidth=1,this.internalMiterLimit=0,this.colorSpace=Zi.Rgb,t instanceof Sr?this.setBrush(t):t instanceof yr&&(this.color=t),"number"==typeof e&&(this.width=e)}return Object.defineProperty(t.prototype,"color",{get:function(){return this.pdfColor},set:function(t){this.pdfColor=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dashOffset",{get:function(){return void 0===this.dashOffsetValue||null==this.dashOffsetValue?0:this.dashOffsetValue},set:function(t){this.dashOffsetValue=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dashPattern",{get:function(){return this.penDashPattern},set:function(t){this.penDashPattern=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dashStyle",{get:function(){return this.pdfDashStyle},set:function(t){if(this.pdfDashStyle!==t)switch(this.pdfDashStyle=t,this.pdfDashStyle){case _i.Custom:break;case _i.Dash:this.penDashPattern=[3,1];break;case _i.Dot:this.penDashPattern=[1,1];break;case _i.DashDot:this.penDashPattern=[3,1,1,1];break;case _i.DashDotDot:this.penDashPattern=[3,1,1,1,1,1];break;case _i.Solid:break;default:this.pdfDashStyle=_i.Solid,this.penDashPattern=[0]}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineCap",{get:function(){return this.pdfLineCap},set:function(t){this.pdfLineCap=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineJoin",{get:function(){return this.pdfLineJoin},set:function(t){this.pdfLineJoin=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"miterLimit",{get:function(){return this.internalMiterLimit},set:function(t){this.internalMiterLimit=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.penWidth},set:function(t){this.penWidth=t},enumerable:!0,configurable:!0}),t.prototype.clone=function(){return this},t.prototype.setBrush=function(t){var e=t;null!=e&&e instanceof Ir&&(this.color=e.color,this.pdfBrush=e),this.color=e.color,this.pdfBrush=e},t.prototype.monitorChanges=function(t,e,i,r,n,o){this.dashControl(t,true,e),e.setLineWidth(this.width),e.setLineJoin(this.lineJoin),e.setLineCap(this.lineCap);var s=this.miterLimit;return s>0&&(e.setMiterLimit(s),!0),this.pdfBrush,e.setColorAndSpace(this.color,n,!0),!0},t.prototype.dashControl=function(t,e,i){var r=this.width,n=this.getPattern();return i.setLineDashPattern(n,this.dashOffset*r),true},t.prototype.getPattern=function(){for(var t=this.dashPattern,e=0;e<t.length;++e)t[e]*=this.width;return t},t}(),an=function(){function t(t){this.radDegFactor=180/Math.PI,this.transformationMatrix=new un(1,0,0,void 0===t?1:-1,0,0)}return Object.defineProperty(t.prototype,"matrix",{get:function(){return this.transformationMatrix},set:function(t){this.transformationMatrix=t},enumerable:!0,configurable:!0}),t.prototype.translate=function(t,e){this.transformationMatrix.translate(t,e)},t.prototype.scale=function(t,e){this.transformationMatrix.elements[0]=t,this.transformationMatrix.elements[3]=e},t.prototype.rotate=function(t){t=t*Math.PI/180,this.transformationMatrix.elements[0]=Math.cos(t),this.transformationMatrix.elements[1]=Math.sin(t),this.transformationMatrix.elements[2]=-Math.sin(t),this.transformationMatrix.elements[3]=Math.cos(t)},t.prototype.toString=function(){for(var t="",e=0,i=this.transformationMatrix.elements.length;e<i;e++)this.matrix.elements[e],t+=Ii.floatToString(this.transformationMatrix.elements[e]),t+=" ";return t},t.prototype.multiply=function(t){this.transformationMatrix.multiply(t.matrix)},t.degreesToRadians=function(t){return this.degRadFactor*t},t.prototype.radiansToDegrees=function(t){return this.radDegFactor*t},t.prototype.clone=function(){return this},t.degRadFactor=Math.PI/180,t}(),un=function(){function t(t,e,i,r,n,o){void 0===t?this.metrixElements=[]:"number"==typeof t?(this.metrixElements=[],this.metrixElements.push(t),this.metrixElements.push(e),this.metrixElements.push(i),this.metrixElements.push(r),this.metrixElements.push(n),this.metrixElements.push(o)):this.metrixElements=t}return Object.defineProperty(t.prototype,"elements",{get:function(){return this.metrixElements},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"offsetX",{get:function(){return this.metrixElements[4]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"offsetY",{get:function(){return this.metrixElements[5]},enumerable:!0,configurable:!0}),t.prototype.translate=function(t,e){this.metrixElements[4]=t,this.metrixElements[5]=e},t.prototype.transform=function(t){var e=t.x,i=t.y,r=e*this.elements[0]+i*this.elements[2]+this.offsetX,n=e*this.elements[1]+i*this.elements[3]+this.offsetY;return new mr(r,n)},t.prototype.multiply=function(t){var e=[];e.push(this.elements[0]*t.elements[0]+this.elements[1]*t.elements[2]),e[1]=this.elements[0]*t.elements[1]+this.elements[1]*t.elements[3],e[2]=this.elements[2]*t.elements[0]+this.elements[3]*t.elements[2],e[3]=this.elements[2]*t.elements[1]+this.elements[3]*t.elements[3],e[4]=this.offsetX*t.elements[0]+this.offsetY*t.elements[2]+t.offsetX,e[5]=this.offsetX*t.elements[1]+this.offsetY*t.elements[3]+t.offsetY;for(var i=0;i<e.length;i++)this.elements[i]=e[i]},t.prototype.dispose=function(){this.metrixElements=null},t.prototype.clone=function(){return new t(this.metrixElements)},t}(),cn=function(){this.pdf="PDF",this.text="Text",this.imageB="ImageB",this.imageC="ImageC",this.imageI="ImageI"},hn=function(){function t(){this.mKeys=[],this.mValues=[]}return t.prototype.size=function(){return this.mKeys.length},t.prototype.add=function(t,e){if(null==t||null==e)throw new ReferenceError("Provided key or value is not valid.");if(this.mKeys.indexOf(t)<0)return this.mKeys.push(t),this.mValues.push(e),1;throw new RangeError("An item with the same key has already been added.")},t.prototype.keys=function(){return this.mKeys},t.prototype.values=function(){return this.mValues},t.prototype.getValue=function(t){if(null==t)throw new ReferenceError("Provided key is not valid.");var e=this.mKeys.indexOf(t);if(e<0)throw new RangeError("No item with the specified key has been added.");return this.mValues[e]},t.prototype.setValue=function(t,e){if(null==t)throw new ReferenceError("Provided key is not valid.");var i=this.mKeys.indexOf(t);i<0?(this.mKeys.push(t),this.mValues.push(e)):this.mValues[i]=e},t.prototype.remove=function(t){if(null==t)throw new ReferenceError("Provided key is not valid.");var e=this.mKeys.indexOf(t);if(e<0)throw new RangeError("No item with the specified key has been added.");return this.mKeys.splice(e,1),this.mValues.splice(e,1),!0},t.prototype.containsKey=function(t){if(null==t)throw new ReferenceError("Provided key is not valid.");return!(this.mKeys.indexOf(t)<0)},t.prototype.clear=function(){this.mKeys=[],this.mValues=[]},t}(),ln=function(){function t(t,e,i){this.dictionary=new mi,this.dictionaryProperties=new yi,this.dictionary.items.setValue(this.dictionaryProperties.CA,new Ii(t)),this.dictionary.items.setValue(this.dictionaryProperties.ca,new Ii(e)),this.dictionary.items.setValue(this.dictionaryProperties.BM,new fi(i.toString()))}return Object.defineProperty(t.prototype,"element",{get:function(){return this.dictionary},enumerable:!0,configurable:!0}),t}(),pn=function(){function t(){this.automaticFieldsInformation=[]}return Object.defineProperty(t.prototype,"automaticFields",{get:function(){return this.automaticFieldsInformation},enumerable:!0,configurable:!0}),t.prototype.add=function(t){return this.automaticFields.push(t)},t}(),gn=function(){function t(){}return t.prototype.drawHelper=function(t,e,i){var r=0!==e||0!==i,n=null;r&&(n=t.save(),t.translateTransform(e,i)),this.drawInternal(t),r&&t.restore(n)},t}(),dn=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),fn=function(t){function e(){var e=t.call(this)||this;return e.internalBounds=new jr(0,0,0,0),e.internalTemplateSize=new Nr(0,0),e}return dn(e,t),Object.defineProperty(e.prototype,"bounds",{get:function(){return this.internalBounds},set:function(t){this.internalBounds=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return new Nr(this.bounds.width,this.bounds.height)},set:function(t){this.bounds.width=t.width,this.bounds.height=t.height},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"location",{get:function(){return new mr(this.bounds.x,this.bounds.y)},set:function(t){this.bounds.x=t.x,this.bounds.y=t.y},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"font",{get:function(){return this.internalFont},set:function(t){this.internalFont=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"brush",{get:function(){return this.internalBrush},set:function(t){this.internalBrush=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pen",{get:function(){return this.internalPen},set:function(t){this.internalPen=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"stringFormat",{get:function(){return this.internalStringFormat},set:function(t){this.internalStringFormat=t},enumerable:!0,configurable:!0}),e.prototype.performDrawHelper=function(t,e,i,r){if(0===this.bounds.height||0===this.bounds.width){var n=this.getValue(t);this.internalTemplateSize=this.getFont().measureString(n,this.size,this.stringFormat)}},e.prototype.draw=function(t,e,i){if(void 0===e){var r=new mr(0,0);this.draw(t,r)}else if(e instanceof mr)this.draw(t,e.x,e.y);else{this.drawHelper(t,e,i);var n=new Mn(this,new mr(e,i));t.automaticFields.add(n)}},e.prototype.getSize=function(){return 0===this.bounds.height||0===this.bounds.width?this.internalTemplateSize:this.size},e.prototype.drawInternal=function(t){},e.prototype.getBrush=function(){return void 0===this.internalBrush||null==this.internalBrush?new Ir(new yr(0,0,0)):this.internalBrush},e.prototype.getFont=function(){return void 0===this.internalFont||null==this.internalFont?Co.defaultFont:this.internalFont},e.prototype.getPageFromGraphics=function(t){return void 0!==t.page&&null!==t.page?t.page:t.currentPage},e}(gn),Mn=function(){function t(e,i,r,n){this.pageNumberFieldLocation=new mr,this.pageNumberField=null,this.scaleX=1,this.scaleY=1,void 0===i&&e instanceof t?(this.pageNumberField=e.field,this.pageNumberFieldLocation=e.location,this.scaleX=e.scalingX,this.scaleY=e.scalingY):void 0===r&&i instanceof mr&&e instanceof fn?(this.pageNumberField=e,this.pageNumberFieldLocation=i):(this.pageNumberField=e,this.pageNumberFieldLocation=i,this.scaleX=r,this.scaleY=n)}return Object.defineProperty(t.prototype,"location",{get:function(){return this.pageNumberFieldLocation},set:function(t){this.pageNumberFieldLocation=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"field",{get:function(){return this.pageNumberField},set:function(t){this.pageNumberField=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scalingX",{get:function(){return this.scaleX},set:function(t){this.scaleX=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scalingY",{get:function(){return this.scaleY},set:function(t){this.scaleY=t},enumerable:!0,configurable:!0}),t}(),yn=function(){function t(t){this.mPosition=0,this.buffer=new Uint8Array(t),this.dataView=new DataView(this.buffer.buffer)}return Object.defineProperty(t.prototype,"position",{get:function(){return this.mPosition},set:function(t){this.mPosition=t},enumerable:!0,configurable:!0}),t.prototype.read=function(t,e,i){for(var r=e;r<i;r++){var n=this.position;t.buffer[r]=this.readByte(n),this.position++}},t.prototype.getBuffer=function(t){return this.buffer[t]},t.prototype.writeFromBase64String=function(t){var e=this.encodedString(t);this.buffer=e},t.prototype.encodedString=function(t){var e,i,r,n,o,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a=0,u=0,c=3*(t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"")).length/4;t.charAt(t.length-1)===s.charAt(64)&&c--;for(var h=new Uint8Array(0|c);a<t.length;)e=s.indexOf(t.charAt(a++))<<2|(n=s.indexOf(t.charAt(a++)))>>4,i=(15&n)<<4|(o=s.indexOf(t.charAt(a++)))>>2,r=(3&o)<<6|s.indexOf(t.charAt(a++)),h[u++]=e,h[u++]=i,h[u++]=r;return h},t.prototype.readByte=function(t){return this.buffer[t]},Object.defineProperty(t.prototype,"internalBuffer",{get:function(){return this.buffer},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"count",{get:function(){return this.buffer.byteLength},enumerable:!0,configurable:!0}),t.prototype.readNextTwoBytes=function(t){var e=t.readByte(this.position);return this.position++,e<<=8,e|=t.readByte(this.position),this.position++,e},t}();!function(t){t[t.Unknown=0]="Unknown",t[t.Bmp=1]="Bmp",t[t.Emf=2]="Emf",t[t.Gif=3]="Gif",t[t.Jpeg=4]="Jpeg",t[t.Png=5]="Png",t[t.Wmf=6]="Wmf",t[t.Icon=7]="Icon"}(en||(en={}));var mn,Nn,jn,Dn=function(){function t(t){this.sof1Marker=193,this.sof2Marker=194,this.sof3Marker=195,this.sof5Marker=197,this.sof6Marker=198,this.sof7Marker=199,this.sof9Marker=201,this.sof10Marker=202,this.sof11Marker=203,this.sof13Marker=205,this.sof14Marker=206,this.sof15Marker=207,this.mFormat=en.Unknown,this.mbitsPerComponent=8,this.dictionaryProperties=new yi,this.mStream=t,this.initialize()}return Object.defineProperty(t.prototype,"height",{get:function(){return this.mHeight},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.mWidth},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bitsPerComponent",{get:function(){return this.mbitsPerComponent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this.mImageData.count},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imageData",{get:function(){return this.mImageData},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imageDataAsNumberArray",{get:function(){return this.mImageData.internalBuffer.buffer},enumerable:!0,configurable:!0}),t.prototype.initialize=function(){if(this.mFormat!==en.Unknown||!this.checkIfJpeg())throw new TypeError("Only the JPEG format is supported");this.mFormat=en.Jpeg,this.parseJpegImage(),this.reset(),this.mImageData=new yn(this.mStream.count),this.mStream.read(this.mImageData,0,this.mImageData.count)},t.prototype.reset=function(){this.mStream.position=0},t.prototype.parseJpegImage=function(){this.reset();var t=new yn(this.mStream.count);this.mStream.read(t,0,t.count);for(var e=4,i=!1,r=256*t.getBuffer(e)+t.getBuffer(e+1);e<t.count;){if(!((e+=r)<t.count)){i=!0;break}if(192===t.getBuffer(e+1))return this.mHeight=256*t.getBuffer(e+5)+t.getBuffer(e+6),void(this.mWidth=256*t.getBuffer(e+7)+t.getBuffer(e+8));e+=2,r=256*t.getBuffer(e)+t.getBuffer(e+1)}i&&(this.mStream.position=0,this.skip(this.mStream,2),this.readExceededJPGImage(this.mStream))},Object.defineProperty(t.prototype,"format",{get:function(){return this.mFormat},enumerable:!0,configurable:!0}),t.prototype.checkIfJpeg=function(){this.reset();for(var e=0;e<t.mJpegHeader.length;e++){if(t.mJpegHeader[e]!==this.mStream.readByte(e))return!1;this.mStream.position++}return!0},t.prototype.getImageDictionary=function(){if(this.mFormat===en.Jpeg){this.imageData.internalBuffer.length,this.imageStream=new Yi,this.imageStream.isResource=!0;for(var t="",e="",i=0;i<this.imageDataAsNumberArray.byteLength;i++)t+=String.fromCharCode(null,this.mStream.readByte(i));for(i=0;i<t.length;i++)i%2!=0&&(e+=t[i]);return this.imageStream.data=[e],this.imageStream.compress=!1,this.imageStream.items.setValue(this.dictionaryProperties.type,new fi(this.dictionaryProperties.xObject)),this.imageStream.items.setValue(this.dictionaryProperties.subtype,new fi(this.dictionaryProperties.image)),this.imageStream.items.setValue(this.dictionaryProperties.width,new Ii(this.width)),this.imageStream.items.setValue(this.dictionaryProperties.height,new Ii(this.height)),this.imageStream.items.setValue(this.dictionaryProperties.bitsPerComponent,new Ii(this.bitsPerComponent)),this.imageStream.items.setValue(this.dictionaryProperties.filter,new fi(this.dictionaryProperties.dctdecode)),this.imageStream.items.setValue(this.dictionaryProperties.colorSpace,new fi(this.getColorSpace())),this.imageStream.items.setValue(this.dictionaryProperties.decodeParms,this.getDecodeParams()),this.imageStream}return this.imageStream},t.prototype.getColorSpace=function(){return this.dictionaryProperties.deviceRgb},t.prototype.getDecodeParams=function(){var t=new mi;return t.items.setValue(this.dictionaryProperties.columns,new Ii(this.width)),t.items.setValue(this.dictionaryProperties.blackIs1,new Fr(!0)),t.items.setValue(this.dictionaryProperties.k,new Ii(-1)),t.items.setValue(this.dictionaryProperties.predictor,new Ii(15)),t.items.setValue(this.dictionaryProperties.bitsPerComponent,new Ii(this.bitsPerComponent)),t},t.prototype.readExceededJPGImage=function(t){this.mStream=t;for(var e=!0;e;){switch(this.getMarker(t)){case this.sof1Marker:case this.sof2Marker:case this.sof3Marker:case this.sof5Marker:case this.sof6Marker:case this.sof7Marker:case this.sof9Marker:case this.sof10Marker:case this.sof11Marker:case this.sof13Marker:case this.sof14Marker:case this.sof15Marker:t.position+=3,this.mHeight=this.mStream.readNextTwoBytes(t),this.mWidth=this.mStream.readNextTwoBytes(t),e=!1;break;default:this.skipStream(t)}}},t.prototype.skip=function(t,e){this.mStream=t;var i=new yn(e);this.mStream.read(i,0,i.count)},t.prototype.getMarker=function(t){var e=32;for(e=t.readByte(this.mStream.position),t.position++;255!==e;)e=t.readByte(this.mStream.position),t.position++;do{e=t.readByte(this.mStream.position),t.position++}while(255===e);return e},t.prototype.skipStream=function(t){var e=this.mStream.readNextTwoBytes(t)-2;e>0&&(t.position+=e)},t.mPngHeader=[137,80,78,71,13,10,26,10],t.mJpegHeader=[255,216],t.GIF_HEADER="G,I,F,8",t.BMP_HEADER="B,M",t}(),Sn=function(){function t(t){this.updateProportionsHelper(t)}return t.prototype.convertUnits=function(t,e,i){return this.convertFromPixels(this.convertToPixels(t,e),i)},t.prototype.convertToPixels=function(t,e){var i=e;return t*this.proportions[i]},t.prototype.convertFromPixels=function(t,e){var i=e;return t/this.proportions[i]},t.prototype.updateProportionsHelper=function(t){this.proportions=[t/2.54,t/6,1,t/72,t,t/300,t/25.4]},t.horizontalResolution=96,t.verticalResolution=96,t}(),vn=function(){function t(){}return Object.defineProperty(t.prototype,"width",{get:function(){return this.imageWidth},set:function(t){this.imageWidth=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.imageHeight},set:function(t){this.imageHeight=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{set:function(t){this.width=t.width,this.height=t.height},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"physicalDimension",{get:function(){return this.imagePhysicalDimension=this.getPointSize(this.width,this.height,this.horizontalResolution,this.verticalResolution),new Nr(this.width,this.height)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.imageStream},enumerable:!0,configurable:!0}),t.prototype.getPointSize=function(t,e,i,r){if(void 0===i){var n=Sn.horizontalResolution,o=Sn.verticalResolution;return this.getPointSize(t,e,n,o)}var s=new Sn(i),a=new Sn(r),u=s.convertUnits(t,Xi.Pixel,Xi.Point),c=a.convertUnits(e,Xi.Pixel,Xi.Point);return new Nr(u,c)},t}(),In=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),zn=function(t){function e(e){var i=t.call(this)||this;return i.imageStatus=!0,i.dictionaryProperties=new yi,i.loadImage(e),i}return In(e,t),e.prototype.loadImage=function(t){this.initializeAsync(t)},e.prototype.initializeAsync=function(t){var e=new yn(t.length);e.writeFromBase64String(t),this.decoder=new Dn(e),this.height=this.decoder.height,this.width=this.decoder.width,this.bitsPerComponent=this.decoder.bitsPerComponent},e.prototype.save=function(){this.imageStatus=!0,this.imageStream=this.decoder.getImageDictionary()},e}(vn),bn=function(){function t(){}return Object.defineProperty(t.prototype,"empty",{get:function(){return this.offset===this.length&&this.length===this.checksum&&0===this.checksum},enumerable:!0,configurable:!0}),t}(),wn=function(){},On=function(){},Tn=function(){},Ln=function(){function t(){}return Object.defineProperty(t.prototype,"isItalic",{get:function(){return!!(2&this.macStyle)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isBold",{get:function(){return!!(1&this.macStyle)},enumerable:!0,configurable:!0}),t}(),An=function(){},xn=function(){},Cn=function(){},En=function(){},kn=function(){},Pn=function(){},Un=function(){function t(){}return Object.defineProperty(t.prototype,"empty",{get:function(){return this.index===this.width&&this.width===this.charCode&&0===this.charCode},enumerable:!0,configurable:!0}),t.prototype.compareTo=function(t){var e=t;return this.index-e.index},t}(),Qn=function(){},Yn=function(){},Rn=function(){},Vn=function(){},Fn=function(){},Bn=function(){function t(t){this.int32Size=4,this.int16Size=2,this.int64Size=8,this.bufferLength=t,this.buffer=[]}return Object.defineProperty(t.prototype,"data",{get:function(){if(this.buffer.length<this.bufferLength)for(var t=this.bufferLength-this.buffer.length,e=0;e<t;e++)this.buffer.push(0);return this.buffer},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"position",{get:function(){return void 0!==this.internalPosition&&null!==this.internalPosition||(this.internalPosition=0),this.internalPosition},enumerable:!0,configurable:!0}),t.prototype.writeShort=function(t){var e=[(65280&t)>>8,255&t];this.flush(e)},t.prototype.writeInt=function(t){var e=[(4278190080&t)>>24,(16711680&t)>>16,(65280&t)>>8,255&t];this.flush(e)},t.prototype.writeUInt=function(t){var e=[(4278190080&t)>>24,(16711680&t)>>16,(65280&t)>>8,255&t];this.flush(e)},t.prototype.writeString=function(t){if(null==t)throw new Error("Argument Null Exception : value");for(var e=[],i=0;i<t.length;i++)e.push(t.charCodeAt(i));this.flush(e)},t.prototype.writeBytes=function(t){this.flush(t)},t.prototype.flush=function(t){if(null===t)throw new Error("Argument Null Exception : buff");for(var e=this.position,i=0;i<t.length;i++)this.buffer[e]=t[i],e++;this.internalPosition+=t.length},t}(),Wn=function(){function t(t){this.int32Size=4,this.isTtcFont=!1,this.isMacTtf=!1,this.metricsName="",this.isMacTTF=!1,this.missedGlyphs=0,this.tableNames=["cvt ","fpgm","glyf","head","hhea","hmtx","loca","maxp","prep"],this.entrySelectors=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4],this.fontData=t,this.initialize()}return Object.defineProperty(t.prototype,"macintosh",{get:function(){return null!==this.macintoshDictionary&&void 0!==this.macintoshDictionary||(this.macintoshDictionary=new di),this.macintoshDictionary},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"microsoft",{get:function(){return null!==this.microsoftDictionary&&void 0!==this.microsoftDictionary||(this.microsoftDictionary=new di),this.microsoftDictionary},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"macintoshGlyphs",{get:function(){return null!==this.internalMacintoshGlyphs&&void 0!==this.internalMacintoshGlyphs||(this.internalMacintoshGlyphs=new di),this.internalMacintoshGlyphs},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"microsoftGlyphs",{get:function(){return null!==this.internalMicrosoftGlyphs&&void 0!==this.internalMicrosoftGlyphs||(this.internalMicrosoftGlyphs=new di),this.internalMicrosoftGlyphs},enumerable:!0,configurable:!0}),t.prototype.initialize=function(){void 0===this.metrics&&(this.metrics=new Ln),this.readFontDictionary();var t=this.readNameTable(),e=this.readHeadTable();this.initializeFontName(t),this.metrics.macStyle=e.macStyle},t.prototype.readFontDictionary=function(){this.offset=0,this.checkPreambula();var t=this.readInt16(this.offset);this.readInt16(this.offset),this.readInt16(this.offset),this.readInt16(this.offset),void 0===this.tableDirectory&&(this.tableDirectory=new di);for(var e=0;e<t;++e){var i=new bn,r=this.readString(this.int32Size);i.checksum=this.readInt32(this.offset),i.offset=this.readInt32(this.offset),i.length=this.readInt32(this.offset),this.tableDirectory.setValue(r,i)}this.lowestPosition=this.offset,this.isTtcFont||this.fixOffsets()},t.prototype.fixOffsets=function(){for(var t=Number.MAX_VALUE,e=this.tableDirectory.keys(),i=0;i<e.length;i++){var r=(s=this.tableDirectory.getValue(e[i])).offset;if(t>r&&(t=r)<=this.lowestPosition)break}var n=t-this.lowestPosition;if(0!==n){var o=new di;for(i=0;i<e.length;i++){var s;(s=this.tableDirectory.getValue(e[i])).offset-=n,o.setValue(e[i],s)}this.tableDirectory=o}},t.prototype.checkPreambula=function(){var t=this.readInt32(this.offset);if(this.isMacTtf=1953658213===t,65536!==t&&1953658213!==t&&1330926671!==t){if(this.isTtcFont=!0,this.offset=0,"ttcf"!==this.readString(4))throw new Error("Can not read TTF font data");if(this.offset+=4,this.readInt32(this.offset)<0)throw new Error("Can not read TTF font data");this.offset=this.readInt32(this.offset),t=this.readInt32(this.offset)}return t},t.prototype.readNameTable=function(){var t=this.getTable("name");this.offset=t.offset;var e=new wn;e.formatSelector=this.readUInt16(this.offset),e.recordsCount=this.readUInt16(this.offset),e.offset=this.readUInt16(this.offset),e.nameRecords=[];for(var i=this.offset,r=0;r<e.recordsCount;r++){this.offset=i;var n=new On;n.platformID=this.readUInt16(this.offset),n.encodingID=this.readUInt16(this.offset),n.languageID=this.readUInt16(this.offset),n.nameID=this.readUInt16(this.offset),n.length=this.readUInt16(this.offset),n.offset=this.readUInt16(this.offset),this.offset=t.offset+e.offset+n.offset;var o=0===n.platformID||3===n.platformID;n.name=this.readString(n.length,o),e.nameRecords[r]=n,i+=12}return e},t.prototype.readHeadTable=function(){var t=this.getTable("head");this.offset=t.offset;var e=new Tn;return e.version=this.readFixed(this.offset),e.fontRevision=this.readFixed(this.offset),e.checkSumAdjustment=this.readUInt32(this.offset),e.magicNumber=this.readUInt32(this.offset),e.flags=this.readUInt16(this.offset),e.unitsPerEm=this.readUInt16(this.offset),e.created=this.readInt64(this.offset),e.modified=this.readInt64(this.offset),e.xMin=this.readInt16(this.offset),e.yMin=this.readInt16(this.offset),e.xMax=this.readInt16(this.offset),e.yMax=this.readInt16(this.offset),e.macStyle=this.readUInt16(this.offset),e.lowestReadableSize=this.readUInt16(this.offset),e.fontDirectionHint=this.readInt16(this.offset),e.indexToLocalFormat=this.readInt16(this.offset),e.glyphDataFormat=this.readInt16(this.offset),e},t.prototype.readHorizontalHeaderTable=function(){var t=this.getTable("hhea");this.offset=t.offset;var e=new An;return e.version=this.readFixed(this.offset),e.ascender=this.readInt16(this.offset),e.descender=this.readInt16(this.offset),e.lineGap=this.readInt16(this.offset),e.advanceWidthMax=this.readUInt16(this.offset),e.minLeftSideBearing=this.readInt16(this.offset),e.minRightSideBearing=this.readInt16(this.offset),e.xMaxExtent=this.readInt16(this.offset),e.caretSlopeRise=this.readInt16(this.offset),e.caretSlopeRun=this.readInt16(this.offset),this.offset+=10,e.metricDataFormat=this.readInt16(this.offset),e.numberOfHMetrics=this.readUInt16(this.offset),e},t.prototype.readOS2Table=function(){var t=this.getTable("OS/2");this.offset=t.offset;var e=new xn;return e.version=this.readUInt16(this.offset),e.xAvgCharWidth=this.readInt16(this.offset),e.usWeightClass=this.readUInt16(this.offset),e.usWidthClass=this.readUInt16(this.offset),e.fsType=this.readInt16(this.offset),e.ySubscriptXSize=this.readInt16(this.offset),e.ySubscriptYSize=this.readInt16(this.offset),e.ySubscriptXOffset=this.readInt16(this.offset),e.ySubscriptYOffset=this.readInt16(this.offset),e.ySuperscriptXSize=this.readInt16(this.offset),e.ySuperscriptYSize=this.readInt16(this.offset),e.ySuperscriptXOffset=this.readInt16(this.offset),e.ySuperscriptYOffset=this.readInt16(this.offset),e.yStrikeoutSize=this.readInt16(this.offset),e.yStrikeoutPosition=this.readInt16(this.offset),e.sFamilyClass=this.readInt16(this.offset),e.panose=this.readBytes(10),e.ulUnicodeRange1=this.readUInt32(this.offset),e.ulUnicodeRange2=this.readUInt32(this.offset),e.ulUnicodeRange3=this.readUInt32(this.offset),e.ulUnicodeRange4=this.readUInt32(this.offset),e.vendorIdentifier=this.readBytes(4),e.fsSelection=this.readUInt16(this.offset),e.usFirstCharIndex=this.readUInt16(this.offset),e.usLastCharIndex=this.readUInt16(this.offset),e.sTypoAscender=this.readInt16(this.offset),e.sTypoDescender=this.readInt16(this.offset),e.sTypoLineGap=this.readInt16(this.offset),e.usWinAscent=this.readUInt16(this.offset),e.usWinDescent=this.readUInt16(this.offset),e.ulCodePageRange1=this.readUInt32(this.offset),e.ulCodePageRange2=this.readUInt32(this.offset),e.version>1?(e.sxHeight=this.readInt16(this.offset),e.sCapHeight=this.readInt16(this.offset),e.usDefaultChar=this.readUInt16(this.offset),e.usBreakChar=this.readUInt16(this.offset),e.usMaxContext=this.readUInt16(this.offset)):(e.sxHeight=0,e.sCapHeight=0,e.usDefaultChar=0,e.usBreakChar=0,e.usMaxContext=0),e},t.prototype.readPostTable=function(){var t=this.getTable("post");this.offset=t.offset;var e=new Cn;return e.formatType=this.readFixed(this.offset),e.italicAngle=this.readFixed(this.offset),e.underlinePosition=this.readInt16(this.offset),e.underlineThickness=this.readInt16(this.offset),e.isFixedPitch=this.readUInt32(this.offset),e.minType42=this.readUInt32(this.offset),e.maxType42=this.readUInt32(this.offset),e.minType1=this.readUInt32(this.offset),e.maxType1=this.readUInt32(this.offset),e},t.prototype.readWidthTable=function(t,e){var i=this.getTable("hmtx");this.offset=i.offset;for(var r=[],n=0;n<t;n++){var o=new En;o.advanceWidth=this.readUInt16(this.offset),o.lsb=this.readInt16(this.offset);var s=1e3*o.advanceWidth/e;r.push(Math.floor(s))}return r},t.prototype.readCmapTable=function(){var t=this.getTable("cmap");this.offset=t.offset;var e=new Pn;e.version=this.readUInt16(this.offset),e.tablesCount=this.readUInt16(this.offset);for(var i=this.offset,r=[],n=0;n<e.tablesCount;n++){this.offset=i;var o=new kn;o.platformID=this.readUInt16(this.offset),o.encodingID=this.readUInt16(this.offset),o.offset=this.readUInt32(this.offset),i=this.offset,this.readCmapSubTable(o),r[n]=o}return r},t.prototype.readCmapSubTable=function(t){var e=this.getTable("cmap");this.offset=e.offset+t.offset;var i=this.readUInt16(this.offset),r=this.getCmapEncoding(t.platformID,t.encodingID);if(r===lr.Macintosh?pr.Macintosh:pr.Microsoft,r!==lr.Unknown)switch(i){case hr.Apple:this.readAppleCmapTable(t,r);break;case hr.Microsoft:this.readMicrosoftCmapTable(t,r);break;case hr.Trimmed:this.readTrimmedCmapTable(t,r)}},t.prototype.readAppleCmapTable=function(t,e){var i=this.getTable("cmap");this.offset=i.offset+t.offset;var r=new Yn;r.format=this.readUInt16(this.offset),r.length=this.readUInt16(this.offset),r.version=this.readUInt16(this.offset),null!==this.maxMacIndex&&void 0!==this.maxMacIndex||(this.maxMacIndex=0);for(var n=0;n<256;++n){var o=new Un;o.index=this.readByte(this.offset),o.width=this.getWidth(o.index),o.charCode=n,this.macintosh.setValue(n,o),this.addGlyph(o,e),this.maxMacIndex=Math.max(n,this.maxMacIndex)}},t.prototype.readMicrosoftCmapTable=function(t,e){var i=this.getTable("cmap");this.offset=i.offset+t.offset;var r=e===lr.Unicode?this.microsoft:this.macintosh,n=new Rn;n.format=this.readUInt16(this.offset),n.length=this.readUInt16(this.offset),n.version=this.readUInt16(this.offset),n.segCountX2=this.readUInt16(this.offset),n.searchRange=this.readUInt16(this.offset),n.entrySelector=this.readUInt16(this.offset),n.rangeShift=this.readUInt16(this.offset);var o=n.segCountX2/2;n.endCount=this.readUshortArray(o),n.reservedPad=this.readUInt16(this.offset),n.startCount=this.readUshortArray(o),n.idDelta=this.readUshortArray(o),n.idRangeOffset=this.readUshortArray(o);var s=n.length/2-8-4*o;n.glyphID=this.readUshortArray(s);for(var a=0,u=0,c=0;c<o;c++)for(var h=n.startCount[c];h<=n.endCount[c]&&65535!==h;h++){if(0===n.idRangeOffset[c])a=h+n.idDelta[c]&65535;else{if((u=c+n.idRangeOffset[c]/2-o+h-n.startCount[c])>=n.glyphID.length)continue;a=n.glyphID[u]+n.idDelta[c]&65535}var l=new Un;l.index=a,l.width=this.getWidth(l.index);var p=e===lr.Symbol&&61440==(65280&h)?255&h:h;l.charCode=p,r.setValue(p,l),this.addGlyph(l,e)}},t.prototype.readTrimmedCmapTable=function(t,e){var i=this.getTable("cmap");this.offset=i.offset+t.offset;var r=new Vn;r.format=this.readUInt16(this.offset),r.length=this.readUInt16(this.offset),r.version=this.readUInt16(this.offset),r.firstCode=this.readUInt16(this.offset),r.entryCount=this.readUInt16(this.offset);for(var n=0;n<r.entryCount;++n){var o=new Un;o.index=this.readUInt16(this.offset),o.width=this.getWidth(o.index),o.charCode=n+r.firstCode,this.macintosh.setValue(n,o),this.addGlyph(o,e),this.maxMacIndex=Math.max(n,this.maxMacIndex)}},t.prototype.initializeFontName=function(t){for(var e=0;e<t.recordsCount;e++){var i=t.nameRecords[e];if(1===i.nameID?this.metrics.fontFamily=i.name:6===i.nameID&&(this.metrics.postScriptName=i.name),null!==this.metrics.fontFamily&&void 0!==this.metrics.fontFamily&&null!==this.metrics.postScriptName&&void 0!==this.metrics.postScriptName)break}},t.prototype.getTable=function(t){var e,i=new bn;return this.tableDirectory.containsKey(t)&&(e=this.tableDirectory.getValue(t)),null!=e&&(i=e),i},t.prototype.getWidth=function(t){return t=t<this.width.length?t:this.width.length-1,this.width[t]},t.prototype.getCmapEncoding=function(t,e){var i=lr.Unknown;return t==pr.Microsoft&&e==gr.Undefined?i=lr.Symbol:t==pr.Microsoft&&e==gr.Unicode?i=lr.Unicode:t==pr.Macintosh&&e==dr.Roman&&(i=lr.Macintosh),i},t.prototype.addGlyph=function(t,e){var i=null;switch(e){case lr.Unicode:i=this.microsoftGlyphs;break;case lr.Macintosh:case lr.Symbol:i=this.macintoshGlyphs}i.setValue(t.index,t)},t.prototype.initializeMetrics=function(t,e,i,r,n,o){this.initializeFontName(t);for(var s=!1,a=0;a<o.length;a++){var u=o[a];if(this.getCmapEncoding(u.platformID,u.encodingID)===lr.Symbol){s=!0;break}}this.metrics.isSymbol=s,this.metrics.macStyle=e.macStyle,this.metrics.isFixedPitch=0!==n.isFixedPitch,this.metrics.italicAngle=n.italicAngle;var c=1e3/e.unitsPerEm;this.metrics.winAscent=r.sTypoAscender*c,this.metrics.macAscent=i.ascender*c,this.metrics.capHeight=0!==r.sCapHeight?r.sCapHeight:.7*e.unitsPerEm*c,this.metrics.winDescent=r.sTypoDescender*c,this.metrics.macDescent=i.descender*c,this.metrics.leading=(r.sTypoAscender-r.sTypoDescender+r.sTypoLineGap)*c,this.metrics.lineGap=Math.ceil(i.lineGap*c);var h=e.xMin*c,l=Math.ceil(this.metrics.macAscent+this.metrics.lineGap),p=e.xMax*c,g=this.metrics.macDescent;this.metrics.fontBox=new Dr(h,l,p,g),this.metrics.stemV=80,this.metrics.widthTable=this.updateWidth(),this.metrics.contains=this.tableDirectory.containsKey("CFF"),this.metrics.subScriptSizeFactor=e.unitsPerEm/r.ySubscriptYSize,this.metrics.superscriptSizeFactor=e.unitsPerEm/r.ySuperscriptYSize},t.prototype.updateWidth=function(){var t=[];if(this.metrics.isSymbol)for(var e=0;e<256;e++){var i=this.getGlyph(String.fromCharCode(e));t[e]=i.empty?0:i.width}else{var r=[],n=String.fromCharCode(32);for(e=0;e<256;e++){r[0]=e;var o=this.getString(r,0,r.length),s=o.length>0?o[0]:"?";(i=this.getGlyph(s)).empty?(i=this.getGlyph(n),t[e]=i.empty?0:i.width):t[e]=i.width}}return t},t.prototype.getDefaultGlyph=function(){return this.getGlyph(wr.whiteSpace)},t.prototype.getString=function(t,e,i){for(var r="",n=0;n<i;n++)r+=String.fromCharCode(t[n+e]);return r},t.prototype.readLocaTable=function(t){var e=this.getTable("loca");this.offset=e.offset;var i=new Qn,r=null;if(t){var n=e.length/2;r=[];for(var o=0;o<n;o++)r[o]=2*this.readUInt16(this.offset)}else{n=e.length/4;r=[];for(o=0;o<n;o++)r[o]=this.readUInt32(this.offset)}return i.offsets=r,i},t.prototype.updateGlyphChars=function(t,e){t.containsKey(0)||t.setValue(0,0);for(var i=new di,r=t.keys(),n=0;n<r.length;n++)i.setValue(r[n],t.getValue(r[n]));for(n=0;n<r.length;n++){var o=r[n];this.processCompositeGlyph(t,o,e)}},t.prototype.processCompositeGlyph=function(t,e,i){if(e<i.offsets.length-1){var r=i.offsets[e];if(r!==i.offsets[e+1]){var n=this.getTable("glyf");this.offset=n.offset+r;var o=new Fn;if(o.numberOfContours=this.readInt16(this.offset),o.xMin=this.readInt16(this.offset),o.yMin=this.readInt16(this.offset),o.xMax=this.readInt16(this.offset),o.yMax=this.readInt16(this.offset),o.numberOfContours<0)for(var s=0;;){var a=this.readUInt16(this.offset),u=this.readUInt16(this.offset);if(t.containsKey(u)||t.setValue(u,0),0===(a&Mr.MoreComponents))break;s=0!==(a&Mr.Arg1And2AreWords)?4:2,0!==(a&Mr.WeHaveScale)?s+=2:0!==(a&Mr.WeHaveAnXyScale)?s+=4:0!==(a&Mr.WeHaveTwoByTwo)&&(s+=8),this.offset+=s}}}},t.prototype.generateGlyphTable=function(t,e,i,r){i=[];var n=t.keys();n.sort(function(t,e){return t-e});for(var o=0,s=0;s<n.length;s++){var a=n[s];e.offsets.length>0&&(o+=e.offsets[a+1]-e.offsets[a])}var u=this.align(o);r=[];for(s=0;s<u;s++)r.push(0);var c=0,h=0,l=this.getTable("glyf");for(s=0;s<e.offsets.length;s++)if(i.push(c),h<n.length&&n[h]===s){++h,i[s]=c;var p=e.offsets[s],g=e.offsets[s+1]-p;if(g>0)this.offset=l.offset+p,r=this.read(r,c,g).buffer,c+=g}return{glyphTableSize:o,newLocaTable:i,newGlyphTable:r}},t.prototype.updateLocaTable=function(t,e,i){if(null===t)throw new Error("Argument Null Exception : newLocaTable");for(var r=e?2*t.length:4*t.length,n=this.align(r),o=new Bn(n),s=0;s<t.length;s++){var a=t[s];e?(a/=2,o.writeShort(a)):o.writeInt(a)}return{newLocaUpdated:o.data,newLocaSize:r}},t.prototype.align=function(t){return t+3&-4},t.prototype.getFontProgram=function(t,e,i,r){if(null===t)throw new Error("Argument Null Exception : newLocaTableOut");if(null===e)throw new Error("Argument Null Exception : newGlyphTable");this.tableNames;var n=this.getFontProgramLength(t,e,0),o=n.fontProgramLength,s=n.numTables,a=new Bn(o);a.writeInt(65536),a.writeShort(s);var u=this.entrySelectors[s];return a.writeShort(16*(1<<(31&u))),a.writeShort(u),a.writeShort(16*(s-(1<<(31&u)))),this.writeCheckSums(a,s,t,e,i,r),this.writeGlyphs(a,t,e),a.data},t.prototype.getFontProgramLength=function(t,e,i){if(null===t)throw new Error("Argument Null Exception : newLocaTableOut");if(null===e)throw new Error("Argument Null Exception : newGlyphTable");i=2;for(var r=this.tableNames,n=0,o=0;o<r.length;o++){var s=r[o];if("glyf"!==s&&"loca"!==s){var a=this.getTable(s);a.empty||(++i,n+=this.align(a.length))}}return n+=t.length,n+=e.length,{fontProgramLength:n+=16*i+12,numTables:i}},t.prototype.writeCheckSums=function(t,e,i,r,n,o){if(null===t)throw new Error("Argument Null Exception : writer");if(null===i)throw new Error("Argument Null Exception : newLocaTableOut");if(null===r)throw new Error("Argument Null Exception : newGlyphTable");for(var s=this.tableNames,a=16*e+12,u=0,c=0;c<s.length;c++){var h=s[c],l=this.getTable(h);if(!l.empty){if(t.writeString(h),"glyf"===h){var p=this.calculateCheckSum(r);t.writeInt(p),u=n}else if("loca"===h){p=this.calculateCheckSum(i);t.writeInt(p),u=o}else t.writeInt(l.checksum),u=l.length;t.writeUInt(a),t.writeUInt(u),a+=this.align(u)}}},t.prototype.calculateCheckSum=function(t){if(null===t)throw new Error("Argument Null Exception : bytes");for(var e=0,i=0,r=0,n=0,o=0,s=0;s<(t.length+1)/4;s++)o+=255&t[e++],n+=255&t[e++],r+=255&t[e++],i+=255&t[e++];var a=i;return a+=r<<8,a+=n<<16,a+=o<<24},t.prototype.writeGlyphs=function(t,e,i){if(null===t)throw new Error("Argument Null Exception : writer");if(null===e)throw new Error("Argument Null Exception : newLocaTableOut");if(null===i)throw new Error("Argument Null Exception : newGlyphTable");for(var r=this.tableNames,n=0;n<r.length;n++){var o=r[n],s=this.getTable(o);if(!s.empty)if("glyf"===o)t.writeBytes(i);else if("loca"===o)t.writeBytes(e);else{for(var a=this.align(s.length),u=[],c=0;c<a;c++)u.push(0);this.offset=s.offset;var h=this.read(u,0,s.length);t.writeBytes(h.buffer)}}},t.prototype.setOffset=function(t){this.offset=t},t.prototype.createInternals=function(){this.metrics=new Ln;var t=this.readNameTable(),e=this.readHeadTable();this.bIsLocaShort=0===e.indexToLocalFormat;var i=this.readHorizontalHeaderTable(),r=this.readOS2Table(),n=this.readPostTable();this.width=this.readWidthTable(i.numberOfHMetrics,e.unitsPerEm);var o=this.readCmapTable();this.initializeMetrics(t,e,i,r,n,o)},t.prototype.getGlyph=function(t){if("number"==typeof t){var e=null;return this.metrics.isSymbol||null==this.microsoftGlyphs?this.metrics.isSymbol&&null!=this.macintoshGlyphs&&this.macintoshGlyphs.containsKey(t)&&(e=this.macintoshGlyphs.getValue(t)):this.microsoftGlyphs.containsKey(t)&&(e=this.microsoftGlyphs.getValue(t)),null!=e?e:this.getDefaultGlyph()}var i=null,r=t.charCodeAt(0);return this.metrics.isSymbol||null===this.microsoft?(this.metrics.isSymbol&&null!==this.macintosh||this.isMacTTF)&&(0!==this.maxMacIndex?r%=this.maxMacIndex+1:r=61440==(65280&r)?255&r:r,this.macintosh.containsKey(r)&&(i=this.macintosh.getValue(r),this.isFontPresent=!0)):this.microsoft.containsKey(r)?(i=this.microsoft.getValue(r),r!==wr.whiteSpace.charCodeAt(0)&&(this.isFontPresent=!0)):r!==wr.whiteSpace.charCodeAt(0)&&(this.isFontPresent=!1),t===wr.whiteSpace&&null===i&&(i=new Un),null!==i?i:this.getDefaultGlyph()},t.prototype.getGlyphChars=function(t){if(null==t)throw new Error("Argument Null Exception : chars");for(var e=new di,i=t.keys(),r=0;r<i.length;r++){var n=i[r],o=this.getGlyph(n);o.empty||e.setValue(o.index,n.charCodeAt(0))}return e},t.prototype.getAllGlyphs=function(){for(var t=[],e=new Un,i=0,r=0;r<this.width.length;r++){var n=this.width[r];e.index=i,e.width=n,t.push(e),i++}return t},t.prototype.readFontProgram=function(t){var e=this.getGlyphChars(t),i=this.readLocaTable(this.bIsLocaShort);e.size()<t.size()&&(this.missedGlyphs=t.size()-e.size()),this.updateGlyphChars(e,i);var r=this.generateGlyphTable(e,i,null,null),n=r.glyphTableSize,o=r.newLocaTable,s=r.newGlyphTable,a=this.updateLocaTable(o,this.bIsLocaShort,null),u=a.newLocaSize,c=a.newLocaUpdated;return this.getFontProgram(c,s,n,u)},t.prototype.convertString=function(t){if(null===t)throw new Error("Argument Null Exception : text");for(var e="",i=0;i<t.length;i++){var r=t[i],n=this.getGlyph(r);n.empty||(e+=String.fromCharCode(n.index))}return e},t.prototype.getCharWidth=function(t){var e=this.getGlyph(t);return(e=e.empty?this.getDefaultGlyph():e).empty?0:e.width},t.prototype.readString=function(t,e){if(void 0===e)return this.readString(t,!1);var i="";if(e)for(var r=0;r<t;r++)r%2!=0&&(i+=String.fromCharCode(this.fontData[this.offset])),this.offset+=1;else for(r=0;r<t;r++)i+=String.fromCharCode(this.fontData[this.offset]),this.offset+=1;return i},t.prototype.readFixed=function(t){return this.readInt16(t)+this.readInt16(t+2)/16384},t.prototype.readInt32=function(t){var e=this.fontData[t+3],i=this.fontData[t+2],r=this.fontData[t+1],n=this.fontData[t];return this.offset+=4,e+(i<<8)+(r<<16)+(n<<24)},t.prototype.readUInt32=function(t){var e=this.fontData[t+3],i=this.fontData[t+2],r=this.fontData[t+1],n=this.fontData[t];return this.offset+=4,e|i<<8|r<<16|n<<24},t.prototype.readInt16=function(t){var e=(this.fontData[t]<<8)+this.fontData[t+1];return e=32768&e?e-65536:e,this.offset+=2,e},t.prototype.readInt64=function(t){var e=this.readInt32(t+4),i=4294967296*this.readInt32(t)+e;return e<0&&(i+=4294967296),i},t.prototype.readUInt16=function(t){var e=this.fontData[t]<<8|this.fontData[t+1];return this.offset+=2,e},t.prototype.readUshortArray=function(t){for(var e=[],i=0;i<t;i++)e[i]=this.readUInt16(this.offset);return e},t.prototype.readBytes=function(t){for(var e=[],i=0;i<t;i++)e.push(this.fontData[this.offset]),this.offset+=1;return e},t.prototype.readByte=function(t){var e=this.fontData[t];return this.offset+=1,e},t.prototype.read=function(t,e,i){if(null===t)throw new Error("Argument Null Exception : buffer");var r=0,n=0;do{for(var o=0;o<i-r&&this.offset+o<this.fontData.length;o++)t[e+o]=this.fontData[this.offset+o];n=i-r,this.offset+=n,r+=n}while(r<i);return{buffer:t,written:r}},t}(),Gn=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Hn=function(){function t(){this.lineGap=0}return t.prototype.getAscent=function(t){return this.ascent*xr.charSizeMultiplier*this.getSize(t)},t.prototype.getDescent=function(t){return this.descent*xr.charSizeMultiplier*this.getSize(t)},t.prototype.getLineGap=function(t){return this.lineGap*xr.charSizeMultiplier*this.getSize(t)},t.prototype.getHeight=function(t){return this.getDescent(t)<0?this.getAscent(t)-this.getDescent(t)+this.getLineGap(t):this.getAscent(t)+this.getDescent(t)+this.getLineGap(t)},t.prototype.getSize=function(t){var e=this.size;if(null!=t)switch(t.subSuperScript){case ur.SubScript:e/=this.subScriptSizeFactor;break;case ur.SuperScript:e/=this.superscriptSizeFactor}return e},t.prototype.clone=function(){return this.widthTable=qn.clone(),this},Object.defineProperty(t.prototype,"widthTable",{get:function(){return this.internalWidthTable},set:function(t){this.internalWidthTable=t},enumerable:!0,configurable:!0}),t}(),qn=function(){function t(){}return t.clone=function(){return null},t}(),_n=function(t){function e(e){var i=t.call(this)||this;if(null==e)throw new Error("ArgumentNullException:widths");return i.widths=e,i}return Gn(e,t),e.prototype.items=function(t){if(t<0||t>=this.widths.length)throw new Error("ArgumentOutOfRangeException:index, The character is not supported by the font.");return this.widths[t]},Object.defineProperty(e.prototype,"length",{get:function(){return this.widths.length},enumerable:!0,configurable:!0}),e.prototype.clone=function(){return this.widths=this.widths,this},e.prototype.toArray=function(){return new zi(this.widths)},e}(qn),Jn=function(){function t(t,e){if(this.nameString="ABCDEFGHIJKLMNOPQRSTUVWXYZ",this.dictionaryProperties=new yi,this.isCompress=!1,this.isEmbedFont=!1,this.cmapPrefix="/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap"+Mi.newLine+"/CIDSystemInfo << /Registry (Adobe)/Ordering (UCS)/Supplement 0>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange"+Mi.newLine,this.cmapEndCodespaceRange="endcodespacerange"+Mi.newLine,this.cmapBeginRange="beginbfrange"+Mi.newLine,this.cmapEndRange="endbfrange"+Mi.newLine,this.cmapSuffix="endbfrange\nendcmap\nCMapName currentdict /CMap defineresource pop\nend end"+Mi.newLine,null==t)throw new Error("ArgumentNullException:base64String");this.fontSize=e,this.fontString=t,this.Initialize()}return t.prototype.getCharWidth=function(t){return this.ttfReader.getCharWidth(t)},t.prototype.getLineWidth=function(t){for(var e=0,i=0,r=t.length;i<r;i++){var n=t[i];e+=this.getCharWidth(n)}return e},t.prototype.Initialize=function(){var t=new yn(this.fontString.length);t.writeFromBase64String(this.fontString),this.fontData=t.internalBuffer,this.ttfReader=new Wn(this.fontData),this.ttfMetrics=this.ttfReader.metrics},t.prototype.createInternals=function(){this.fontDictionary=new mi,this.fontProgram=new Yi,this.cmap=new Yi,this.descendantFont=new mi,this.metrics=new Hn,this.ttfReader.createInternals(),this.ttfMetrics=this.ttfReader.metrics,this.initializeMetrics(),this.subsetName=this.getFontName(),this.createDescendantFont(),this.createCmap(),this.createFontDictionary(),this.createFontProgram()},t.prototype.getInternals=function(){return this.fontDictionary},t.prototype.initializeMetrics=function(){var t=this.ttfReader.metrics;this.metrics.ascent=t.macAscent,this.metrics.descent=t.macDescent,this.metrics.height=t.macAscent-t.macDescent+t.lineGap,this.metrics.name=t.fontFamily,this.metrics.postScriptName=t.postScriptName,this.metrics.size=this.fontSize,this.metrics.widthTable=new _n(t.widthTable),this.metrics.lineGap=t.lineGap,this.metrics.subScriptSizeFactor=t.subScriptSizeFactor,this.metrics.superscriptSizeFactor=t.superscriptSizeFactor,this.metrics.isBold=t.isBold},t.prototype.getFontName=function(){for(var t,e="",i=0;i<6;i++){var r=Math.floor(26*Math.random())+0;e+=this.nameString[r]}return e+="+",t=(e+=this.ttfReader.metrics.postScriptName).toString(),t=this.formatName(t)},t.prototype.formatName=function(t){var e=t.replace("(","#28");return(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(")","#29")).replace("[","#5B")).replace("]","#5D")).replace("<","#3C")).replace(">","#3E")).replace("{","#7B")).replace("}","#7D")).replace("/","#2F")).replace("%","#25")).replace(" ","#20")},t.prototype.createDescendantFont=function(){this.descendantFont.isResource=!0,this.descendantFont.descendantFontBeginSave=new ji(this),this.descendantFont.items.setValue(this.dictionaryProperties.type,new fi(this.dictionaryProperties.font)),this.descendantFont.items.setValue(this.dictionaryProperties.subtype,new fi(this.dictionaryProperties.cIDFontType2)),this.descendantFont.items.setValue(this.dictionaryProperties.baseFont,new fi(this.subsetName)),this.descendantFont.items.setValue(this.dictionaryProperties.cIDToGIDMap,new fi(this.dictionaryProperties.identity)),this.descendantFont.items.setValue(this.dictionaryProperties.dw,new Ii(1e3)),this.fontDescriptor=this.createFontDescriptor(),this.descendantFont.items.setValue(this.dictionaryProperties.fontDescriptor,new rr(this.fontDescriptor));var t=this.createSystemInfo();this.descendantFont.items.setValue(this.dictionaryProperties.cIDSystemInfo,t)},t.prototype.createFontDescriptor=function(){var t=new mi,e=this.ttfReader.metrics;return t.isResource=!0,t.items.setValue(this.dictionaryProperties.type,new fi(this.dictionaryProperties.fontDescriptor)),t.items.setValue(this.dictionaryProperties.fontName,new fi(this.subsetName)),t.items.setValue(this.dictionaryProperties.flags,new Ii(this.getDescriptorFlags())),t.items.setValue(this.dictionaryProperties.fontBBox,zi.fromRectangle(this.getBoundBox())),t.items.setValue(this.dictionaryProperties.missingWidth,new Ii(e.widthTable[32])),t.items.setValue(this.dictionaryProperties.stemV,new Ii(e.stemV)),t.items.setValue(this.dictionaryProperties.italicAngle,new Ii(e.italicAngle)),t.items.setValue(this.dictionaryProperties.capHeight,new Ii(e.capHeight)),t.items.setValue(this.dictionaryProperties.ascent,new Ii(e.winAscent)),t.items.setValue(this.dictionaryProperties.descent,new Ii(e.winDescent)),t.items.setValue(this.dictionaryProperties.leading,new Ii(e.leading)),t.items.setValue(this.dictionaryProperties.avgWidth,new Ii(e.widthTable[32])),t.items.setValue(this.dictionaryProperties.fontFile2,new rr(this.fontProgram)),t.items.setValue(this.dictionaryProperties.maxWidth,new Ii(e.widthTable[32])),t.items.setValue(this.dictionaryProperties.xHeight,new Ii(0)),t.items.setValue(this.dictionaryProperties.stemH,new Ii(0)),t},t.prototype.createCmap=function(){this.cmap.cmapBeginSave=new Ri(this)},t.prototype.createFontDictionary=function(){this.fontDictionary.isResource=!0,this.fontDictionary.fontDictionaryBeginSave=new Di(this),this.fontDictionary.items.setValue(this.dictionaryProperties.type,new fi(this.dictionaryProperties.font)),this.fontDictionary.items.setValue(this.dictionaryProperties.baseFont,new fi(this.subsetName)),this.fontDictionary.items.setValue(this.dictionaryProperties.subtype,new fi(this.dictionaryProperties.type0)),this.fontDictionary.items.setValue(this.dictionaryProperties.encoding,new fi(this.dictionaryProperties.identityH));var t=new zi,e=new rr(this.descendantFont);t.isFont=!0,t.add(e),this.fontDictionary.items.setValue(this.dictionaryProperties.descendantFonts,t)},t.prototype.createFontProgram=function(){this.fontProgram.fontProgramBeginSave=new Vi(this)},t.prototype.createSystemInfo=function(){var t=new mi;return t.items.setValue(this.dictionaryProperties.registry,new er("Adobe")),t.items.setValue(this.dictionaryProperties.ordering,new er(this.dictionaryProperties.identity)),t.items.setValue(this.dictionaryProperties.supplement,new Ii(0)),t},t.prototype.descendantFontBeginSave=function(){if(null!==this.usedChars&&void 0!==this.usedChars&&this.usedChars.size()>0){var t=this.getDescendantWidth();null!==t&&this.descendantFont.items.setValue(this.dictionaryProperties.w,t)}},t.prototype.cmapBeginSave=function(){this.generateCmap()},t.prototype.fontDictionaryBeginSave=function(){null!==this.usedChars&&void 0!==this.usedChars&&this.usedChars.size()>0&&!this.fontDictionary.containsKey(this.dictionaryProperties.toUnicode)&&this.fontDictionary.items.setValue(this.dictionaryProperties.toUnicode,new rr(this.cmap))},t.prototype.fontProgramBeginSave=function(){this.isCompress=!0,this.generateFontProgram()},t.prototype.getDescendantWidth=function(){var t=new zi;if(null!==this.usedChars&&void 0!==this.usedChars&&this.usedChars.size()>0){for(var e=[],i=this.usedChars.keys(),r=0;r<i.length;r++){var n=i[r];(c=this.ttfReader.getGlyph(n)).empty||e.push(c)}e.sort(function(t,e){return t.index-e.index});var o=0,s=0,a=!1,u=new zi;for(r=0;r<e.length;r++){var c=e[r];a||(a=!0,o=c.index,s=c.index-1),(s+1!==c.index||r+1===e.length)&&e.length>1&&(t.add(new Ii(o)),0!==r&&t.add(u),o=c.index,u=new zi),u.add(new Ii(c.width)),r+1===e.length&&(t.add(new Ii(o)),t.add(u)),s=c.index}}return t},t.prototype.generateCmap=function(){if(null!==this.usedChars&&void 0!==this.usedChars&&this.usedChars.size()>0){var t=this.ttfReader.getGlyphChars(this.usedChars);if(t.size()>0){var e=t.keys().sort(),i=e[0],r=e[e.length-1],n=this.toHexString(i,!1)+this.toHexString(r,!1)+Mi.newLine,o="";o+=this.cmapPrefix,o+=n,o+=this.cmapEndCodespaceRange;for(var s=0,a=0;a<e.length;a++){0===s&&(0!==a&&(o+=this.cmapEndRange),o+=s=Math.min(100,e.length-a),o+=Mi.whiteSpace,o+=this.cmapBeginRange),s-=1;var u=e[a];o+=this.toHexString(u,!0)+this.toHexString(u,!0)+this.toHexString(t.getValue(u),!0)+"\n"}o+=this.cmapSuffix,this.cmap.clearStream(),this.cmap.isResource=!0,this.cmap.write(o)}}},t.prototype.generateFontProgram=function(){var t;this.usedChars=null===this.usedChars||void 0===this.usedChars?new di:this.usedChars,this.ttfReader.setOffset(0),t=this.ttfReader.readFontProgram(this.usedChars),this.fontProgram.clearStream(),this.fontProgram.isResource=!0,this.fontProgram.writeBytes(t)},t.prototype.getDescriptorFlags=function(){var t=0,e=this.ttfReader.metrics;return e.isFixedPitch&&(t|=fr.FixedPitch),e.isSymbol?t|=fr.Symbolic:t|=fr.Nonsymbolic,e.isItalic&&(t|=fr.Italic),e.isBold&&(t|=fr.ForceBold),t},t.prototype.getBoundBox=function(){var t=this.ttfReader.metrics.fontBox,e=Math.abs(t.right-t.left),i=Math.abs(t.top-t.bottom);return new jr(t.left,t.bottom,e,i)},t.prototype.toHexString=function(t,e){var i=t.toString(16);return e&&(i=i.toUpperCase()),"<0000".substring(0,5-i.length)+i+">"},t.prototype.setSymbols=function(t){if(null===t)throw new Error("Argument Null Exception : text");null!==this.usedChars&&void 0!==this.usedChars||(this.usedChars=new di);for(var e=0;e<t.length;e++){var i=t[e];this.usedChars.setValue(i,String.fromCharCode(0))}!1===this.isEmbedFont&&this.getDescendantWidth()},t}(),Zn=function(){function t(){this.arabicCharTable=[["ء","ﺀ"],["آ","ﺁ","ﺂ"],["أ","ﺃ","ﺄ"],["ؤ","ﺅ","ﺆ"],["إ","ﺇ","ﺈ"],["ئ","ﺉ","ﺊ","ﺋ","ﺌ"],["ا","ﺍ","ﺎ"],["ب","ﺏ","ﺐ","ﺑ","ﺒ"],["ة","ﺓ","ﺔ"],["ت","ﺕ","ﺖ","ﺗ","ﺘ"],["ث","ﺙ","ﺚ","ﺛ","ﺜ"],["ج","ﺝ","ﺞ","ﺟ","ﺠ"],["ح","ﺡ","ﺢ","ﺣ","ﺤ"],["خ","ﺥ","ﺦ","ﺧ","ﺨ"],["د","ﺩ","ﺪ"],["ذ","ﺫ","ﺬ"],["ر","ﺭ","ﺮ"],["ز","ﺯ","ﺰ"],["س","ﺱ","ﺲ","ﺳ","ﺴ"],["ش","ﺵ","ﺶ","ﺷ","ﺸ"],["ص","ﺹ","ﺺ","ﺻ","ﺼ"],["ض","ﺽ","ﺾ","ﺿ","ﻀ"],["ط","ﻁ","ﻂ","ﻃ","ﻄ"],["ظ","ﻅ","ﻆ","ﻇ","ﻈ"],["ع","ﻉ","ﻊ","ﻋ","ﻌ"],["غ","ﻍ","ﻎ","ﻏ","ﻐ"],["ـ","ـ","ـ","ـ","ـ"],["ف","ﻑ","ﻒ","ﻓ","ﻔ"],["ق","ﻕ","ﻖ","ﻗ","ﻘ"],["ك","ﻙ","ﻚ","ﻛ","ﻜ"],["ل","ﻝ","ﻞ","ﻟ","ﻠ"],["م","ﻡ","ﻢ","ﻣ","ﻤ"],["ن","ﻥ","ﻦ","ﻧ","ﻨ"],["ه","ﻩ","ﻪ","ﻫ","ﻬ"],["و","ﻭ","ﻮ"],["ى","ﻯ","ﻰ","ﯨ","ﯩ"],["ي","ﻱ","ﻲ","ﻳ","ﻴ"],["ٱ","ﭐ","ﭑ"],["ٹ","ﭦ","ﭧ","ﭨ","ﭩ"],["ٺ","ﭞ","ﭟ","ﭠ","ﭡ"],["ٻ","ﭒ","ﭓ","ﭔ","ﭕ"],["پ","ﭖ","ﭗ","ﭘ","ﭙ"],["ٿ","ﭢ","ﭣ","ﭤ","ﭥ"],["ڀ","ﭚ","ﭛ","ﭜ","ﭝ"],["ڃ","ﭶ","ﭷ","ﭸ","ﭹ"],["ڄ","ﭲ","ﭳ","ﭴ","ﭵ"],["چ","ﭺ","ﭻ","ﭼ","ﭽ"],["ڇ","ﭾ","ﭿ","ﮀ","ﮁ"],["ڈ","ﮈ","ﮉ"],["ڌ","ﮄ","ﮅ"],["ڍ","ﮂ","ﮃ"],["ڎ","ﮆ","ﮇ"],["ڑ","ﮌ","ﮍ"],["ژ","ﮊ","ﮋ"],["ڤ","ﭪ","ﭫ","ﭬ","ﭭ"],["ڦ","ﭮ","ﭯ","ﭰ","ﭱ"],["ک","ﮎ","ﮏ","ﮐ","ﮑ"],["ڭ","ﯓ","ﯔ","ﯕ","ﯖ"],["گ","ﮒ","ﮓ","ﮔ","ﮕ"],["ڱ","ﮚ","ﮛ","ﮜ","ﮝ"],["ڳ","ﮖ","ﮗ","ﮘ","ﮙ"],["ں","ﮞ","ﮟ"],["ڻ","ﮠ","ﮡ","ﮢ","ﮣ"],["ھ","ﮪ","ﮫ","ﮬ","ﮭ"],["ۀ","ﮤ","ﮥ"],["ہ","ﮦ","ﮧ","ﮨ","ﮩ"],["ۅ","ﯠ","ﯡ"],["ۆ","ﯙ","ﯚ"],["ۇ","ﯗ","ﯘ"],["ۈ","ﯛ","ﯜ"],["ۉ","ﯢ","ﯣ"],["ۋ","ﯞ","ﯟ"],["ی","ﯼ","ﯽ","ﯾ","ﯿ"],["ې","ﯤ","ﯥ","ﯦ","ﯧ"],["ے","ﮮ","ﮯ"],["ۓ","ﮰ","ﮱ"]],this.alef="ا",this.alefHamza="أ",this.alefHamzaBelow="إ",this.alefMadda="آ",this.lam="ل",this.hamza="ء",this.zeroWidthJoiner="‍",this.hamzaAbove="ٔ",this.hamzaBelow="ٕ",this.wawHamza="ؤ",this.yehHamza="ئ",this.waw="و",this.alefMaksura="ى",this.yeh="ي",this.farsiYeh="ی",this.shadda="ّ",this.madda="ٓ",this.lwa="ﻻ",this.lwawh="ﻷ",this.lwawhb="ﻹ",this.lwawm="ﻵ",this.bwhb="ۓ",this.fathatan="ً",this.superScriptalef="ٰ",this.vowel=1,this.arabicMapTable=new di;for(var t=0;t<this.arabicCharTable.length;t++)this.arabicMapTable.setValue(this.arabicCharTable[t][0],this.arabicCharTable[t])}return t.prototype.getCharacterShape=function(t,e){if(t>=this.hamza&&t<=this.bwhb){if(this.arabicMapTable.getValue(t))return this.arabicMapTable.getValue(t)[e+1]}else if(t>=this.lwawm&&t<=this.lwa)return t;return t},t.prototype.shape=function(t,e){for(var i="",r="",n=0;n<t.length;n++){var o=t[n];if(o>="؀"&&o<="ۿ")r+=o;else{if(r.length>0)i+=this.doShape(r.toString(),0),r="";i+=o}}r.length>0&&(i+=this.doShape(r.toString(),0));return i.toString()},t.prototype.doShape=function(t,e){for(var i="",r=0,n=0,o="",s=new Kn,a=new Kn;n<t.length;)if(o=t[n++],0===this.ligature(o,a)){var u=this.getShapeCount(o);r=1===u?0:2,s.Shapes>2&&(r+=1),r%=a.Shapes,a.Value=this.getCharacterShape(a.Value,r),i=this.append(i,s,e),s=a,(a=new Kn).Value=o,a.Shapes=u,a.Ligature++}return r=s.Shapes>2?1:0,r%=a.Shapes,a.Value=this.getCharacterShape(a.Value,r),i=this.append(i,s,e),(i=this.append(i,a,e)).toString()},t.prototype.append=function(t,e,i){return""!==e.Value&&(t+=e.Value,e.Ligature-=1,""!==e.Type&&(0===(i&this.vowel)?(t+=e.Type,e.Ligature-=1):e.Ligature-=1),""!==e.vowel&&(0===(i&this.vowel)?(t+=e.vowel,e.Ligature-=1):e.Ligature-=1)),t},t.prototype.ligature=function(t,e){if(""!==e.Value){var i=0;if(t>=this.fathatan&&t<=this.hamzaBelow||t===this.superScriptalef){if(i=1,""!==e.vowel&&t!==this.shadda&&(i=2),t===this.shadda){if(null!=e.Type)return 0;e.Type=this.shadda}else t===this.hamzaBelow?e.Value===this.alef?(e.Value=this.alefHamzaBelow,i=2):t===this.lwa?(e.Value=this.lwawhb,i=2):e.Type=this.hamzaBelow:t===this.hamzaAbove?e.Value===this.alef?(e.Value=this.alefHamza,i=2):e.Value===this.lwa?(e.Value=this.lwawh,i=2):e.Value===this.waw?(e.Value=this.wawHamza,i=2):e.Value===this.yeh||e.Value===this.alefMaksura||e.Value===this.farsiYeh?(e.Value=this.yehHamza,i=2):e.Type=this.hamzaAbove:t===this.madda?e.Value===this.alef&&(e.Value=this.alefMadda,i=2):e.vowel=t;return 1===i&&e.Ligature++,i}return""!==e.vowel?0:(e.Value===this.lam&&(t===this.alef?(e.Value=this.lwa,e.Shapes=2,i=3):t===this.alefHamza?(e.Value=this.lwawh,e.Shapes=2,i=3):t===this.alefHamzaBelow?(e.Value=this.lwawhb,e.Shapes=2,i=3):t===this.alefMadda&&(e.Value=this.lwawm,e.Shapes=2,i=3)),i)}return 0},t.prototype.getShapeCount=function(t){if(t>=this.hamza&&t<=this.bwhb&&!(t>=this.fathatan&&t<=this.hamzaBelow||t===this.superScriptalef)){if(this.arabicMapTable.getValue(t))return this.arabicMapTable.getValue(t).length-1}else if(t===this.zeroWidthJoiner)return 4;return 1},t}(),Kn=function(){function t(){this.shapeValue="",this.shapeType="",this.shapeVowel="",this.shapeLigature=0,this.shapeShapes=1}return Object.defineProperty(t.prototype,"Value",{get:function(){return this.shapeValue},set:function(t){this.shapeValue=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"Type",{get:function(){return this.shapeType},set:function(t){this.shapeType=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"vowel",{get:function(){return this.shapeVowel},set:function(t){this.shapeVowel=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"Ligature",{get:function(){return this.shapeLigature},set:function(t){this.shapeLigature=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"Shapes",{get:function(){return this.shapeShapes},set:function(t){this.shapeShapes=t},enumerable:!0,configurable:!0}),t}(),Xn=function(){function t(){this.indexes=[],this.indexLevels=[],this.mirroringShapeCharacters=new di,this.update()}return t.prototype.doMirrorShaping=function(t){for(var e=[],i=0;i<t.length;i++)1&~this.indexLevels[i]||!this.mirroringShapeCharacters.containsKey(t[i].charCodeAt(0))?e[i]=t[i].toString():e[i]=String.fromCharCode(this.mirroringShapeCharacters.getValue(t[i].charCodeAt(0)));for(var r="",n=0;n<e.length;n++)r+=e[n];return r},t.prototype.getLogicalToVisualString=function(t,e){var i=new $n;this.indexLevels=i.getVisualOrder(t,e),this.setDefaultIndexLevel(),this.doOrder(0,this.indexLevels.length-1);for(var r=this.doMirrorShaping(t),n="",o=0;o<this.indexes.length;o++){n+=r[this.indexes[o]]}return n.toString()},t.prototype.setDefaultIndexLevel=function(){for(var t=0;t<this.indexLevels.length;t++)this.indexes[t]=t},t.prototype.doOrder=function(t,e){for(var i=this.indexLevels[t],r=i,n=i,o=i,s=t+1;s<=e;++s){var a=this.indexLevels[s];a>i?i=a:a<r&&(r=a),n&=a,o|=a}if(1&o)if(1&~n)for(r|=1;i>=r;){for(var u=t;;){for(;u<=e&&!(this.indexLevels[u]>=i);)u+=1;if(u>e)break;for(var c=u+1;c<=e&&!(this.indexLevels[c]<i);)c+=1;this.reArrange(u,c),u=c+1}i-=1}else this.reArrange(t,e+1)},t.prototype.reArrange=function(t,e){var i=(t+e)/2;for(--e;t<i;++t,--e){var r=this.indexes[t];this.indexes[t]=this.indexes[e],this.indexes[e]=r}},t.prototype.update=function(){this.mirroringShapeCharacters.setValue(40,41),this.mirroringShapeCharacters.setValue(41,40),this.mirroringShapeCharacters.setValue(60,62),this.mirroringShapeCharacters.setValue(62,60),this.mirroringShapeCharacters.setValue(91,93),this.mirroringShapeCharacters.setValue(93,91),this.mirroringShapeCharacters.setValue(123,125),this.mirroringShapeCharacters.setValue(125,123),this.mirroringShapeCharacters.setValue(171,187),this.mirroringShapeCharacters.setValue(187,171),this.mirroringShapeCharacters.setValue(8249,8250),this.mirroringShapeCharacters.setValue(8250,8249),this.mirroringShapeCharacters.setValue(8261,8262),this.mirroringShapeCharacters.setValue(8262,8261),this.mirroringShapeCharacters.setValue(8317,8318),this.mirroringShapeCharacters.setValue(8318,8317),this.mirroringShapeCharacters.setValue(8333,8334),this.mirroringShapeCharacters.setValue(8334,8333),this.mirroringShapeCharacters.setValue(8712,8715),this.mirroringShapeCharacters.setValue(8713,8716),this.mirroringShapeCharacters.setValue(8714,8717),this.mirroringShapeCharacters.setValue(8715,8712),this.mirroringShapeCharacters.setValue(8716,8713),this.mirroringShapeCharacters.setValue(8717,8714),this.mirroringShapeCharacters.setValue(8725,10741),this.mirroringShapeCharacters.setValue(8764,8765),this.mirroringShapeCharacters.setValue(8765,8764),this.mirroringShapeCharacters.setValue(8771,8909),this.mirroringShapeCharacters.setValue(8786,8787),this.mirroringShapeCharacters.setValue(8787,8786),this.mirroringShapeCharacters.setValue(8788,8789),this.mirroringShapeCharacters.setValue(8789,8788),this.mirroringShapeCharacters.setValue(8804,8805),this.mirroringShapeCharacters.setValue(8805,8804),this.mirroringShapeCharacters.setValue(8806,8807),this.mirroringShapeCharacters.setValue(8807,8806),this.mirroringShapeCharacters.setValue(8808,8809),this.mirroringShapeCharacters.setValue(8809,8808),this.mirroringShapeCharacters.setValue(8810,8811),this.mirroringShapeCharacters.setValue(8811,8810),this.mirroringShapeCharacters.setValue(8814,8815),this.mirroringShapeCharacters.setValue(8815,8814),this.mirroringShapeCharacters.setValue(8816,8817),this.mirroringShapeCharacters.setValue(8817,8816),this.mirroringShapeCharacters.setValue(8818,8819),this.mirroringShapeCharacters.setValue(8819,8818),this.mirroringShapeCharacters.setValue(8820,8821),this.mirroringShapeCharacters.setValue(8821,8820),this.mirroringShapeCharacters.setValue(8822,8823),this.mirroringShapeCharacters.setValue(8823,8822),this.mirroringShapeCharacters.setValue(8824,8825),this.mirroringShapeCharacters.setValue(8825,8824),this.mirroringShapeCharacters.setValue(8826,8827),this.mirroringShapeCharacters.setValue(8827,8826),this.mirroringShapeCharacters.setValue(8828,8829),this.mirroringShapeCharacters.setValue(8829,8828),this.mirroringShapeCharacters.setValue(8830,8831),this.mirroringShapeCharacters.setValue(8831,8830),this.mirroringShapeCharacters.setValue(8832,8833),this.mirroringShapeCharacters.setValue(8833,8832),this.mirroringShapeCharacters.setValue(8834,8835),this.mirroringShapeCharacters.setValue(8835,8834),this.mirroringShapeCharacters.setValue(8836,8837),this.mirroringShapeCharacters.setValue(8837,8836),this.mirroringShapeCharacters.setValue(8838,8839),this.mirroringShapeCharacters.setValue(8839,8838),this.mirroringShapeCharacters.setValue(8840,8841),this.mirroringShapeCharacters.setValue(8841,8840),this.mirroringShapeCharacters.setValue(8842,8843),this.mirroringShapeCharacters.setValue(8843,8842),this.mirroringShapeCharacters.setValue(8847,8848),this.mirroringShapeCharacters.setValue(8848,8847),this.mirroringShapeCharacters.setValue(8849,8850),this.mirroringShapeCharacters.setValue(8850,8849),this.mirroringShapeCharacters.setValue(8856,10680),this.mirroringShapeCharacters.setValue(8866,8867),this.mirroringShapeCharacters.setValue(8867,8866),this.mirroringShapeCharacters.setValue(8870,10974),this.mirroringShapeCharacters.setValue(8872,10980),this.mirroringShapeCharacters.setValue(8873,10979),this.mirroringShapeCharacters.setValue(8875,10981),this.mirroringShapeCharacters.setValue(8880,8881),this.mirroringShapeCharacters.setValue(8881,8880),this.mirroringShapeCharacters.setValue(8882,8883),this.mirroringShapeCharacters.setValue(8883,8882),this.mirroringShapeCharacters.setValue(8884,8885),this.mirroringShapeCharacters.setValue(8885,8884),this.mirroringShapeCharacters.setValue(8886,8887),this.mirroringShapeCharacters.setValue(8887,8886),this.mirroringShapeCharacters.setValue(8905,8906),this.mirroringShapeCharacters.setValue(8906,8905),this.mirroringShapeCharacters.setValue(8907,8908),this.mirroringShapeCharacters.setValue(8908,8907),this.mirroringShapeCharacters.setValue(8909,8771),this.mirroringShapeCharacters.setValue(8912,8913),this.mirroringShapeCharacters.setValue(8913,8912),this.mirroringShapeCharacters.setValue(8918,8919),this.mirroringShapeCharacters.setValue(8919,8918),this.mirroringShapeCharacters.setValue(8920,8921),this.mirroringShapeCharacters.setValue(8921,8920),this.mirroringShapeCharacters.setValue(8922,8923),this.mirroringShapeCharacters.setValue(8923,8922),this.mirroringShapeCharacters.setValue(8924,8925),this.mirroringShapeCharacters.setValue(8925,8924),this.mirroringShapeCharacters.setValue(8926,8927),this.mirroringShapeCharacters.setValue(8927,8926),this.mirroringShapeCharacters.setValue(8928,8929),this.mirroringShapeCharacters.setValue(8929,8928),this.mirroringShapeCharacters.setValue(8930,8931),this.mirroringShapeCharacters.setValue(8931,8930),this.mirroringShapeCharacters.setValue(8932,8933),this.mirroringShapeCharacters.setValue(8933,8932),this.mirroringShapeCharacters.setValue(8934,8935),this.mirroringShapeCharacters.setValue(8935,8934),this.mirroringShapeCharacters.setValue(8936,8937),this.mirroringShapeCharacters.setValue(8937,8936),this.mirroringShapeCharacters.setValue(8938,8939),this.mirroringShapeCharacters.setValue(8939,8938),this.mirroringShapeCharacters.setValue(8940,8941),this.mirroringShapeCharacters.setValue(8941,8940),this.mirroringShapeCharacters.setValue(8944,8945),this.mirroringShapeCharacters.setValue(8945,8944),this.mirroringShapeCharacters.setValue(8946,8954),this.mirroringShapeCharacters.setValue(8947,8955),this.mirroringShapeCharacters.setValue(8948,8956),this.mirroringShapeCharacters.setValue(8950,8957),this.mirroringShapeCharacters.setValue(8951,8958),this.mirroringShapeCharacters.setValue(8954,8946),this.mirroringShapeCharacters.setValue(8955,8947),this.mirroringShapeCharacters.setValue(8956,8948),this.mirroringShapeCharacters.setValue(8957,8950),this.mirroringShapeCharacters.setValue(8958,8951),this.mirroringShapeCharacters.setValue(8968,8969),this.mirroringShapeCharacters.setValue(8969,8968),this.mirroringShapeCharacters.setValue(8970,8971),this.mirroringShapeCharacters.setValue(8971,8970),this.mirroringShapeCharacters.setValue(9001,9002),this.mirroringShapeCharacters.setValue(9002,9001),this.mirroringShapeCharacters.setValue(10088,10089),this.mirroringShapeCharacters.setValue(10089,10088),this.mirroringShapeCharacters.setValue(10090,10091),this.mirroringShapeCharacters.setValue(10091,10090),this.mirroringShapeCharacters.setValue(10092,10093),this.mirroringShapeCharacters.setValue(10093,10092),this.mirroringShapeCharacters.setValue(10094,10095),this.mirroringShapeCharacters.setValue(10095,10094),this.mirroringShapeCharacters.setValue(10096,10097),this.mirroringShapeCharacters.setValue(10097,10096),this.mirroringShapeCharacters.setValue(10098,10099),this.mirroringShapeCharacters.setValue(10099,10098),this.mirroringShapeCharacters.setValue(10100,10101),this.mirroringShapeCharacters.setValue(10101,10100),this.mirroringShapeCharacters.setValue(10197,10198),this.mirroringShapeCharacters.setValue(10198,10197),this.mirroringShapeCharacters.setValue(10205,10206),this.mirroringShapeCharacters.setValue(10206,10205),this.mirroringShapeCharacters.setValue(10210,10211),this.mirroringShapeCharacters.setValue(10211,10210),this.mirroringShapeCharacters.setValue(10212,10213),this.mirroringShapeCharacters.setValue(10213,10212),this.mirroringShapeCharacters.setValue(10214,10215),this.mirroringShapeCharacters.setValue(10215,10214),this.mirroringShapeCharacters.setValue(10216,10217),this.mirroringShapeCharacters.setValue(10217,10216),this.mirroringShapeCharacters.setValue(10218,10219),this.mirroringShapeCharacters.setValue(10219,10218),this.mirroringShapeCharacters.setValue(10627,10628),this.mirroringShapeCharacters.setValue(10628,10627),this.mirroringShapeCharacters.setValue(10629,10630),this.mirroringShapeCharacters.setValue(10630,10629),this.mirroringShapeCharacters.setValue(10631,10632),this.mirroringShapeCharacters.setValue(10632,10631),this.mirroringShapeCharacters.setValue(10633,10634),this.mirroringShapeCharacters.setValue(10634,10633),this.mirroringShapeCharacters.setValue(10635,10636),this.mirroringShapeCharacters.setValue(10636,10635),this.mirroringShapeCharacters.setValue(10637,10640),this.mirroringShapeCharacters.setValue(10638,10639),this.mirroringShapeCharacters.setValue(10639,10638),this.mirroringShapeCharacters.setValue(10640,10637),this.mirroringShapeCharacters.setValue(10641,10642),this.mirroringShapeCharacters.setValue(10642,10641),this.mirroringShapeCharacters.setValue(10643,10644),this.mirroringShapeCharacters.setValue(10644,10643),this.mirroringShapeCharacters.setValue(10645,10646),this.mirroringShapeCharacters.setValue(10646,10645),this.mirroringShapeCharacters.setValue(10647,10648),this.mirroringShapeCharacters.setValue(10648,10647),this.mirroringShapeCharacters.setValue(10680,8856),this.mirroringShapeCharacters.setValue(10688,10689),this.mirroringShapeCharacters.setValue(10689,10688),this.mirroringShapeCharacters.setValue(10692,10693),this.mirroringShapeCharacters.setValue(10693,10692),this.mirroringShapeCharacters.setValue(10703,10704),this.mirroringShapeCharacters.setValue(10704,10703),this.mirroringShapeCharacters.setValue(10705,10706),this.mirroringShapeCharacters.setValue(10706,10705),this.mirroringShapeCharacters.setValue(10708,10709),this.mirroringShapeCharacters.setValue(10709,10708),this.mirroringShapeCharacters.setValue(10712,10713),this.mirroringShapeCharacters.setValue(10713,10712),this.mirroringShapeCharacters.setValue(10714,10715),this.mirroringShapeCharacters.setValue(10715,10714),this.mirroringShapeCharacters.setValue(10741,8725),this.mirroringShapeCharacters.setValue(10744,10745),this.mirroringShapeCharacters.setValue(10745,10744),this.mirroringShapeCharacters.setValue(10748,10749),this.mirroringShapeCharacters.setValue(10749,10748),this.mirroringShapeCharacters.setValue(10795,10796),this.mirroringShapeCharacters.setValue(10796,10795),this.mirroringShapeCharacters.setValue(10797,10796),this.mirroringShapeCharacters.setValue(10798,10797),this.mirroringShapeCharacters.setValue(10804,10805),this.mirroringShapeCharacters.setValue(10805,10804),this.mirroringShapeCharacters.setValue(10812,10813),this.mirroringShapeCharacters.setValue(10813,10812),this.mirroringShapeCharacters.setValue(10852,10853),this.mirroringShapeCharacters.setValue(10853,10852),this.mirroringShapeCharacters.setValue(10873,10874),this.mirroringShapeCharacters.setValue(10874,10873),this.mirroringShapeCharacters.setValue(10877,10878),this.mirroringShapeCharacters.setValue(10878,10877),this.mirroringShapeCharacters.setValue(10879,10880),this.mirroringShapeCharacters.setValue(10880,10879),this.mirroringShapeCharacters.setValue(10881,10882),this.mirroringShapeCharacters.setValue(10882,10881),this.mirroringShapeCharacters.setValue(10883,10884),this.mirroringShapeCharacters.setValue(10884,10883),this.mirroringShapeCharacters.setValue(10891,10892),this.mirroringShapeCharacters.setValue(10892,10891),this.mirroringShapeCharacters.setValue(10897,10898),this.mirroringShapeCharacters.setValue(10898,10897),this.mirroringShapeCharacters.setValue(10899,10900),this.mirroringShapeCharacters.setValue(10900,10899),this.mirroringShapeCharacters.setValue(10901,10902),this.mirroringShapeCharacters.setValue(10902,10901),this.mirroringShapeCharacters.setValue(10903,10904),this.mirroringShapeCharacters.setValue(10904,10903),this.mirroringShapeCharacters.setValue(10905,10906),this.mirroringShapeCharacters.setValue(10906,10905),this.mirroringShapeCharacters.setValue(10907,10908),this.mirroringShapeCharacters.setValue(10908,10907),this.mirroringShapeCharacters.setValue(10913,10914),this.mirroringShapeCharacters.setValue(10914,10913),this.mirroringShapeCharacters.setValue(10918,10919),this.mirroringShapeCharacters.setValue(10919,10918),this.mirroringShapeCharacters.setValue(10920,10921),this.mirroringShapeCharacters.setValue(10921,10920),this.mirroringShapeCharacters.setValue(10922,10923),this.mirroringShapeCharacters.setValue(10923,10922),this.mirroringShapeCharacters.setValue(10924,10925),this.mirroringShapeCharacters.setValue(10925,10924),this.mirroringShapeCharacters.setValue(10927,10928),this.mirroringShapeCharacters.setValue(10928,10927),this.mirroringShapeCharacters.setValue(10931,10932),this.mirroringShapeCharacters.setValue(10932,10931),this.mirroringShapeCharacters.setValue(10939,10940),this.mirroringShapeCharacters.setValue(10940,10939),this.mirroringShapeCharacters.setValue(10941,10942),this.mirroringShapeCharacters.setValue(10942,10941),this.mirroringShapeCharacters.setValue(10943,10944),this.mirroringShapeCharacters.setValue(10944,10943),this.mirroringShapeCharacters.setValue(10945,10946),this.mirroringShapeCharacters.setValue(10946,10945),this.mirroringShapeCharacters.setValue(10947,10948),this.mirroringShapeCharacters.setValue(10948,10947),this.mirroringShapeCharacters.setValue(10949,10950),this.mirroringShapeCharacters.setValue(10950,10949),this.mirroringShapeCharacters.setValue(10957,10958),this.mirroringShapeCharacters.setValue(10958,10957),this.mirroringShapeCharacters.setValue(10959,10960),this.mirroringShapeCharacters.setValue(10960,10959),this.mirroringShapeCharacters.setValue(10961,10962),this.mirroringShapeCharacters.setValue(10962,10961),this.mirroringShapeCharacters.setValue(10963,10964),this.mirroringShapeCharacters.setValue(10964,10963),this.mirroringShapeCharacters.setValue(10965,10966),this.mirroringShapeCharacters.setValue(10966,10965),this.mirroringShapeCharacters.setValue(10974,8870),this.mirroringShapeCharacters.setValue(10979,8873),this.mirroringShapeCharacters.setValue(10980,8872),this.mirroringShapeCharacters.setValue(10981,8875),this.mirroringShapeCharacters.setValue(10988,10989),this.mirroringShapeCharacters.setValue(10989,10988),this.mirroringShapeCharacters.setValue(10999,11e3),this.mirroringShapeCharacters.setValue(11e3,10999),this.mirroringShapeCharacters.setValue(11001,11002),this.mirroringShapeCharacters.setValue(11002,11001),this.mirroringShapeCharacters.setValue(12296,12297),this.mirroringShapeCharacters.setValue(12297,12296),this.mirroringShapeCharacters.setValue(12298,12299),this.mirroringShapeCharacters.setValue(12299,12298),this.mirroringShapeCharacters.setValue(12300,12301),this.mirroringShapeCharacters.setValue(12301,12300),this.mirroringShapeCharacters.setValue(12302,12303),this.mirroringShapeCharacters.setValue(12303,12302),this.mirroringShapeCharacters.setValue(12304,12305),this.mirroringShapeCharacters.setValue(12305,12304),this.mirroringShapeCharacters.setValue(12308,12309),this.mirroringShapeCharacters.setValue(12309,12308),this.mirroringShapeCharacters.setValue(12310,12311),this.mirroringShapeCharacters.setValue(12311,12310),this.mirroringShapeCharacters.setValue(12312,12313),this.mirroringShapeCharacters.setValue(12313,12312),this.mirroringShapeCharacters.setValue(12314,12315),this.mirroringShapeCharacters.setValue(12315,12314),this.mirroringShapeCharacters.setValue(65288,65289),this.mirroringShapeCharacters.setValue(65289,65288),this.mirroringShapeCharacters.setValue(65308,65310),this.mirroringShapeCharacters.setValue(65310,65308),this.mirroringShapeCharacters.setValue(65339,65341),this.mirroringShapeCharacters.setValue(65341,65339),this.mirroringShapeCharacters.setValue(65371,65373),this.mirroringShapeCharacters.setValue(65373,65371),this.mirroringShapeCharacters.setValue(65375,65376),this.mirroringShapeCharacters.setValue(65376,65375),this.mirroringShapeCharacters.setValue(65378,65379),this.mirroringShapeCharacters.setValue(65379,65378)},t}(),$n=function(){function t(){this.types=[],this.textOrder=-1,this.rtlCharacterTypes=new Array(65536),this.L=0,this.LRE=1,this.LRO=2,this.R=3,this.AL=4,this.RLE=5,this.RLO=6,this.PDF=7,this.EN=8,this.ES=9,this.ET=10,this.AN=11,this.CS=12,this.NSM=13,this.BN=14,this.B=15,this.S=16,this.WS=17,this.ON=18,this.charTypes=[this.L,this.EN,this.BN,this.ES,this.ES,this.S,this.ET,this.ET,this.B,this.AN,this.AN,this.S,this.CS,this.CS,this.WS,this.NSM,this.NSM,this.B,this.BN,27,this.BN,28,30,this.B,31,31,this.S,32,32,this.WS,33,34,this.ON,35,37,this.ET,38,42,this.ON,43,43,this.ET,44,44,this.CS,45,45,this.ET,46,46,this.CS,47,47,this.CS,48,57,this.EN,58,58,this.CS,59,64,this.ON,65,90,this.L,91,96,this.ON,97,122,this.L,123,126,this.ON,127,132,this.BN,133,133,this.B,134,159,this.BN,160,160,this.CS,161,161,this.ON,162,165,this.ET,166,169,this.ON,170,170,this.L,171,175,this.ON,176,177,this.ET,178,179,this.EN,180,180,this.ON,181,181,this.L,182,184,this.ON,185,185,this.EN,186,186,this.L,187,191,this.ON,192,214,this.L,215,215,this.ON,216,246,this.L,247,247,this.ON,248,696,this.L,697,698,this.ON,699,705,this.L,706,719,this.ON,720,721,this.L,722,735,this.ON,736,740,this.L,741,749,this.ON,750,750,this.L,751,767,this.ON,768,855,this.NSM,856,860,this.L,861,879,this.NSM,880,883,this.L,884,885,this.ON,886,893,this.L,894,894,this.ON,895,899,this.L,900,901,this.ON,902,902,this.L,903,903,this.ON,904,1013,this.L,1014,1014,this.ON,1015,1154,this.L,1155,1158,this.NSM,1159,1159,this.L,1160,1161,this.NSM,1162,1417,this.L,1418,1418,this.ON,1419,1424,this.L,1425,1441,this.NSM,1442,1442,this.L,1443,1465,this.NSM,1466,1466,this.L,1467,1469,this.NSM,1470,1470,this.R,1471,1471,this.NSM,1472,1472,this.R,1473,1474,this.NSM,1475,1475,this.R,1476,1476,this.NSM,1477,1487,this.L,1488,1514,this.R,1515,1519,this.L,1520,1524,this.R,1525,1535,this.L,1536,1539,this.AL,1540,1547,this.L,1548,1548,this.CS,1549,1549,this.AL,1550,1551,this.ON,1552,1557,this.NSM,1558,1562,this.L,1563,1563,this.AL,1564,1566,this.L,1567,1567,this.AL,1568,1568,this.L,1569,1594,this.AL,1595,1599,this.L,1600,1610,this.AL,1611,1624,this.NSM,1625,1631,this.L,1632,1641,this.AN,1642,1642,this.ET,1643,1644,this.AN,1645,1647,this.AL,1648,1648,this.NSM,1649,1749,this.AL,1750,1756,this.NSM,1757,1757,this.AL,1758,1764,this.NSM,1765,1766,this.AL,1767,1768,this.NSM,1769,1769,this.ON,1770,1773,this.NSM,1774,1775,this.AL,1776,1785,this.EN,1786,1805,this.AL,1806,1806,this.L,1807,1807,this.BN,1808,1808,this.AL,1809,1809,this.NSM,1810,1839,this.AL,1840,1866,this.NSM,1867,1868,this.L,1869,1871,this.AL,1872,1919,this.L,1920,1957,this.AL,1958,1968,this.NSM,1969,1969,this.AL,1970,2304,this.L,2305,2306,this.NSM,2307,2363,this.L,2364,2364,this.NSM,2365,2368,this.L,2369,2376,this.NSM,2377,2380,this.L,2381,2381,this.NSM,2382,2384,this.L,2385,2388,this.NSM,2389,2401,this.L,2402,2403,this.NSM,2404,2432,this.L,2433,2433,this.NSM,2434,2491,this.L,2492,2492,this.NSM,2493,2496,this.L,2497,2500,this.NSM,2501,2508,this.L,2509,2509,this.NSM,2510,2529,this.L,2530,2531,this.NSM,2532,2545,this.L,2546,2547,this.ET,2548,2560,this.L,2561,2562,this.NSM,2563,2619,this.L,2620,2620,this.NSM,2621,2624,this.L,2625,2626,this.NSM,2627,2630,this.L,2631,2632,this.NSM,2633,2634,this.L,2635,2637,this.NSM,2638,2671,this.L,2672,2673,this.NSM,2674,2688,this.L,2689,2690,this.NSM,2691,2747,this.L,2748,2748,this.NSM,2749,2752,this.L,2753,2757,this.NSM,2758,2758,this.L,2759,2760,this.NSM,2761,2764,this.L,2765,2765,this.NSM,2766,2785,this.L,2786,2787,this.NSM,2788,2800,this.L,2801,2801,this.ET,2802,2816,this.L,2817,2817,this.NSM,2818,2875,this.L,2876,2876,this.NSM,2877,2878,this.L,2879,2879,this.NSM,2880,2880,this.L,2881,2883,this.NSM,2884,2892,this.L,2893,2893,this.NSM,2894,2901,this.L,2902,2902,this.NSM,2903,2945,this.L,2946,2946,this.NSM,2947,3007,this.L,3008,3008,this.NSM,3009,3020,this.L,3021,3021,this.NSM,3022,3058,this.L,3059,3064,this.ON,3065,3065,this.ET,3066,3066,this.ON,3067,3133,this.L,3134,3136,this.NSM,3137,3141,this.L,3142,3144,this.NSM,3145,3145,this.L,3146,3149,this.NSM,3150,3156,this.L,3157,3158,this.NSM,3159,3259,this.L,3260,3260,this.NSM,3261,3275,this.L,3276,3277,this.NSM,3278,3392,this.L,3393,3395,this.NSM,3396,3404,this.L,3405,3405,this.NSM,3406,3529,this.L,3530,3530,this.NSM,3531,3537,this.L,3538,3540,this.NSM,3541,3541,this.L,3542,3542,this.NSM,3543,3632,this.L,3633,3633,this.NSM,3634,3635,this.L,3636,3642,this.NSM,3643,3646,this.L,3647,3647,this.ET,3648,3654,this.L,3655,3662,this.NSM,3663,3760,this.L,3761,3761,this.NSM,3762,3763,this.L,3764,3769,this.NSM,3770,3770,this.L,3771,3772,this.NSM,3773,3783,this.L,3784,3789,this.NSM,3790,3863,this.L,3864,3865,this.NSM,3866,3892,this.L,3893,3893,this.NSM,3894,3894,this.L,3895,3895,this.NSM,3896,3896,this.L,3897,3897,this.NSM,3898,3901,this.ON,3902,3952,this.L,3953,3966,this.NSM,3967,3967,this.L,3968,3972,this.NSM,3973,3973,this.L,3974,3975,this.NSM,3976,3983,this.L,3984,3991,this.NSM,3992,3992,this.L,3993,4028,this.NSM,4029,4037,this.L,4038,4038,this.NSM,4039,4140,this.L,4141,4144,this.NSM,4145,4145,this.L,4146,4146,this.NSM,4147,4149,this.L,4150,4151,this.NSM,4152,4152,this.L,4153,4153,this.NSM,4154,4183,this.L,4184,4185,this.NSM,4186,5759,this.L,5760,5760,this.WS,5761,5786,this.L,5787,5788,this.ON,5789,5905,this.L,5906,5908,this.NSM,5909,5937,this.L,5938,5940,this.NSM,5941,5969,this.L,5970,5971,this.NSM,5972,6001,this.L,6002,6003,this.NSM,6004,6070,this.L,6071,6077,this.NSM,6078,6085,this.L,6086,6086,this.NSM,6087,6088,this.L,6089,6099,this.NSM,6100,6106,this.L,6107,6107,this.ET,6108,6108,this.L,6109,6109,this.NSM,6110,6127,this.L,6128,6137,this.ON,6138,6143,this.L,6144,6154,this.ON,6155,6157,this.NSM,6158,6158,this.WS,6159,6312,this.L,6313,6313,this.NSM,6314,6431,this.L,6432,6434,this.NSM,6435,6438,this.L,6439,6443,this.NSM,6444,6449,this.L,6450,6450,this.NSM,6451,6456,this.L,6457,6459,this.NSM,6460,6463,this.L,6464,6464,this.ON,6465,6467,this.L,6468,6469,this.ON,6470,6623,this.L,6624,6655,this.ON,6656,8124,this.L,8125,8125,this.ON,8126,8126,this.L,8127,8129,this.ON,8130,8140,this.L,8141,8143,this.ON,8144,8156,this.L,8157,8159,this.ON,8160,8172,this.L,8173,8175,this.ON,8176,8188,this.L,8189,8190,this.ON,8191,8191,this.L,8192,8202,this.WS,8203,8205,this.BN,8206,8206,this.L,8207,8207,this.R,8208,8231,this.ON,8232,8232,this.WS,8233,8233,this.B,8234,8234,this.LRE,8235,8235,this.RLE,8236,8236,this.PDF,8237,8237,this.LRO,8238,8238,this.RLO,8239,8239,this.WS,8240,8244,this.ET,8245,8276,this.ON,8277,8278,this.L,8279,8279,this.ON,8280,8286,this.L,8287,8287,this.WS,8288,8291,this.BN,8292,8297,this.L,8298,8303,this.BN,8304,8304,this.EN,8305,8307,this.L,8308,8313,this.EN,8314,8315,this.ET,8316,8318,this.ON,8319,8319,this.L,8320,8329,this.EN,8330,8331,this.ET,8332,8334,this.ON,8335,8351,this.L,8352,8369,this.ET,8370,8399,this.L,8400,8426,this.NSM,8427,8447,this.L,8448,8449,this.ON,8450,8450,this.L,8451,8454,this.ON,8455,8455,this.L,8456,8457,this.ON,8458,8467,this.L,8468,8468,this.ON,8469,8469,this.L,8470,8472,this.ON,8473,8477,this.L,8478,8483,this.ON,8484,8484,this.L,8485,8485,this.ON,8486,8486,this.L,8487,8487,this.ON,8488,8488,this.L,8489,8489,this.ON,8490,8493,this.L,8494,8494,this.ET,8495,8497,this.L,8498,8498,this.ON,8499,8505,this.L,8506,8507,this.ON,8508,8511,this.L,8512,8516,this.ON,8517,8521,this.L,8522,8523,this.ON,8524,8530,this.L,8531,8543,this.ON,8544,8591,this.L,8592,8721,this.ON,8722,8723,this.ET,8724,9013,this.ON,9014,9082,this.L,9083,9108,this.ON,9109,9109,this.L,9110,9168,this.ON,9169,9215,this.L,9216,9254,this.ON,9255,9279,this.L,9280,9290,this.ON,9291,9311,this.L,9312,9371,this.EN,9372,9449,this.L,9450,9450,this.EN,9451,9751,this.ON,9752,9752,this.L,9753,9853,this.ON,9854,9855,this.L,9856,9873,this.ON,9874,9887,this.L,9888,9889,this.ON,9890,9984,this.L,9985,9988,this.ON,9989,9989,this.L,9990,9993,this.ON,9994,9995,this.L,9996,10023,this.ON,10024,10024,this.L,10025,10059,this.ON,10060,10060,this.L,10061,10061,this.ON,10062,10062,this.L,10063,10066,this.ON,10067,10069,this.L,10070,10070,this.ON,10071,10071,this.L,10072,10078,this.ON,10079,10080,this.L,10081,10132,this.ON,10133,10135,this.L,10136,10159,this.ON,10160,10160,this.L,10161,10174,this.ON,10175,10191,this.L,10192,10219,this.ON,10220,10223,this.L,10224,11021,this.ON,11022,11903,this.L,11904,11929,this.ON,11930,11930,this.L,11931,12019,this.ON,12020,12031,this.L,12032,12245,this.ON,12246,12271,this.L,12272,12283,this.ON,12284,12287,this.L,12288,12288,this.WS,12289,12292,this.ON,12293,12295,this.L,12296,12320,this.ON,12321,12329,this.L,12330,12335,this.NSM,12336,12336,this.ON,12337,12341,this.L,12342,12343,this.ON,12344,12348,this.L,12349,12351,this.ON,12352,12440,this.L,12441,12442,this.NSM,12443,12444,this.ON,12445,12447,this.L,12448,12448,this.ON,12449,12538,this.L,12539,12539,this.ON,12540,12828,this.L,12829,12830,this.ON,12831,12879,this.L,12880,12895,this.ON,12896,12923,this.L,12924,12925,this.ON,12926,12976,this.L,12977,12991,this.ON,12992,13003,this.L,13004,13007,this.ON,13008,13174,this.L,13175,13178,this.ON,13179,13277,this.L,13278,13279,this.ON,13280,13310,this.L,13311,13311,this.ON,13312,19903,this.L,19904,19967,this.ON,19968,42127,this.L,42128,42182,this.ON,42183,64284,this.L,64285,64285,this.R,64286,64286,this.NSM,64287,64296,this.R,64297,64297,this.ET,64298,64310,this.R,64311,64311,this.L,64312,64316,this.R,64317,64317,this.L,64318,64318,this.R,64319,64319,this.L,64320,64321,this.R,64322,64322,this.L,64323,64324,this.R,64325,64325,this.L,64326,64335,this.R,64336,64433,this.AL,64434,64466,this.L,64467,64829,this.AL,64830,64831,this.ON,64832,64847,this.L,64848,64911,this.AL,64912,64913,this.L,64914,64967,this.AL,64968,65007,this.L,65008,65020,this.AL,65021,65021,this.ON,65022,65023,this.L,65024,65039,this.NSM,65040,65055,this.L,65056,65059,this.NSM,65060,65071,this.L,65072,65103,this.ON,65104,65104,this.CS,65105,65105,this.ON,65106,65106,this.CS,65107,65107,this.L,65108,65108,this.ON,65109,65109,this.CS,65110,65118,this.ON,65119,65119,this.ET,65120,65121,this.ON,65122,65123,this.ET,65124,65126,this.ON,65127,65127,this.L,65128,65128,this.ON,65129,65130,this.ET,65131,65131,this.ON,65132,65135,this.L,65136,65140,this.AL,65141,65141,this.L,65142,65276,this.AL,65277,65278,this.L,65279,65279,this.BN,65280,65280,this.L,65281,65282,this.ON,65283,65285,this.ET,65286,65290,this.ON,65291,65291,this.ET,65292,65292,this.CS,65293,65293,this.ET,65294,65294,this.CS,65295,65295,this.ES,65296,65305,this.EN,65306,65306,this.CS,65307,65312,this.ON,65313,65338,this.L,65339,65344,this.ON,65345,65370,this.L,65371,65381,this.ON,65382,65503,this.L,65504,65505,this.ET,65506,65508,this.ON,65509,65510,this.ET,65511,65511,this.L,65512,65518,this.ON,65519,65528,this.L,65529,65531,this.BN,65532,65533,this.ON,65534,65535,this.L];for(var t=0;t<this.charTypes.length;++t)for(var e=this.charTypes[t],i=this.charTypes[++t],r=this.charTypes[++t];e<=i;)this.rtlCharacterTypes[e++]=r}return t.prototype.getVisualOrder=function(t,e){this.types=this.getCharacterCode(t),this.textOrder=e?this.LRE:this.L,this.doVisualOrder();for(var i=[],r=0;r<this.levels.length;r++)i[r]=this.levels[r];return i},t.prototype.getCharacterCode=function(t){for(var e=[],i=0;i<t.length;i++)e[i]=this.rtlCharacterTypes[t[i].charCodeAt(0)];return e},t.prototype.setDefaultLevels=function(){for(var t=0;t<this.length;t++)this.levels[t]=this.textOrder},t.prototype.setLevels=function(){this.setDefaultLevels();for(var t=0;t<this.length;++t){var e=this.levels[t];128&e&&(e&=127,this.result[t]=1&e?this.R:this.L),this.levels[t]=e}},t.prototype.updateLevels=function(t,e,i){if(1&e)for(r=t;r<i;++r)this.result[r]!==this.R&&(this.levels[r]+=1);else for(var r=t;r<i;++r)this.result[r]===this.R?this.levels[r]+=1:this.result[r]!==this.L&&(this.levels[r]+=2)},t.prototype.doVisualOrder=function(){this.length=this.types.length,this.result=this.types,this.levels=[],this.setLevels(),this.length=this.getEmbeddedCharactersLength();for(var t=this.textOrder,e=0;e<this.length;){for(var i=this.levels[e],r=1&Math.max(t,i)?this.R:this.L,n=e+1;n<this.length&&this.levels[n]===i;)++n;var o=n<this.length?this.levels[n]:this.textOrder,s=1&Math.max(o,i)?this.R:this.L;this.checkNSM(e,n,i,r,s),this.updateLevels(e,i,n),t=i,e=n}this.checkEmbeddedCharacters(this.length)},t.prototype.getEmbeddedCharactersLength=function(){for(var t=0,e=0;e<this.length;++e)this.types[e]!==this.LRE&&this.types[e]!==this.RLE&&this.types[e]!==this.LRO&&this.types[e]!==this.RLO&&this.types[e]!==this.PDF&&this.types[e]!==this.BN&&(this.result[t]=this.result[e],this.levels[t]=this.levels[e],t++);return t},t.prototype.checkEmbeddedCharacters=function(t){for(var e=this.types.length-1;e>=0;--e)this.types[e]===this.LRE||this.types[e]===this.RLE||this.types[e]===this.LRO||this.types[e]===this.RLO||this.types[e]===this.PDF||this.types[e]===this.BN?(this.result[e]=this.types[e],this.levels[e]=-1):(t-=1,this.result[e]=this.result[t],this.levels[e]=this.levels[t]);for(e=0;e<this.types.length;e++)-1===this.levels[e]&&(this.levels[e]=0===e?this.textOrder:this.levels[e-1])},t.prototype.checkNSM=function(t,e,i,r,n){for(var o=r,s=t;s<e;++s)this.result[s]===this.NSM?this.result[s]=o:o=this.result[s];this.checkEuropeanDigits(t,e,i,r,n)},t.prototype.checkEuropeanDigits=function(t,e,i,r,n){for(var o=t;o<e;++o)if(this.result[o]===this.EN)for(var s=o-1;s>=t;--s)if(this.result[s]===this.L||this.result[s]===this.R||this.result[s]===this.AL){this.result[s]===this.AL&&(this.result[o]=this.AN);break}this.checkArabicCharacters(t,e,i,r,n)},t.prototype.checkArabicCharacters=function(t,e,i,r,n){for(var o=t;o<e;++o)this.result[o]===this.AL&&(this.result[o]=this.R);this.checkEuropeanNumberSeparator(t,e,i,r,n)},t.prototype.checkEuropeanNumberSeparator=function(t,e,i,r,n){for(var o=t+1;o<e-1;++o)if(this.result[o]===this.ES||this.result[o]===this.CS){var s=this.result[o-1],a=this.result[o+1];s===this.EN&&a===this.EN?this.result[o]=this.EN:this.result[o]===this.CS&&s===this.AN&&a===this.AN&&(this.result[o]=this.AN)}this.checkEuropeanNumberTerminator(t,e,i,r,n)},t.prototype.checkEuropeanNumberTerminator=function(t,e,i,r,n){for(var o=t;o<e;++o)if(this.result[o]===this.ET){var s=o,a=[];a.push(this.ET);var u=this.getLength(s,e,a),c=s===t?r:this.result[s-1];if(c!==this.EN&&(c=u===e?n:this.result[u]),c===this.EN)for(var h=s;h<u;++h)this.result[h]=this.EN;o=u}this.checkOtherNeutrals(t,e,i,r,n)},t.prototype.checkOtherNeutrals=function(t,e,i,r,n){for(var o=t;o<e;++o)this.result[o]!==this.ES&&this.result[o]!==this.ET&&this.result[o]!==this.CS||(this.result[o]=this.ON);this.checkOtherCharacters(t,e,i,r,n)},t.prototype.checkOtherCharacters=function(t,e,i,r,n){for(var o=t;o<e;++o)if(this.result[o]===this.EN){for(var s=r,a=o-1;a>=t;--a)if(this.result[a]===this.L||this.result[a]===this.R){s=this.result[a];break}s===this.L&&(this.result[o]=this.L)}this.checkCommanCharacters(t,e,i,r,n)},t.prototype.getLength=function(t,e,i){for(--t;++t<e;){for(var r=this.result[t],n=0;n<i.length;++n)r===i[n]&&(t=this.getLength(++t,e,i));return t}return e},t.prototype.checkCommanCharacters=function(t,e,i,r,n){for(var o=t;o<e;++o)if(this.result[o]===this.WS||this.result[o]===this.ON||this.result[o]===this.B||this.result[o]===this.S){var s=o,a=[this.B,this.S,this.WS,this.ON],u=this.getLength(s,e,a),c=0,h=0,l=0;s===t?c=r:((c=this.result[s-1])===this.AN||c===this.EN)&&(c=this.R),u===e?h=n:((h=this.result[u])===this.AN||h===this.EN)&&(h=this.R),l=c===h?c:1&i?this.R:this.L;for(var p=s;p<u;++p)this.result[p]=l;o=u}},t}(),to=function(){function t(){this.openBracket="(",this.closeBracket=")"}return t.prototype.layout=function(t,e,i,r,n){if(null==t)throw new Error("ArgumentNullException : line");if(null==e)throw new Error("ArgumentNullException : font");var o=[];return e.Unicode?o=this.customLayout(t,i,n,e,r):(o=[])[0]=t,o},t.prototype.splitLayout=function(t,e,i,r,n){if(null==t)throw new Error("ArgumentNullException : line");if(null==e)throw new Error("ArgumentNullException : font");return this.customSplitLayout(t,e,i,r,n)},t.prototype.getGlyphIndex=function(t,e,i,r,n){if(null==t)throw new Error("ArgumentNullException : line");if(null==e)throw new Error("ArgumentNullException : font");if(r=null,0===t.length)return{success:!1,glyphs:r};var o=(new Zn).shape(t,0),s=e.fontInternal.ttfReader;r=new Uint16Array(o.length);for(var a=0,u=0,c=o.length;u<c;u++){var h=o[u],l=s.getGlyph(h);null!=l&&(r[a++]=l.index)}return{success:!0,glyphs:r}},t.prototype.customLayout=function(t,e,i,r,n){if(null==n){if(null==t)throw new Error("ArgumentNullException : line");var o=null;if(null!=i&&i.textDirection!==tr.None)o=(new Xn).getLogicalToVisualString(t,e);return o}if(null==t)throw new Error("ArgumentNullException : line");if(null==r)throw new Error("ArgumentNullException : font");var s=null;if(null!=i&&i.textDirection!==tr.None){var a=(new Zn).shape(t,0);s=this.customLayout(a,e,i)}o=[];if(n){for(var u=s.split(""),c=u.length,h=0;h<c;h++)u[h]=this.addChars(r,u[h]);o=u}else(o=[])[0]=this.addChars(r,s);return o},t.prototype.addChars=function(t,e){var i=e;if(null==t)throw new Error("ArgumentNullException : font");if(null==i)throw new Error("ArgumentNullException : line");var r=i,n=t.fontInternal.ttfReader;t.setSymbols(r),r=n.convertString(r);var o=er.toUnicodeArray(r,!1);return r=er.byteToString(o)},t.prototype.customSplitLayout=function(t,e,i,r,n){if(null==t)throw new Error("ArgumentNullException : line");if(null==e)throw new Error("ArgumentNullException : font");return this.customLayout(t,i,n).split("")},t}();!function(t){t[t.Paginate=0]="Paginate",t[t.OnePage=1]="OnePage"}(mn||(mn={})),function(t){t[t.FitPage=0]="FitPage",t[t.FitElement=1]="FitElement",t[t.FitColumnsToPage=2]="FitColumnsToPage"}(Nn||(Nn={})),function(t){t[t.Start=0]="Start",t[t.Line=1]="Line",t[t.Bezier3=3]="Bezier3",t[t.Bezier=3]="Bezier",t[t.PathTypeMask=7]="PathTypeMask",t[t.DashMode=16]="DashMode",t[t.PathMarker=32]="PathMarker",t[t.CloseSubpath=128]="CloseSubpath"}(jn||(jn={}));var eo=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),io=function(t){function e(e){var i=t.call(this)||this;return i.mbackground=new yr(255,255,255),i.mbStroking=!1,i.mfunction=null,i.dictionaryProperties=new yi,i.mpatternDictionary=new mi,i.mpatternDictionary.items.setValue(i.dictionaryProperties.type,new fi(i.dictionaryProperties.pattern)),i.mpatternDictionary.items.setValue(i.dictionaryProperties.patternType,new Ii(2)),i.shading=e,i.colorSpace=Zi.Rgb,i}return eo(e,t),Object.defineProperty(e.prototype,"background",{get:function(){return this.mbackground},set:function(t){this.mbackground=t;var e=this.shading;t.isEmpty?e.remove(this.dictionaryProperties.background):e.items.setValue(this.dictionaryProperties.background,t.toArray(this.colorSpace))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"antiAlias",{get:function(){return this.shading.items.getValue(this.dictionaryProperties.antiAlias).value},set:function(t){var e=this.shading,i=e.items.getValue(this.dictionaryProperties.antiAlias);null==i&&void 0===i?(i=new Fr(t),e.items.setValue(this.dictionaryProperties.antiAlias,i)):i.value=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"function",{get:function(){return this.mfunction},set:function(t){this.mfunction=t,null!=t&&void 0!==t?this.shading.items.setValue(this.dictionaryProperties.function,new rr(this.mfunction)):this.shading.remove(this.dictionaryProperties.function)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bBox",{get:function(){return this.shading.items.getValue(this.dictionaryProperties.bBox)},set:function(t){var e=this.shading;null==t&&void 0===t?e.remove(this.dictionaryProperties.bBox):e.items.setValue(this.dictionaryProperties.bBox,t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"colorSpace",{get:function(){return this.mcolorSpace},set:function(t){var e=this.shading.items.getValue(this.dictionaryProperties.colorSpace);if(t!==this.mcolorSpace||null==e){this.mcolorSpace=t;var i=this.colorSpaceToDeviceName(t);this.shading.items.setValue(this.dictionaryProperties.colorSpace,new fi(i))}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"stroking",{get:function(){return this.mbStroking},set:function(t){this.mbStroking=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"patternDictionary",{get:function(){return null==this.mpatternDictionary&&(this.mpatternDictionary=new mi),this.mpatternDictionary},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shading",{get:function(){return this.mshading},set:function(t){if(null==t)throw new Error("ArgumentNullException : Shading");t!==this.mshading&&(this.mshading=t,this.patternDictionary.items.setValue(this.dictionaryProperties.shading,new rr(this.mshading)))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"matrix",{get:function(){return this.mmatrix},set:function(t){if(null==t)throw new Error("ArgumentNullException : Matrix");if(t!==this.mmatrix){this.mmatrix=t.clone();var e=new zi(this.mmatrix.matrix.elements);this.mpatternDictionary.items.setValue(this.dictionaryProperties.matrix,e)}},enumerable:!0,configurable:!0}),e.prototype.monitorChanges=function(t,i,r,n,o){var s=!1;if(t instanceof e){this.colorSpace!==o&&(this.colorSpace=o,this.resetFunction()),i.setColorSpace("Pattern",this.mbStroking);var a=r.getResources().getName(this);i.setColourWithPattern(null,a,this.mbStroking),s=!0}return s},e.prototype.resetChanges=function(t){},e.prototype.colorSpaceToDeviceName=function(t){var e;if(t===Zi.Rgb)e="DeviceRGB";return e},e.prototype.resetPatternDictionary=function(t){this.mpatternDictionary=t},e.prototype.cloneAntiAliasingValue=function(t){if(null==t)throw new Error("ArgumentNullException : brush");var e=this.shading.items.getValue(this.dictionaryProperties.antiAlias);null!=e&&t.shading.items.setValue(this.dictionaryProperties.antiAlias,new Fr(e.value))},e.prototype.cloneBackgroundValue=function(t){var e=this.background;e.isEmpty||(t.background=e)},Object.defineProperty(e.prototype,"element",{get:function(){return this.patternDictionary},enumerable:!0,configurable:!0}),e}(Sr),ro=function(){function t(t,e){if(this.dictionaryProperties=new yi,this.writeTransformation=!0,void 0===t);else if(t instanceof Nr&&void 0===e){this.content=new Yi;var i=new Nr(t.width,t.height);this.setSize(i),this.initialize()}else this.content=new Yi,this.setSize(new Nr(t,e)),this.initialize()}return Object.defineProperty(t.prototype,"size",{get:function(){return this.templateSize},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.size.width},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.size.height},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"graphics",{get:function(){if(null==this.pdfGraphics||void 0===this.pdfGraphics){var t=new ho(this),e=new co(this.size,t,this.content);this.pdfGraphics=e,this.pdfGraphics.initializeCoordinates()}return this.pdfGraphics},enumerable:!0,configurable:!0}),t.prototype.getResources=function(){return null==this.resources&&(this.resources=new oo,this.content.items.setValue(this.dictionaryProperties.resources,this.resources)),this.resources},t.prototype.initialize=function(){this.addType(),this.addSubType()},t.prototype.addType=function(){var t=new fi(this.dictionaryProperties.xObject);this.content.items.setValue(this.dictionaryProperties.type,t)},t.prototype.addSubType=function(){var t=new fi(this.dictionaryProperties.form);this.content.items.setValue(this.dictionaryProperties.subtype,t)},t.prototype.reset=function(t){void 0===t?(null!=this.resources&&(this.resources=null,this.content.remove(this.dictionaryProperties.resources)),null!=this.graphics&&this.graphics.reset(this.size)):(this.setSize(t),this.reset())},t.prototype.setSize=function(t){var e=new jr(new mr(0,0),t),i=zi.fromRectangle(e);this.content.items.setValue(this.dictionaryProperties.bBox,i),this.templateSize=t},Object.defineProperty(t.prototype,"element",{get:function(){return this.content},enumerable:!0,configurable:!0}),t}(),no=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),oo=function(t){function e(e){var i=t.call(this,e)||this;return i.properties=new mi,i}return no(e,t),Object.defineProperty(e.prototype,"names",{get:function(){return this.getNames()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"document",{get:function(){return this.pdfDocument},set:function(t){this.pdfDocument=t},enumerable:!0,configurable:!0}),e.prototype.getName=function(t){var e=t.element,i=null;if(this.names.containsKey(e)&&(i=this.names.getValue(e)),null==i){var r=this.generateName();i=new fi(r),this.names.setValue(e,i),(t instanceof xr||t instanceof ro||t instanceof io||t instanceof uo||t instanceof ln||t instanceof vn||t instanceof zn)&&this.add(t,i)}return i},e.prototype.getNames=function(){null==this.pdfNames&&(this.pdfNames=new hn);var t=this.items.getValue(this.dictionaryProperties.font);return null!=t&&Xr.dereference(t),this.pdfNames},e.prototype.requireProcedureSet=function(t){if(null==t)throw new Error("ArgumentNullException:procedureSetName");var e=this.items.getValue(this.dictionaryProperties.procset);null==e&&(e=new zi,this.items.setValue(this.dictionaryProperties.procset,e));var i=new fi(t);e.contains(i)||e.add(i)},e.prototype.removeFont=function(t){for(var e=null,i=this.pdfNames.keys(),r=0;r<this.pdfNames.size();r++)if(this.pdfNames.getValue(i[r])===new fi(t)){e=i[r];break}null!=e&&this.pdfNames.remove(e)},e.prototype.generateName=function(){return so.getNewGuidString()},e.prototype.add=function(t,e){if(t instanceof xr){var i=null,r=this.items.getValue(this.dictionaryProperties.font);if(null!=r){var n=r;i=r,i=r}else i=new mi,this.items.setValue(this.dictionaryProperties.font,i);i.items.setValue(e.value,new rr(t.element))}else if(t instanceof ro){var o=void 0;null==(o=this.items.getValue(this.dictionaryProperties.xObject))&&(o=new mi,this.items.setValue(this.dictionaryProperties.xObject,o)),o.items.setValue(e.value,new rr(t.element))}else if(t instanceof Sr){if(t instanceof io||t instanceof uo)if(null!=(a=t.element)){var s=this.items.getValue(this.dictionaryProperties.pattern);null==s&&(s=new mi,this.items.setValue(this.dictionaryProperties.pattern,s)),s.items.setValue(e.value,new rr(a))}}else if(t instanceof ln){var a=t.element,u=null;null==(u=this.items.getValue(this.dictionaryProperties.extGState))&&(u=new mi,this.items.setValue(this.dictionaryProperties.extGState,u)),u.items.setValue(e.value,new rr(a))}else{o=this.Dictionary.items.getValue(this.dictionaryProperties.xObject);var c=void 0;void 0!==this.pdfDocument&&(c=this.pdfDocument.sections.element.items.getValue(this.dictionaryProperties.resources).items.getValue(this.dictionaryProperties.xObject)),this.Dictionary.items.values();var h=!1,l=void 0;if(void 0===this.pdfDocument||void 0!==typeof c&&null!=c){if(void 0!==this.pdfDocument)for(var p=c.items.values(),g=0;g<p.length;g++)void 0!==p[g]&&void 0!==p[g].element&&p[g].element.data[0]===t.element.data[0]&&(l=p[g],h=!0)}else c=new mi,this.pdfDocument.sections.element.items.getValue(this.dictionaryProperties.resources).items.setValue(this.dictionaryProperties.xObject,c);if(null==o&&(o=new mi,this.Dictionary.items.setValue(this.dictionaryProperties.xObject,o)),h&&void 0!==l)o.items.setValue(e.value,l);else{n=new rr(t.element);o.items.setValue(e.value,n),void 0!==this.pdfDocument&&c.items.setValue(e.value,n)}}},e}(mi),so=function(){function t(){}return t.getNewGuidString=function(){return"aaaaaaaa-aaaa-4aaa-baaa-aaaaaaaaaaaa".replace(/[ab]/g,function(t){var e=16*Math.random()|0;return("a"===t?e:3&e|8).toString(16)})},t}(),ao=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),uo=function(t){function e(e,i){var r=t.call(this)||this;r.mStroking=!1,r.mLocation=new mr(0,0),r.mDictionaryProperties=new yi;var n=null;return e instanceof Dr?n=e:e instanceof Nr&&(n=new Dr(0,0,e.width,e.height)),null!==i&&i instanceof Do&&(r.mPage=i),r.brushStream=new Yi,r.mResources=new oo,r.brushStream.items.setValue(r.mDictionaryProperties.resources,r.mResources),r.setBox(n),r.setObligatoryFields(),null!==i&&i instanceof Do&&(r.mPage=i,r.graphics.colorSpace=i.document.colorSpace),r}return ao(e,t),e.prototype.initialize=function(t,e,i,r){this.mPage=e,this.mLocation=i,this.mTransformationMatrix=r,this.tempBrushStream=this.brushStream,this.brushStream=new Yi;var n=new oo;return this.brushStream.items.setValue(this.mDictionaryProperties.resources,n),this.setBox(t),this.setObligatoryFields(),this},Object.defineProperty(e.prototype,"location",{get:function(){return this.mLocation},set:function(t){this.mLocation=t},enumerable:!0,configurable:!0}),e.prototype.setObligatoryFields=function(){if(this.brushStream.items.setValue(this.mDictionaryProperties.patternType,new Ii(1)),this.brushStream.items.setValue(this.mDictionaryProperties.paintType,new Ii(1)),this.brushStream.items.setValue(this.mDictionaryProperties.tilingType,new Ii(1)),this.brushStream.items.setValue(this.mDictionaryProperties.xStep,new Ii(this.mBox.right-this.mBox.left)),this.brushStream.items.setValue(this.mDictionaryProperties.yStep,new Ii(this.mBox.bottom-this.mBox.top)),null!=this.mPage&&null!=this.mLocation)if(null==this.mTransformationMatrix&&void 0===this.mTransformationMatrix){var t=this.mPage.size.height%this.rectangle.size.height-this.mLocation.y;this.brushStream.items.setValue(this.mDictionaryProperties.matrix,new zi([1,0,0,1,this.mLocation.x,t]))}else{t=0;var e=this.mTransformationMatrix.matrix.elements;t=this.mPage.size.height>this.rectangle.size.height?this.mTransformationMatrix.matrix.offsetY-this.mPage.size.height%this.rectangle.size.height:this.mPage.size.height%this.rectangle.size.height+this.mTransformationMatrix.matrix.offsetY,this.brushStream.items.setValue(this.mDictionaryProperties.matrix,new zi([e[0],e[1],e[2],e[3],e[4],t]))}},e.prototype.setBox=function(t){this.mBox=t;var e=new jr(this.mBox.left,this.mBox.top,this.mBox.right,this.mBox.bottom);this.brushStream.items.setValue(this.mDictionaryProperties.bBox,zi.fromRectangle(e))},Object.defineProperty(e.prototype,"rectangle",{get:function(){return this.mBox},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this.mBox.size},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"graphics",{get:function(){if(null==this.mGraphics&&void 0===this.mGraphics){var t=new ho(this),e=new co(this.size,t,this.brushStream);this.mGraphics=e,this.mResources=this.getResources(),this.mGraphics.initializeCoordinates()}return this.mGraphics},enumerable:!0,configurable:!0}),e.prototype.getResources=function(){return this.mResources},Object.defineProperty(e.prototype,"stroking",{get:function(){return this.mStroking},set:function(t){this.mStroking=t},enumerable:!0,configurable:!0}),e.prototype.clone=function(){var t=this.initialize(this.rectangle,this.mPage,this.location,this.mTransformationMatrix);return null!=this.mTransformationMatrix&&null!=this.mTransformationMatrix.matrix&&t.brushStream.items.setValue(this.mDictionaryProperties.matrix,new zi(this.mTransformationMatrix.matrix.elements)),t.brushStream.data=this.tempBrushStream.data,t.mResources=new oo(this.mResources),t.brushStream.items.setValue(this.mDictionaryProperties.resources,t.mResources),t},e.prototype.monitorChanges=function(t,i,r,n,o){var s=!1;if(t!==this){i.setColorSpace("Pattern",this.mStroking);var a=r.getResources().getName(this);i.setColourWithPattern(null,a,this.mStroking),s=!0}else if(t instanceof e){i.setColorSpace("Pattern",this.mStroking);var u=r.getResources().getName(this);i.setColourWithPattern(null,u,this.mStroking),s=!0}return s},e.prototype.resetChanges=function(t){},Object.defineProperty(e.prototype,"element",{get:function(){return this.brushStream},enumerable:!0,configurable:!0}),e}(Sr),co=function(){function t(t,e,i){this.currentColorSpace=Zi.Rgb,this.previousTextRenderingMode=Gi.Fill,this.previousCharacterSpacing=0,this.previousWordSpacing=0,this.previousTextScaling=100,this.procedureSets=new cn,this.isNormalRender=!0,this.isUseFontSize=!1,this.isItalic=!1,this.isEmfTextScaled=!1,this.isEmf=!1,this.isEmfPlus=!1,this.isBaselineFormat=!0,this.emfScalingFactor=new Nr(0,0),this.colorSpaceChanged=!1,this.dictionaryProperties=new yi,this.isOverloadWithPosition=!1,this.isPointOverload=!1,this.currentColorSpaces=["RGB","CMYK","GrayScale","Indexed"],this.isImageOptimized=!1,this.graphicsState=[],this.istransparencySet=!1,this.internalAutomaticFields=null,this.startCutIndex=-1,this.getResources=e,this.canvasSize=t,this.pdfStreamWriter=i instanceof on?i:new on(i),this.initialize()}return Object.defineProperty(t.prototype,"stringLayoutResult",{get:function(){return this.pdfStringLayoutResult},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this.canvasSize},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"mediaBoxUpperRightBound",{get:function(){return void 0===this.internalMediaBoxUpperRightBound&&(this.internalMediaBoxUpperRightBound=0),this.internalMediaBoxUpperRightBound},set:function(t){this.internalMediaBoxUpperRightBound=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clientSize",{get:function(){return new Nr(this.clipBounds.width,this.clipBounds.height)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"colorSpace",{get:function(){return this.currentColorSpace},set:function(t){this.currentColorSpace=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"streamWriter",{get:function(){return this.pdfStreamWriter},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"matrix",{get:function(){return null==this.transformationMatrix&&(this.transformationMatrix=new an),this.transformationMatrix},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"layer",{get:function(){return this.pageLayer},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"page",{get:function(){return this.pageLayer.page},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"automaticFields",{get:function(){return null!=this.internalAutomaticFields&&void 0!==this.internalAutomaticFields||(this.internalAutomaticFields=new pn),this.internalAutomaticFields},enumerable:!0,configurable:!0}),t.prototype.initialize=function(){this.bStateSaved=!1,this.currentPen=null,this.currentBrush=null,this.currentFont=null,this.currentColorSpace=Zi.Rgb,this.bCSInitialized=!1,this.transformationMatrix=null,this.previousTextRenderingMode=-1,this.previousCharacterSpacing=-1,this.previousWordSpacing=-1,this.previousTextScaling=-100,this.currentStringFormat=null,this.clipBounds=new jr(new mr(0,0),this.size),this.getResources.getResources().requireProcedureSet(this.procedureSets.pdf)},t.prototype.drawPdfTemplate=function(t,e,i){if(void 0===i){if(null==t)throw Error("ArgumentNullException-template");this.drawPdfTemplate(t,e,t.size)}else{if(null==t)throw Error("ArgumentNullException-template");var r=t.width>0?i.width/t.width:1,n=t.height>0?i.height/t.height:1,o=!(1===r&&1===n),s=this.save(),a=new an;null!=this.pageLayer&&this.getTranslateTransform(e.x,e.y+i.height,a),o&&this.getScaleTransform(r,n,a),this.pdfStreamWriter.modifyCtm(a);var u=this.getResources.getResources().getName(t);this.pdfStreamWriter.executeObject(u),this.restore(s);var c=t.graphics;if(null!=c)for(var h=0;h<c.automaticFields.automaticFields.length;h++){var l=c.automaticFields.automaticFields[h],p=new mr(l.location.x+e.x,l.location.y+e.y),g=0==t.size.width?0:i.width/t.size.width,d=0==t.size.height?0:i.height/t.size.height;this.automaticFields.add(new Mn(l.field,p,g,d)),this.page.dictionary.modify()}this.getResources.getResources().requireProcedureSet(this.procedureSets.imageB),this.getResources.getResources().requireProcedureSet(this.procedureSets.imageC),this.getResources.getResources().requireProcedureSet(this.procedureSets.imageI),this.getResources.getResources().requireProcedureSet(this.procedureSets.text)}},t.prototype.drawString=function(t,e,i,r,n,o,s,a,u){if("string"==typeof t&&e instanceof xr&&(i instanceof sn||null===i)&&(r instanceof Sr||null===r)&&"number"==typeof n&&"number"==typeof o&&(s instanceof br||null===s)&&void 0===a)this.isOverloadWithPosition=!0,this.drawString(t,e,i,r,n,o,this.clientSize.width-n,0,s);else{var c=i,h=r,l=n,p=o,g=s,d=a,f=u,M=(new Or).layout(t,e,f,new Nr(g,d),this.isOverloadWithPosition,this.clientSize);if(!M.empty){var y=this.checkCorrectLayoutRectangle(M.actualSize,l,p,f);g<=0&&(l=y.x,g=y.width),d<=0&&(p=y.y,d=y.height),this.drawStringLayoutResult(M,e,c,h,new jr(l,p,g,d),f),this.isEmfTextScaled=!1,this.emfScalingFactor=new Nr(0,0)}this.getResources.getResources().requireProcedureSet(this.procedureSets.text),this.isNormalRender=!0,this.pdfStringLayoutResult=M,this.isUseFontSize=!1}},t.prototype.drawLine=function(t,e,i,r,n){if(e instanceof mr){var o=e,s=i;this.drawLine(t,o.x,o.y,s.x,s.y)}else{o=e,s=i;var a=r,u=n;this.stateControl(t,null,null);var c=this.streamWriter;c.beginPath(o,s),c.appendLineSegment(a,u),c.strokePath(),this.getResources.getResources().requireProcedureSet(this.procedureSets.pdf)}},t.prototype.drawRectangle=function(t,e,i,r,n,o){if(t instanceof sn&&"number"==typeof e){var s=i;this.drawRectangle(t,null,e,s,r,n)}else if(t instanceof Sr&&"number"==typeof e){s=i;this.drawRectangle(null,t,e,s,r,n)}else{s=i;var a=r,u=n,c=o;if(e instanceof uo){this.bCSInitialized=!1;var h=this.matrix.matrix.offsetX+s,l=void 0;l=null!=this.layer&&null!=this.layer.page?this.layer.page.size.height-this.matrix.matrix.offsetY+a:this.clientSize.height-this.matrix.matrix.offsetY+a,e.location=new mr(h,l),e.graphics.colorSpace=this.colorSpace}else e instanceof io&&(e.colorSpace=this.colorSpace);e instanceof Ir&&e.color.isEmpty&&(e=null);var p=t,g=e;this.stateControl(p,g,null),this.streamWriter.appendRectangle(s,a,u,c),this.drawPathHelper(p,g,!1)}},t.prototype.drawRoundedRectangle=function(t,e,i,r,n,o,s){if(null===t)throw new Error("pen");if(null===e)throw new Error("brush");if(0===s)this.drawRectangle(t,e,i,r,n,o);else{var a=[i,r,n,o],u=2*s,c=[u,u],h=[a[0],a[1],c[0],c[1]];this._pathPoints=[],this._pathTypes=[];var l=!0;l=this._addArc(h[0],h[1],h[2],h[3],180,90,l),h[0]=a[0]+a[2]-u,l=this._addArc(h[0],h[1],h[2],h[3],270,90,l),h[1]=a[1]+a[3]-u,l=this._addArc(h[0],h[1],h[2],h[3],0,90,l),h[0]=a[0],l=this._addArc(h[0],h[1],h[2],h[3],90,90,l);var p=this._pathPoints.length-1,g=this._pathTypes[p];g|=jn.CloseSubpath,this._pathTypes[p]=g,this._drawPath(t,e,this._pathPoints,this._pathTypes,Ji.Alternate),this._pathPoints=[],this._pathTypes=[]}},t.prototype._addArc=function(t,e,i,r,n,o,s){for(var a=this._getBezierArcPoints(t,e,t+i,e+r,n,o),u=0;u<a.length;u+=8){var c=[a[u],a[u+1],a[u+2],a[u+3],a[u+4],a[u+5],a[u+6],a[u+7]];s=this._addArcPoints(c,jn.Bezier3,s)}return s},t.prototype._addArcPoints=function(t,e,i){for(var r=0;r<t.length;r++){var n=new mr(t[r],t[r+1]);0===r?0===this._pathPoints.length||i?(this._addPoint(n,jn.Start),i=!1):n.x===this._getLastPoint().x&&n.y===this._getLastPoint().y||this._addPoint(n,jn.Line):this._addPoint(n,e),r++}return i},t.prototype._getLastPoint=function(){var t=new mr(0,0),e=this._pathPoints.length;return e>0&&(t.x=this._pathPoints[e-1].x,t.y=this._pathPoints[e-1].y),t},t.prototype._addPoint=function(t,e){this._pathPoints.push(t),this._pathTypes.push(e)},t.prototype._getBezierArcPoints=function(t,e,i,r,n,o){if(t>i){var s=void 0;s=t,t=i,i=s}if(r>e){s=void 0;s=e,e=r,r=s}var a,u;Math.abs(o)<=90?(a=o,u=1):a=o/(u=Math.ceil(Math.abs(o)/90));for(var c=(t+i)/2,h=(e+r)/2,l=(i-t)/2,p=(r-e)/2,g=a*(Math.PI/360),d=Math.abs(4/3*(1-Math.cos(g))/Math.sin(g)),f=[],M=0;M<u;M++){var y=(n+M*a)*(Math.PI/180),m=(n+(M+1)*a)*(Math.PI/180),N=Math.cos(y),j=Math.cos(m),D=Math.sin(y),S=Math.sin(m);a>0?f.push(c+l*N,h-p*D,c+l*(N-d*D),h-p*(D+d*N),c+l*(j+d*S),h-p*(S-d*j),c+l*j,h-p*S):f.push(c+l*N,h-p*D,c+l*(N+d*D),h-p*(D-d*N),c+l*(j-d*S),h-p*(S+d*j),c+l*j,h-p*S)}return f},t.prototype.drawPathHelper=function(t,e,i,r){if("boolean"==typeof i){var n=i;this.drawPathHelper(t,e,Ji.Winding,n)}else{var o=null!=t,s=null!=e,a=(n=i)===Ji.Alternate;o&&s?this.streamWriter.fillStrokePath(a):o||s?o?this.streamWriter.strokePath():this.streamWriter.fillPath(a):this.streamWriter.endPath()}},t.prototype.drawImage=function(t,e,i,r,n){if("number"==typeof e&&"number"==typeof i&&void 0===r){var o=t.physicalDimension;this.drawImage(t,e,i,o.width,o.height)}else{var s=e,a=i,u=n;t.save();var c=new an;this.getTranslateTransform(s,a+u,c),this.getScaleTransform(r,n,c),this.pdfStreamWriter.write("q"),this.pdfStreamWriter.modifyCtm(c);var h=this.getResources.getResources();void 0!==this.pageLayer&&null!=this.page&&(h.document=this.page.document);var l=h.getName(t);void 0!==this.pageLayer&&this.page.setResources(h),this.pdfStreamWriter.executeObject(l),this.pdfStreamWriter.write(Mi.restoreState),this.pdfStreamWriter.write(Mi.newLine);var p=this.getResources.getResources();p.requireProcedureSet(this.procedureSets.imageB),p.requireProcedureSet(this.procedureSets.imageC),p.requireProcedureSet(this.procedureSets.imageI),p.requireProcedureSet(this.procedureSets.text)}},t.prototype.getLineBounds=function(t,e,i,r,n){var o;if(!e.empty&&t<e.lineCount&&t>=0){var s=e.lines[t],a=this.getTextVerticalAlignShift(e.actualSize.height,r.height,n)+r.y+e.lineHeight*t,u=s.width,c=this.getHorizontalAlignShift(u,r.width,n),h=this.getLineIndent(s,n,r,0===t);c+=this.rightToLeft(n)?0:h;var l=r.x+c,p=this.shouldJustify(s,r.width,n)?r.width-h:u-h,g=e.lineHeight;o=new jr(l,a,p,g)}else o=new jr(0,0,0,0);return o},t.prototype.checkCorrectLayoutRectangle=function(t,e,i,r){var n=new jr(e,i,t.width,t.width);if(null!=r){switch(r.alignment){case Wi.Center:n.x-=n.width/2;break;case Wi.Right:n.x-=n.width}switch(r.lineAlignment){case Bi.Middle:n.y-=n.height/2;break;case Bi.Bottom:n.y-=n.height}}return n},t.prototype.setLayer=function(t){this.pageLayer=t;var e=t.page;null!=e&&void 0!==e&&(e.beginSave=this.pageSave)},t.prototype.pageSave=function(t){if(null!=t.graphics.automaticFields)for(var e=0;e<t.graphics.automaticFields.automaticFields.length;e++){var i=t.graphics.automaticFields.automaticFields[e];i.field.performDraw(t.graphics,i.location,i.scalingX,i.scalingY)}},t.prototype.drawStringLayoutResult=function(t,e,i,r,n,o){if(t.empty)throw new Error("ArgumentNullException:result");this.applyStringSettings(e,i,r,o,n);var s=null!=o?o.horizontalScalingFactor:100;s===this.previousTextScaling||this.isEmfTextScaled||(this.pdfStreamWriter.setTextScaling(s),this.previousTextScaling=s);var a,u=null==o||0===o.lineSpacing?e.height:o.lineSpacing+e.height;a=null!=o&&o.subSuperScript===ur.SubScript?u-(e.height+e.metrics.getDescent(o)):u-e.metrics.getAscent(o),this.shift=a,this.pdfStreamWriter.startNextLine(n.x,n.y-a),this.pdfStreamWriter.setLeading(+u);for(var c=0,h="",l=0;l<t.lines.length;l++)if(c+=t.lineHeight,n.y+c>this.clientSize.height){this.startCutIndex=l;break}for(var p=this.startCutIndex;p<t.lines.length&&p>=0;p++)h+=t.lines[p].text;var g=new jr(n.x,n.y,n.width,n.height);this.drawLayoutResult(t,e,o,n),this.underlineStrikeoutText(i,r,t,e,g,o),this.isEmfPlus=!1,this.isUseFontSize=!1,-1!==this.startCutIndex&&this.getNextPage().graphics.drawString(h,e,i,r,n.x,0,n.width,0,o)},t.prototype.getNextPage=function(){var t=this.currentPage.section,e=t.indexOf(this.currentPage);return e===t.count-1?t.add():t.getPages()[e+1]},t.prototype.setClip=function(t,e){void 0===e?this.setClip(t,Ji.Winding):(this.pdfStreamWriter.appendRectangle(t),this.pdfStreamWriter.clipPath(e===Ji.Alternate))},t.prototype.applyStringSettings=function(t,e,i,r,n){i instanceof uo?(this.bCSInitialized=!1,i.graphics.colorSpace=this.colorSpace):i instanceof io&&(this.bCSInitialized=!1,i.colorSpace=this.colorSpace);var o=this.getTextRenderingMode(e,i,r);this.stateControl(e,i,t,r),this.pdfStreamWriter.beginText(),o!==this.previousTextRenderingMode&&(this.pdfStreamWriter.setTextRenderingMode(o),this.previousTextRenderingMode=o);var s=null!=r?r.characterSpacing:0;s===this.previousCharacterSpacing||this.isEmfTextScaled||(this.pdfStreamWriter.setCharacterSpacing(s),this.previousCharacterSpacing=s);var a=null!=r?r.wordSpacing:0;a!==this.previousWordSpacing&&(this.pdfStreamWriter.setWordSpacing(a),this.previousWordSpacing=a)},t.prototype.getTextVerticalAlignShift=function(t,e,i){var r=0;if(e>=0&&null!=i&&i.lineAlignment!==Bi.Top)switch(i.lineAlignment){case Bi.Middle:r=(e-t)/2;break;case Bi.Bottom:r=e-t}return r},t.prototype.drawLayoutResult=function(t,e,i,r){var n=this.getTextVerticalAlignShift(t.actualSize.height,r.height,i);0!==n&&this.pdfStreamWriter.startNextLine(0,n);var o=e,s=null!=o&&o.isUnicode;null!=o&&o.isEmbedFont;for(var a=t.lines,u=0,c=a.length;u<c&&u!==this.startCutIndex;u++){var h=a[u];h.text;var l=h.width,p=this.getHorizontalAlignShift(l,r.width,i),g=this.getLineIndent(h,i,r,0===u);0===(p+=this.rightToLeft(i)?0:g)||this.isEmfTextScaled||this.pdfStreamWriter.startNextLine(p,0),s?this.drawUnicodeLine(h,r,e,i):this.drawAsciiLine(h,r,e,i),0===p||this.isEmfTextScaled||this.pdfStreamWriter.startNextLine(-p,0),this.isOverloadWithPosition&&a.length>1&&(this.pdfStreamWriter.startNextLine(-r.x,0),r.x=0,r.width=this.clientSize.width,this.isOverloadWithPosition=!1,this.isPointOverload=!0)}this.getResources.getResources().requireProcedureSet(this.procedureSets.text),0!==n&&this.pdfStreamWriter.startNextLine(0,-(n-t.lineHeight)),this.pdfStreamWriter.endText()},t.prototype.drawAsciiLine=function(t,e,i,r){this.justifyLine(t,e.width,r);var n="";if(-1!==t.text.indexOf("(")||-1!==t.text.indexOf(")"))for(var o=0;o<t.text.length;o++)"("===t.text[o]?n+="\\(":")"===t.text[o]?n+="\\)":n+=t.text[o];""===n&&(n=t.text);var s="("+n+")";this.pdfStreamWriter.showNextLineText(new er(s))},t.prototype.drawUnicodeLine=function(t,e,i,r){var n=t.text;t.width;var o=null!=r&&r.rightToLeft,s=null!=r&&(0!==r.wordSpacing||r.alignment===Wi.Justify),a=i,u=this.justifyLine(t,e.width,r),c=new to;if(o||null!=r&&r.textDirection!==tr.None){var h=null,l=null!=r&&r.alignment===Wi.Right,p=null;p=(h=null!=r&&r.textDirection!==tr.None?c.layout(n,a,r.textDirection===tr.RightToLeft,s,r):c.layout(n,a,l,s,r)).length>1?null!=r&&r.textDirection!==tr.None?c.splitLayout(n,a,r.textDirection===tr.RightToLeft,s,r):c.splitLayout(n,a,l,s,r):[n],this.drawUnicodeBlocks(h,p,a,r,u)}else if(s){var g=this.breakUnicodeLine(n,a,null);h=g.tokens,p=g.words;this.drawUnicodeBlocks(h,p,a,r,u)}else{var d=this.convertToUnicode(n,a),f=this.getUnicodeString(d);this.streamWriter.showNextLineText(f)}},t.prototype.drawUnicodeBlocks=function(t,e,i,r,n){if(null==t)throw new Error("Argument Null Exception : blocks");if(null==e)throw new Error("Argument Null Exception : words");if(null==i)throw new Error("Argument Null Exception : font");this.streamWriter.startNextLine();var o=0,s=0,a=0,u=0;try{null!=r&&(a=r.firstLineIndent,u=r.paragraphIndent,r.firstLineIndent=0,r.paragraphIndent=0);var c=i.getCharWidth(wr.whiteSpace,r)+n,h=null!=r?r.characterSpacing:0;c+=h+(null!=r&&0===n?r.wordSpacing:0);for(var l=0;l<t.length;l++){var p=t[l],g=e[l],d=0;if(0!==o&&this.streamWriter.startNextLine(o,0),g.length>0){d+=i.measureString(g,r).width,d+=h;var f=this.getUnicodeString(p);this.streamWriter.showText(f)}l!==t.length-1&&(s+=o=d+c)}s>0&&this.streamWriter.startNextLine(-s,0)}finally{null!=r&&(r.firstLineIndent=a,r.paragraphIndent=u)}},t.prototype.breakUnicodeLine=function(t,e,i){if(null===t)throw new Error("Argument Null Exception : line");i=t.split(null);for(var r=[],n=0;n<i.length;n++){var o=i[n],s=this.convertToUnicode(o,e);r[n]=s}return{tokens:r,words:i}},t.prototype.getUnicodeString=function(t){if(null===t)throw new Error("Argument Null Exception : token");var e=new er(t);return e.converted=!0,e.encode=Ti.ForceEncoding.Ascii,e},t.prototype.convertToUnicode=function(t,e){var i=null;if(null==t)throw new Error("Argument Null Exception : text");if(null==e)throw new Error("Argument Null Exception : ttfFont");if(e.fontInternal instanceof Jn){var r=e.fontInternal.ttfReader;e.setSymbols(t),i=r.convertString(t);var n=er.toUnicodeArray(i,!1);i=er.byteToString(n)}return i},t.prototype.justifyLine=function(t,e,i){var r=t.text,n=t.width,o=this.shouldJustify(t,e,i),s=null!=i&&0!==i.wordSpacing,a=wr.spaces,u=wr.getCharsCount(r,a),c=0;o?(s&&(n-=u*i.wordSpacing),c=(e-n)/u,this.pdfStreamWriter.setWordSpacing(c)):s?this.pdfStreamWriter.setWordSpacing(i.wordSpacing):this.pdfStreamWriter.setWordSpacing(0);return c},t.prototype.reset=function(t){this.canvasSize=t,this.streamWriter.clear(),this.initialize(),this.initializeCoordinates()},t.prototype.shouldJustify=function(t,e,i){var r=t.text,n=t.width,o=null!=i&&i.alignment===Wi.Justify,s=e>=0&&n<e,a=wr.spaces,u=wr.getCharsCount(r,a)>0&&r[0]!==wr.whiteSpace,c=(t.lineType&zr.LayoutBreak)>0;return o&&s&&u&&(c||i.alignment===Wi.Justify)},t.prototype.underlineStrikeoutText=function(t,e,i,r,n,o){if(r.underline||r.strikeout){var s=this.createUnderlineStikeoutPen(t,e,r,o);if(null!=s){var a=this.getTextVerticalAlignShift(i.actualSize.height,n.height,o),u=0;u=n.y+a+r.metrics.getAscent(o)+1.5*s.width;for(var c=n.y+a+r.metrics.getHeight(o)/2+1.5*s.width,h=i.lines,l=0,p=i.lineCount;l<p;l++){var g=h[l];g.text;var d=g.width,f=this.getHorizontalAlignShift(d,n.width,o),M=this.getLineIndent(g,o,n,0===l);f+=this.rightToLeft(o)?0:M;var y=n.x+f,m=this.shouldJustify(g,n.width,o)?y+n.width-M:y+d-M;if(r.underline){var N=u;this.drawLine(s,y,N,m,N),u+=i.lineHeight}if(r.strikeout){N=c;this.drawLine(s,y,N,m,N),c+=i.lineHeight}this.isPointOverload&&h.length>1&&(n.x=0,n.width=this.clientSize.width)}this.isPointOverload=!1}}},t.prototype.createUnderlineStikeoutPen=function(t,e,i,r){var n=i.metrics.getSize(r)/20,o=null;return null!=t?o=new sn(t.color,n):null!=e&&(o=new sn(e,n)),o},t.prototype.getTextRenderingMode=function(t,e,i){var r=Gi.None;return r=null!=t&&null!=e?Gi.FillStroke:null!=t?Gi.Stroke:Gi.Fill,null!=i&&i.clipPath&&(r|=Gi.ClipFlag),r},t.prototype.getLineIndent=function(t,e,i,r){var n=0,o=(t.lineType&zr.FirstParagraphLine)>0;return null!=e&&o&&(n=r?e.firstLineIndent:e.paragraphIndent,n=i.width>0?Math.min(i.width,n):n),n},t.prototype.getHorizontalAlignShift=function(t,e,i){var r=0;if(e>=0&&null!=i&&i.alignment!==Wi.Left)switch(i.alignment){case Wi.Center:r=(e-t)/2;break;case Wi.Right:r=e-t}return r},t.prototype.rightToLeft=function(t){var e=null!=t&&t.rightToLeft;return null!=t&&t.textDirection!==tr.None&&void 0!==t.textDirection&&(e=!0),e},t.prototype.stateControl=function(t,e,i,r){if(void 0===r)this.stateControl(t,e,i,null);else{e instanceof io&&(this.bCSInitialized=!1,e.colorSpace=this.colorSpace),e instanceof uo&&(this.bCSInitialized=!1,e.graphics.colorSpace=this.colorSpace);var n=!1;null!==e?(void 0!==this.pageLayer&&null!=this.pageLayer&&!1===this.colorSpaceChanged&&(this.lastDocumentCS=this.pageLayer.page.document.colorSpace,this.lastGraphicsCS=this.pageLayer.page.graphics.colorSpace,this.colorSpace=this.pageLayer.page.document.colorSpace,this.currentColorSpace=this.pageLayer.page.document.colorSpace,this.colorSpaceChanged=!0),this.initCurrentColorSpace(this.currentColorSpace)):null!=t&&(void 0!==this.pageLayer&&null!=this.pageLayer&&(this.colorSpace=this.pageLayer.page.document.colorSpace,this.currentColorSpace=this.pageLayer.page.document.colorSpace),this.initCurrentColorSpace(this.currentColorSpace)),this.penControl(t,n),this.brushControl(e,n),this.fontControl(i,r,n)}},t.prototype.initCurrentColorSpace=function(t){this.getResources.getResources(),this.bCSInitialized||(this.currentColorSpace!=Zi.GrayScale?(this.pdfStreamWriter.setColorSpace("Device"+this.currentColorSpaces[this.currentColorSpace],!0),this.pdfStreamWriter.setColorSpace("Device"+this.currentColorSpaces[this.currentColorSpace],!1),this.bCSInitialized=!0):(this.pdfStreamWriter.setColorSpace("DeviceGray",!0),this.pdfStreamWriter.setColorSpace("DeviceGray",!1),this.bCSInitialized=!0))},t.prototype.penControl=function(t,e){null!=t&&(this.currentPen=t,t.monitorChanges(this.currentPen,this.pdfStreamWriter,this.getResources,e,this.colorSpace,this.matrix.clone()),this.currentPen=t.clone())},t.prototype.brushControl=function(t,e){if(null!=t&&void 0!==t){var i=t.clone(),r=i;if(!(null==r||t instanceof Ir||t instanceof uo)){var n=r.matrix,o=this.matrix.clone();null!=n&&(n.multiply(o),o=n),r.matrix=o}this.currentBrush=r,i.monitorChanges(this.currentBrush,this.pdfStreamWriter,this.getResources,e,this.colorSpace),this.currentBrush=t,t=null}},t.prototype.fontControl=function(t,e,i){if(null!=t){var r=null!=e?e.subSuperScript:ur.None,n=null!=this.currentStringFormat?this.currentStringFormat.subSuperScript:ur.None;if(i||t!==this.currentFont||r!==n){var o=this.getResources.getResources();this.currentFont=t,this.currentStringFormat=e;var s=t.metrics.getSize(e);this.isEmfTextScaled=!1;var a=o.getName(t);this.pdfStreamWriter.setFont(t,a,s)}}},t.prototype.setTransparency=function(t,e,i){if(void 0===e)this.istransparencySet=!0,this.setTransparency(t,t,Ki.Normal);else if("number"==typeof e&&void 0===i)this.setTransparency(t,e,Ki.Normal);else{null==this.trasparencies&&(this.trasparencies=new hn);var r=null,n=new po(t,e,i);this.trasparencies.containsKey(n)&&(r=this.trasparencies.getValue(n)),null==r&&(r=new ln(t,e,i),this.trasparencies.setValue(n,r));var o=this.getResources.getResources().getName(r);this.streamWriter.setGraphicsState(o)}},t.prototype.clipTranslateMargins=function(t,e,i,r,n,o){if(t instanceof jr&&void 0===e)this.clipBounds=t,this.pdfStreamWriter.writeComment("Clip margins."),this.pdfStreamWriter.appendRectangle(t),this.pdfStreamWriter.closePath(),this.pdfStreamWriter.clipPath(!1),this.pdfStreamWriter.writeComment("Translate co-ordinate system."),this.translateTransform(t.x,t.y);else if("number"==typeof t){var s=new jr(i,r,this.size.width-i-n,this.size.height-r-o);this.clipBounds=s,this.pdfStreamWriter.writeComment("Clip margins."),this.pdfStreamWriter.appendRectangle(s),this.pdfStreamWriter.closePath(),this.pdfStreamWriter.clipPath(!1),this.pdfStreamWriter.writeComment("Translate co-ordinate system."),this.translateTransform(t,e)}},t.prototype.updateY=function(t){return-t},t.prototype.translateTransform=function(t,e){var i=new an;this.getTranslateTransform(t,e,i),this.pdfStreamWriter.modifyCtm(i),this.matrix.multiply(i)},t.prototype.getTranslateTransform=function(t,e,i){return i.translate(t,this.updateY(e)),i},t.prototype.scaleTransform=function(t,e){var i=new an;this.getScaleTransform(t,e,i),this.pdfStreamWriter.modifyCtm(i),this.matrix.multiply(i)},t.prototype.getScaleTransform=function(t,e,i){return null==i&&(i=new an),i.scale(t,e),i},t.prototype.rotateTransform=function(t){var e=new an;this.getRotateTransform(t,e),this.pdfStreamWriter.modifyCtm(e),this.matrix.multiply(e)},t.prototype.initializeCoordinates=function(){this.pdfStreamWriter.writeComment("Change co-ordinate system to left/top."),this.mediaBoxUpperRightBound!==-this.size.height&&null==this.cropBox&&(this.mediaBoxUpperRightBound===this.size.height||0===this.mediaBoxUpperRightBound?this.translateTransform(0,this.updateY(this.size.height)):this.translateTransform(0,this.updateY(this.mediaBoxUpperRightBound)))},t.prototype.getRotateTransform=function(t,e){return null!=e&&void 0!==e||(e=new an),e.rotate(this.updateY(t)),e},t.prototype.save=function(){var t=new lo(this,this.matrix.clone());return t.brush=this.currentBrush,t.pen=this.currentPen,t.font=this.currentFont,t.colorSpace=this.currentColorSpace,t.characterSpacing=this.previousCharacterSpacing,t.wordSpacing=this.previousWordSpacing,t.textScaling=this.previousTextScaling,t.textRenderingMode=this.previousTextRenderingMode,this.graphicsState.push(t),this.pdfStreamWriter.saveGraphicsState(),t},t.prototype.restore=function(t){if(void 0===t)this.graphicsState.length>0&&this.doRestoreState();else if(-1!==this.graphicsState.indexOf(t))for(;0!==this.graphicsState.length;){if(this.doRestoreState()===t)break}},t.prototype.doRestoreState=function(){var t=this.graphicsState.pop();return this.transformationMatrix=t.matrix,this.currentBrush=t.brush,this.currentPen=t.pen,this.currentFont=t.font,this.currentColorSpace=t.colorSpace,this.previousCharacterSpacing=t.characterSpacing,this.previousWordSpacing=t.wordSpacing,this.previousTextScaling=t.textScaling,this.previousTextRenderingMode=t.textRenderingMode,this.pdfStreamWriter.restoreGraphicsState(),t},t.prototype.drawPath=function(t,e,i){this._drawPath(t,e,i.pathPoints,i.pathTypes,i.fillMode)},t.prototype._drawPath=function(t,e,i,r,n){e instanceof uo?(this.bCSInitialized=!1,e.graphics.colorSpace=this.colorSpace):e instanceof io&&(this.bCSInitialized=!1,e.colorSpace=this.colorSpace),this.stateControl(t,e,null),this.buildUpPath(i,r),this.drawPathHelper(t,e,n,!1)},t.prototype.drawArc=function(t,e,i,r,n,o,s){e instanceof jr?this.drawArc(t,e.x,e.y,e.width,e.height,i,r):0!==s&&(this.stateControl(t,null,null),this.constructArcPath(e,i,e+r,i+n,o,s),this.drawPathHelper(t,null,!1))},t.prototype.buildUpPath=function(e,i){for(var r=e.length,n=0;n<r;++n){var o,s=e[n];switch(i[n]&t.pathTypesValuesMask){case jn.Start:this.pdfStreamWriter.beginPath(s.x,s.y);break;case jn.Bezier3:var a=new mr(0,0),u=new mr(0,0),c=this.getBezierPoints(e,i,n,a,u);this.pdfStreamWriter.appendBezierSegment(s,c.p2,c.p3),n=c.i;break;case jn.Line:this.pdfStreamWriter.appendLineSegment(s);break;default:throw new Error("ArithmeticException - Incorrect path formation.")}o=i[n],this.checkFlags(o)}},t.prototype.getBezierPoints=function(e,i,r,n,o){if((i[++r]&t.pathTypesValuesMask)!==jn.Bezier3)throw new Error("ArgumentException : errorMsg");if(n=e[r],(i[++r]&t.pathTypesValuesMask)!==jn.Bezier3)throw new Error("ArgumentException : errorMsg");return{i:r,p2:n,p3:e[r]}},t.prototype.checkFlags=function(t){(t&jn.CloseSubpath)===jn.CloseSubpath&&this.pdfStreamWriter.closePath()},t.prototype.constructArcPath=function(t,e,i,r,n,o){var s=this.getBezierArc(t,e,i,r,n,o);if(0!==s.length){var a=[s[0],s[1],s[2],s[3],s[4],s[5],s[6],s[7]];this.pdfStreamWriter.beginPath(a[0],a[1]);var u=0;for(u=0;u<s.length;u+=8)a=[s[u],s[u+1],s[u+2],s[u+3],s[u+4],s[u+5],s[u+6],s[u+7]],this.pdfStreamWriter.appendBezierSegment(a[2],a[3],a[4],a[5],a[6],a[7])}},t.prototype.getBezierArc=function(t,e,i,r,n,o){if(t>i){var s=void 0;s=t,t=i,i=s}if(r>e){s=void 0;s=e,e=r,r=s}var a,u;Math.abs(o)<=90?(a=o,u=1):a=o/(u=Math.ceil(Math.abs(o)/90));for(var c=(t+i)/2,h=(e+r)/2,l=(i-t)/2,p=(r-e)/2,g=a*(Math.PI/360),d=Math.abs(4/3*(1-Math.cos(g))/Math.sin(g)),f=[],M=0;M<u;M++){var y=(n+M*a)*(Math.PI/180),m=(n+(M+1)*a)*(Math.PI/180),N=Math.cos(y),j=Math.cos(m),D=Math.sin(y),S=Math.sin(m);a>0?f.push(c+l*N,h-p*D,c+l*(N-d*D),h-p*(D+d*N),c+l*(j+d*S),h-p*(S-d*j),c+l*j,h-p*S):f.push(c+l*N,h-p*D,c+l*(N+d*D),h-p*(D-d*N),c+l*(j-d*S),h-p*(S+d*j),c+l*j,h-p*S)}return f},t.pathTypesValuesMask=15,t.transparencyObject=!1,t}(),ho=function(){function t(t){this.sender=t}return t.prototype.getResources=function(){return this.sender.getResources()},t}(),lo=function(){function t(t,e){if(this.internalTextRenderingMode=Gi.Fill,this.internalCharacterSpacing=0,this.internalWordSpacing=0,this.internalTextScaling=100,this.pdfColorSpace=Zi.Rgb,void 0!==t){this.pdfGraphics=t;var i=[];t.matrix.matrix.elements.forEach(function(t){i.push(t)}),this.transformationMatrix=new an,this.transformationMatrix.matrix=new un(i)}}return Object.defineProperty(t.prototype,"graphics",{get:function(){return this.pdfGraphics},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"matrix",{get:function(){return this.transformationMatrix},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"characterSpacing",{get:function(){return this.internalCharacterSpacing},set:function(t){this.internalCharacterSpacing=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"wordSpacing",{get:function(){return this.internalWordSpacing},set:function(t){this.internalWordSpacing=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"textScaling",{get:function(){return this.internalTextScaling},set:function(t){this.internalTextScaling=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pen",{get:function(){return this.pdfPen},set:function(t){this.pdfPen=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"brush",{get:function(){return this.pdfBrush},set:function(t){this.pdfBrush=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"font",{get:function(){return this.pdfFont},set:function(t){this.pdfFont=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"colorSpace",{get:function(){return this.pdfColorSpace},set:function(t){this.pdfColorSpace=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"textRenderingMode",{get:function(){return this.internalTextRenderingMode},set:function(t){this.internalTextRenderingMode=t},enumerable:!0,configurable:!0}),t}(),po=function(t,e,i){this.alphaPen=t,this.alphaBrush=e,this.blendMode=i},go=function(){function t(t,e){if(this.pdfColorSpace=Zi.Rgb,this.isVisible=!0,this.sublayer=!1,this.contentLength=0,this.dictionaryProperties=new yi,null===t)throw new Error("ArgumentNullException:page");if(this.pdfPage=t,this.clipPageTemplates=!0,void 0===e)this.content=new Yi;else if(e instanceof Yi||null===e){if(null===e)throw new Error("ArgumentNullException:stream");this.content=e}else this.content=new Yi,this.clipPageTemplates=e}return Object.defineProperty(t.prototype,"colorSpace",{get:function(){return this.pdfColorSpace},set:function(t){this.pdfColorSpace=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"page",{get:function(){return this.pdfPage},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"layerId",{get:function(){return this.layerid},set:function(t){this.layerid=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.layerName},set:function(t){this.layerName=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visible",{get:function(){return this.isVisible},set:function(t){this.isVisible=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"graphics",{get:function(){return null==this.pdfGraphics&&this.initializeGraphics(this.page),this.pdfGraphics},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"layers",{get:function(){return null==this.layer?(this.layer=new yo(this.page),this.layer.sublayer=!0,this.layer):this.layer},enumerable:!0,configurable:!0}),t.prototype.add=function(){var e=new t(this.pdfPage);return e.name="",e},t.prototype.sign=function(t){return 0===t?0:t>0?1:-1},t.prototype.initializeGraphics=function(t){var e=t,i=new ho(this.page);if(this.pdfGraphics=new co(t.size,i,this.content),this.pdfGraphics.mediaBoxUpperRightBound=0,null!=e){var r=e.section.parent;null!=r&&(this.pdfGraphics.colorSpace=r.document.colorSpace,this.colorSpace=r.document.colorSpace)}var n=this.sign(t.origin.y)===this.sign(t.origin.x);(t.origin.x>=0&&t.origin.y>=0||!n)&&this.pdfGraphics.initializeCoordinates();var o=e.section.getActualBounds(e,!0),s=e.section.pageSettings.margins;this.clipPageTemplates?t.origin.x>=0&&t.origin.y>=0&&this.pdfGraphics.clipTranslateMargins(o):this.graphics.clipTranslateMargins(o.x,o.y,s.left,s.top,s.right,s.bottom),this.pdfGraphics.setLayer(this)},Object.defineProperty(t.prototype,"element",{get:function(){return this.content},enumerable:!0,configurable:!0}),t}(),fo=function(){function t(){}return Object.defineProperty(t.prototype,"count",{get:function(){return void 0===this.collection&&(this.collection=[]),this.collection.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"list",{get:function(){return void 0===this.collection&&(this.collection=[]),this.collection},enumerable:!0,configurable:!0}),t}(),Mo=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),yo=function(t){function e(e){var i=t.call(this)||this;if(i.parentLayerCount=0,i.sublayer=!1,i.optionalContent=new mi,e instanceof mo){i.page=e;var r=e;i.parseLayers(r)}return i}return Mo(e,t),e.prototype.items=function(t,e){if("number"==typeof t&&void 0===e)return this.list[t];if(null==e)throw new Error("ArgumentNullException: layer");if(e.page!==this.page)throw new Error("ArgumentException: The layer belongs to another page")},e.prototype.add=function(t,e){if(void 0===t){var i=new go(this.page);return i.name="",this.add(i),i}if(t instanceof go){var r=this.list.push(t);return this.addLayer(r,t),r}return 0},e.prototype.addLayer=function(t,e){var i=new rr(e);this.page.contents.add(i)},e.prototype.insert=function(t,e){for(var i=[],r=this.list.length,n=t;n<r;n++)i.push(this.list.pop());this.list.push(e);for(n=0;n<i.length;n++)this.list.push(i[n]);this.insertLayer(t,e)},e.prototype.insertLayer=function(t,e){if(null==e)throw new Error("ArgumentNullException:layer");var i=new rr(e);this.page.contents.insert(t,i)},e.prototype.parseLayers=function(t){var e=this.page.contents;this.page.getResources(),t.crossTable;var i=new Yi,r=new Yi,n=[];n.push("q"),i.data=n,e.insert(0,new rr(i)),(n=[]).push("Q"),r.data=n,e.insert(e.count,new rr(r))},e.prototype.indexOf=function(t){if(null==t)throw new Error("ArgumentNullException: layer");return this.list.indexOf(t)},e}(fo),mo=function(){function t(t){this.defLayerIndex=-1,this.modified=!1,this.dictionaryProperties=new yi,this.pageDictionary=t}return Object.defineProperty(t.prototype,"section",{get:function(){return this.pdfSection},set:function(t){this.pdfSection=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dictionary",{get:function(){return this.pageDictionary},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.pageDictionary},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"defaultLayer",{get:function(){var t=this.layers,e=this.defaultLayerIndex;return t.items(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"defaultLayerIndex",{get:function(){if(0===this.layerCollection.count||-1===this.defLayerIndex){var t=this.layerCollection.add();this.defLayerIndex=this.layerCollection.indexOf(t)}return this.defLayerIndex},set:function(t){if(t<0||t>this.layers.count-1)throw new Error("ArgumentOutOfRangeException : value, Index can not be less 0 and greater Layers.Count - 1");this.defLayerIndex=t,this.modified=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"layers",{get:function(){return null!=this.layerCollection&&void 0!==this.layerCollection||(this.layerCollection=new yo(this)),this.layerCollection},enumerable:!0,configurable:!0}),t.prototype.getResources=function(){return null==this.resources&&(this.resources=new oo,this.dictionary.items.setValue(this.dictionaryProperties.resources,this.resources)),this.resources},Object.defineProperty(t.prototype,"contents",{get:function(){var t=this.pageDictionary.items.getValue(this.dictionaryProperties.contents);return null==t&&(t=new zi,this.pageDictionary.items.setValue(this.dictionaryProperties.contents,t)),t},enumerable:!0,configurable:!0}),t.prototype.setResources=function(t){this.resources=t,this.dictionary.items.setValue(this.dictionaryProperties.resources,this.resources),this.modified=!0},t}(),No=function(){function t(t){this.alreadyExistsAnnotationError="This annotatation had been already added to page",this.missingAnnotationException="Annotation is not contained in collection.",this.dictionaryProperties=new yi,this.internalAnnotations=new zi,this.lists=[],void 0!==t&&(this.page=t)}return Object.defineProperty(t.prototype,"annotations",{get:function(){return this.internalAnnotations},set:function(t){this.internalAnnotations=t},enumerable:!0,configurable:!0}),t.prototype.add=function(t){this.doAdd(t)},t.prototype.doAdd=function(t){if(void 0===t.destination)return t.setPage(this.page),this.internalAnnotations.add(new rr(t)),this.lists.push(t);var e=(new Or).layout(t.text,t.font,t.stringFormat,new Nr(t.bounds.width,0),!1,new Nr(0,0)),i=t.bounds.y;if(1===e.lines.length){var r=t.font.measureString(e.lines[0].text);t.bounds=new jr(new mr(t.bounds.x,i),r),t.text=e.lines[0].text,this.page.graphics.drawString(t.text,t.font,null,t.brush,t.bounds.x,t.bounds.y,t.bounds.width,t.bounds.height,null),t.setPage(this.page),this.setColor(t),this.internalAnnotations.add(new rr(t)),this.lists.push(t)}else for(var n=0;n<e.lines.length;n++){r=t.font.measureString(e.lines[n].text);if(0===n)t.bounds=new jr(t.bounds.x,i,r.width,r.height),t.text=e.lines[n].text,this.page.graphics.drawString(t.text,t.font,null,t.brush,t.bounds.x,i,r.width,r.height,null),t.setPage(this.page),this.setColor(t),this.internalAnnotations.add(new rr(t)),this.lists.push(t),i+=t.bounds.height;else{var o=t.clone();o.bounds=new jr(new mr(t.bounds.x,i),r),o.text=e.lines[n].text,this.page.graphics.drawString(o.text,o.font,null,o.brush,o.bounds.x,o.bounds.y,o.bounds.width,o.bounds.height,null),o.setPage(this.page),this.setColor(o),this.internalAnnotations.add(new rr(o)),this.lists.push(o),i+=o.bounds.height}}},t.prototype.setColor=function(t){var e=Zi.Rgb,i=t.color.toArray(e);t.dictionary.items.setValue(this.dictionaryProperties.c,i)},Object.defineProperty(t.prototype,"element",{get:function(){return this.internalAnnotations},enumerable:!0,configurable:!0}),t}(),jo=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Do=function(t){function e(){var e=t.call(this,new mi)||this;return e.annotationCollection=null,e.beginSave=null,e.initialize(),e}return jo(e,t),Object.defineProperty(e.prototype,"document",{get:function(){return null!==this.section&&null!==this.section.parent?this.section.parent.document:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"graphics",{get:function(){var t=this.defaultLayer.graphics;return t.currentPage=this,t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"crossTable",{get:function(){if(null===this.section)throw new Error("PdfDocumentException : Page is not created");return null===this.section.parent?this.section.parentDocument.crossTable:this.section.parent.document.crossTable},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this.section.pageSettings.size},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"origin",{get:function(){return this.section.pageSettings.origin},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"annotations",{get:function(){return null==this.annotationCollection&&(this.annotationCollection=new No(this),this.dictionary.items.setValue(this.dictionaryProperties.annots,this.annotationCollection.element),this.annotationCollection.annotations=this.dictionary.items.getValue(this.dictionaryProperties.annots)),this.annotationCollection},enumerable:!0,configurable:!0}),e.prototype.initialize=function(){this.dictionary.items.setValue(this.dictionaryProperties.type,new fi("Page")),this.dictionary.pageBeginDrawTemplate=new vi(this)},e.prototype.setSection=function(t){this.section=t,this.dictionary.items.setValue(this.dictionaryProperties.parent,new rr(t))},e.prototype.resetProgress=function(){this.isProgressOn=!1},e.prototype.getClientSize=function(){var t=this.section.getActualBounds(this,!0);return new Nr(t.width,t.height)},e.prototype.pageBeginSave=function(){var t=this.document;void 0!==typeof t&&null!=t&&this.drawPageTemplates(t),null!=this.beginSave&&void 0!==this.beginSave&&this.beginSave(this)},e.prototype.drawPageTemplates=function(t){if(this.section.containsTemplates(t,this,!1)){var e=new go(this,!1);if(this.layers.insert(0,e),this.section.drawTemplates(this,e,t,!1),null!==e.graphics&&void 0!==e.graphics)for(var i=0;i<e.graphics.automaticFields.automaticFields.length;i++){var r=e.graphics.automaticFields.automaticFields[i];r.field.performDraw(e.graphics,r.location,r.scalingX,r.scalingY)}}if(this.section.containsTemplates(t,this,!0)){var n=new go(this,!1);this.layers.add(n),this.section.drawTemplates(this,n,t,!0)}},e}(mo),So=function(){function t(t){this.pdfPage=void 0!==t?t:null}return Object.defineProperty(t.prototype,"page",{get:function(){return this.pdfPage},enumerable:!0,configurable:!0}),t}(),vo=function(){function t(t){if(this.pdfSection=null,null==t)throw Error('ArgumentNullException("section")');this.section=t}return Object.defineProperty(t.prototype,"section",{get:function(){return this.pdfSection},set:function(t){this.pdfSection=t},enumerable:!0,configurable:!0}),t.prototype.contains=function(t){return this.section.contains(t)},t.prototype.remove=function(t){this.section.remove(t)},t.prototype.add=function(){return this.section.add()},t}(),Io=function(){function t(){}return Object.defineProperty(t.prototype,"left",{get:function(){return this.leftTemplate},set:function(t){this.leftTemplate=this.checkElement(t,Jr.Left)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return this.topTemplate},set:function(t){this.topTemplate=this.checkElement(t,Jr.Top)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return this.rightTemplate},set:function(t){this.rightTemplate=this.checkElement(t,Jr.Right)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return this.bottomTemplate},set:function(t){this.bottomTemplate=this.checkElement(t,Jr.Bottom)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"EvenLeft",{get:function(){return this.evenLeft},set:function(t){this.evenLeft=this.checkElement(t,Jr.Left)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"EvenTop",{get:function(){return this.evenTop},set:function(t){this.evenTop=this.checkElement(t,Jr.Top)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"EvenRight",{get:function(){return this.evenRight},set:function(t){this.evenRight=this.checkElement(t,Jr.Right)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"EvenBottom",{get:function(){return this.evenBottom},set:function(t){this.evenBottom=this.checkElement(t,Jr.Bottom)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"OddLeft",{get:function(){return this.oddLeft},set:function(t){this.oddLeft=this.checkElement(t,Jr.Left)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"OddTop",{get:function(){return this.oddTop},set:function(t){this.oddTop=this.checkElement(t,Jr.Top)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"OddRight",{get:function(){return this.oddRight},set:function(t){this.oddRight=this.checkElement(t,Jr.Right)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"OddBottom",{get:function(){return this.oddBottom},set:function(t){this.oddBottom=this.checkElement(t,Jr.Bottom)},enumerable:!0,configurable:!0}),t.prototype.getLeft=function(t){if(null==t)throw new Error("ArgumentNullException:page");return this.isEven(t)?null!=this.EvenLeft?this.EvenLeft:this.left:null!=this.OddLeft?this.OddLeft:this.left},t.prototype.getTop=function(t){if(null==t)throw new Error("ArgumentNullException:page");return this.isEven(t)?null!=this.EvenTop?this.EvenTop:this.top:null!=this.OddTop?this.OddTop:this.top},t.prototype.getRight=function(t){if(null==t)throw new Error("ArgumentNullException:page");return this.isEven(t)?null!=this.EvenRight?this.EvenRight:this.right:null!=this.OddRight?this.OddRight:this.right},t.prototype.getBottom=function(t){if(null==t)throw new Error("ArgumentNullException:page");return this.isEven(t)?null!=this.EvenBottom?this.EvenBottom:this.bottom:null!=this.OddBottom?this.OddBottom:this.bottom},t.prototype.isEven=function(t){var e=t.section.document.pages;return(e.pageCollectionIndex.containsKey(t)?e.pageCollectionIndex.getValue(t)+1:e.indexOf(t)+1)%2==0},t.prototype.checkElement=function(t,e){if(null!=t){if(void 0!==t.type&&t.type!==Jr.None)throw new Error("NotSupportedException:Can not reassign the template element. Please, create new one.");t.type=e}return t},t}(),zo=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),bo=function(t){function e(){var e=t.call(this)||this;return e.leftValue=e.topValue=e.rightValue=e.bottomValue=e.stampValue=!0,e}return zo(e,t),Object.defineProperty(e.prototype,"applyDocumentLeftTemplate",{get:function(){return this.leftValue},set:function(t){this.leftValue=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"applyDocumentTopTemplate",{get:function(){return this.topValue},set:function(t){this.topValue=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"applyDocumentRightTemplate",{get:function(){return this.rightValue},set:function(t){this.rightValue=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"applyDocumentBottomTemplate",{get:function(){return this.bottomValue},set:function(t){this.bottomValue=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"applyDocumentStamps",{get:function(){return this.stampValue},set:function(t){this.stampValue=t},enumerable:!0,configurable:!0}),e}(Io),wo=function(){function t(t,e){this.pageAdded=new So,this.pdfPages=[],this.dictionaryProperties=new yi,this.pdfDocument=t,void 0===e?(this.settings=t.pageSettings.clone(),this.initialSettings=this.settings.clone()):(this.settings=e.clone(),this.initialSettings=this.settings.clone()),this.initialize()}return Object.defineProperty(t.prototype,"parent",{get:function(){return this.sectionCollection},set:function(t){this.sectionCollection=t,this.section.items.setValue(this.dictionaryProperties.parent,new rr(t))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentDocument",{get:function(){return this.pdfDocument},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pageSettings",{get:function(){return this.settings},set:function(t){if(null==t)throw Error("Value can not be null.");this.settings=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.section},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"count",{get:function(){return this.pagesReferences.count},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"template",{get:function(){return null==this.pageTemplate&&(this.pageTemplate=new bo),this.pageTemplate},set:function(t){this.pageTemplate=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"document",{get:function(){return this.sectionCollection.document},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pages",{get:function(){return null!=this.pagesCollection&&void 0!==this.pagesCollection||(this.pagesCollection=new vo(this)),this.pagesCollection},enumerable:!0,configurable:!0}),t.prototype.getPages=function(){return this.pdfPages},t.prototype.pointToNativePdf=function(t,e){var i=this.getActualBounds(t,!0);return e.x+=i.x,e.y=this.pageSettings.height-e.y,e},t.prototype.setPageSettings=function(t){this.settings=t,this.state.orientation=t.orientation,this.state.rotate=t.rotate,this.state.size=t.size,this.state.origin=t.origin},t.prototype.initialize=function(){this.pagesReferences=new zi,this.section=new mi,this.state=new Oo(this.pdfDocument),this.section.sectionBeginSave=new Si(this,this.state),this.pageCount=new Ii(0),this.section.items.setValue(this.dictionaryProperties.count,this.pageCount),this.section.items.setValue(this.dictionaryProperties.type,new fi(this.dictionaryProperties.pages)),this.section.items.setValue(this.dictionaryProperties.kids,this.pagesReferences)},t.prototype.containsTemplates=function(t,e,i){var r=this.getDocumentTemplates(t,e,i),n=this.getSectionTemplates(e,i);return r.length>0||n.length>0},t.prototype.getDocumentTemplates=function(t,e,i){var r=[];return this.template.applyDocumentTopTemplate&&null!=t.template.getTop(e)&&(!t.template.getTop(e).foreground&&!i||t.template.getTop(e).foreground&&i)&&r.push(t.template.getTop(e)),this.template.applyDocumentBottomTemplate&&null!=t.template.getBottom(e)&&(!t.template.getBottom(e).foreground&&!i||t.template.getBottom(e).foreground&&i)&&r.push(t.template.getBottom(e)),this.template.applyDocumentLeftTemplate&&null!=t.template.getLeft(e)&&(!t.template.getLeft(e).foreground&&!i||t.template.getLeft(e).foreground&&i)&&r.push(t.template.getLeft(e)),this.template.applyDocumentRightTemplate&&null!=t.template.getRight(e)&&(!t.template.getRight(e).foreground&&!i||t.template.getRight(e).foreground&&i)&&r.push(t.template.getRight(e)),r},t.prototype.getSectionTemplates=function(t,e){var i,r=[];null!=this.template.getTop(t)&&((!(i=this.template.getTop(t)).foreground&&!e||i.foreground&&e)&&r.push(i));null!=this.template.getBottom(t)&&((!(i=this.template.getBottom(t)).foreground&&!e||i.foreground&&e)&&r.push(i));null!=this.template.getLeft(t)&&((!(i=this.template.getLeft(t)).foreground&&!e||i.foreground&&e)&&r.push(i));null!=this.template.getRight(t)&&((!(i=this.template.getRight(t)).foreground&&!e||i.foreground&&e)&&r.push(i));return r},t.prototype.add=function(t){if(void 0===t){var e=new Do;return this.add(e),e}var i=this.checkPresence(t);this.pdfPages.push(t),this.pagesReferences.add(i),t.setSection(this),t.resetProgress(),this.pageAddedMethod(t)},t.prototype.checkPresence=function(t){for(var e=new rr(t),i=!1,r=this.parent,n=0;n<r.section.length;n++){var o=r.section[n];i=i||o.contains(t)}return e},t.prototype.contains=function(t){return 0<=this.indexOf(t)},t.prototype.indexOf=function(t){for(var e=0;e<this.pdfPages.length;e++)if(this.pdfPages[e]===t)return this.pdfPages.indexOf(t);var i=new rr(t);return this.pagesReferences.indexOf(i)},t.prototype.pageAddedMethod=function(t){var e=new So(t);this.onPageAdded(e),this.parent.document.pages.onPageAdded(e),this.pageCount.intValue=this.count},t.prototype.onPageAdded=function(t){},t.prototype.getActualBounds=function(t,e,i){if(t instanceof Do&&"boolean"==typeof e){var r=this.parent.document;return this.getActualBounds(r,t,e)}var n=new jr(0,0,0,0);n.height=i?this.pageSettings.size.height:this.pageSettings.getActualSize().height,n.width=i?this.pageSettings.size.width:this.pageSettings.getActualSize().width;var o=this.getLeftIndentWidth(t,e,i),s=this.getTopIndentHeight(t,e,i),a=this.getRightIndentWidth(t,e,i),u=this.getBottomIndentHeight(t,e,i);return n.x+=o,n.y+=s,n.width-=o+a,n.height-=s+u,n},t.prototype.getLeftIndentWidth=function(t,e,i){if(null==t)throw new Error("ArgumentNullException:document");if(null==e)throw new Error("ArgumentNullException:page");var r=i?this.pageSettings.margins.left:0,n=null!=this.template.getLeft(e)?this.template.getLeft(e).width:0,o=null!=t.template.getLeft(e)?t.template.getLeft(e).width:0;return r+=this.template.applyDocumentLeftTemplate?Math.max(n,o):n},t.prototype.getTopIndentHeight=function(t,e,i){if(null==t)throw new Error("ArgumentNullException:document");if(null==e)throw new Error("ArgumentNullException:page");var r=i?this.pageSettings.margins.top:0,n=null!=this.template.getTop(e)?this.template.getTop(e).height:0,o=null!=t.template.getTop(e)?t.template.getTop(e).height:0;return r+=this.template.applyDocumentTopTemplate?Math.max(n,o):n},t.prototype.getRightIndentWidth=function(t,e,i){if(null==t)throw new Error("ArgumentNullException:document");if(null==e)throw new Error("ArgumentNullException:page");var r=i?this.pageSettings.margins.right:0,n=null!=this.template.getRight(e)?this.template.getRight(e).width:0,o=null!=t.template.getRight(e)?t.template.getRight(e).width:0;return r+=this.template.applyDocumentRightTemplate?Math.max(n,o):n},t.prototype.getBottomIndentHeight=function(t,e,i){if(null==t)throw new Error("ArgumentNullException:document");if(null==e)throw new Error("ArgumentNullException:page");var r=i?this.pageSettings.margins.bottom:0,n=null!=this.template.getBottom(e)?this.template.getBottom(e).height:0,o=null!=t.template.getBottom(e)?t.template.getBottom(e).height:0;return r+=this.template.applyDocumentBottomTemplate?Math.max(n,o):n},t.prototype.remove=function(t){if(null==t)throw Error('ArgumentNullException("page")');var e=this.pdfPages.indexOf(t);this.pagesReferences.removeAt(e);for(var i=[],r=0;r<e;r++)i.push(this.pdfPages[r]);for(r=e+1;r<this.pdfPages.length;r++)i.push(this.pdfPages[r]);this.pdfPages=i},t.prototype.applyPageSettings=function(t,e,i){var r=new jr(i.origin,i.size);t.items.setValue(this.dictionaryProperties.mediaBox,zi.fromRectangle(r));var n;n=To.rotateFactor*i.rotate;var o=new Ii(n);t.items.setValue(this.dictionaryProperties.rotate,o)},t.prototype.beginSave=function(t,e){var i=e.document;this.applyPageSettings(this.section,i.pageSettings,t)},t.prototype.drawTemplates=function(t,e,i,r){var n=this.getDocumentTemplates(i,t,r),o=this.getSectionTemplates(t,r);this.drawTemplatesHelper(e,i,n),this.drawTemplatesHelper(e,i,o)},t.prototype.drawTemplatesHelper=function(t,e,i){if(null!=i&&i.length>0)for(var r=i.length,n=0;n<r;n++){i[n].draw(t,e)}},t}(),Oo=function(){function t(t){this.pageOrientation=t.pageSettings.orientation,this.pageRotate=t.pageSettings.rotate,this.pageSize=t.pageSettings.size,this.pageOrigin=t.pageSettings.origin}return Object.defineProperty(t.prototype,"orientation",{get:function(){return this.pageOrientation},set:function(t){this.pageOrientation=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rotate",{get:function(){return this.pageRotate},set:function(t){this.pageRotate=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this.pageSize},set:function(t){this.pageSize=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"origin",{get:function(){return this.pageOrigin},set:function(t){this.pageOrigin=t},enumerable:!0,configurable:!0}),t}(),To=function(){function t(t){this.sections=[],this.dictionaryProperties=new yi,this.pdfDocument=t.clone(),this.initialize()}return Object.defineProperty(t.prototype,"section",{get:function(){return this.sections},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"document",{get:function(){return this.pdfDocument},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"count",{get:function(){return this.sections.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.pages},enumerable:!0,configurable:!0}),t.prototype.initialize=function(){this.sectionCount=new Ii(0),this.sectionCollection=new zi,this.pages=new mi,this.pages.beginSave=new Ni(this),this.pages.items.setValue(this.dictionaryProperties.type,new fi("Pages")),this.pages.items.setValue(this.dictionaryProperties.kids,this.sectionCollection),this.pages.items.setValue(this.dictionaryProperties.count,this.sectionCount),this.pages.items.setValue(this.dictionaryProperties.resources,new mi),this.setPageSettings(this.pages,this.pdfDocument.pageSettings)},t.prototype.pdfSectionCollection=function(t){if(t<0||t>=this.count)throw new Error("IndexOutOfRangeException()");return this.sections[t]},t.prototype.setPageSettings=function(t,e){var i=new jr(new mr,e.size);t.items.setValue(this.dictionaryProperties.mediaBox,zi.fromRectangle(i))},t.prototype.add=function(t){if(void 0===t){var e=new wo(this.pdfDocument);return this.add(e),e}var i=this.checkSection(t);return this.sections.push(t),t.parent=this,this.sectionCollection.add(i),this.sections.indexOf(t)},t.prototype.checkSection=function(t){var e=new rr(t);return this.sectionCollection.contains(e),e},t.prototype.countPages=function(){var t=0;return this.sections.forEach(function(e){return t+=e.count}),t},t.prototype.beginSave=function(){this.sectionCount.intValue=this.countPages()},t.rotateFactor=90,t}(),Lo=function(){function t(t){this.pdfPageCollectionIndex=new di,this.document=t}return Object.defineProperty(t.prototype,"count",{get:function(){return this.countPages()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pageCollectionIndex",{get:function(){return this.pdfPageCollectionIndex},enumerable:!0,configurable:!0}),t.prototype.add=function(t){if(void 0===t){var e=new Do;return this.add(e),e}this.getLastSection().add(t)},t.prototype.getLastSection=function(){var t=this.document.sections;return 0===t.section.length&&t.add(),t.section[t.section.length-1]},t.prototype.onPageAdded=function(t){},t.prototype.countPages=function(){for(var t=this.document.sections,e=0,i=0;i<t.section.length;i++)e+=t.section[i].count;return e},t.prototype.getPageByIndex=function(t){return this.getPage(t)},t.prototype.getPage=function(t){if(t<0||t>=this.count)throw Error('ArgumentOutOfRangeException("index", "Value can not be less 0")');for(var e=null,i=0,r=0,n=0,o=this.document.sections.count,s=0;s<o;s++){var a=this.document.sections.section[s];if(r=a.count,n=t-i,t>=i&&n<r){e=a.getPages()[n];break}i+=r}return e},t.prototype.indexOf=function(t){var e=-1;if(null==t)throw new Error("ArgumentNullException: page");for(var i=0,r=0,n=this.document.sections.count;r<n;r++){var o=this.document.sections.pdfSectionCollection(r);if((e=o.indexOf(t))>=0){e+=i;break}e=-1,i+=o.count}return e},t.prototype.remove=function(t){if(null==t)throw Error('ArgumentNullException("page")');for(var e=null,i=0,r=this.document.sections.count;i<r;i++)if((e=this.document.sections.pdfSectionCollection(i)).pages.contains(t)){e.pages.remove(t);break}return e},t}(),Ao=function(){function t(){this.referenceObjects=[],this.pdfFontCollection=new di}return t.prototype.search=function(t){var e=null,i=this.getGroup(t);return null==i?i=this.createNewGroup():i.length>0&&(e=i[0]),i.push(t),e},t.prototype.createNewGroup=function(){var t=[];return this.referenceObjects.push(t),t},t.prototype.getGroup=function(t){var e=null;if(null!==t)for(var i=this.referenceObjects.length,r=0;r<i;r++){if(this.referenceObjects.length>0){var n=this.referenceObjects[r];if(n.length>0){var o=n[0];if(t.equalsTo(o)){e=n;break}}else this.removeGroup(n)}i=this.referenceObjects.length}return e},t.prototype.removeGroup=function(t){if(null!==t){var e=this.referenceObjects.indexOf(t);this.referenceObjects.slice(e,e+1)}},t.prototype.destroy=function(){this.pdfFontCollection=void 0,this.referenceObjects=void 0},t}(),xo=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Co=function(t){function e(i){var r=t.call(this)||this;r.defaultMargin=40,r.streamWriter=null,r.document=r;var n=!1;void 0===i?(e.cacheCollection=new Ao,n=!1):n=i;var o=new kr;r.setMainObjectCollection(o);var s=new Xr;s.isMerging=n,s.document=r,r.setCrossTable(s);var a=new Kr;return r.setCatalog(a),o.add(a),a.position=-1,r.sectionCollection=new To(r),r.documentPageCollection=new Lo(r),a.pages=r.sectionCollection,r}return xo(e,t),Object.defineProperty(e,"defaultFont",{get:function(){return null==this.defaultStandardFont&&(this.defaultStandardFont=new Po(or.Helvetica,8)),this.defaultStandardFont},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sections",{get:function(){return this.sectionCollection},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pageSettings",{get:function(){return null==this.settings&&(this.settings=new nn(this.defaultMargin)),this.settings},set:function(t){this.settings=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pages",{get:function(){return this.documentPageCollection},enumerable:!0,configurable:!0}),Object.defineProperty(e,"cache",{get:function(){return void 0===e.cacheCollection||null==e.cacheCollection?new Ao:e.cacheCollection},set:function(t){this.cacheCollection=t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"enableCache",{get:function(){return this.isCacheEnabled},set:function(t){this.isCacheEnabled=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"colorSpace",{get:function(){return this.pdfColorSpace===Zi.Rgb||this.pdfColorSpace===Zi.Cmyk||this.pdfColorSpace===Zi.GrayScale?this.pdfColorSpace:Zi.Rgb},set:function(t){t===Zi.Rgb||t===Zi.Cmyk||t===Zi.GrayScale?this.pdfColorSpace=t:this.pdfColorSpace=Zi.Rgb},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"template",{get:function(){return null==this.pageTemplate&&(this.pageTemplate=new Io),this.pageTemplate},set:function(t){this.pageTemplate=t},enumerable:!0,configurable:!0}),e.prototype.docSave=function(t,e,i){if(this.checkPagesPresence(),null===t)throw new Error("ArgumentNullException : stream");this.streamWriter=t;var r=new Cr(t);if(r.document=this,"boolean"==typeof e&&void 0===i)return this.crossTable.save(r);this.crossTable.save(r,e)},e.prototype.checkPagesPresence=function(){0===this.pages.count&&this.pages.add()},e.prototype.destroy=function(){this.catalog=void 0,this.colorSpace=void 0,this.currentSavingObj=void 0,this.documentPageCollection=void 0,this.isStreamCopied=void 0,this.pageSettings=void 0,this.pageTemplate=void 0,this.pdfColorSpace=void 0,this.sectionCollection=void 0,e.cache.destroy(),this.crossTable.pdfObjects.destroy(),e.cache=void 0,this.streamWriter.destroy()},e.defaultStandardFont=null,e.isCacheEnabled=!0,e}(Ur),Eo=function(){function t(){}return t.getMetrics=function(t,e,i){var r=null;switch(t){case or.Helvetica:r=this.getHelveticaMetrics(t,e,i);break;case or.Courier:r=this.getCourierMetrics(t,e,i);break;case or.TimesRoman:r=this.getTimesMetrics(t,e,i);break;case or.Symbol:r=this.getSymbolMetrics(t,e,i);break;case or.ZapfDingbats:r=this.getZapfDingbatsMetrics(t,e,i);break;default:r=this.getHelveticaMetrics(or.Helvetica,e,i)}return r.name=t.toString(),r.subScriptSizeFactor=this.subSuperScriptFactor,r.superscriptSizeFactor=this.subSuperScriptFactor,r},t.getHelveticaMetrics=function(t,e,i){var r=new Hn;return(e&nr.Bold)>0&&(e&nr.Italic)>0?(r.ascent=this.helveticaBoldItalicAscent,r.descent=this.helveticaBoldItalicDescent,r.postScriptName=this.helveticaBoldItalicName,r.size=i,r.widthTable=new _n(this.arialBoldWidth),r.height=r.ascent-r.descent):(e&nr.Bold)>0?(r.ascent=this.helveticaBoldAscent,r.descent=this.helveticaBoldDescent,r.postScriptName=this.helveticaBoldName,r.size=i,r.widthTable=new _n(this.arialBoldWidth),r.height=r.ascent-r.descent):(e&nr.Italic)>0?(r.ascent=this.helveticaItalicAscent,r.descent=this.helveticaItalicDescent,r.postScriptName=this.helveticaItalicName,r.size=i,r.widthTable=new _n(this.arialWidth),r.height=r.ascent-r.descent):(r.ascent=this.helveticaAscent,r.descent=this.helveticaDescent,r.postScriptName=this.helveticaName,r.size=i,r.widthTable=new _n(this.arialWidth),r.height=r.ascent-r.descent),r},t.getCourierMetrics=function(t,e,i){var r=new Hn;return(e&nr.Bold)>0&&(e&nr.Italic)>0?(r.ascent=this.courierBoldItalicAscent,r.descent=this.courierBoldItalicDescent,r.postScriptName=this.courierBoldItalicName,r.size=i,r.widthTable=new _n(this.fixedWidth),r.height=r.ascent-r.descent):(e&nr.Bold)>0?(r.ascent=this.courierBoldAscent,r.descent=this.courierBoldDescent,r.postScriptName=this.courierBoldName,r.size=i,r.widthTable=new _n(this.fixedWidth),r.height=r.ascent-r.descent):(e&nr.Italic)>0?(r.ascent=this.courierItalicAscent,r.descent=this.courierItalicDescent,r.postScriptName=this.courierItalicName,r.size=i,r.widthTable=new _n(this.fixedWidth),r.height=r.ascent-r.descent):(r.ascent=this.courierAscent,r.descent=this.courierDescent,r.postScriptName=this.courierName,r.size=i,r.widthTable=new _n(this.fixedWidth),r.height=r.ascent-r.descent),r},t.getTimesMetrics=function(t,e,i){var r=new Hn;return(e&nr.Bold)>0&&(e&nr.Italic)>0?(r.ascent=this.timesBoldItalicAscent,r.descent=this.timesBoldItalicDescent,r.postScriptName=this.timesBoldItalicName,r.size=i,r.widthTable=new _n(this.timesRomanBoldItalicWidths),r.height=r.ascent-r.descent):(e&nr.Bold)>0?(r.ascent=this.timesBoldAscent,r.descent=this.timesBoldDescent,r.postScriptName=this.timesBoldName,r.size=i,r.widthTable=new _n(this.timesRomanBoldWidth),r.height=r.ascent-r.descent):(e&nr.Italic)>0?(r.ascent=this.timesItalicAscent,r.descent=this.timesItalicDescent,r.postScriptName=this.timesItalicName,r.size=i,r.widthTable=new _n(this.timesRomanItalicWidth),r.height=r.ascent-r.descent):(r.ascent=this.timesAscent,r.descent=this.timesDescent,r.postScriptName=this.timesName,r.size=i,r.widthTable=new _n(this.timesRomanWidth),r.height=r.ascent-r.descent),r},t.getSymbolMetrics=function(t,e,i){var r=new Hn;return r.ascent=this.symbolAscent,r.descent=this.symbolDescent,r.postScriptName=this.symbolName,r.size=i,r.widthTable=new _n(this.symbolWidth),r.height=r.ascent-r.descent,r},t.getZapfDingbatsMetrics=function(t,e,i){var r=new Hn;return r.ascent=this.zapfDingbatsAscent,r.descent=this.zapfDingbatsDescent,r.postScriptName=this.zapfDingbatsName,r.size=i,r.widthTable=new _n(this.zapfDingbatsWidth),r.height=r.ascent-r.descent,r},t.subSuperScriptFactor=1.52,t.helveticaAscent=931,t.helveticaDescent=-225,t.helveticaName="Helvetica",t.helveticaBoldAscent=962,t.helveticaBoldDescent=-228,t.helveticaBoldName="Helvetica-Bold",t.helveticaItalicAscent=931,t.helveticaItalicDescent=-225,t.helveticaItalicName="Helvetica-Oblique",t.helveticaBoldItalicAscent=962,t.helveticaBoldItalicDescent=-228,t.helveticaBoldItalicName="Helvetica-BoldOblique",t.courierAscent=805,t.courierDescent=-250,t.courierName="Courier",t.courierBoldAscent=801,t.courierBoldDescent=-250,t.courierBoldName="Courier-Bold",t.courierItalicAscent=805,t.courierItalicDescent=-250,t.courierItalicName="Courier-Oblique",t.courierBoldItalicAscent=801,t.courierBoldItalicDescent=-250,t.courierBoldItalicName="Courier-BoldOblique",t.timesAscent=898,t.timesDescent=-218,t.timesName="Times-Roman",t.timesBoldAscent=935,t.timesBoldDescent=-218,t.timesBoldName="Times-Bold",t.timesItalicAscent=883,t.timesItalicDescent=-217,t.timesItalicName="Times-Italic",t.timesBoldItalicAscent=921,t.timesBoldItalicDescent=-218,t.timesBoldItalicName="Times-BoldItalic",t.symbolAscent=1010,t.symbolDescent=-293,t.symbolName="Symbol",t.zapfDingbatsAscent=820,t.zapfDingbatsDescent=-143,t.zapfDingbatsName="ZapfDingbats",t.arialWidth=[278,278,355,556,556,889,667,191,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,278,278,584,584,584,556,1015,667,667,722,722,667,611,778,722,278,500,667,556,833,722,778,667,778,722,667,611,722,667,944,667,667,611,278,278,278,469,556,333,556,556,500,556,556,278,556,556,222,222,500,222,833,556,556,556,556,333,500,278,556,500,722,500,500,500,334,260,334,584,0,556,0,222,556,333,1e3,556,556,333,1e3,667,333,1e3,0,611,0,0,222,222,333,333,350,556,1e3,333,1e3,500,333,944,0,500,667,0,333,556,556,556,556,260,556,333,737,370,556,584,0,737,333,400,584,333,333,333,556,537,278,333,333,365,556,834,834,834,611,667,667,667,667,667,667,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,500,556,556,556,556,278,278,278,278,556,556,556,556,556,556,556,584,611,556,556,556,556,500,556,500],t.arialBoldWidth=[278,333,474,556,556,889,722,238,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,333,333,584,584,584,611,975,722,722,722,722,667,611,778,722,278,556,722,611,833,722,778,667,778,722,667,611,722,667,944,667,667,611,333,278,333,584,556,333,556,611,556,611,556,333,611,611,278,278,556,278,889,611,611,611,611,389,556,333,611,556,778,556,556,500,389,280,389,584,0,556,0,278,556,500,1e3,556,556,333,1e3,667,333,1e3,0,611,0,0,278,278,500,500,350,556,1e3,333,1e3,556,333,944,0,500,667,0,333,556,556,556,556,280,556,333,737,370,556,584,0,737,333,400,584,333,333,333,611,556,278,333,333,365,556,834,834,834,611,722,722,722,722,722,722,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,556,556,556,556,556,278,278,278,278,611,611,611,611,611,611,611,584,611,611,611,611,611,556,611,556],t.fixedWidth=[600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600],t.timesRomanWidth=[250,333,408,500,500,833,778,180,333,333,500,564,250,333,250,278,500,500,500,500,500,500,500,500,500,500,278,278,564,564,564,444,921,722,667,667,722,611,556,722,722,333,389,722,611,889,722,722,556,722,667,556,611,722,722,944,722,722,611,333,278,333,469,500,333,444,500,444,500,444,333,500,500,278,278,500,278,778,500,500,500,500,333,389,278,500,500,722,500,500,444,480,200,480,541,0,500,0,333,500,444,1e3,500,500,333,1e3,556,333,889,0,611,0,0,333,333,444,444,350,500,1e3,333,980,389,333,722,0,444,722,0,333,500,500,500,500,200,500,333,760,276,500,564,0,760,333,400,564,300,300,333,500,453,250,333,300,310,500,750,750,750,444,722,722,722,722,722,722,889,667,611,611,611,611,333,333,333,333,722,722,722,722,722,722,722,564,722,722,722,722,722,722,556,500,444,444,444,444,444,444,667,444,444,444,444,444,278,278,278,278,500,500,500,500,500,500,500,564,500,500,500,500,500,500,500,500],t.timesRomanBoldWidth=[250,333,555,500,500,1e3,833,278,333,333,500,570,250,333,250,278,500,500,500,500,500,500,500,500,500,500,333,333,570,570,570,500,930,722,667,722,722,667,611,778,778,389,500,778,667,944,722,778,611,778,722,556,667,722,722,1e3,722,722,667,333,278,333,581,500,333,500,556,444,556,444,333,500,556,278,333,556,278,833,556,500,556,556,444,389,333,556,500,722,500,500,444,394,220,394,520,0,500,0,333,500,500,1e3,500,500,333,1e3,556,333,1e3,0,667,0,0,333,333,500,500,350,500,1e3,333,1e3,389,333,722,0,444,722,0,333,500,500,500,500,220,500,333,747,300,500,570,0,747,333,400,570,300,300,333,556,540,250,333,300,330,500,750,750,750,500,722,722,722,722,722,722,1e3,722,667,667,667,667,389,389,389,389,722,722,778,778,778,778,778,570,778,722,722,722,722,722,611,556,500,500,500,500,500,500,722,444,444,444,444,444,278,278,278,278,500,556,500,500,500,500,500,570,500,556,556,556,556,500,556,500],t.timesRomanItalicWidth=[250,333,420,500,500,833,778,214,333,333,500,675,250,333,250,278,500,500,500,500,500,500,500,500,500,500,333,333,675,675,675,500,920,611,611,667,722,611,611,722,722,333,444,667,556,833,667,722,611,722,611,500,556,722,611,833,611,556,556,389,278,389,422,500,333,500,500,444,500,444,278,500,500,278,278,444,278,722,500,500,500,500,389,389,278,500,444,667,444,444,389,400,275,400,541,0,500,0,333,500,556,889,500,500,333,1e3,500,333,944,0,556,0,0,333,333,556,556,350,500,889,333,980,389,333,667,0,389,556,0,389,500,500,500,500,275,500,333,760,276,500,675,0,760,333,400,675,300,300,333,500,523,250,333,300,310,500,750,750,750,500,611,611,611,611,611,611,889,667,611,611,611,611,333,333,333,333,722,667,722,722,722,722,722,675,722,722,722,722,722,556,611,500,500,500,500,500,500,500,667,444,444,444,444,444,278,278,278,278,500,500,500,500,500,500,500,675,500,500,500,500,500,444,500,444],t.timesRomanBoldItalicWidths=[250,389,555,500,500,833,778,278,333,333,500,570,250,333,250,278,500,500,500,500,500,500,500,500,500,500,333,333,570,570,570,500,832,667,667,667,722,667,667,722,778,389,500,667,611,889,722,722,611,722,667,556,611,722,667,889,667,611,611,333,278,333,570,500,333,500,500,444,500,444,333,500,556,278,278,500,278,778,556,500,500,500,389,389,278,556,444,667,500,444,389,348,220,348,570,0,500,0,333,500,500,1e3,500,500,333,1e3,556,333,944,0,611,0,0,333,333,500,500,350,500,1e3,333,1e3,389,333,722,0,389,611,0,389,500,500,500,500,220,500,333,747,266,500,606,0,747,333,400,570,300,300,333,576,500,250,333,300,300,500,750,750,750,500,667,667,667,667,667,667,944,667,667,667,667,667,389,389,389,389,722,722,722,722,722,722,722,570,722,722,722,722,722,611,611,500,500,500,500,500,500,500,722,444,444,444,444,444,278,278,278,278,500,556,500,500,500,500,500,570,500,556,556,556,556,444,500,444],t.symbolWidth=[250,333,713,500,549,833,778,439,333,333,500,549,250,549,250,278,500,500,500,500,500,500,500,500,500,500,278,278,549,549,549,444,549,722,667,722,612,611,763,603,722,333,631,722,686,889,722,722,768,741,556,592,611,690,439,768,645,795,611,333,863,333,658,500,500,631,549,549,494,439,521,411,603,329,603,549,549,576,521,549,549,521,549,603,439,576,713,686,493,686,494,480,200,480,549,750,620,247,549,167,713,500,753,753,753,753,1042,987,603,987,603,400,549,411,549,549,713,494,460,549,549,549,549,1e3,603,1e3,658,823,686,795,987,768,768,823,768,768,713,713,713,713,713,713,713,768,713,790,790,890,823,549,250,713,603,603,1042,987,603,987,603,494,329,790,790,786,713,384,384,384,384,384,384,494,494,494,494,329,274,686,686,686,384,384,384,384,384,384,494,494,494,-1],t.zapfDingbatsWidth=[278,974,961,974,980,719,789,790,791,690,960,939,549,855,911,933,911,945,974,755,846,762,761,571,677,763,760,759,754,494,552,537,577,692,786,788,788,790,793,794,816,823,789,841,823,833,816,831,923,744,723,749,790,792,695,776,768,792,759,707,708,682,701,826,815,789,789,707,687,696,689,786,787,713,791,785,791,873,761,762,762,759,759,892,892,788,784,438,138,277,415,392,392,668,668,390,390,317,317,276,276,509,509,410,410,234,234,334,334,732,544,544,910,667,760,760,776,595,694,626,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,894,838,1016,458,748,924,748,918,927,928,928,834,873,828,924,924,917,930,931,463,883,836,836,867,867,696,696,874,874,760,946,771,865,771,888,967,888,831,873,927,970,918],t}(),ko=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Po=function(t){function e(i,r,n){var o=t.call(this,r,void 0===n?i instanceof e?i.style:nr.Regular:n)||this;return o.dictionaryProperties=new yi,o.encodings=["Unknown","StandardEncoding","MacRomanEncoding","MacExpertEncoding","WinAnsiEncoding","PDFDocEncoding","IdentityH"],o.pdfFontFamily=void 0===i?or.Helvetica:i instanceof e?i.fontFamily:i,o.checkStyle(),o.initializeInternals(),o}return ko(e,t),Object.defineProperty(e.prototype,"fontFamily",{get:function(){return this.pdfFontFamily},enumerable:!0,configurable:!0}),e.prototype.checkStyle=function(){if(this.fontFamily===or.Symbol||this.fontFamily===or.ZapfDingbats){var t=this.style;t&=~(nr.Bold|nr.Italic),this.setStyle(t)}},e.prototype.getLineWidth=function(t,i){if(null==t)throw new Error("ArgumentNullException:line");var r=0;this.name;for(var n=0,o=(t=e.convert(t)).length;n<o;n++){var s=t[n];r+=this.getCharWidthInternal(s,i)}var a=this.metrics.getSize(i);return r*=xr.charSizeMultiplier*a,r=this.applyFormatSettings(t,i,r)},e.prototype.equalsToFont=function(t){var e=!1,i=t;if(null!=i){var r=this.fontFamily===i.fontFamily,n=~(nr.Underline|nr.Strikeout),o=(this.style&n)===(i.style&n);e=r&&o}return e},e.prototype.initializeInternals=function(){Co.cache.search(this);var t,e=Eo.getMetrics(this.pdfFontFamily,this.style,this.size);this.metrics=e,t=this.createInternals(),this.setInternals(t)},e.prototype.createInternals=function(){var t=new mi;if(t.items.setValue(this.dictionaryProperties.type,new fi(this.dictionaryProperties.font)),t.items.setValue(this.dictionaryProperties.subtype,new fi(this.dictionaryProperties.type1)),t.items.setValue(this.dictionaryProperties.baseFont,new fi(this.metrics.postScriptName)),this.fontFamily!==or.Symbol&&this.fontFamily!==or.ZapfDingbats){var e=this.encodings[cr.WinAnsiEncoding];t.items.setValue(this.dictionaryProperties.encoding,new fi(e))}return t},e.prototype.getCharWidthInternal=function(t,i){var r=0;return r=t.charCodeAt(0),"0"!==this.name&&"1"!==this.name&&"2"!==this.name&&"3"!==this.name&&"4"!==this.name||(r-=e.charOffset),r=r>=0&&128!==r?r:0,this.metrics.widthTable.items(r)},e.convert=function(t){return t},e.charOffset=32,e}(xr),Uo=[{prefixIcon:"e-close",tooltipText:"Close",text:"Close",id:"closeDocument"},{prefixIcon:"e-export",tooltipText:"export",text:"export",id:"exportDocument"},{prefixIcon:"e-save",tooltipText:"Save",text:"Save",id:"saveDocument"},"Separator","Undo","Redo","Separator","Image","Table","Hyperlink","Bookmark","TableOfContents","Separator","Header","Footer","PageSetup","PageNumber","Break","InsertFootnote","InsertEndnote","Separator","Find","Separator","Comments","TrackChanges","LocalClipboard","Separator","FormFields","UpdateFields"];l.DocumentEditorComponent.Inject(l.Print,l.SfdtExport,l.WordExport,l.TextExport,l.Selection,l.Search,l.Editor,l.ImageResizer,l.EditorHistory,l.ContextMenu,l.OptionsPane,l.HyperlinkDialog,l.TableDialog,l.BookmarkDialog,l.TableOfContentsDialog,l.PageSetupDialog,l.StyleDialog,l.ListDialog,l.ParagraphDialog,l.BulletsAndNumberingDialog,l.FontDialog,l.TablePropertiesDialog,l.BordersAndShadingDialog,l.TableOptionsDialog,l.CellOptionsDialog,l.StylesDialog,l.Toolbar),l.DocumentEditorContainerComponent.Inject(l.Toolbar,l.EditorHistory);var Qo=function(t){function e(e){return t.call(this,e)||this}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}D(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}(e,t),e.prototype.render=function(){return M.default.createElement(M.default.Fragment,null)},e.prototype.componentDidMount=function(){},e.prototype.handleChange=function(t,e,i,r){var n;void 0===i&&(i=-1),void 0===r&&(r="");var o,s=Object.keys(e)[0],a=e[s];o=(i=Number(i))>-1&&r?a[r][i]:i>-1?a[i]:a,t&&t.target?"checkbox"===t.target.type?o[t.target.name]=t.target.checked:t.target.element&&t.target.element.classList&&t.target.element.classList.contains("dropdown")?o[t.target.name]=t.target.value[t.target.props.dataItemKey]:o[t.target.name]=t.target.value:t.element&&(null===(n=t.element)||void 0===n?void 0:n.ej2_instances.length)>0&&t.element&&t.element.classList&&(t.element.classList.contains("e-combobox")||t.element.classList.contains("e-multiselect"))&&(o[t.element.ej2_instances[0].name]=t.value),e[s]=a,this.setState(e)},e.prototype.initializePageIndex=function(t){for(var e=0;e<t.length;e++)t[e].rowIndex=e+1;return t},e.prototype.getMenuPrivileges=function(t,e,i){return new Promise(function(r,n){return m.default.get(i+"core/7bda9c96-1af4-4b19-aa6d-98e1995e4255/generic/getUserPrivilege?userId="+t+"&menuId="+e).then(function(t){var e=JSON.parse(t.data.data.rulQwyuLst);r(e.map(function(t){return t.rightsCode}))})})},e}(M.default.Component);p.pdfjs.GlobalWorkerOptions.workerSrc="https://gbs-pdfworker.pages.dev/pdf.worker.min.js";var Yo={cMapUrl:"/cmaps/",standardFontDataUrl:"/standard_fonts/"};exports.Base=function(e){var i=e.children,r=e.configUrl,n=t.useState(!0),o=n[0],s=n[1];return t.useEffect(function(){a.configService.loadConfigData(r).then(function(t){t&&s(!1)})},[]),M.default.createElement(M.default.Fragment,null,!o&&i)},exports.BaseComponent=Qo,exports.Button=function(t){var e=t.id,i=void 0===e?"":e,r=t.value,n=void 0===r?"":r,o=t.type,s=t.className,a=void 0===s?"":s,u=t.onClick,c=t.iconClass,h=void 0===c?"":c,l=t.name,p=t.disabled,g=t.title;return M.default.createElement("div",null,M.default.createElement("button",{type:o,className:a,onClick:u,id:i,name:l,disabled:p,title:g},h&&M.default.createElement("i",{className:h}),n))},exports.CheckBox=function(t){var e=t.className,i=t.id,r=t.label,n=t.onChange,o=t.disabled,s=t.name,a=t.checked,u=t.change;return y.createElement("div",null,y.createElement("label",{htmlFor:i,className:"form-label"},r),y.createElement("input",{className:e,type:"checkbox",name:s,onChange:function(t){var e=t.target;u&&u(e),n&&n(t)},checked:a,disabled:o}))},exports.DatePicker=function(i){var r=i.id,n=i.placeholder,o=void 0===n?"":n,s=i.value,a=void 0===s?"":s,u=i.onChange,c=i.onClear,h=i.className,l=void 0===h?"":h,p=i.label,g=void 0===p?"":p,d=i.required,f=i.format,y=i.name,m=i.disabled,N=i.min,j=i.max,D=i.allowEdit,S=i.allowTimePicker;i.enabled;var v=i.start,I=i.depth,z=t.useState(m||!1),b=z[0],w=z[1];return t.useEffect(function(){void 0!==m&&w(m||!1)},[m]),M.default.createElement("div",null,g&&M.default.createElement("label",{htmlFor:r,className:"form-label"},g," ",d?M.default.createElement("i",{className:"req-lbl"},"*"):M.default.createElement(M.default.Fragment,null)),S?M.default.createElement(e.DateTimePickerComponent,{id:r,placeholder:o,value:a,onChange:u,cleared:c,className:l,format:f,name:y,disabled:m,enabled:!b,type:"datepicker",min:N,max:j,allowEdit:D}):M.default.createElement(e.DatePickerComponent,{id:r,placeholder:o,value:a,onChange:u,cleared:c,className:l,format:f,name:y,enabled:!b,disabled:m,type:"datepicker",min:N,max:j,allowEdit:D,start:v,depth:I}))},exports.Dialog=function(){var t,e,i,n=function(){a.messageService.broadcast({key:e,status:"action1",keyData:i}),t.hide()},o=function(){a.messageService.broadcast({key:e,status:"action2"}),t.hide()},s=function(){a.messageService.sendMessage({key:"bb_dialog_res",status:"clicked",keyData:i}),t.hide()},u=document.getElementsByTagName("body")[0];return u.hasAttribute("data-listener-dialog-alert")||(document.addEventListener("dialog_alert",function(a){"dialog_alert"===a.detail.key&&(e=a.detail.callbackUrl,i=a.detail.keyData,t="confirm"===a.detail.type?r.DialogUtility.confirm({title:a.detail.title,content:a.detail.content,width:a.detail.width?a.detail.width:"500px",position:a.detail.position?a.detail.position:{X:"center",Y:"center"},okButton:S(S({},a.detail.okButton),{click:n.bind(this)}),cancelButton:S(S({},a.detail.cancelButton),{click:o.bind(this)})}):r.DialogUtility.alert({title:a.detail.title,content:a.detail.content,width:a.detail.width?a.detail.width:"500px",position:a.detail.position?a.detail.position:{X:"center",Y:"center"},okButton:S(S({},a.detail.okButton),{click:s.bind(this)})}))}),u.setAttribute("data-listener-dialog-alert","true")),M.default.createElement("div",{id:"dialog-target"})},exports.DocumentViewer=function(e){var i,r=e.documentId,n=e.documentAPI,o=e.documentName,s=e.content,u=e.replaceToken,c=e.fileName,h=e.restrictEditing,p=e.onClose,g=e.saved,d=t.useState({documentAPI:"",documentId:"",readOnly:!1,documentName:""}),f=d[0],y=d[1],m=t.useState(),N=m[0],j=m[1],D=t.useState(!1),S=D[0],v=D[1],I=t.useState(!0),z=I[0],b=I[1];t.useEffect(function(){w(),v(h)},[]);var w=function(){y({documentId:r,documentAPI:n,documentName:o,readOnly:!1})};t.useEffect(function(){s&&i?(j(s),O(s)):""!=f.documentAPI&&""!=f.documentId&&(b(!0),T(f.documentId))},[f.documentId,s]),t.useEffect(function(){if(a.utilService.validString(u)&&i)for(var t=N,e=0;e<u.length;e++){var r=u[e];t=null==t?void 0:t.replace(r.key,r.value),null==i||i.open(t)}},[u,N]);var O=function(t){null==i||i.open(t),setTimeout(function(){A()},1e3)},T=function(t){var e=new XMLHttpRequest,r={keyXc:t},n=f.documentAPI+"api/DocumentEditor/LoadDocument";e.open("POST",n,!0),e.setRequestHeader("Content-Type","application/json;charset=UTF-8"),e.setRequestHeader("Access-Control-Allow-Origin","http://localhost:5002"),e.onreadystatechange=function(){if(4===e.readyState&&(200===e.status||304===e.status)){i.open(e.responseText);var t=i.serialize();j(t),setTimeout(function(){i.enableTrackChanges||(i.enableTrackChanges=!0)},1e3)}},e.send(JSON.stringify(r))},L=function(t){"closeDoc"==t&&(b(!1),null==p||p(z),y({documentId:"",documentAPI:n,documentName:o,readOnly:!1}));var e=JSON.stringify({message:t,date:Date.now()});window.parent.postMessage(e,"*")},A=function(){S||C()},x=function(){var t=new Co,e=null==i?void 0:i.pageCount;i.documentEditorSettings.printDevicePixelRatio=2;for(var r=0,n=function(n){setTimeout(function(){var o=i.exportAsImage(n,"image/jpeg");o.onload=function(){var i=parseInt(o.style.height.toString().replace("px","")),n=parseInt(o.style.width.toString().replace("px","")),s=t.sections.add(),a=new nn(0);n>i&&(a.orientation=Wr.Landscape),a.size=new Nr(n,i),s.setPageSettings(a);var u=s.pages.add().graphics,h=o.src.replace("data:image/jpeg;base64,",""),l=new zn(h);u.drawImage(l,0,0,n,i),++r==e&&t.save((c||"sample")+".pdf")}},500)},o=1;o<=e;o++)n(o)},C=function(){var t=i.serialize(),e={keyXc:f.documentId,Content:t},r=new XMLHttpRequest;r.open("POST",n+"api/DocumentEditor/Save",!0),r.setRequestHeader("Content-Type","application/json;charset=UTF-8"),r.send(JSON.stringify(e)),null==g||g(!0)};return M.default.createElement(M.default.Fragment,null,""!=f.documentAPI&&z&&M.default.createElement(M.default.Fragment,null,M.default.createElement("div",null,M.default.createElement(l.DocumentEditorContainerComponent,{height:"100vh",enableToolbar:!0,serviceUrl:n+"/",enableTrackChanges:!0,ref:function(t){t&&t.documentEditor&&(i=t.documentEditor)},toolbarItems:Uo,toolbarClick:function(t){switch(t.item.id){case"exportDocument":x();break;case"saveDocument":A();break;case"closeDocument":L("closeDoc");break;case"expand":L("expand")}}.bind(undefined),documentEditorSettings:{optimizeSfdt:!1},restrictEditing:S}))))},exports.DropDown=function(e){var n=e.id,o=e.name,s=e.dataSource,a=e.fields,u=e.sortOrder,c=e.placeholder,h=e.allowFiltering,l=e.popupHeight,p=e.required,g=e.label,d=e.autofill,f=e.onChange,y=e.value,m=e.className,N=e.disabled;e.showSelectAll;var j=e.displayText,D=e.filterable,S=e.onFilterChange,v=e.dropDownRef,I=e.readonly,z=e.filterType,b=e.valueTemplate,w=e.itemTemplate,O=t.useState(),T=O[0],L=O[1],A=t.useRef(null);t.useEffect(function(){null==v||v(A)},[]),t.useEffect(function(){var t;L(null===(t=null==A?void 0:A.current)||void 0===t?void 0:t.text)},[y]),t.useEffect(function(){j&&(A.current.text=j)},[s]);var x=function(t){var e;null==f||f(t,{}),L(null===(e=null==A?void 0:A.current)||void 0===e?void 0:e.text)},C=function(t){if(D&&(null==S||S(t)),"contains"===z&&s&&a){var e=s.filter(function(e){return e[a.text].toLowerCase().includes(t.text.toLowerCase())});t.updateData&&t.updateData(e,"")}};return M.default.createElement("div",{className:""},g&&M.default.createElement("label",{htmlFor:n,className:"form-label"},g," ",p?M.default.createElement("i",{className:"req-lbl"},"*"):M.default.createElement(M.default.Fragment,null)),M.default.createElement(r.TooltipComponent,{beforeOpen:function(t){return function(t,e){e||(t.cancel=!0)}(t,T)},content:T},I?M.default.createElement(i.DropDownListComponent,{id:n,name:o,popupHeight:l,dataSource:s,fields:a,placeholder:c,sortOrder:u,filtering:C,allowFiltering:h,change:x,value:y,className:m,enabled:!N,type:"dropdown",ref:A,valueTemplate:b,itemTemplate:w}):M.default.createElement(i.ComboBoxComponent,{id:n,name:o,popupHeight:l,dataSource:s,fields:a,placeholder:c,sortOrder:u,autofill:d,filtering:C,allowFiltering:h,change:x,value:y,className:m,enabled:!N,type:"dropdown",allowCustom:!1,ref:A,valueTemplate:b,itemTemplate:w})))},exports.DropDownTree=function(t){var e=t.fields,r=t.allowFiltering,n=t.id,o=t.onChange,s=t.value,a=t.name,u=t.className,c=t.disabled;return M.default.createElement(i.DropDownTreeComponent,{id:n,fields:e,allowFiltering:r,change:o,value:s,name:a,className:u,disabled:c,type:"dropdowntree"})},exports.Grid=function(e){var i=e.pageSize,r=e.dataSource,o=e.allowPaging,s=e.columns,a=void 0===s?[]:s,u=e.columnName,c=e.className,h=e.allowColumnSearch,l=e.allowGenericSearch,p=e.allowExcelExport,g=e.allowPdfExport,d=e.id,f=e.onRowSelectionChanged,y=e.excelFileName,m=void 0===y?"Excel_Export":y;e.toolBarName;var N,j=e.pdfOrientation,D=e.onRefresh,S=e.allowCheckBox,v=e.selectedRows,I=e.checkboxSelectionOnly,b=e.selectionDisable,w=e.pageSetting,O=e.dataStateChange,T=e.serverSidePagination,L=void 0!==T&&T,A=e.onExcelExport,x=e.onPdfExport,C=e.initiateExcelExport,E=e.initiatepdfExport,k=e.excelExportCompleted,P=e.pdfExportCompleted,U=e.hideOnReport,Q=void 0===U?[]:U,Y=e.currentPage,R=e.height,V=e.width,F=e.frozenRows,B=e.frozenColumns,W=e.rowSelectStyle,G=void 0===W?{}:W,H=e.gridRef,q=e.currentPageNumber,_=e.isFilterClearing,J=e.getActiveFilterCriteria,Z=e.nonExportableColumns,K=e.allowResizing,X=void 0!==K&&K,$=e.defaultFilter,tt=void 0===$?[]:$,et=e.allowTextWrap,it=void 0!==et&&et,rt=t.useState(r),nt=rt[0],ot=rt[1],st=t.useState(),at=st[0],ut=st[1],ct={type:"Menu",operators:{stringOperator:[{value:"contains",text:"Contains"}]},showFilterBarOperator:!0},ht=!1,lt=function(){var t;null===(t=document.getElementById((null==N?void 0:N.element.id)+"_searchbar"))||void 0===t||t.addEventListener("keyup",function(t){null==N||N.search(t.target.value)})},pt=function(t){var e;return null==f||f(N.getSelectedRecords(),t),N&&(e=N.getSelectedRecords()),e};t.useEffect(function(){w?ut(w):(0===Y||Y>0)&&0!==at&&ut(Y)},[w,Y]),t.useEffect(function(){Dt()},[at]),t.useEffect(function(){o||(N.searchSettings.key="")},[o]),t.useEffect(function(){if(C&&L)St(!1),N.excelExport({fileName:"".concat(m,".xlsx")}),null==k||k(ft());else if(E&&L){var t={fileName:"".concat(m,".pdf"),pageOrientation:j};N.pdfExport(t),null==P||P(ft())}},[C,E]),t.useEffect(function(){L&&r&&(N.dataSource={result:r,count:Number((null==r?void 0:r.length)>0?r[0].totalCount:0)});var t=document.getElementById(d+"_clearbutton");t&&!ht&&(t.removeEventListener("click",gt),t.addEventListener("click",gt),ht=!0)},[r]),t.useEffect(function(){for(var t=0;t<tt.length;t++)null==N||N.filterByColumn(tt[t].field,"contains",tt[t].value)},[tt]);var gt=function(){var t;null===(t=document.getElementById(d+"_searchbutton"))||void 0===t||t.click()};t.useEffect(function(){return H&&H(N),D&&D(dt),v&&v(pt),function(){var t=document.getElementById(d+"_clearbutton");t&&t.removeEventListener("click",gt)}},[]);var dt=function(t){void 0===t&&(t=!1),N.clearSelection(),N.refresh(),t&&N.clearFiltering()},ft=function(){var t,e,i=[];for(var r in null===(t=null==N?void 0:N.filterModule)||void 0===t?void 0:t.values)i.push({field:r,value:null===(e=null==N?void 0:N.filterModule)||void 0===e?void 0:e.values[r]});return i},Mt=function(t){var e=null==a?void 0:a.filter(function(t){return!(null==Z?void 0:Z.includes(null==t?void 0:t.field))});if(N&&t.item.id===d+"_excelexport")L?null==A||A(ft()):(null==Z?void 0:Z.length)?N.excelExport({fileName:"".concat(m,".xlsx"),columns:e}):N.excelExport({fileName:"".concat(m,".xlsx")});else if(N&&t.item.id===d+"_pdfexport"){var i=void 0;i=(null==Z?void 0:Z.length)?{fileName:"".concat(m,".pdf"),pageOrientation:j,columns:e}:{fileName:"".concat(m,".pdf"),pageOrientation:j},L?null==x||x(ft()):N.pdfExport(i)}};t.useMemo(function(){return ot(r),r&&u?Je.distinct(r,u):[]},[r,u]);var yt={pageSize:i},mt=[];l&&(mt=z([],["Search"],!0)),p&&(mt=z(z([],mt,!0),["ExcelExport"],!1)),g&&(mt=z(z([],mt,!0),["PdfExport"],!1)),l||p||g||(mt=void 0);var Nt={type:"Multiple",persistSelection:!0,checkboxOnly:I},jt=function(t){G&&G.key&&(!0===t.data[G.key]&&(t.row.style.backgroundColor=G.color,t.row.querySelectorAll(".e-leftfreeze").forEach(function(t){t.style.backgroundColor=G.color})));(null==b?void 0:b.some(function(e){return e.colName in t.data&&e.colId===t.data[e.colName]}))&&(t.isSelectable=!1)},Dt=function(){var t;q&&q(null===(t=null==N?void 0:N.pageSettings)||void 0===t?void 0:t.currentPage),L&&N?(0==at||at>0)&&(N.pageSettings.currentPage=at+1,ut(null)):at&&N&&(N.pageSettings.currentPage=at,ut(null))},St=function(t){for(var e=function(e){var i=N.columns.find(function(t){return t.field===Q[e]});i&&(i.visible=t)},i=0;i<(null==Q?void 0:Q.length);i++)e(i)};function vt(t,e){return e?'\n <span style="color: red"> *</span>\n <span class="e-headertext">'.concat(t,"</span>\n "):'<span class="e-headertext">'.concat(t,"</span>")}var It=function(t){t.column.template&&"EllipsisWithTooltip"===t.column.clipMode&&t.cell.classList.remove("e-ellipsistooltip")},zt=function(t){"ArrowRight"!=t.key&&"ArrowLeft"!=t.key&&"Tab"!=t.key||(t.target.classList.contains("e-textbox")||t.target.classList.contains("e-combobox")||t.target.classList.contains("e-multiselect"))&&(t.cancel=!0)},bt=function(t){"filtering"!==t.requestType&&"paging"!==t.requestType||J&&J(ft())};return L?M.default.createElement(n.GridComponent,{allowPaging:!0,pageSettings:yt,className:c,toolbar:mt,filterSettings:h?ct:void 0,allowFiltering:!!h,ref:function(t){t&&(N=t)},actionComplete:bt,allowExcelExport:p,allowPdfExport:g,toolbarClick:Mt,created:lt,id:d,rowSelected:pt,rowDeselected:pt,selectionSettings:Nt,rowDataBound:jt,dataBound:Dt,dataStateChange:O,queryCellInfo:It,excelExportComplete:function(){St(!0)},height:R||"",width:V||"",frozenRows:F,frozenColumns:B,keyPressed:zt,allowResizing:X,allowTextWrap:it},M.default.createElement(n.ColumnsDirective,null,S&&M.default.createElement(n.ColumnDirective,{type:"checkbox",width:"50"}),a.map(function(t){return M.default.createElement(n.ColumnDirective,{type:t.type?t.type:"string",key:t.field,width:t.width,textAlign:t.textAlign,headerText:t.headerText?t.headerText:t.templateHeaderText,template:t.template?t.template:void 0,field:t.field,format:t.format,allowFiltering:1==t.allowFiltering,clipMode:t.clipMode,isPrimaryKey:t.isPrimaryKey,visible:t.visible,headerTemplate:t.headerText?vt(t.headerText,t.mandatory):t.headerTemplate})})),M.default.createElement(n.Inject,{services:[n.Page,n.Sort,n.Filter,n.Group,n.Search,n.Toolbar,n.ExcelExport,n.PdfExport,n.Resize]})):M.default.createElement(n.GridComponent,{dataSource:nt,allowPaging:o,pageSettings:yt,className:c,toolbar:mt,filterSettings:h?ct:void 0,allowFiltering:!!h,ref:function(t){t&&(N=t)},actionBegin:function(t){"filtering"===t.requestType&&_&&_(!0)},actionComplete:bt,allowExcelExport:p,allowPdfExport:g,toolbarClick:Mt,created:lt,id:d,rowSelected:pt,rowDeselected:pt,selectionSettings:Nt,rowDataBound:jt,dataBound:Dt,queryCellInfo:It,height:R||"",width:V||"",frozenRows:F,frozenColumns:B,keyPressed:zt,allowResizing:X,allowTextWrap:it},M.default.createElement(n.ColumnsDirective,null,S&&M.default.createElement(n.ColumnDirective,{type:"checkbox",width:"50"}),a.map(function(t){return M.default.createElement(n.ColumnDirective,{type:t.type?t.type:"string",key:t.field,width:t.width,textAlign:t.textAlign,headerText:t.headerText?t.headerText:t.templateHeaderText,template:t.template?t.template:void 0,field:t.field,format:t.format,allowFiltering:1==t.allowFiltering,clipMode:t.clipMode,isPrimaryKey:t.isPrimaryKey,visible:t.visible,headerTemplate:t.headerText?vt(t.headerText,t.mandatory):t.headerTemplate})})),M.default.createElement(n.Inject,{services:[n.Page,n.Sort,n.Filter,n.Group,n.Search,n.Toolbar,n.ExcelExport,n.PdfExport,n.Resize]}))},exports.IdleMonitor=function(e){var i,r,n=e.logOut,o=e.extendSession,s=t.useState(!1),a=s[0],u=s[1],c=["load","mousemove","mousedown","click","scroll","keypress"],h=function(){i&&clearTimeout(i),r&&clearTimeout(r),i=setTimeout(function(){return u(!0)},6e4),r=setTimeout(function(){return n},6e4)};return t.useEffect(function(){for(var t in c)window.addEventListener(c[t],h);return function(){for(var t in c)window.removeEventListener(c[t],h)}},[]),M.default.createElement(M.default.Fragment,null,M.default.createElement(ai,{title:"Session expire warning",show:a,onClose:function(){u(!1)},toggle:function(){return u(!1)},closeBtn:!1},M.default.createElement("div",{className:"mt-2"},"your session will expire in ",1," minutes. Do you want to extend the session?"),M.default.createElement("div",{className:"mt-5 btnMain"},M.default.createElement("button",{className:"btn btn-info me-2",onClick:n},"Logout"),M.default.createElement("button",{className:"btn btn-success",onClick:o},"Extend session"))))},exports.Modal=function(e){var i=e.isOpen,r=e.setIsOpen,n=e.onButtonClick,o=e.children,s=e.title,a=e.confirmBtn,u=void 0===a?"Yes":a,c=e.deletBtn,h=void 0===c?"No":c,l=e.showConfirmBtn,p=void 0===l||l,g=e.showDeleteBtn,d=void 0===g||g,f=function(t){n(t),r(!1)},y=function(t){t.target.closest(".bb-modal-container")||r(!1)};t.useEffect(function(){return i?document.addEventListener("mousedown",y):document.removeEventListener("mousedown",y),function(){document.removeEventListener("mousedown",y)}},[i,r]);var m=function(t){var e=t.children,i=t.onClick,r=t.className;return M.default.createElement("button",{onClick:i,className:r},e)};return i&&M.default.createElement("div",{className:"bb-modal-container"},M.default.createElement("div",{className:"bb-modal-content"},M.default.createElement("p",{className:"bb-modal-title"},s),M.default.createElement("div",{className:"bb-modal-children"},o),M.default.createElement("div",{className:"bb-modal-buttons"},p&&M.default.createElement(m,{onClick:function(){return f("Action_1")},className:"bb-modal-buttons-action1"},u),d&&M.default.createElement(m,{onClick:function(){return f("Action_2")},className:"bb-modal-buttons-action2"},h))))},exports.MultiSelectDropdown=function(t){var e=t.dataSource,r=t.placeholder,n=t.fields,o=t.onChange,s=t.className,a=t.required,u=t.label,c=t.id,h=t.name,l=t.mode,p=t.value,g=t.disabled,d=t.showSelectAll,f=t.idForSelectAll,y=t.allowFiltering,m=t.filterType,N=t.onFilterChange,j=t.onBlur,D=t.onBlurCallback;return M.default.createElement("div",null,u&&M.default.createElement("label",{htmlFor:c,className:"form-label"},u," ",a?M.default.createElement("i",{className:"req-lbl"},"*"):M.default.createElement(M.default.Fragment,null)),M.default.createElement(i.MultiSelectComponent,{id:c,dataSource:e,placeholder:r,change:function(t){f&&t.value&&e.length>0&&(t.value.length===e.length||t.value.length>=1e3)?(t.value=["5449A75B-7A82-41F4-BCC0-23391656568D"],null==o||o(t,{})):null==o||o(t,{})},value:p,fields:n,mode:l,className:s,name:h,changeOnBlur:!1,enabled:!g,type:"multiselect",selectAllText:"Select All",unSelectAllText:"UnSelect All",showSelectAll:d,enableSelectionOrder:!1,allowFiltering:y,filtering:"contains"===m?function(t){var i=e.filter(function(e){return e[n.text].toLowerCase().includes(t.text.toLowerCase())});t.updateData(i,""),null==N||N(t)}:void 0,onBlur:j,blur:D},M.default.createElement(i.Inject,{services:[i.CheckBoxSelection]})))},exports.Popup=ai,exports.Selector=function(t){var e=t.label,i=t.action,r=t.onSelect,n=t.className,o=t.id,s=t.name,a=function(t){var e=t.target.value;r&&r(e)},u=null==i?void 0:i.map(function(t){return M.default.createElement("div",{key:t},M.default.createElement("input",{type:"radio",id:t,name:s,value:t,onChange:a})," ",t)});return M.default.createElement("div",{className:n,id:o},e," : ",u)},exports.SimplePdfViewer=function(e){var i=e.apiUrl,r=e.maxWidth,n=void 0===r?300:r,o=e.isCarousal,s=void 0!==o&&o,a=e.pageMargin,u=void 0===a?8:a,c=t.useState(),h=c[0],l=c[1];return M.default.createElement("div",{className:"gbs-simplePdfViewer-container"},M.default.createElement("div",{className:"gbs-simplePdfViewer-document-container"},M.default.createElement(p.Document,{file:i,onLoadSuccess:function(t){var e=t.numPages;l(e)},options:Yo},s?M.default.createElement(j.default,S({},{dots:!0,infinite:!1,speed:500,slidesToShow:1,slidesToScroll:1}),Array.from(new Array(h||0),function(t,e){return M.default.createElement("div",{key:"page_".concat(e+1),style:{marginRight:"".concat(u,"px"),width:"".concat(n,"px")}},M.default.createElement(p.Page,{pageNumber:e+1,width:n}))})):Array.from(new Array(h||0),function(t,e){return M.default.createElement("div",{key:"page_".concat(e+1),style:{marginRight:"".concat(u,"px"),width:"".concat(n,"px")}},M.default.createElement(p.Page,{pageNumber:e+1,width:n}))}))))},exports.TextArea=function(e){var i=e.id,n=e.name,o=e.rows,s=e.cols,a=e.value,u=e.label,c=void 0===u?"":u,h=e.onChange,l=e.required,p=e.className,g=e.placeholder,d=e.disabled,f=e.onKeypress,y=e.maxLength,m=e.onBlur,N=e.defaultValue,j=e.enableTooltip,D=e.maxWords,v=t.useState(""),I=v[0],z=v[1],b=t.useRef(null);t.useEffect(function(){var t;z(null===(t=b.current)||void 0===t?void 0:t.value)},[N,a]);var w=function(t,e){e&&j||(t.cancel=!0)},O=function(t){return t.replace(/[<>`;]/g,"")},T=function(t){var e=t.target.value,i=O(e),r=Object.assign(Object.create(Object.getPrototypeOf(t)),t,{target:S(S({},t.target),{value:i,name:t.target.name})}),n=e.trim().split(/\s+/);D&&n.length>D||(z(e),null==h||h(r,{}))},L=function(t){t.stopPropagation(),null==f||f(t)};return M.default.createElement(M.default.Fragment,null,c&&M.default.createElement("label",{htmlFor:i,className:"form-label"},c," ",l?M.default.createElement("i",{className:"req-lbl"},"*"):M.default.createElement(M.default.Fragment,null)),null!=a?M.default.createElement(r.TooltipComponent,{beforeOpen:function(t){return w(t,I)},content:j?I:""},M.default.createElement("textarea",{id:i,name:n,rows:o,cols:s,value:a,onChange:T,onKeyDown:L,required:l,className:p,placeholder:g,disabled:d,maxLength:y,ref:b})):M.default.createElement(r.TooltipComponent,{beforeOpen:function(t){return w(t,I)},content:j?I:""},M.default.createElement("textarea",{id:i,name:n,rows:o,cols:s,onChange:T,required:l,className:p,placeholder:g,disabled:d,onKeyDown:L,defaultValue:N,onBlur:function(t){var e=t.target.value,i=O(e),r=S(S({},t),{target:S(S({},t.target),{value:i})});z(t.target.value),null==m||m(r,{})},maxLength:y,ref:b})))},exports.TextTooltip=function(t){var e=t.title,i=t.tooltip;return M.default.createElement("span",{className:"bb-tooltip"},M.default.createElement("span",{className:"bb-data"},e),M.default.createElement("span",{className:"bb-tooltiptext"},i))},exports.Textbox=function(e){var i=e.type,n=void 0===i?"text":i,o=e.disabled,s=void 0!==o&&o,a=e.required,u=void 0!==a&&a,c=e.className,h=void 0===c?"":c,l=e.name,p=void 0===l?"":l,g=e.placeholder,d=void 0===g?"":g,f=e.value,y=e.onChange,m=e.onKeyPress,N=e.onKeyDown,j=e.label,D=void 0===j?"":j,v=e.id,I=e.minLength,z=e.maxLength,b=e.step,w=e.pattern,O=void 0===w?"":w,T=e.onBlur,L=e.defaultValue,A=e.checked,x=void 0!==A&&A,C=e.enableTooltip,E=e.disablePasting,k=void 0!==E&&E,P=e.autoComplete,U=void 0===P?"":P,Q=e.inputRef,Y=t.useState(!1),R=Y[0],V=Y[1],F=t.useState(f||L),B=F[0],W=F[1],G=t.useState(),H=G[0],q=G[1],_=function(t){O&&t.target.value&&!function(t){switch(O){case"email":return/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(t);case"phone":return/^[0-9]{10}$/.test(t);case"name":return/^[a-zA-Z0-9.]+$/.test(t)}return!0}(t.target.value)&&V(!0),null==T||T(t,{})},J=function(t){var e,i=function(t){return t.replace(/[<>`;]/g,"")}(t.target.value);q(null===(e=Z.current)||void 0===e?void 0:e.value),V(!1);var r=Object.assign(Object.create(Object.getPrototypeOf(t)),t,{target:S(S({},t.target),{value:i,name:t.target.name})});if("number"===O)1===i.length&&"-"===i||!isNaN(i)?(null==y||y(r,{}),W(i)):t.target.value=B;else if("negativenumber"===O||"preventnegativenumber"===O)i.includes("-")||isNaN(i)?t.target.value=B:(null==y||y(r,{}),W(i));else if("lettersOnly"===O){/^[a-zA-Z]*$/.test(i)||""===i?(W(i),null==y||y(r,{})):t.target.value=B}else W(i),null==y||y(r,{})},Z=t.useRef(null);t.useEffect(function(){var t;q(null===(t=Z.current)||void 0===t?void 0:t.value)},[L,f]),t.useEffect(function(){Q&&Q(Z)},[Z,Q]);var K=function(t,e){e&&C||(t.cancel=!0)},X=function(t){null==N||N(t),t.stopPropagation()};return M.default.createElement(M.default.Fragment,null,D&&M.default.createElement("label",{htmlFor:v,className:"form-label"},D," ",u?M.default.createElement("i",{className:"req-lbl"},"*"):M.default.createElement(M.default.Fragment,null)),M.default.createElement(M.default.Fragment,null,null!=f?M.default.createElement(r.TooltipComponent,{beforeOpen:function(t){return K(t,H)},content:C?H:""},M.default.createElement("input",{id:v,type:n,value:f,onChange:J,onKeyPress:m,onKeyDown:X,disabled:s,required:u,className:h,name:p,placeholder:d,minLength:I,maxLength:z,step:b,pattern:O,onBlur:_,defaultValue:L,checked:x,ref:Z,onPaste:k?function(t){return t.preventDefault()}:void 0,autoComplete:U})):M.default.createElement(r.TooltipComponent,{beforeOpen:function(t){return K(t,H)},content:C?H:""},M.default.createElement("input",{id:v,type:n,onChange:J,disabled:s,onKeyPress:m,onKeyDown:X,required:u,className:h,pattern:O,name:p,placeholder:d,minLength:I,maxLength:z,step:b,onBlur:_,defaultValue:L,checked:x,ref:Z,onPaste:k?function(t){return t.preventDefault()}:void 0,autoComplete:U})),R&&M.default.createElement("span",{className:"pat-val-error"},function(){switch(O){case"email":return"Invalid Mail Address";case"phone":return"Invalid Phone Number";case"name":return"Invalid Text Format"}return"Invalid Input"}())))},exports.TimePicker=function(t){var i=t.placeholder,r=t.className,n=t.minTime,o=t.maxTime,s=t.label,a=void 0===s?"":s,u=t.id,c=t.onChange,h=t.name,l=t.value,p=t.format,g=t.disabled,d=t.onClearing,f=t.allowEdit;return M.default.createElement("div",null,M.default.createElement("label",{htmlFor:u},a),M.default.createElement(e.TimePickerComponent,{id:u,placeholder:i,min:n,max:o,className:r,onChange:c,name:h,value:l,disabled:g,format:p,type:"timepicker",cleared:function(t){d(t)},allowEdit:f}))},exports.Toast=function(){var e=t.useRef(null),i=document.getElementsByTagName("body")[0];return i.hasAttribute("data-listener-bb-toast")||(document.addEventListener("bb_toast",function(t){var i;if("bb_toast"==t.detail.key){null===(i=e.current)||void 0===i||i.show({title:t.detail.title,content:t.detail.content,showProgressBar:"true"==t.detail.showProgressBar||!t.detail.showProgressBar,position:t.detail.position?t.detail.position:{X:"Top",Y:"Right"},timeOut:t.detail.timeOut?t.detail.timeOut:2e3});for(var r=document.getElementsByClassName("e-toast-title"),n={success:"green",warning:"orange",alert:"red"},o=0;o<r.length;o++)r[o].style.color=n[t.detail.type];var s=document.getElementsByClassName("e-toast-progress");for(o=0;o<s.length;o++)s[o].style.backgroundColor=n[t.detail.type]}},!1),i.setAttribute("data-listener-bb-toast","true")),M.default.createElement("div",null,M.default.createElement(c.ToastComponent,{ref:e,type:"toast"}))},exports.Tooltip=function(t){var e=t.id,i=t.content,n=t.target,o=t.className,s=t.position,a=t.children;return M.default.createElement(M.default.Fragment,null,M.default.createElement(r.TooltipComponent,{id:e,className:o,content:i,target:n,position:s}),a)},exports.Uploader=function(e){var i=e.fileCount,n=e.onFilesChange,s=e.onUploadCompleted,u=e.startUpload,c=e.batchId,h=e.documentTypeId,l=e.files,p=e.inputFileSize,g=e.fileTypes,d=e.listOnly,f=e.imageOnly,y=e.postExecuteParam,j=e.listView,D=e.documentAPI,S=e.placeholder,b=void 0===S?"Drag and drop files here":S,w=e.buttonText,O=void 0===w?"Choose file":w,T=e.imageToUpload,L=e.index,A=e.onClearFiles,x=e.onClose,C=e.fileRemoved,E=e.disabled,k=e.imageHeight,P=e.imageWidth,U=e.fileView,Q=void 0===U||U;e.handleFileError;var Y=e.showErrorMessage,R=void 0===Y||Y,V=e.showDownloadProgress,F=void 0!==V&&V,B=e.clientId,W=e.allowMultipleSelection,G=void 0===W||W,H=e.postBody,q=void 0===H?{}:H,_=t.useState([]),J=_[0],Z=_[1],K=t.useState([]),X=K[0],$=K[1],tt=t.useState(!1),et=tt[0],it=tt[1],rt=t.useState(""),nt=rt[0],ot=rt[1],st=M.default.useRef(null),at=i,ut=t.useState(1),ct=ut[0],ht=ut[1],lt=t.useState([]),pt=lt[0],gt=lt[1],dt=t.useState(0),ft=dt[0],Mt=dt[1],yt=t.useState(ui),mt=yt[0],Nt=yt[1],jt=t.useState(0),Dt=jt[0],St=jt[1],vt=t.useState(""),It=vt[0],zt=vt[1],bt=t.useState(0),wt=bt[0],Ot=bt[1],Tt=t.useState(0),Lt=Tt[0],At=Tt[1],xt=t.useState(-1),Ct=xt[0],Et=xt[1],kt=t.useState([]),Pt=kt[0],Ut=kt[1],Qt=t.useState(""),Yt=Qt[0],Rt=Qt[1],Vt=t.useState(!1),Ft=Vt[0],Bt=Vt[1],Wt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAD4AAABNCAYAAAD+d9crAAAACXBIWXMAAAsTAAALEwEAmpwYAAAF+mlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuMTYzNDk5LCAyMDE4LzA4LzEzLTE2OjQwOjIyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgMjAxOSAo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xxG3e/+Wty7s4qixxcB0cAOLXcxCe++En8+Bcehafz1ncdkzPf9TVsYFcOtlP8Ec2YDdN/xu8xLUzdtfDfc3d9BrAEMPl7Fv7a7PdS/3fx60hgzyE4+q7gNAFcANiDkZY/NBfTx7MApQCbd+KizVM4n6expStgaSff95AwAsDp3YL3f3nGKxefwy3z1kABzpDMhJOYuQRhTYsN6wEkEycZ9mkGiufeQO8IXBvGzoMU+/dQbJIoI7C0vVKI2CdcR7+GNGeQsO3PgnoaL073LgvABDCbQ6vocWr3CcRG2pPkbeB/6f2KrDIJwXWvehL+B2Bi6PuvmQxqAAAAAElFTkSuQmCC";t.useEffect(function(){A&&A(Gt),Pt&&0!==Pt.length||re(!1)},[]);var Gt=function(){Z([]),it(!1)};t.useEffect(function(){Z(T||J),wt>0&&qt(ct)},[pt,Dt]),t.useEffect(function(){re(!1)},[h]),M.default.useEffect(function(){(!J||0==(null==J?void 0:J.length))&&l.length>0&&ee(l)});var Ht=function(t){var e,i=J;if(i[t]&&i[t].isValid&&!a.utilService.isValidGUID(i[t].documentId)){Et(t),Xt("Uploading...",t),$t();var r=i[t].file;Ot(r.size);var n=r.size%ui==0?r.size/ui:Math.floor(r.size/ui)+1;At(n),gt(r);var o=a.utilService.getGUID()+"."+r.name.split(".").pop();zt(o)}else if(i[t]&&a.utilService.isValidGUID(i[t].documentId))St(100),Ht(t+1),J[t+1]||null==s||s(i);else if(i[t]&&!1===(null===(e=i[t])||void 0===e?void 0:e.isValid)&&t<(null==i?void 0:i.length))Ht(t+1);else if(t===(null==J?void 0:J.length))return},qt=function(t){if(ht(t+1),t<=Lt){var e=pt.slice(ft,mt);_t(e)}},_t=function(t){return v(void 0,void 0,void 0,function(){var e,i,r,n;return I(this,function(o){switch(o.label){case 0:return o.trys.push([0,7,,8]),[4,m.default.post(D+"core/7bda9c96-1af4-4b19-aa6d-98e1995e4255/document/uploadchunks",t,{params:{id:ct,fileName:It,documentTypeId:h,clientId:B},headers:{"Content-Type":"application/json"}})];case 1:return e=o.sent(),(i=e.data).isSuccess?(Mt(mt),Nt(mt+ui),ct!=Lt?[3,3]:[4,Jt()]):[3,5];case 2:return o.sent(),[3,4];case 3:St(r=ct/Lt*100),Xt("Uploading...",Ct,r),o.label=4;case 4:return[3,6];case 5:console.log("Error Occurred:",i.errorMessage),o.label=6;case 6:return[3,8];case 7:return n=o.sent(),console.log("error",n),[3,8];case 8:return[2]}})})},Jt=function(){return v(void 0,void 0,void 0,function(){var t,e,i,r,n,o,a,l,p;return I(this,function(g){switch(g.label){case 0:return t=pt,(e=new FormData).append("fileName",It),e.append("physicalName",t.name),i={},[4,m.default.post(D+"core/7bda9c96-1af4-4b19-aa6d-98e1995e4255/document/uploadcomplete",i,{params:{fileName:It,documentTypeId:h,physicalName:t.name,clientId:B},data:e})];case 1:return r=g.sent(),n=null===(p=null===(l=r.config)||void 0===l?void 0:l.params)||void 0===p?void 0:p.physicalName.toLowerCase().split(".").pop(),(o=r.data).isSuccess&&(Xt("Uploaded Successfully",Ct,100),(a=z([],J,!0))[Ct].documentId=o.documentId,a[Ct].rowIndex=L,a[Ct].batchId=c,Z(a),2==u?Zt(o.documentId,n):(Et(Ct+1),Ht(Ct+1),J[Ct+1]||null==s||s(a))),[2]}})})},Zt=function(t,e){return v(void 0,void 0,void 0,function(){var i,r,n;return I(this,function(o){switch(o.label){case 0:return i=null==g?void 0:g.map(function(t){return t.toLowerCase()}),r=null==i?void 0:i.filter(function(t){return t==e}),(new FormData).append("fileName",It),[4,m.default.post(D+"core/7bda9c96-1af4-4b19-aa6d-98e1995e4255/dataupload/"+("xlsx"==r?"uploadexceldata":"uploadtextdata"),q,{params:{documentId:t,batchId:c,postExecuteParam:y||""}})];case 1:return n=o.sent(),n.data.isSuccess&&(Xt("Exporting Data",Ct,5),Kt(c)),[2]}})})},Kt=function(t){var e=null;e=setInterval(function(){m.default.get(D+"core/7bda9c96-1af4-4b19-aa6d-98e1995e4255/dataupload/getbatchdetails?batchId="+t).then(function(t){var i=t.data;if(i.isSuccess){var r=i.data;5==r.processStatusId?(Xt("Completed",Ct,100),clearInterval(e),Et(Ct+1),Ht(Ct+1),J[Ct+1]||null==s||s(J)):4==r.processStatusId?(Xt(r.remarks,Ct,100,"danger",r.processStatusId),null==s||s([{error:r.remarks}]),clearInterval(e)):6==r.processStatusId?Xt("Data validation...",Ct,r.progress,"info"):r.progress>5&&Xt("",Ct,r.progress)}},function(t){"ERR_NETWORK"==t.code&&Xt("Network Failure",Ct,100,"danger"),clearInterval(e)})},1e3)},Xt=function(t,e,i,r,n){void 0===i&&(i=0),void 0===r&&(r="success"),void 0===n&&(n=0);var o=z([],J,!0);o[e].statusMessage=t||o[e].statusMessage,o[e].progress=i,o[e].variant=r,o[e].processStatusId=n,Z(o)},$t=function(){St(0),ht(1),Mt(0),Nt(ui)};M.default.useEffect(function(){if($(T),Number(u)>0){var t=null==J?void 0:J.filter(function(t){return null==t?void 0:t.isValid});J&&0!==J.length&&J[0]?J.length>0&&t&&0===(null==t?void 0:t.length)?null==s||s(z([],J,!0)):Ht(0):null==s||s([])}},[u,X]);var te=function(t){var e=t[0].name.toLowerCase().split(".").pop();["gif","jpeg","png","jpg"].includes(e)?function(t){var e,i={},r=new FileReader;r.onloadend=function(){(e=new Image).src=r.result,e.onload=function(){i.height=e.height,i.width=e.width,ne(t,i)}},t&&r.readAsDataURL(t[0])}(t):ne(t,"")},ee=function(t){return v(void 0,void 0,void 0,function(){var e,i;return I(this,function(r){switch(r.label){case 0:if(et||!(t.length>0))return[3,10];e=0,r.label=1;case 1:if(!(e<t.length))return[3,9];if(!ie(t[e].fileName)||!a.utilService.isValidGUID(t[e].documentId)||t[e].file||1==t[e].fileFetched)return[3,7];r.label=2;case 2:return r.trys.push([2,4,5,6]),Bt(!0),[4,m.default.get(D+"core/7bda9c96-1af4-4b19-aa6d-98e1995e4255/document/download?documentId="+t[e].documentId,{responseType:"blob",onDownloadProgress:function(t){var e=Math.round(100*t.loaded/t.total);console.log(e)}})];case 3:return i=r.sent(),t[e].fileFetched=!0,t[e].src=URL.createObjectURL(new Blob([i.data])),[3,6];case 4:return r.sent(),[3,6];case 5:return Bt(!1),[7];case 6:return[3,8];case 7:t[e].src=Wt,r.label=8;case 8:return e++,[3,1];case 9:it(!0),Z(t),r.label=10;case 10:return[2]}})})},ie=function(t){var e=t.split(".").pop();return["gif","jpeg","png","jpg"].includes(e)},re=function(t){return void 0===t&&(t=!1),v(void 0,void 0,void 0,function(){var e,i,r,n,o,s,a;return I(this,function(u){switch(u.label){case 0:return h?t?[3,2]:[4,m.default.get(D+"core/7bda9c96-1af4-4b19-aa6d-98e1995e4255/document/getexcelcolumns",{params:{documentTypeId:h}})]:[3,3];case 1:for(e=u.sent(),i=e.data,r=[],n=0;n<i.length;n++)r.push(i[n].sourceColumn);return Ut(r),r.length>0&&i[0].documentTypeName&&Rt(i[0].documentTypeName),[3,3];case 2:Pt.length>0&&(o=[],s=N.utils.book_new(),a=N.utils.json_to_sheet([]),N.utils.sheet_add_aoa(a,[Pt]),N.utils.sheet_add_json(a,o,{origin:"A2",skipHeader:!0}),N.utils.book_append_sheet(s,a,"Sheet1"),N.writeFile(s,Yt+".xlsx")),u.label=3;case 3:return[2]}})})},ne=function(t,e){var i=Number(at),r="",o=!1,s=0;if(t&&t.length>0){for(var u=J?z([],J,!0):[],c=function(n){if(o=!0,r="",s=t[n].size/1024,0==i||i>=u.length+1){if(h=t[n].name,l=h.toLowerCase().split(".").pop(),g&&g.length>0&&(null==g?void 0:g.includes(l))||!g||0==g.length)if(Number(p)>0&&Number(p)<s)a.messageService.broadcast({key:"bb_toast",type:"alert",content:"File too large, allowed size is "+p+" KB",position:{X:"550",Y:"50"}}),o=!1;else{if(u.findIndex(function(e){return e.fileName==t[n].name})>-1)return a.messageService.broadcast({key:"bb_toast",type:"alert",content:"Can't upload duplicate files!",position:{X:"550",Y:"50"}}),{value:!1};(k&&e.height!=k||P&&e.width!=P)&&(a.messageService.broadcast({key:"bb_toast",type:"alert",content:"Please choose an image with height "+k+"px and width "+P+"px",position:{X:"550",Y:"50"}}),o=!1)}else a.messageService.broadcast({key:"bb_toast",type:"alert",content:"Invalid file, allowed types - "+(null==g?void 0:g.join(",")),position:{X:"550",Y:"50"}}),o=!1;o&&u.push({fileName:t[n].name,fileSize:s.toFixed(1)+" KB",isValid:o,errorMessage:r,file:t[n],statusMessage:"Ready to upload",progress:0,variant:"success",src:ie(t[n].name)?URL.createObjectURL(t[n]):Wt})}else{var c="You can upload only ".concat(i," file").concat(i>1?"s":"",".");ot(c),a.messageService.broadcast({key:"bb_toast",type:"alert",content:c,position:{X:"550",Y:"50"}})}var h,l},h=0;h<t.length;h++){var l=c(h);if("object"==typeof l)return l.value}Z(u),null==n||n(u)}return!0};return M.default.createElement("div",{className:"control-pane",ref:st,onDrop:function(t){return!E&&!f&&((e=t).preventDefault(),ot(""),te(e.dataTransfer.files),!0);var e},onDragOver:function(t){return t.preventDefault()}},M.default.createElement("div",{className:"control-section row uploadpreview"},M.default.createElement("div",{className:""},M.default.createElement("div",{className:"upload_wrapper"},M.default.createElement("div",{className:"upload-files-container"},1!=d&&M.default.createElement(M.default.Fragment,null,M.default.createElement("div",{className:"drag-file-area"},M.default.createElement("label",{className:"label"}," ",M.default.createElement("span",{className:"browse-files"},M.default.createElement("input",{type:"file",id:"bb-file-upload",className:"default-file-input",onClick:function(t){return function(t){t.target.value=null}(t)},multiple:G,onChange:function(t){return te(t.target.files),ot(""),!0},disabled:E}),M.default.createElement("span",{className:"browse-files-text"},O)," "),M.default.createElement("span",{className:"dynamic-message"},b))),M.default.createElement("span",{className:"cannot-upload-message"}," ",M.default.createElement("span",{className:"material-icons-outlined"},"error")," ","Please select a file first"," ",M.default.createElement("span",{className:"material-icons-outlined cancel-alert-button"},"cancel")," ")),(null==g?void 0:g.includes("txt"))?M.default.createElement(M.default.Fragment,null):M.default.createElement("span",{className:"bb-excel-download-container"},Pt.length>0&&M.default.createElement("a",{className:"bb-download-custom-icon",onClick:function(){return re(!0)}}," Download Sample Document ",M.default.createElement("i",{className:"bi bi-file-earmark-spreadsheet-fill"}))),null==J?void 0:J.map(function(t,e){return M.default.createElement(M.default.Fragment,null,M.default.createElement("div",{className:"list"==j?"file-block-1":"file-block",style:{borderTop:"1px solid #d2d2d2"}},M.default.createElement("div",{className:"list"==j?"file-info-1":"file-info"},M.default.createElement("div",{className:"list"===j?"d-flex":""},1!=f&&M.default.createElement("span",{className:"material-icons-outlined file-icon"},M.default.createElement("img",{src:t.src})),1==f&&M.default.createElement("span",{className:"material-icons-outlined file-icon-image"},M.default.createElement("img",{src:t.src})),1!=d&&1!=f&&!E&&!(Number(u)>0)&&M.default.createElement("span",{className:"file-action file-action-remove",style:{color:"red"},onClick:function(){return function(t){var e=z([],J,!0),i=e.splice(t,1);1===i.length&&(i[0].index=t,Z(e),null==C||C(i))}(e)}},M.default.createElement("i",{className:"bi bi-x-circle",onClick:x})),1!=f&&M.default.createElement("span",{className:"file-action file-action-download",style:{color:"green"},onClick:function(){return function(t,e){return v(void 0,void 0,void 0,function(){var i,r,n,o,s,u;return I(this,function(c){switch(c.label){case 0:if(i=new Blob([]),!a.utilService.isValidGUID(t.documentId))return[3,5];c.label=1;case 1:return c.trys.push([1,3,,4]),r={responseType:"blob"},F&&(r.onDownloadProgress=function(t){var i=Math.round(100*t.loaded/t.total);Xt("downloading...",e,i)}),[4,m.default.get(D+"core/7bda9c96-1af4-4b19-aa6d-98e1995e4255/document/download?documentId="+t.documentId,r)];case 2:return n=c.sent(),i=new Blob([n.data]),[3,4];case 3:return o=c.sent(),console.error("Error downloading file:",o),[2];case 4:return[3,6];case 5:i=new Blob([t.file]),c.label=6;case 6:return s=window.URL.createObjectURL(i),(u=document.createElement("a")).href=s,u.download=t.fileName,u.click(),window.URL.revokeObjectURL(s),[2]}})})}(t,e)}},M.default.createElement("i",{className:"bi bi-download"})),Q&&1!=f&&t.documentId&&function(){if(t.fileName){var e=t.fileName.toLowerCase().split(".").pop();return["gif","jpeg","png","jpg","pdf","docx","doc"].includes(e)}return null}()&&M.default.createElement("span",{className:"file-action",style:{color:"blue"},onClick:function(){return function(t){var e;if(a.utilService.isValidGUID(t.documentId)){var i=null===(e=t.fileName)||void 0===e?void 0:e.split(".").pop(),r=JSON.stringify({message:"_viewDocumentEditor",entity:{documentId:t.documentId,documentName:t.fileName,documentAPI:D,documentType:i}});setTimeout(function(){window.parent.postMessage(r,"*")},2e3)}}(t)}},M.default.createElement("i",{className:"bi bi-eye-fill",title:"View"})),1!=f&&M.default.createElement("div",{style:{width:"225px"}},M.default.createElement(r.TooltipComponent,{content:t.fileName},M.default.createElement("span",{className:"list"==j?"file-name-1":"file-name"},(i=t.fileName)?i.length>20?i.substring(0,15)+"..."+i.split(".").pop():i:"")),M.default.createElement("span",{className:"list"==j?"file-size-1":"file-size"},t.fileSize,t.isValid&&4!=t.processStatusId?M.default.createElement("span",{className:"upd-success-msg"},t.statusMessage):t.isValid&&4==t.processStatusId?M.default.createElement("span",{className:"upd-warning-msg"},t.statusMessage):M.default.createElement("span",{className:"upd-warning-msg"},t.errorMessage))))),R&&nt&&e==J.length-1&&M.default.createElement("div",{className:"upd-cmn-error"},nt),t.progress>0&&M.default.createElement(o.ProgressBar,{className:"progressbar",animated:!0,variant:t.variant,now:t.progress,label:"".concat(t.progress.toFixed(0),"%")})));var i}),0==(null==J?void 0:J.length)&&(1==d||1==f)&&M.default.createElement("div",{className:"bb-fu-nofiles"},Ft?M.default.createElement(o.Spinner,{animation:"border",role:"status",variant:"danger"},M.default.createElement("span",{className:"visually-hidden"},"Loading...")):M.default.createElement("span",null,"No files found !")))))))},exports.Viewer=function(){var e=t.useState({documentId:"",showEditor:!1,documentAPI:"",documentName:"",documentType:"",actualPath:"",downloadPdfFile:!1,downloadImageFile:!1}),i=e[0],r=e[1];t.useEffect(function(){window.addEventListener("message",n)},[]);var n=function(t){var e,i,n,s,a,u;try{var c=o(t.data);if(c.message)switch(c.message){case"_viewDocumentEditor":c.entity&&r({documentId:(null===(e=c.entity)||void 0===e?void 0:e.documentId)||"",documentAPI:c.entity.documentAPI,showEditor:!0,documentName:c.entity.documentName,documentType:c.entity.documentType.toLowerCase(),actualPath:null===(i=c.entity)||void 0===i?void 0:i.actualPath,downloadPdfFile:!!(null===(n=c.entity)||void 0===n?void 0:n.downloadPdfFile)&&(null===(s=c.entity)||void 0===s?void 0:s.downloadPdfFile),downloadImageFile:!!(null===(a=c.entity)||void 0===a?void 0:a.downloadImageFile)&&(null===(u=c.entity)||void 0===u?void 0:u.downloadImageFile)});break;case"closeDoc":r(function(t){return S(S({},t),{showEditor:!1})})}}catch(t){}},o=function(t){try{return JSON.parse(t)}catch(t){return{message:"Failed"}}};return M.default.createElement(M.default.Fragment,null,i.showEditor&&M.default.createElement("div",{className:"popup-iframe"},("docx"===i.documentType||"doc"===i.documentType)&&M.default.createElement(pi,{documentId:i.documentId,documentAPI:i.documentAPI,documentName:i.documentName}),"pdf"===i.documentType&&M.default.createElement(ci,{documentId:i.documentId,documentAPI:i.documentAPI,documentName:i.documentName,actualPath:i.actualPath,downloadPdfFile:i.downloadPdfFile}),("jpg"===i.documentType||"jpeg"===i.documentType||"png"===i.documentType||"gif"===i.documentType)&&M.default.createElement(hi,{documentId:i.documentId,documentAPI:i.documentAPI,documentName:i.documentName,downloadImageFile:i.downloadImageFile})))};