‰PNG  IHDR 3 ( S°Âr 7iCCPsRGB IEC61966-2.1 xœ–wTSهϽ7½P’Š”ÐkhRH ½H‘.*1 JÀ "6DTpDQ‘¦2(à€£C‘±"Š…Q±ëDÔqp–Id­ß¼yïÍ›ß÷~kŸ½ÏÝgï}Öº üƒÂLX € ¡Xáçň‹g` ð l àp³³BøF™|ØŒl™ø½º ùû*Ó?ŒÁ ÿŸ”¹Y"1 P˜ŒçòøÙ\É8=Wœ%·Oɘ¶4MÎ0JÎ"Y‚2V“sò,[|ö™e9ó2„<ËsÎâeðäÜ'ã9¾Œ‘`çø¹2¾&cƒtI†@Æoä±|N6 (’Ü.æsSdl-c’(2‚-ãy àHÉ_ðÒ/XÌÏËÅÎÌZ.$§ˆ&\S†“‹áÏÏMç‹ÅÌ07#â1Ø™Yár fÏüYym²";Ø8980m-m¾(Ô]ü›’÷v–^„îDøÃöW~™ °¦eµÙú‡mi ]ëP»ý‡Í`/ в¾u}qº|^RÄâ,g+«ÜÜ\KŸk)/èïúŸC_|ÏR¾Ýïåaxó“8’t1C^7nfz¦DÄÈÎâpù 柇øþuü$¾ˆ/”ED˦L L–µ[Ȉ™B†@øŸšøÃþ¤Ù¹–‰ÚøЖX¥!@~ (* {d+Ðï} ÆGù͋љ˜ûÏ‚þ}W¸LþÈ$ŽcGD2¸QÎìšüZ4 E@ê@èÀ¶À¸ àA(ˆq`1à‚D €µ ”‚­`'¨u 4ƒ6ptcà48.Ë`ÜR0ž€)ð Ì@„…ÈR‡t CȲ…XäCP”%CBH@ë R¨ª†ê¡fè[è(tº C· Qhúz#0 ¦ÁZ°l³`O8Ž„ÁÉð28.‚·À•p|î„O×àX ?§€:¢‹0ÂFB‘x$ !«¤i@ڐ¤¹ŠH‘§È[EE1PL” Ê…⢖¡V¡6£ªQP¨>ÔUÔ(j õMFk¢ÍÑÎè t,:‹.FW ›Ðè³èô8úƒ¡cŒ1ŽL&³³³ÓŽ9…ÆŒa¦±X¬:ÖëŠ År°bl1¶ {{{;Ž}ƒ#âtp¶8_\¡8áú"ãEy‹.,ÖXœ¾øøÅ%œ%Gщ1‰-‰ï9¡œÎôÒ€¥µK§¸lî.îžoo’ïÊ/çO$¹&•'=JvMÞž<™âžR‘òTÀT ž§ú§Ö¥¾N MÛŸö)=&½=—‘˜qTH¦ û2µ3ó2‡³Ì³Š³¤Ëœ—í\6% 5eCÙ‹²»Å4ÙÏÔ€ÄD²^2šã–S“ó&7:÷Hžrž0o`¹ÙòMË'ò}ó¿^ZÁ]Ñ[ [°¶`t¥çÊúUЪ¥«zWë¯.Z=¾Æóµ„µik(´.,/|¹.f]O‘VÑš¢±õ~ë[‹ŠEÅ76¸l¨ÛˆÚ(Ø8¸iMKx%K­K+Jßoæn¾ø•ÍW•_}Ú’´e°Ì¡lÏVÌVáÖëÛÜ·(W.Ï/Û²½scGÉŽ—;—ì¼PaWQ·‹°K²KZ\Ù]ePµµê}uJõHWM{­fí¦Ú×»y»¯ìñØÓV§UWZ÷n¯`ïÍz¿úΣ†Š}˜}9û6F7öÍúº¹I£©´éÃ~á~遈}ÍŽÍÍ-š-e­p«¤uò`ÂÁËßxÓÝÆl«o§·—‡$‡›øíõÃA‡{°Ž´}gø]mµ£¤ê\Þ9Õ•Ò%íŽë>x´·Ç¥§ã{Ëï÷Ó=Vs\åx٠‰¢ŸN柜>•uêééäÓc½Kz=s­/¼oðlÐÙóç|ϝé÷ì?yÞõü± ÎŽ^d]ìºäp©sÀ~ ãû:;‡‡º/;]îž7|âŠû•ÓW½¯ž»píÒÈü‘áëQ×oÞH¸!½É»ùèVú­ç·snÏÜYs}·äžÒ½Šûš÷~4ý±]ê =>ê=:ð`Áƒ;cܱ'?eÿô~¼è!ùaÅ„ÎDó#ÛGÇ&}'/?^øxüIÖ“™§Å?+ÿ\ûÌäÙw¿xü20;5þ\ôüÓ¯›_¨¿ØÿÒîeïtØôýW¯f^—¼Qsà-ëmÿ»˜w3¹ï±ï+?˜~èùôñî§ŒOŸ~÷„óûpf* pHYs  Ê&ó? ÉIDATxœí™mh[UÇo’Û·´iWi`×b;Ym­`p Œ¬­n¢8Dh7ýà‡²‰ƒ9Q?t²f-(¢›:?±(Žiˆ:W¦‚m†…Vi‰ö…®±)KÚ4ñwºÜr“Ü›·¶YÊú‡'çí9ç>ÿsžsÎsoäp8, ŒŽŽÔÖÖv †ç)>€äK·>äòòòr¯,Ë¿¥ÒA?@`g]]‹lÓFZ—&J&“é‰P(ôªÑh<“¬ƒì÷ûwüL~ûÆÛ—LxK„<ú"‘¢ ‘³RîY„ހ̗ ëé7{<‹6­÷ø|¾»HÿÑSd ³gÏÚÀþIh«œ-C²-2¹ŠÛ’ÌUä;ää²-î·ˆiDžBŒ:z7'2ŽØ"’28¢“ˆ`þ˜˜ø¡¦¦ÆŸ ™KCCCO[­Ö%Qà’íånú…ìŽXE>Ê]ðR&9@ù+ BóÁ`Ж——wUÕ÷C’#©’áÞy$Tª®®Å®G’’ᡯ+D Ç™•>y'Fõ1ÔyÚV+8J¿ÁÈÉ>£û‰šÈ »ùùN‹ÅÒ!º¥JH…Lð™¤d`<΃c«4TÇungFÝõØŠÒÒÒëÁeY2›t°?)™âââ}$Õu¬Ê^ Õ½^ï¶²²²9¥ÂétšÚÚÚöhè>ŠØÕxÀnV2S"–¤d0ü¾ÿ«óýððp^}}ýêžÑŒÙufÉG =* ò6õ÷jèîaúfffNVVVú ò0D>[‘¤r T²‰/ BÒÍwœD!Ek~~þ†zYQ‹¤’ ¯¨¨8*\ "åé­‡tî™Ò4tSu±×…ˆÀmyin l‘ÉUl‘ÉU2^)ó"«XZZšçBÖmdÞGNdÍ¢Ìq¥¤¤dFd¸Ä \âq©ÜÓÓs²««ËLþ%Đm SÄ_„Iϱ¯æææÄE]Èv»]Äì/³„Ÿ‹žVéf<•±PDŒZÉ"‚vî\ôx<ŽªªªJ¡ÒCZV ÉA’Džþ ¹_ç!"Ì¿ ùÞ©©©1‡ÃˆLÈ*º»»---“šžž···/‹¼xù‚HT;nv,! ÛÍfs£ÎsÜøê1Vð åÊC §!Šï¾6ÌÎΖ–——Ÿ&û¤V{™¢¢¢ýR¼‹‰§.—Ëu^™1Hµ1CÙú*6KDv“ë)Å‘aYÕ¯¸bv?fµNp’LCD­w7IÇúÙ»f£ÈD޼}‘â¯äãR¿C$®'{æk\M¼|åÊÅ;eÇŸø&€K= ‰ ‰¾¸sy]£ý+Ô»áf¦ lî"³¸¸8922²«¡¡aQý•E¬äiô&#„nÕß"bÂûÝn÷›Qd8¿'!’ÖHúhpp°¿©©©‘üe•(G´ú„iPJ~â1œá>ÒWs‹pø5Ü݉—ŒY­Öõñ÷Èw5÷zŒ¥¿ßïÀà·ÈŒi "J!W6oBÆüMrˆ©•ÕWŠü÷ʪ‰h圢·)È(0™L? Xm6Û‹9EÕ^m(Ȧ"#ÐÜÜ,öÚYŸÏ÷9{ÜÞÙÙ¹‹òŸ¢íº›|¬– IEND®B`‚ AnonSec Shell
AnonSec Shell
Server IP : 20.73.19.71  /  Your IP : 10.112.20.21
Web Server : nginx/1.15.12
System : Linux a10deea3d6b7 6.8.0-1044-azure #50~22.04.1-Ubuntu SMP Wed Dec 3 15:13:22 UTC 2025 x86_64
User :  ( 1000)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/html/calc/v3/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /var/www/html/calc/v3//app.js.backup
try{window.FB||function(window,fb_fif_window){function bindContext(e,t){return function(){return apply.call(e,t,arguments)}}for(var apply=Function.prototype.apply,global={__type:"JS_SDK_SANDBOX",window:window,document:window.document},sandboxWhitelist=["setTimeout","setInterval","clearTimeout","clearInterval"],i=0;i<sandboxWhitelist.length;i++)global[sandboxWhitelist[i]]=function(e,t){return function(){return apply.call(e,t,arguments)}}(window[sandboxWhitelist[i]],window);(function(){function emptyFunction(){}var self=window,__DEV__=0,__transform_includes={},__annotator,__bodyWrapper,__w,__t,undefined;with(this){!function(){var e={},t=function(e,t){if(!e&&!t)return null;var n={};return void 0!==e&&(n.type=e),void 0!==t&&(n.signature=t),n},n=function(e,n){return t(e&&/^[A-Z]/.test(e)?e:undefined,n&&(n.params&&n.params.length||n.returns)?"function("+(n.params?n.params.map(function(e){return/\?/.test(e)?"?"+e.replace("?",""):e}).join(","):"")+")"+(n.returns?":"+n.returns:""):undefined)},r=function(e,t,n){return e},i=function(e,t,n){return n.apply(e,t)};void 0===__transform_includes?(__annotator=r,__bodyWrapper=i):(__annotator=function(e,t,r){if("sourcemeta"in __transform_includes&&(e.__SMmeta=t),"typechecks"in __transform_includes){var i=n(t?t.name:undefined,r);i&&__w(e,i)}return e},"codeusage"in __transform_includes?(__annotator=r,(__bodyWrapper=function(t,n,r,i,o){if(o){o.callId||(o.callId=o.module+":"+(o.line||0)+":"+(o.column||0));var a=o.callId;e[a]=(e[a]||0)+1}return r.apply(t,n)}).getCodeUsage=function(){return e},__bodyWrapper.clearCodeUsage=function(){e={}}):__bodyWrapper="typechecks"in __transform_includes?function(e,t,n,r){r&&r.params&&__t.apply(e,r.params);var i=n.apply(e,t);return r&&r.returns&&__t([i,r.returns]),i}:i)}(),__t=function(e){return e[0]},__w=function(e){return e};var require,__d;!function(e){var t={},n={},r=["global","require","requireDynamic","requireLazy","module","exports"];(require=function(r,i){if(n.hasOwnProperty(r))return n[r];if(!t.hasOwnProperty(r)){if(i)return null;throw new Error("Module "+r+" has not been defined")}for(var o,a=t[r],s=a.deps,u=a.factory.length,c=[],l=0;l<u;l++){switch(s[l]){case"module":o=a;break;case"exports":o=a.exports;break;case"global":o=e;break;case"require":o=require;break;case"requireDynamic":case"requireLazy":o=null;break;default:o=require.call(null,s[l])}c.push(o)}return a.factory.apply(e,c),n[r]=a.exports,a.exports}).__markCompiled=function(){},__d=function(e,i,o,a){"function"==typeof o?(t[e]={factory:o,deps:r.concat(i),exports:{}},3===a&&require.call(null,e)):n[e]=o}}(this),__d("ES5Array",[],function(e,t,n,r,i,o){t.__markCompiled&&t.__markCompiled();var a={};a.isArray=function(e){return"[object Array]"==Object.prototype.toString.call(e)},i.exports=a},null),__d("ES5ArrayPrototype",[],function(e,t,n,r,i,o){t.__markCompiled&&t.__markCompiled();var a={};a.map=function(e,t){if("function"!=typeof e)throw new TypeError;var n,r=this.length,i=new Array(r);for(n=0;n<r;++n)n in this&&(i[n]=e.call(t,this[n],n,this));return i},a.forEach=function(e,t){a.map.call(this,e,t)},a.filter=function(e,t){if("function"!=typeof e)throw new TypeError;var n,r,i=this.length,o=[];for(n=0;n<i;++n)n in this&&(r=this[n],e.call(t,r,n,this)&&o.push(r));return o},a.every=function(e,t){if("function"!=typeof e)throw new TypeError;for(var n=new Object(this),r=n.length,i=0;i<r;i++)if(i in n&&!e.call(t,n[i],i,n))return!1;return!0},a.some=function(e,t){if("function"!=typeof e)throw new TypeError;for(var n=new Object(this),r=n.length,i=0;i<r;i++)if(i in n&&e.call(t,n[i],i,n))return!0;return!1},a.indexOf=function(e,t){var n=this.length;for((t|=0)<0&&(t+=n);t<n;t++)if(t in this&&this[t]===e)return t;return-1},i.exports=a},null),__d("ES5Date",[],function(e,t,n,r,i,o){t.__markCompiled&&t.__markCompiled();var a={};a.now=function(){return(new Date).getTime()},i.exports=a},null),__d("ES5FunctionPrototype",[],function(e,t,n,r,i,o){t.__markCompiled&&t.__markCompiled();var a={};a.bind=function(e){function t(){return n.apply(e,r.concat(Array.prototype.slice.call(arguments)))}if("function"!=typeof this)throw new TypeError("Bind must be called on a function");var n=this,r=Array.prototype.slice.call(arguments,1);return t.displayName="bound:"+(n.displayName||n.name||"(?)"),t.toString=function(){return"bound: "+n},t},i.exports=a},null),__d("ie8DontEnum",[],function(e,t,n,r,i,o){t.__markCompiled&&t.__markCompiled();var a=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","prototypeIsEnumerable","constructor"],s={}.hasOwnProperty,u=function(){};({toString:!0}).propertyIsEnumerable("toString")&&(u=function(e,t){for(var n=0;n<a.length;n++){var r=a[n];s.call(e,r)&&t(r)}}),i.exports=u},null),__d("ES5Object",["ie8DontEnum"],function(e,t,n,r,i,o,a){function s(){}t.__markCompiled&&t.__markCompiled();var u={}.hasOwnProperty,c={};c.create=function(e){var t=typeof e;if("object"!=t&&"function"!=t)throw new TypeError("Object prototype may only be a Object or null");return s.prototype=e,new s},c.keys=function(e){var t=typeof e;if("object"!=t&&"function"!=t||null===e)throw new TypeError("Object.keys called on non-object");var n=[];for(var r in e)u.call(e,r)&&n.push(r);return a(e,function(e){return n.push(e)}),n},i.exports=c},null),__d("ES5StringPrototype",[],function(e,t,n,r,i,o){t.__markCompiled&&t.__markCompiled();var a={};a.trim=function(){if(null==this)throw new TypeError("String.prototype.trim called on null or undefined");return String.prototype.replace.call(this,/^\s+|\s+$/g,"")},a.startsWith=function(e){var t=String(this);if(null==this)throw new TypeError("String.prototype.startsWith called on null or undefined");var n=arguments.length>1?Number(arguments[1]):0;isNaN(n)&&(n=0);var r=Math.min(Math.max(n,0),t.length);return t.indexOf(String(e),n)==r},a.endsWith=function(e){var t=String(this);if(null==this)throw new TypeError("String.prototype.endsWith called on null or undefined");var n=t.length,r=String(e),i=arguments.length>1?Number(arguments[1]):n;isNaN(i)&&(i=0);var o=Math.min(Math.max(i,0),n)-r.length;return!(o<0)&&t.lastIndexOf(r,o)==o},a.includes=function(e){if(null==this)throw new TypeError("String.prototype.contains called on null or undefined");var t=String(this),n=arguments.length>1?Number(arguments[1]):0;return isNaN(n)&&(n=0),-1!=t.indexOf(String(e),n)},a.contains=a.includes,a.repeat=function(e){if(null==this)throw new TypeError("String.prototype.repeat called on null or undefined");var t=String(this),n=e?Number(e):0;if(isNaN(n)&&(n=0),n<0||n===1/0)throw RangeError();if(1===n)return t;if(0===n)return"";for(var r="";n;)1&n&&(r+=t),(n>>=1)&&(t+=t);return r},i.exports=a},null),__d("ES6Array",[],function(e,t,n,r,i,o){"use strict";t.__markCompiled&&t.__markCompiled();var a={from:function(e){if(null==e)throw new TypeError("Object is null or undefined");var t=arguments[1],n=arguments[2],r=this,i=Object(e),o="function"==typeof Symbol&&"function"==typeof Symbol?Symbol.iterator:"@@iterator",a="function"==typeof t,s=0,u=void 0,c=void 0;if("function"==typeof i[o]){u="function"==typeof r?new r:[];for(var l=i[o](),p=void 0;!(p=l.next()).done;)c=p.value,a&&(c=t.call(n,c,s)),u[s]=c,s+=1;return u.length=s,u}var d=i.length;for((isNaN(d)||d<0)&&(d=0),u="function"==typeof r?new r(d):new Array(d);s<d;)c=i[s],a&&(c=t.call(n,c,s)),u[s]=c,s+=1;return u.length=s,u}};i.exports=a},null),__d("ES6ArrayPrototype",[],function(e,t,n,r,i,o){t.__markCompiled&&t.__markCompiled();var a={find:function(e,t){if(null==this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof e)throw new TypeError("predicate must be a function");var n=a.findIndex.call(this,e,t);return-1===n?void 0:this[n]},findIndex:function(e,t){if(null==this)throw new TypeError("Array.prototype.findIndex called on null or undefined");if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var n=Object(this),r=n.length>>>0,i=0;i<r;i++)if(e.call(t,n[i],i,n))return i;return-1},fill:function(e){if(null==this)throw new TypeError("Array.prototype.fill called on null or undefined");for(var t=Object(this),n=t.length>>>0,r=arguments[1]>>0,i=r<0?Math.max(n+r,0):Math.min(r,n),o=arguments[2],a=o===undefined?n:o>>0,s=a<0?Math.max(n+a,0):Math.min(a,n);i<s;)t[i]=e,i++;return t}};i.exports=a},null),__d("ES6DatePrototype",[],function(e,t,n,r,i,o){function a(e){return(e<10?"0":"")+e}t.__markCompiled&&t.__markCompiled();var s={toISOString:function(){if(!isFinite(this))throw new Error("Invalid time value");var e=this.getUTCFullYear();return(e=(e<0?"-":e>9999?"+":"")+("00000"+Math.abs(e)).slice(0<=e&&e<=9999?-4:-6))+"-"+a(this.getUTCMonth()+1)+"-"+a(this.getUTCDate())+"T"+a(this.getUTCHours())+":"+a(this.getUTCMinutes())+":"+a(this.getUTCSeconds())+"."+(this.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"}};i.exports=s},null),__d("ES6Number",[],function(e,t,n,r,i,o){t.__markCompiled&&t.__markCompiled();var a=Math.pow(2,-52),s=Math.pow(2,53)-1,u=-1*s,c={isFinite:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(e){return"number"==typeof e&&isFinite(e)}),isNaN:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(e){return"number"==typeof e&&isNaN(e)}),isInteger:function(e){return this.isFinite(e)&&Math.floor(e)===e},isSafeInteger:function(e){return this.isFinite(e)&&e>=this.MIN_SAFE_INTEGER&&e<=this.MAX_SAFE_INTEGER&&Math.floor(e)===e},EPSILON:a,MAX_SAFE_INTEGER:s,MIN_SAFE_INTEGER:u};i.exports=c},null),__d("ES6Object",["ie8DontEnum"],function(e,t,n,r,i,o,a){t.__markCompiled&&t.__markCompiled();var s={}.hasOwnProperty,u={assign:function(e){if(null==e)throw new TypeError("Object.assign target cannot be null or undefined");e=Object(e);for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var i=0;i<n.length;i++){var o=n[i];if(null!=o){o=Object(o);for(var u in o)s.call(o,u)&&(e[u]=o[u]);a(o,function(t){return e[t]=o[t]})}}return e},is:function(e,t){return e===t?0!==e||1/e==1/t:e!==e&&t!==t}};i.exports=u},null),__d("ES7Object",["ie8DontEnum"],function(e,t,n,r,i,o,a){t.__markCompiled&&t.__markCompiled();var s={}.hasOwnProperty,u={};u.entries=function(e){if(null==e)throw new TypeError("Object.entries called on non-object");var t=[];for(var n in e)s.call(e,n)&&t.push([n,e[n]]);return a(e,function(n){return t.push([n,e[n]])}),t},u.values=function(e){if(null==e)throw new TypeError("Object.values called on non-object");var t=[];for(var n in e)s.call(e,n)&&t.push(e[n]);return a(e,function(n){return t.push(e[n])}),t},i.exports=u},null),__d("ES7StringPrototype",[],function(e,t,n,r,i,o){t.__markCompiled&&t.__markCompiled();var a={};a.trimLeft=function(){return this.replace(/^\s+/,"")},a.trimRight=function(){return this.replace(/\s+$/,"")},i.exports=a},null),__d("JSON3",[],function(e,t,n,r,i,o){t.__markCompiled&&t.__markCompiled(),function(){var e,t,n,r,o,a,s,u,c,l,p,d,h,f,m,v,y,g,_,b,w,k={}.toString,x=i.exports={},C='{"A":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}',S=new Date(-0xc782b5b800cec);try{S=-109252==S.getUTCFullYear()&&0===S.getUTCMonth()&&1==S.getUTCDate()&&10==S.getUTCHours()&&37==S.getUTCMinutes()&&6==S.getUTCSeconds()&&708==S.getUTCMilliseconds()}catch(e){}if(S||(_=Math.floor,b=[0,31,59,90,120,151,181,212,243,273,304,334],w=function(e,t){return b[t]+365*(e-1970)+_((e-1969+(t=+(t>1)))/4)-_((e-1901+t)/100)+_((e-1601+t)/400)}),"object"==typeof JSON&&JSON&&(x.stringify=JSON.stringify,x.parse=JSON.parse),r="function"==typeof x.stringify&&!w){(S=function(){return 1}).toJSON=S;try{r="0"===x.stringify(0)&&"0"===x.stringify(new Number)&&'""'==x.stringify(new String)&&x.stringify(k)===n&&x.stringify(n)===n&&x.stringify()===n&&"1"===x.stringify(S)&&"[1]"==x.stringify([S])&&"[null]"==x.stringify([n])&&"null"==x.stringify(null)&&"[null,null,null]"==x.stringify([n,k,null])&&x.stringify({result:[S,!0,!1,null,"\0\b\n\f\r\t"]})==C&&"1"===x.stringify(null,S)&&"[\n 1,\n 2\n]"==x.stringify([1,2],null,1)&&'"-271821-04-20T00:00:00.000Z"'==x.stringify(new Date(-864e13))&&'"+275760-09-13T00:00:00.000Z"'==x.stringify(new Date(864e13))&&'"-000001-01-01T00:00:00.000Z"'==x.stringify(new Date(-621987552e5))&&'"1969-12-31T23:59:59.999Z"'==x.stringify(new Date(-1))}catch(e){r=!1}}if("function"==typeof x.parse)try{if(0===x.parse("0")&&!x.parse(!1)&&(S=x.parse(C),c=5==S.A.length&&1==S.A[0])){try{c=!x.parse('"\t"')}catch(e){}if(c)try{c=1!=x.parse("01")}catch(e){}}}catch(e){c=!1}S=C=null,r&&c||((e={}.hasOwnProperty)||(e=function(t){var n,r={};return(r.__proto__=null,r.__proto__={toString:1},r).toString!=k?e=function(e){var t=this.__proto__,n=e in(this.__proto__=null,this);return this.__proto__=t,n}:(n=r.constructor,e=function(e){var t=(this.constructor||n).prototype;return e in this&&!(e in t&&this[e]===t[e])}),r=null,e.call(this,t)}),t=function(t,n){var r,i,o,a,s=0;(r=function(){this.valueOf=0}).prototype.valueOf=0,i=new r;for(o in i)e.call(i,o)&&s++;return r=i=null,s?a=2==s?function(t,n){var r,i={},o="[object Function]"==k.call(t);for(r in t)o&&"prototype"==r||e.call(i,r)||!(i[r]=1)||!e.call(t,r)||n(r)}:function(t,n){var r,i,o="[object Function]"==k.call(t);for(r in t)o&&"prototype"==r||!e.call(t,r)||(i="constructor"===r)||n(r);(i||e.call(t,r="constructor"))&&n(r)}:(i=["valueOf","toString","toLocaleString","propertyIsEnumerable","isPrototypeOf","hasOwnProperty","constructor"],a=function(t,n){var r,o,a="[object Function]"==k.call(t);for(r in t)a&&"prototype"==r||!e.call(t,r)||n(r);for(o=i.length;r=i[--o];e.call(t,r)&&n(r));}),a(t,n)},r||(o={"\\":"\\\\",'"':'\\"',"\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},a=function(e,t){return("000000"+(t||0)).slice(-e)},s=function(e){for(var t,n='"',r=0;t=e.charAt(r);r++)n+='\\"\b\f\n\r\t'.indexOf(t)>-1?o[t]:t<" "?"\\u00"+a(2,t.charCodeAt(0).toString(16)):t;return n+'"'},u=function(r,i,o,c,l,p,d){var h,f,m,v,y,g,b,x,C,S,E,T,O,P,M,A=i[r];if("object"==typeof A&&A)if("[object Date]"!=(h=k.call(A))||e.call(A,"toJSON"))"function"==typeof A.toJSON&&("[object Number]"!=h&&"[object String]"!=h&&"[object Array]"!=h||e.call(A,"toJSON"))&&(A=A.toJSON(r));else if(A>-1/0&&A<1/0){if(w){for(v=_(A/864e5),f=_(v/365.2425)+1970-1;w(f+1,0)<=v;f++);for(m=_((v-w(f,0))/30.42);w(f,m+1)<=v;m++);v=1+v-w(f,m),g=_((y=(A%864e5+864e5)%864e5)/36e5)%24,b=_(y/6e4)%60,x=_(y/1e3)%60,C=y%1e3}else f=A.getUTCFullYear(),m=A.getUTCMonth(),v=A.getUTCDate(),g=A.getUTCHours(),b=A.getUTCMinutes(),x=A.getUTCSeconds(),C=A.getUTCMilliseconds();A=(f<=0||f>=1e4?(f<0?"-":"+")+a(6,f<0?-f:f):a(4,f))+"-"+a(2,m+1)+"-"+a(2,v)+"T"+a(2,g)+":"+a(2,b)+":"+a(2,x)+"."+a(3,C)+"Z"}else A=null;if(o&&(A=o.call(i,r,A)),null===A)return"null";if("[object Boolean]"==(h=k.call(A)))return""+A;if("[object Number]"==h)return A>-1/0&&A<1/0?""+A:"null";if("[object String]"==h)return s(A);if("object"==typeof A){for(O=d.length;O--;)if(d[O]===A)throw TypeError();if(d.push(A),S=[],P=p,p+=l,"[object Array]"==h){for(T=0,O=A.length;T<O;M||(M=!0),T++)E=u(T,A,o,c,l,p,d),S.push(E===n?"null":E);return M?l?"[\n"+p+S.join(",\n"+p)+"\n"+P+"]":"["+S.join(",")+"]":"[]"}return t(c||A,function(e){var t=u(e,A,o,c,l,p,d);t!==n&&S.push(s(e)+":"+(l?" ":"")+t),M||(M=!0)}),M?l?"{\n"+p+S.join(",\n"+p)+"\n"+P+"}":"{"+S.join(",")+"}":"{}"}},x.stringify=function(e,t,n){var r,i,o,a,s,c;if("function"==typeof t||"object"==typeof t&&t)if("[object Function]"==k.call(t))i=t;else if("[object Array]"==k.call(t))for(o={},a=0,s=t.length;a<s;c=t[a++],("[object String]"==k.call(c)||"[object Number]"==k.call(c))&&(o[c]=1));if(n)if("[object Number]"==k.call(n)){if((n-=n%1)>0)for(r="",n>10&&(n=10);r.length<n;r+=" ");}else"[object String]"==k.call(n)&&(r=n.length<=10?n:n.slice(0,10));return u("",(c={},c[""]=e,c),i,o,r,"",[])}),c||(l=String.fromCharCode,p={"\\":"\\",'"':'"',"/":"/",b:"\b",t:"\t",n:"\n",f:"\f",r:"\r"},d=function(){throw y=g=null,SyntaxError()},h=function(){for(var e,t,n,r,i,o=g,a=o.length;y<a;)if(e=o.charAt(y),"\t\r\n ".indexOf(e)>-1)y++;else{if("{}[]:,".indexOf(e)>-1)return y++,e;if('"'==e){for(t="@",y++;y<a;)if((e=o.charAt(y))<" ")d();else if("\\"==e)if(e=o.charAt(++y),'\\"/btnfr'.indexOf(e)>-1)t+=p[e],y++;else if("u"==e){for(n=++y,r=y+4;y<r;y++)(e=o.charAt(y))>="0"&&e<="9"||e>="a"&&e<="f"||e>="A"&&e<="F"||d();t+=l("0x"+o.slice(n,y))}else d();else{if('"'==e)break;t+=e,y++}if('"'==o.charAt(y))return y++,t;d()}else{if(n=y,"-"==e&&(i=!0,e=o.charAt(++y)),e>="0"&&e<="9"){for("0"==e&&(e=o.charAt(y+1))>="0"&&e<="9"&&d(),i=!1;y<a&&(e=o.charAt(y))>="0"&&e<="9";y++);if("."==o.charAt(y)){for(r=++y;r<a&&(e=o.charAt(r))>="0"&&e<="9";r++);r==y&&d(),y=r}if("e"==(e=o.charAt(y))||"E"==e){for("+"!=(e=o.charAt(++y))&&"-"!=e||y++,r=y;r<a&&(e=o.charAt(r))>="0"&&e<="9";r++);r==y&&d(),y=r}return+o.slice(n,y)}if(i&&d(),"true"==o.slice(y,y+4))return y+=4,!0;if("false"==o.slice(y,y+5))return y+=5,!1;if("null"==o.slice(y,y+4))return y+=4,null;d()}}return"$"},f=function(e){var t,n;if("$"==e&&d(),"string"==typeof e){if("@"==e.charAt(0))return e.slice(1);if("["==e){for(t=[];"]"!=(e=h());n||(n=!0))n&&(","==e?"]"==(e=h())&&d():d()),","==e&&d(),t.push(f(e));return t}if("{"==e){for(t={};"}"!=(e=h());n||(n=!0))n&&(","==e?"}"==(e=h())&&d():d()),","!=e&&"string"==typeof e&&"@"==e.charAt(0)&&":"==h()||d(),t[e.slice(1)]=f(h());return t}d()}return e},v=function(e,t,r){var i=m(e,t,r);i===n?delete e[t]:e[t]=i},m=function(e,n,r){var i,o=e[n];if("object"==typeof o&&o)if("[object Array]"==k.call(o))for(i=o.length;i--;)v(o,i,r);else t(o,function(e){v(o,e,r)});return r.call(e,n,o)},x.parse=function(e,t){y=0,g=e;var n=f(h());return"$"!=h()&&d(),y=g=null,t&&"[object Function]"==k.call(t)?m((S={},S[""]=n,S),"",t):n}))}.call(this)},null),__d("ES",["ES5ArrayPrototype","ES5FunctionPrototype","ES5StringPrototype","ES5Array","ES5Object","ES5Date","JSON3","ES6Array","ES6Object","ES6ArrayPrototype","ES6DatePrototype","ES6Number","ES7StringPrototype","ES7Object"],function(e,t,n,r,i,o,a,s,u,c,l,p,d,h,f,m,v,y,g,_){function b(e){for(var t in e)if(e.hasOwnProperty(t)){var n=e[t],r=t.split(".");if(2===r.length){var i=r[0],o=r[1];if(!(i&&o&&window[i]&&window[i][o])){var a=i?window[i]:"-",s=i&&window[i]&&o?window[i][o]:"-";throw new Error("Unexpected state (t11975770): "+i+", "+o+", "+a+", "+s+", "+t)}}var u=2===r.length?window[r[0]][r[1]]:window[t];for(var c in n)if(n.hasOwnProperty(c))if("function"==typeof n[c]){var l=u[c];k[t+"."+c]=l&&/\{\s+\[native code\]\s\}/.test(l)?l:n[c]}else k[t+"."+c]=n[c]}}t.__markCompiled&&t.__markCompiled();var w={}.toString,k={"JSON.stringify":d.stringify,"JSON.parse":d.parse},x={Object:f,"Array.prototype":m,"Date.prototype":v,Number:y,Array:h},C={Object:_,"String.prototype":g};b({"Array.prototype":a,"Function.prototype":s,"String.prototype":u,Object:l,Array:c,Date:p}),b(x),b(C),i.exports=function(e,t,n){var r=n?w.call(e).slice(8,-1)+".prototype":e,i=k[r+"."+t]||e[t];if("function"==typeof i){for(var o=arguments.length,a=Array(o>3?o-3:0),s=3;s<o;s++)a[s-3]=arguments[s];return i.apply(e,a)}if(i)return i;throw new Error("Polyfill "+r+" does not have implementation of "+t)}},null),__d("sdk.babelHelpers",["ES5FunctionPrototype","ES5Object","ES6Object"],function(e,t,n,r,i,o,a,s,u){t.__markCompiled&&t.__markCompiled();var c={},l=Object.prototype.hasOwnProperty;c.inherits=function(e,t){return u.assign(e,t),e.prototype=s.create(t&&t.prototype),e.prototype.constructor=e,e.__superConstructor__=t,t},c._extends=u.assign,c.extends=c._extends,c.objectWithoutProperties=function(e,t){var n={};for(var r in e)!l.call(e,r)||t.indexOf(r)>=0||(n[r]=e[r]);return n},c.taggedTemplateLiteralLoose=function(e,t){return e.raw=t,e},c.bind=a.bind,i.exports=c},null);var ES=require("ES"),babelHelpers=require("sdk.babelHelpers");__d("UrlMapConfig",[],{www:"www.facebook.com",m:"m.facebook.com",connect:"connect.facebook.net",business:"business.facebook.com",api_https:"api.facebook.com",api_read_https:"api-read.facebook.com",graph_https:"graph.facebook.com",an_https:"an.facebook.com",fbcdn_http:"fbstatic-a.akamaihd.net",fbcdn_https:"fbstatic-a.akamaihd.net",cdn_http:"staticxx.facebook.com",cdn_https:"staticxx.facebook.com"}),__d("JSSDKRuntimeConfig",[],{locale:"lv_LV",rtl:!1,revision:"2613995"}),__d("JSSDKConfig",[],{bustCache:!0,tagCountLogRate:.01,errorHandling:{rate:4},usePluginPipe:!0,features:{dialog_resize_refactor:!0,one_comment_controller:!0,allow_non_canvas_app_events:!1,event_subscriptions_log:{rate:.01,value:1e4},should_force_single_dialog_instance:!0,js_sdk_force_status_on_load:!0,js_sdk_mbasic_share_plugin_init:!0,kill_fragment:!0,xfbml_profile_pic_server:!0,error_handling:{rate:4},e2e_ping_tracking:{rate:1e-6},getloginstatus_tracking:{rate:.001},xd_timeout:{rate:4,value:3e4},use_bundle:!0,launch_payment_dialog_via_pac:{rate:100},plugin_tags_blacklist:["recommendations_bar","registration","activity","recommendations","facepile"],should_log_response_error:!0},api:{mode:"warn",whitelist:["AppEvents","AppEvents.EventNames","AppEvents.ParameterNames","AppEvents.activateApp","AppEvents.logEvent","AppEvents.logPageView","AppEvents.logPurchase","Canvas","Canvas.Prefetcher","Canvas.Prefetcher.addStaticResource","Canvas.Prefetcher.setCollectionMode","Canvas.getPageInfo","Canvas.hideFlashElement","Canvas.scrollTo","Canvas.setAutoGrow","Canvas.setDoneLoading","Canvas.setSize","Canvas.setUrlHandler","Canvas.showFlashElement","Canvas.startTimer","Canvas.stopTimer","Event","Event.subscribe","Event.unsubscribe","Music.flashCallback","Music.init","Music.send","Payment","Payment.cancelFlow","Payment.continueFlow","Payment.init","Payment.lockForProcessing","Payment.parse","Payment.setSize","Payment.unlockForProcessing","ThirdPartyProvider","ThirdPartyProvider.init","ThirdPartyProvider.sendData","UA","UA.nativeApp","XFBML","XFBML.RecommendationsBar","XFBML.RecommendationsBar.markRead","XFBML.parse","addFriend","api","getAccessToken","getAuthResponse","getLoginStatus","getUserID","init","login","logout","publish","share","ui"]},initSitevars:{enableMobileComments:1,iframePermissions:{read_stream:!1,manage_mailbox:!1,manage_friendlists:!1,read_mailbox:!1,publish_checkins:!0,status_update:!0,photo_upload:!0,video_upload:!0,sms:!1,create_event:!0,rsvp_event:!0,offline_access:!0,email:!0,xmpp_login:!1,create_note:!0,share_item:!0,export_stream:!1,publish_stream:!0,publish_likes:!0,ads_management:!1,contact_email:!0,access_private_data:!1,read_insights:!1,read_requests:!1,read_friendlists:!0,manage_pages:!1,physical_login:!1,manage_groups:!1,read_deals:!1}}}),__d("JSSDKXDConfig",[],{XdUrl:"/connect/xd_arbiter.php?version=42",XdBundleUrl:"/connect/xd_arbiter/r/P5DLcu0KGJB.js?version=42",Flash:{path:"https://connect.facebook.net/rsrc.php/v2/yW/r/yOZN1vHw3Z_.swf"},useCdn:!0}),__d("JSSDKCssConfig",[],{rules:'.fb_hidden{position:absolute;top:-10000px;z-index:10001}.fb_reposition{overflow:hidden;position:relative}.fb_invisible{display:none}.fb_reset{background:none;border:0;border-spacing:0;color:#000;cursor:auto;direction:ltr;font-family:"lucida grande", tahoma, verdana, arial, sans-serif;font-size:11px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:1;margin:0;overflow:visible;padding:0;text-align:left;text-decoration:none;text-indent:0;text-shadow:none;text-transform:none;visibility:visible;white-space:normal;word-spacing:normal}.fb_reset>div{overflow:hidden}.fb_link img{border:none}@keyframes fb_transform{from{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}.fb_animate{animation:fb_transform .3s forwards}\n.fb_dialog{background:rgba(82, 82, 82, .7);position:absolute;top:-10000px;z-index:10001}.fb_reset .fb_dialog_legacy{overflow:visible}.fb_dialog_advanced{padding:10px;-moz-border-radius:8px;-webkit-border-radius:8px;border-radius:8px}.fb_dialog_content{background:#fff;color:#333}.fb_dialog_close_icon{background:url(https://static.xx.fbcdn.net/rsrc.php/v3/yq/r/IE9JII6Z1Ys.png) no-repeat scroll 0 0 transparent;_background-image:url(https://static.xx.fbcdn.net/rsrc.php/v3/yL/r/s816eWC-2sl.gif);cursor:pointer;display:block;height:15px;position:absolute;right:18px;top:17px;width:15px}.fb_dialog_mobile .fb_dialog_close_icon{top:5px;left:5px;right:auto}.fb_dialog_padding{background-color:transparent;position:absolute;width:1px;z-index:-1}.fb_dialog_close_icon:hover{background:url(https://static.xx.fbcdn.net/rsrc.php/v3/yq/r/IE9JII6Z1Ys.png) no-repeat scroll 0 -15px transparent;_background-image:url(https://static.xx.fbcdn.net/rsrc.php/v3/yL/r/s816eWC-2sl.gif)}.fb_dialog_close_icon:active{background:url(https://static.xx.fbcdn.net/rsrc.php/v3/yq/r/IE9JII6Z1Ys.png) no-repeat scroll 0 -30px transparent;_background-image:url(https://static.xx.fbcdn.net/rsrc.php/v3/yL/r/s816eWC-2sl.gif)}.fb_dialog_loader{background-color:#f6f7f9;border:1px solid #606060;font-size:24px;padding:20px}.fb_dialog_top_left,.fb_dialog_top_right,.fb_dialog_bottom_left,.fb_dialog_bottom_right{height:10px;width:10px;overflow:hidden;position:absolute}.fb_dialog_top_left{background:url(https://static.xx.fbcdn.net/rsrc.php/v3/ye/r/8YeTNIlTZjm.png) no-repeat 0 0;left:-10px;top:-10px}.fb_dialog_top_right{background:url(https://static.xx.fbcdn.net/rsrc.php/v3/ye/r/8YeTNIlTZjm.png) no-repeat 0 -10px;right:-10px;top:-10px}.fb_dialog_bottom_left{background:url(https://static.xx.fbcdn.net/rsrc.php/v3/ye/r/8YeTNIlTZjm.png) no-repeat 0 -20px;bottom:-10px;left:-10px}.fb_dialog_bottom_right{background:url(https://static.xx.fbcdn.net/rsrc.php/v3/ye/r/8YeTNIlTZjm.png) no-repeat 0 -30px;right:-10px;bottom:-10px}.fb_dialog_vert_left,.fb_dialog_vert_right,.fb_dialog_horiz_top,.fb_dialog_horiz_bottom{position:absolute;background:#525252;filter:alpha(opacity=70);opacity:.7}.fb_dialog_vert_left,.fb_dialog_vert_right{width:10px;height:100%}.fb_dialog_vert_left{margin-left:-10px}.fb_dialog_vert_right{right:0;margin-right:-10px}.fb_dialog_horiz_top,.fb_dialog_horiz_bottom{width:100%;height:10px}.fb_dialog_horiz_top{margin-top:-10px}.fb_dialog_horiz_bottom{bottom:0;margin-bottom:-10px}.fb_dialog_iframe{line-height:0}.fb_dialog_content .dialog_title{background:#6d84b4;border:1px solid #365899;color:#fff;font-size:14px;font-weight:bold;margin:0}.fb_dialog_content .dialog_title>span{background:url(https://static.xx.fbcdn.net/rsrc.php/v3/yd/r/Cou7n-nqK52.gif) no-repeat 5px 50%;float:left;padding:5px 0 7px 26px}body.fb_hidden{-webkit-transform:none;height:100%;margin:0;overflow:visible;position:absolute;top:-10000px;left:0;width:100%}.fb_dialog.fb_dialog_mobile.loading{background:url(https://static.xx.fbcdn.net/rsrc.php/v3/ya/r/3rhSv5V8j3o.gif) white no-repeat 50% 50%;min-height:100%;min-width:100%;overflow:hidden;position:absolute;top:0;z-index:10001}.fb_dialog.fb_dialog_mobile.loading.centered{width:auto;height:auto;min-height:initial;min-width:initial;background:none}.fb_dialog.fb_dialog_mobile.loading.centered #fb_dialog_loader_spinner{width:100%}.fb_dialog.fb_dialog_mobile.loading.centered .fb_dialog_content{background:none}.loading.centered #fb_dialog_loader_close{color:#fff;display:block;padding-top:20px;clear:both;font-size:18px}#fb-root #fb_dialog_ipad_overlay{background:rgba(0, 0, 0, .45);position:absolute;bottom:0;left:0;right:0;top:0;width:100%;min-height:100%;z-index:10000}#fb-root #fb_dialog_ipad_overlay.hidden{display:none}.fb_dialog.fb_dialog_mobile.loading iframe{visibility:hidden}.fb_dialog_content .dialog_header{-webkit-box-shadow:white 0 1px 1px -1px inset;background:-webkit-gradient(linear, 0% 0%, 0% 100%, from(#738ABA), to(#2C4987));border-bottom:1px solid;border-color:#1d4088;color:#fff;font:14px Helvetica, sans-serif;font-weight:bold;text-overflow:ellipsis;text-shadow:rgba(0, 30, 84, .296875) 0 -1px 0;vertical-align:middle;white-space:nowrap}.fb_dialog_content .dialog_header table{-webkit-font-smoothing:subpixel-antialiased;height:43px;width:100%}.fb_dialog_content .dialog_header td.header_left{font-size:12px;padding-left:5px;vertical-align:middle;width:60px}.fb_dialog_content .dialog_header td.header_right{font-size:12px;padding-right:5px;vertical-align:middle;width:60px}.fb_dialog_content .touchable_button{background:-webkit-gradient(linear, 0% 0%, 0% 100%, from(#4966A6), color-stop(.5, #355492), to(#2A4887));border:1px solid #29487d;-webkit-background-clip:padding-box;-webkit-border-radius:3px;-webkit-box-shadow:rgba(0, 0, 0, .117188) 0 1px 1px inset, rgba(255, 255, 255, .167969) 0 1px 0;display:inline-block;margin-top:3px;max-width:85px;line-height:18px;padding:4px 12px;position:relative}.fb_dialog_content .dialog_header .touchable_button input{border:none;background:none;color:#fff;font:12px Helvetica, sans-serif;font-weight:bold;margin:2px -12px;padding:2px 6px 3px 6px;text-shadow:rgba(0, 30, 84, .296875) 0 -1px 0}.fb_dialog_content .dialog_header .header_center{color:#fff;font-size:16px;font-weight:bold;line-height:18px;text-align:center;vertical-align:middle}.fb_dialog_content .dialog_content{background:url(https://static.xx.fbcdn.net/rsrc.php/v3/y9/r/jKEcVPZFk-2.gif) no-repeat 50% 50%;border:1px solid #555;border-bottom:0;border-top:0;height:150px}.fb_dialog_content .dialog_footer{background:#f6f7f9;border:1px solid #555;border-top-color:#ccc;height:40px}#fb_dialog_loader_close{float:left}.fb_dialog.fb_dialog_mobile .fb_dialog_close_button{text-shadow:rgba(0, 30, 84, .296875) 0 -1px 0}.fb_dialog.fb_dialog_mobile .fb_dialog_close_icon{visibility:hidden}#fb_dialog_loader_spinner{animation:rotateSpinner 1.2s linear infinite;background-color:transparent;background-image:url(https://static.xx.fbcdn.net/rsrc.php/v3/yD/r/t-wz8gw1xG1.png);background-repeat:no-repeat;background-position:50% 50%;height:24px;width:24px}@keyframes rotateSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}\n.fb_iframe_widget{display:inline-block;position:relative}.fb_iframe_widget span{display:inline-block;position:relative;text-align:justify}.fb_iframe_widget iframe{position:absolute}.fb_iframe_widget_fluid_desktop,.fb_iframe_widget_fluid_desktop span,.fb_iframe_widget_fluid_desktop iframe{max-width:100%}.fb_iframe_widget_fluid_desktop iframe{min-width:220px;position:relative}.fb_iframe_widget_lift{z-index:1}.fb_hide_iframes iframe{position:relative;left:-10000px}.fb_iframe_widget_loader{position:relative;display:inline-block}.fb_iframe_widget_fluid{display:inline}.fb_iframe_widget_fluid span{width:100%}.fb_iframe_widget_loader iframe{min-height:32px;z-index:2;zoom:1}.fb_iframe_widget_loader .FB_Loader{background:url(https://static.xx.fbcdn.net/rsrc.php/v3/y9/r/jKEcVPZFk-2.gif) no-repeat;height:32px;width:32px;margin-left:-16px;position:absolute;left:50%;z-index:4}',components:["css:fb.css.base","css:fb.css.dialog","css:fb.css.iframewidget"]}),__d("ApiClientConfig",[],{FlashRequest:{swfUrl:"https://connect.facebook.net/rsrc.php/v2/yd/r/mxzow1Sdmxr.swf"}}),__d("JSSDKCanvasPrefetcherConfig",[],{blacklist:[0x83d70a64a992,768691303149786],sampleRate:500}),__d("DOMWrapper",[],function(e,t,n,r,i,o){t.__markCompiled&&t.__markCompiled();var a,s,u={setRoot:function(e){a=e},getRoot:function(){return a||document.body},setWindow:function(e){s=e},getWindow:function(){return s||self}};i.exports=u},null),__d("dotAccess",[],function(e,t,n,r,i,o){t.__markCompiled&&t.__markCompiled(),i.exports=function(e,t,n){var r=t.split(".");do{var i=r.shift();e=e[i]||n&&(e[i]={})}while(r.length&&e);return e}},null),__d("guid",[],function(e,t,n,r,i,o){t.__markCompiled&&t.__markCompiled(),i.exports=function(){return"f"+(Math.random()*(1<<30)).toString(16).replace(".","")}},null),__d("wrapFunction",[],function(e,t,n,r,i,o){t.__markCompiled&&t.__markCompiled();var a={},s=function(e,t,n){var r=t||"default";return function(){return(r in a?a[r](e,n):e).apply(this,arguments)}};s.setWrapper=function(e){var t=arguments.length<=1||arguments[1]===undefined?"default":arguments[1];a[t]=e},i.exports=s},null),__d("GlobalCallback",["DOMWrapper","dotAccess","guid","wrapFunction"],function(e,t,n,r,i,o,a,s,u,c){t.__markCompiled&&t.__markCompiled();var l,p,d={setPrefix:function(e){l=s(a.getWindow(),e,!0),p=e},create:function(e,t){l||this.setPrefix("__globalCallbacks");var n=u();return l[n]=c(e,"entry",t||"GlobalCallback"),p+"."+n},remove:function(e){var t=e.substring(p.length+1);delete l[t]}};i.exports=d},null),__d("sprintf",[],function(e,t,n,r,i,o){t.__markCompiled&&t.__markCompiled(),i.exports=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=0;return e.replace(/%s/g,function(e){return n[i++]})}},null),__d("Log",["sprintf"],function(e,t,n,r,i,o,a){function s(e,t){var n=Array.prototype.slice.call(arguments,2),r=a.apply(null,n),i=window.console;i&&c.level>=t&&i[e in i?e:"log"](r)}t.__markCompiled&&t.__markCompiled();var u={DEBUG:3,INFO:2,WARNING:1,ERROR:0},c={level:-1,Level:u,debug:ES(s,"bind",!0,null,"debug",u.DEBUG),info:ES(s,"bind",!0,null,"info",u.INFO),warn:ES(s,"bind",!0,null,"warn",u.WARNING),error:ES(s,"bind",!0,null,"error",u.ERROR)};i.exports=c},null),__d("ObservableMixin",[],function(e,t,n,r,i,o){function a(){this.__observableEvents={}}t.__markCompiled&&t.__markCompiled(),a.prototype={inform:function(e){for(var t=Array.prototype.slice.call(arguments,1),n=Array.prototype.slice.call(this.getSubscribers(e)),r=0;r<n.length;r++)if(null!==n[r])try{n[r].apply(this,t)}catch(e){setTimeout(function(){throw e},0)}return this},getSubscribers:function(e){return this.__observableEvents[e]||(this.__observableEvents[e]=[])},clearSubscribers:function(e){return e&&(this.__observableEvents[e]=[]),this},clearAllSubscribers:function(){return this.__observableEvents={},this},subscribe:function(e,t){return this.getSubscribers(e).push(t),this},unsubscribe:function(e,t){for(var n=this.getSubscribers(e),r=0;r<n.length;r++)if(n[r]===t){n.splice(r,1);break}return this},monitor:function(e,t){if(!t()){var n=ES(function(r){t.apply(t,arguments)&&this.unsubscribe(e,n)},"bind",!0,this);this.subscribe(e,n)}return this}},i.exports=a},null),__d("UrlMap",["UrlMapConfig"],function(e,t,n,r,i,o,a){t.__markCompiled&&t.__markCompiled();var s={resolve:function(e,t){var n=void 0===t?location.protocol.replace(":",""):t?"https":"http";return e in a?n+"://"+a[e]:void 0===t&&e+"_"+n in a?n+"://"+a[e+"_"+n]:!0!==t&&e+"_http"in a?"http://"+a[e+"_http"]:!1!==t&&e+"_https"in a?"https://"+a[e+"_https"]:void 0}};i.exports=s},null),__d("QueryString",[],function(e,t,n,r,i,o){t.__markCompiled&&t.__markCompiled();var a={encode:function(e){var t=[];return ES(ES("Object","keys",!1,e).sort(),"forEach",!0,function(n){var r=e[n];void 0!==r&&(null!==r?t.push(encodeURIComponent(n)+"="+encodeURIComponent(r)):t.push(n))}),t.join("&")},decode:function(e,t){var n={};if(""===e)return n;for(var r=e.split("&"),i=0;i<r.length;i++){var o=r[i].split("=",2),a=decodeURIComponent(o[0]);if(t&&n.hasOwnProperty(a))throw new URIError("Duplicate key: "+a);n[a]=2===o.length?decodeURIComponent(o[1]):null}return n},appendToUrl:function(e,t){return e+(-1!==ES(e,"indexOf",!0,"?")?"&":"?")+("string"==typeof t?t:a.encode(t))}};i.exports=a},null),__d("ManagedError",[],function(e,t,n,r,i,o){function a(e,t){Error.prototype.constructor.call(this,e),this.message=e,this.innerError=t}t.__markCompiled&&t.__markCompiled(),(a.prototype=new Error).constructor=a,i.exports=a},null),__d("AssertionError",["ManagedError"],function(e,t,n,r,i,o,a){function s(e){a.prototype.constructor.apply(this,arguments)}t.__markCompiled&&t.__markCompiled(),(s.prototype=new a).constructor=s,i.exports=s},null),__d("Assert",["AssertionError","sprintf"],function(e,t,n,r,i,o,a,s){function u(e,t){if("boolean"!=typeof e||!e)throw new a(t);return e}function c(e,t,n){var r;if(t===undefined)r="undefined";else if(null===t)r="null";else{var i=Object.prototype.toString.call(t);r=/\s(\w*)/.exec(i)[1].toLowerCase()}return u(-1!==ES(e,"indexOf",!0,r),n||s("Expression is of type %s, not %s",r,e)),t}function l(e,t){p["is"+e]=t,p["maybe"+e]=function(e,n){null!=e&&t(e,n)}}t.__markCompiled&&t.__markCompiled();var p={isInstanceOf:function(e,t,n){return u(t instanceof e,n||"Expression not instance of type"),t},isTrue:u,isTruthy:function(e,t){return u(!!e,t)},type:c,define:function(e,t){l(e=e.substring(0,1).toUpperCase()+e.substring(1).toLowerCase(),function(e,n){u(t(e),n)})}};ES(["Array","Boolean","Date","Function","Null","Number","Object","Regexp","String","Undefined"],"forEach",!0,function(e){l(e,ES(c,"bind",!0,null,e.toLowerCase()))}),i.exports=p},null),__d("Type",["Assert"],function(e,t,n,r,i,o,a){function s(){var e=this.__mixins;if(e)for(var t=0;t<e.length;t++)e[t].apply(this,arguments)}function u(e,t){if(t instanceof e)return!0;if(t instanceof s)for(var n=0;n<t.__mixins.length;n++)if(t.__mixins[n]==e)return!0;return!1}function c(e,t){var n=e.prototype;ES("Array","isArray",!1,t)||(t=[t]);for(var r=0;r<t.length;r++){var i=t[r];"function"==typeof i&&(n.__mixins.push(i),i=i.prototype),ES(ES("Object","keys",!1,i),"forEach",!0,function(e){n[e]=i[e]})}}function l(e,t,n){function r(){}var i=t&&t.hasOwnProperty("constructor")?t.constructor:function(){this.parent.apply(this,arguments)};if(a.isFunction(i),e&&e.prototype instanceof s==!1)throw new Error("parent type does not inherit from Type");return e=e||s,r.prototype=e.prototype,i.prototype=new r,t&&ES("Object","assign",!1,i.prototype,t),i.prototype.constructor=i,i.parent=e,i.prototype.__mixins=e.prototype.__mixins?Array.prototype.slice.call(e.prototype.__mixins):[],n&&c(i,n),i.prototype.parent=function(){this.parent=e.prototype.parent,e.apply(this,arguments)},i.prototype.parentCall=function(t){return e.prototype[t].apply(this,Array.prototype.slice.call(arguments,1))},i.extend=function(e,t){return l(this,e,t)},i}t.__markCompiled&&t.__markCompiled(),ES("Object","assign",!1,s.prototype,{instanceOf:function(e){return u(e,this)}}),ES("Object","assign",!1,s,{extend:function(e,t){return"function"==typeof e?l.apply(null,arguments):l(null,e,t)},instanceOf:u}),i.exports=s},null),__d("sdk.Model",["Type","ObservableMixin"],function(e,t,n,r,i,o,a,s){t.__markCompiled&&t.__markCompiled();var u=a.extend({constructor:function(e){this.parent();var t={},n=this;ES(ES("Object","keys",!1,e),"forEach",!0,function(r){t[r]=e[r],n["set"+r]=function(e){return e===t[r]?this:(t[r]=e,n.inform(r+".change",e),n)},n["get"+r]=function(){return t[r]}})}},s);i.exports=u},null),__d("sdk.Runtime",["sdk.Model","JSSDKRuntimeConfig"],function(e,t,n,r,i,o,a,s){t.__markCompiled&&t.__markCompiled();var u={UNKNOWN:0,PAGETAB:1,CANVAS:2,PLATFORM:4},c=new a({AccessToken:"",ClientID:"",CookieUserID:"",Environment:u.UNKNOWN,Initialized:!1,IsVersioned:!1,KidDirectedSite:undefined,Locale:s.locale,LoggedIntoFacebook:undefined,LoginStatus:undefined,Revision:s.revision,Rtl:s.rtl,Scope:undefined,Secure:undefined,UseCookie:!1,UserID:"",Version:undefined});ES("Object","assign",!1,c,{ENVIRONMENTS:u,isEnvironment:function(e){var t=this.getEnvironment();return(e|t)===t},isCanvasEnvironment:function(){return this.isEnvironment(u.CANVAS)||this.isEnvironment(u.PAGETAB)}}),function(){var e=/app_runner/.test(window.name)?u.PAGETAB:/iframe_canvas/.test(window.name)?u.CANVAS:u.UNKNOWN;(e|u.PAGETAB)===e&&(e|=u.CANVAS),c.setEnvironment(e)}(),i.exports=c},null),__d("sdk.Cookie",["QueryString","sdk.Runtime"],function(e,t,n,r,i,o,a,s){function u(e,t,n){e+=s.getClientID();var r=l&&"."!==l;r&&(document.cookie=e+"=; expires=Wed, 04 Feb 2004 08:00:00 GMT;",document.cookie=e+"=; expires=Wed, 04 Feb 2004 08:00:00 GMT;domain="+location.hostname+";");var i=new Date(n).toGMTString();document.cookie=e+"="+t+(t&&0===n?"":"; expires="+i)+"; path=/"+(r?"; domain="+l:"")}function c(e){return e+=s.getClientID(),new RegExp("\\b"+e+"=([^;]*)\\b").test(document.cookie)?RegExp.$1:null}t.__markCompiled&&t.__markCompiled();var l=null,p={setDomain:function(e){l=e;var t=a.encode({base_domain:l&&"."!==l?l:""}),n=new Date;n.setFullYear(n.getFullYear()+1),u("fbm_",t,n.getTime())},getDomain:function(){return l},loadMeta:function(){var e=c("fbm_");if(e){var t=a.decode(e);return l||(l=t.base_domain),t}},loadSignedRequest:function(){return c("fbsr_")},setSignedRequestCookie:function(e,t){if(!e)throw new Error("Value passed to Cookie.setSignedRequestCookie "+"was empty.");u("fbsr_",e,t)},clearSignedRequestCookie:function(){u("fbsr_","",0)},setRaw:u,getRaw:c};i.exports=p},null),__d("Miny",[],function(e,t,n,r,i,o){t.__markCompiled&&t.__markCompiled();var a="wxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_".split(""),s={encode:function(e){if(/^$|[~\\]|__proto__/.test(e))return e;var t,n=e.match(/\w+|\W+/g),r=ES("Object","create",!1,null);for(t=0;t<n.length;t++)r[n[t]]=(r[n[t]]||0)+1;var i=ES("Object","keys",!1,r);for(i.sort(function(e,t){return r[t]-r[e]}),t=0;t<i.length;t++){var o=(t-t%32)/32;r[i[t]]=o?o.toString(32)+a[t%32]:a[t%32]}var s="";for(t=0;t<n.length;t++)s+=r[n[t]];return i.unshift("Miny1",i.length),i.push(s),i.join("~")}};i.exports=s},null),__d("sdk.UA",[],function(e,t,n,r,i,o){function a(e){return ES(e.split("."),"map",!0,function(e){return parseFloat(e)})}t.__markCompiled&&t.__markCompiled();var s=navigator.userAgent,u={iphone:/\b(iPhone|iP[ao]d)/.test(s),ipad:/\b(iP[ao]d)/.test(s),android:/Android/i.test(s),nativeApp:/FBAN\/\w+;/i.test(s)},c=/Mobile/i.test(s),l={ie:"",firefox:"",chrome:"",webkit:"",osx:"",edge:"",operaMini:"",ucWeb:""},p=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(s);if(p&&(l.ie=p[1]?parseFloat(p[1]):p[4]?parseFloat(p[4]):"",l.firefox=p[2]||"",l.webkit=p[3]||"",p[3])){var d=/(?:Chrome\/(\d+\.\d+))/.exec(s);l.chrome=d?d[1]:"";var h=/(?:Edge\/(\d+\.\d+))/.exec(s);l.edge=h?h[1]:""}var f=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(s);f&&(l.osx=f[1]);var m=/(?:Opera Mini\/(\d+(?:\.\d+)?))/.exec(s);m&&(l.operaMini=m[1]);var v=/(?:UCWEB\/(\d+(?:\.\d+))?)/.exec(s);v&&(l.ucWeb=v[1]||"2.0");var y={};ES(ES("Object","keys",!1,l),"map",!0,function(e){y[e]=function(){return parseFloat(l[e])},y[e].getVersionParts=function(){return a(l[e])}}),ES(ES("Object","keys",!1,u),"map",!0,function(e){y[e]=function(){return u[e]}}),y.mobile=function(){return u.iphone||u.ipad||u.android||c},y.mTouch=function(){return u.android||u.iphone||u.ipad},y.mBasic=function(){return!(!l.ucWeb&&!l.operaMini)},i.exports=y},null),__d("getBlankIframeSrc",["sdk.UA"],function(e,t,n,r,i,o,a){t.__markCompiled&&t.__markCompiled(),i.exports=function(){return a.ie()<10?"javascript:false":"about:blank"}},null),__d("insertIframe",["GlobalCallback","getBlankIframeSrc","guid"],function(e,t,n,r,i,o,a,s,u){t.__markCompiled&&t.__markCompiled(),i.exports=function(e){e.id=e.id||u(),e.name=e.name||u();var t=!1,n=!1,r=function(){t&&!n&&(n=!0,e.onload&&e.onload(e.root.firstChild))},i=a.create(r);if(document.attachEvent){var o="<iframe"+' id="'+e.id+'" name="'+e.name+'"'+(e.title?' title="'+e.title+'"':"")+(e.className?' class="'+e.className+'"':"")+' style="border:none;'+(e.width?"width:"+e.width+"px;":"")+(e.height?"height:"+e.height+"px;":"")+'" src="'+s()+'" frameborder="0" scrolling="no" allowtransparency="true" onload="'+i+'()"></iframe>';e.root.innerHTML='<iframe src="'+s()+'" frameborder="0" scrolling="no" style="height:1px"></iframe>',t=!0,setTimeout(function(){e.root.innerHTML=o,e.root.firstChild.src=e.url,e.onInsert&&e.onInsert(e.root.firstChild)},0)}else{var c=document.createElement("iframe");c.id=e.id,c.name=e.name,c.onload=r,c.scrolling="no",c.style.border="none",c.style.overflow="hidden",e.title&&(c.title=e.title),e.className&&(c.className=e.className),e.height!==undefined&&(c.style.height=e.height+"px"),e.width!==undefined&&("100%"==e.width?c.style.width=e.width:c.style.width=e.width+"px"),e.root.appendChild(c),t=!0,c.src=e.url,e.onInsert&&e.onInsert(c)}}},null),__d("sdk.domReady",["sdk.Runtime"],function(e,t,n,r,i,o,a){function s(){if(u){for(var e;e=u.shift();)e();u=null}}t.__markCompiled&&t.__markCompiled();var u;if(!("readyState"in document?/loaded|complete/.test(document.readyState):!!document.body)&&(u=[],document.addEventListener?(document.addEventListener("DOMContentLoaded",s,!1),window.addEventListener("load",s,!1)):document.attachEvent&&(document.attachEvent("onreadystatechange",s),window.attachEvent("onload",s)),document.documentElement.doScroll&&window==window.top)){!function e(){try{a.getRtl()?document.documentElement.doScroll("right"):document.documentElement.doScroll("left")}catch(t){return void setTimeout(e,0)}s()}()}i.exports=function(e){u?u.push(e):e()}},3),__d("sdk.Content",["Log","sdk.UA","sdk.domReady"],function(e,t,n,r,i,o,a,s,u){t.__markCompiled&&t.__markCompiled();var c,l={append:function(e,t){if(t||(c?t=c:(c=t=document.getElementById("fb-root"),t||(a.warn('The "fb-root" div has not been created, auto-creating'),c=t=document.createElement("div"),t.id="fb-root",s.ie()||!document.body?u(function(){document.body.appendChild(t)}):document.body.appendChild(t)),t.className+=" fb_reset")),"string"==typeof e){var n=document.createElement("div");return t.appendChild(n).innerHTML=e,n}return t.appendChild(e)},appendHidden:function(e){if(!t){var t=document.createElement("div"),n=t.style;n.position="absolute",n.top="-10000px",n.width=n.height=0,t=l.append(t)}return l.append(e,t)},submitToTarget:function(e,t){var n=document.createElement("form");n.action=e.url,n.target=e.target,n.method=t?"GET":"POST",l.appendHidden(n);for(var r in e.params)if(e.params.hasOwnProperty(r)){var i=e.params[r];if(null!==i&&i!==undefined){var o=document.createElement("input");o.name=r,o.value=i,n.appendChild(o)}}n.submit(),n.parentNode.removeChild(n)}};i.exports=l},null),__d("sdk.Impressions",["sdk.Content","Miny","QueryString","sdk.Runtime","UrlMap","getBlankIframeSrc","guid","insertIframe"],function(e,t,n,r,i,o,a,s,u,c,l,p,d,h){function f(e){var t=c.getClientID();!e.api_key&&t&&(e.api_key=t),e.kid_directed_site=c.getKidDirectedSite();var n=l.resolve("www",!0)+"/impression.php/"+d()+"/",r=u.appendToUrl(n,e);if(r.length>2e3&&e.payload&&"string"==typeof e.payload){var i=s.encode(e.payload);i&&i.length<e.payload.length&&(e.payload=i,r=u.appendToUrl(n,e))}if(r.length<=2e3)(new Image).src=r;else{var o=d(),f=a.appendHidden("");h({url:p(),root:f,name:o,className:"fb_hidden fb_invisible",onload:function(){f.parentNode.removeChild(f)}}),a.submitToTarget({url:n,target:o,params:e})}}t.__markCompiled&&t.__markCompiled();var m={log:function(e,t){t.source||(t.source="jssdk"),f({lid:e,payload:ES("JSON","stringify",!1,t)})},impression:f};i.exports=m},null),__d("sdk.Scribe",["QueryString","sdk.Runtime","UrlMap"],function(e,t,n,r,i,o,a,s,u){t.__markCompiled&&t.__markCompiled();var c={log:function(e,t){"object"==typeof t.extra&&(t.extra.revision=s.getRevision()),(new Image).src=a.appendToUrl(u.resolve("www",!0)+"/common/scribe_endpoint.php",{c:e,m:ES("JSON","stringify",!1,t)})}};i.exports=c},null),__d("Base64",[],function(e,t,n,r,i,o){function a(e){return e=e.charCodeAt(0)<<16|e.charCodeAt(1)<<8|e.charCodeAt(2),String.fromCharCode(u.charCodeAt(e>>>18),u.charCodeAt(e>>>12&63),u.charCodeAt(e>>>6&63),u.charCodeAt(63&e))}function s(e){return e=c.charCodeAt(e.charCodeAt(0)-43)<<18|c.charCodeAt(e.charCodeAt(1)-43)<<12|c.charCodeAt(e.charCodeAt(2)-43)<<6|c.charCodeAt(e.charCodeAt(3)-43),String.fromCharCode(e>>>16,e>>>8&255,255&e)}t.__markCompiled&&t.__markCompiled();var u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=">___?456789:;<=_______"+"\0\b\t\n\v\f\r______ !\"#$%&'()*+,-./0123",l={encode:function(e){var t=((e=unescape(encodeURI(e))).length+2)%3;return(e=(e+"\0\0".slice(t)).replace(/[\s\S]{3}/g,a)).slice(0,e.length+t-2)+"==".slice(t)},decode:function(e){var t=(e=e.replace(/[^A-Za-z0-9+\/]/g,"")).length+3&3;e=(e=(e+"AAA".slice(t)).replace(/..../g,s)).slice(0,e.length+t-3);try{return decodeURIComponent(escape(e))}catch(e){throw new Error("Not valid UTF-8")}},encodeObject:function(e){return l.encode(ES("JSON","stringify",!1,e))},decodeObject:function(e){return ES("JSON","parse",!1,l.decode(e))},encodeNums:function(e){return String.fromCharCode.apply(String,ES(e,"map",!0,function(e){return u.charCodeAt((e|-(e>63))&-(e>0)&63)}))}};i.exports=l},null),__d("sdk.SignedRequest",["Base64"],function(e,t,n,r,i,o,a){t.__markCompiled&&t.__markCompiled();var s={parse:function(e){if(!e)return null;var t=e.split(".",2)[1].replace(/\-/g,"+").replace(/\_/g,"/");return a.decodeObject(t)}};i.exports=s},null),__d("URIRFC3986",[],function(e,t,n,r,i,o){t.__markCompiled&&t.__markCompiled();var a=new RegExp("^"+"([^:/?#]+:)?(//([^\\\\/?#@]*@)?(\\[[A-Fa-f0-9:.]+\\]|[^\\/?#:]*)(:[0-9]*)?)?([^?#]*)(\\?[^#]*)?(#.*)?"),s={parse:function(e){if(""===ES(e,"trim",!0))return null;var t=e.match(a);if(null==t)return null;var n={};return n.uri=t[0]?t[0]:null,n.scheme=t[1]?t[1].substr(0,t[1].length-1):null,n.authority=t[2]?t[2].substr(2):null,n.userinfo=t[3]?t[3].substr(0,t[3].length-1):null,n.host=t[2]?t[4]:null,n.port=t[5]&&t[5].substr(1)?parseInt(t[5].substr(1),10):null,n.path=t[6]?t[6]:null,n.query=t[7]?t[7].substr(1):null,n.fragment=t[8]?t[8].substr(1):null,n.isGenericURI=null===n.authority&&!!n.scheme,n}};i.exports=s},null),__d("createObjectFrom",[],function(e,t,n,r,i,o){t.__markCompiled&&t.__markCompiled(),i.exports=function(e,t){var n={},r=ES("Array","isArray",!1,t);t===undefined&&(t=!0);for(var i=e.length-1;i>=0;i--)n[e[i]]=r?t[i]:t;return n}},null),__d("URISchemes",["createObjectFrom"],function(e,t,n,r,i,o,a){t.__markCompiled&&t.__markCompiled();var s=a(["blob","cmms","fb","fbatwork","fb-ama","fb-messenger","fb-page-messages","fbcf","fbconnect","fbmobilehome","fbrpc","file","ftp","http","https","mailto","ms-app","intent","itms","itms-apps","itms-services","market","svn+ssh","fbstaging","tel","sms","pebblejs","sftp","whatsapp","moments","fblite","chrome-extension","webcal","fb124024574287414","fb124024574287414rc","fb124024574287414master"]),u={isAllowed:function(e){return!e||s.hasOwnProperty(e.toLowerCase())}};i.exports=u},null),__d("eprintf",[],function(e,t,n,r,i,o){t.__markCompiled&&t.__markCompiled();i.exports=function e(t){var n=ES(Array.prototype.slice.call(arguments),"map",!0,function(e){return String(e)});if(t.split("%s").length-1!=n.length-1)return e("eprintf args number mismatch: %s",ES("JSON","stringify",!1,n));var r=1;return t.replace(/%s/g,function(e){return String(n[r++])})}},null),__d("ex",["eprintf"],function(e,t,n,r,i,o,a){t.__markCompiled&&t.__markCompiled();var s=function e(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return(n=ES(n,"map",!0,function(e){return String(e)}))[0].split("%s").length!==n.length?e("ex args number mismatch: %s",ES("JSON","stringify",!1,n)):e._prefix+ES("JSON","stringify",!1,n)+e._suffix};s._prefix="<![EX[",s._suffix="]]>",i.exports=s},null),__d("invariant",["ex","sprintf"],function(e,t,n,r,i,o,a,s){"use strict";t.__markCompiled&&t.__markCompiled();var u=a;i.exports=function(e,t){if(!e){var n=void 0;if(t===undefined)n=new Error("Minified exception occurred; use the non-minified dev environment "+"for the full error message and additional helpful warnings.");else{for(var r=arguments.length,i=Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];(n=new Error(u.apply(undefined,[t].concat(i)))).name="Invariant Violation",n.messageWithParams=[t].concat(i)}throw n.framesToPop=1,n}}},null),__d("setHostSubdomain",[],function(e,t,n,r,i,o){t.__markCompiled&&t.__markCompiled(),i.exports=function(e,t){var n=e.split(".");return n.length<3?n.unshift(t):n[0]=t,n.join(".")}},null),__d("URIBase",["URIRFC3986","URISchemes","ex","invariant","setHostSubdomain"],function(e,t,n,r,i,o,a,s,u,c,l){function p(e,t,n,r){if(!t)return!0;if(t instanceof d)return e.setProtocol(t.getProtocol()),e.setDomain(t.getDomain()),e.setPort(t.getPort()),e.setPath(t.getPath()),e.setQueryData(r.deserialize(r.serialize(t.getQueryData()))),e.setFragment(t.getFragment()),e.setIsGeneric(t.getIsGeneric()),e.setForceFragmentSeparator(t.getForceFragmentSeparator()),!0;t=ES(t.toString(),"trim",!0);var i=a.parse(t)||{fragment:null,scheme:null};if(!n&&!s.isAllowed(i.scheme))return!1;if(e.setProtocol(i.scheme||""),!n&&h.test(i.host||""))return!1;if(e.setDomain(i.host||""),e.setPort(i.port||""),e.setPath(i.path||""),n)e.setQueryData(r.deserialize(i.query||"")||{});else try{e.setQueryData(r.deserialize(i.query||"")||{})}catch(e){return!1}if(e.setFragment(i.fragment||""),""===i.fragment&&e.setForceFragmentSeparator(!0),e.setIsGeneric(i.isGenericURI||!1),null!==i.userinfo){if(n)throw new Error(u("URI.parse: invalid URI (userinfo is not allowed in a URI): %s",e.toString()));return!1}if(!e.getDomain()&&-1!==ES(e.getPath(),"indexOf",!0,"\\")){if(n)throw new Error(u("URI.parse: invalid URI (no domain but multiple back-slashes): %s",e.toString()));return!1}if(!e.getProtocol()&&f.test(t)){if(n)throw new Error(u("URI.parse: invalid URI (unsafe protocol-relative URLs): %s",e.toString()));return!1}return!0}function d(e,t){"use strict";t||c(0),this.$URIBase9=t,this.$URIBase7="",this.$URIBase1="",this.$URIBase6="",this.$URIBase5="",this.$URIBase3="",this.$URIBase4=!1,this.$URIBase8={},this.$URIBase2=!1,p(this,e,!0,t)}t.__markCompiled&&t.__markCompiled();var h=new RegExp("[\\x00-\\x2c\\x2f\\x3b-\\x40\\x5c\\x5e\\x60\\x7b-\\x7f"+"\\uFDD0-\\uFDEF\\uFFF0-\\uFFFF\\u2047\\u2048\\uFE56\\uFE5F\\uFF03\\uFF0F\\uFF1F]"),f=new RegExp("^(?:[^/]*:|"+"[\\x00-\\x1f]*/[\\x00-\\x1f]*/)"),m=[];d.prototype.setProtocol=function(e){"use strict";return s.isAllowed(e)||c(0),this.$URIBase7=e,this},d.prototype.getProtocol=function(){"use strict";return this.$URIBase7},d.prototype.setSecure=function(e){"use strict";return this.setProtocol(e?"https":"http")},d.prototype.isSecure=function(){"use strict";return"https"===this.getProtocol()},d.prototype.setDomain=function(e){"use strict";if(h.test(e))throw new Error(u("URI.setDomain: unsafe domain specified: %s for url %s",e,this.toString()));return this.$URIBase1=e,this},d.prototype.getDomain=function(){"use strict";return this.$URIBase1},d.prototype.setPort=function(e){"use strict";return this.$URIBase6=e,this},d.prototype.getPort=function(){"use strict";return this.$URIBase6},d.prototype.setPath=function(e){"use strict";return this.$URIBase5=e,this},d.prototype.getPath=function(){"use strict";return this.$URIBase5},d.prototype.addQueryData=function(e,t){"use strict";return"[object Object]"===Object.prototype.toString.call(e)?ES("Object","assign",!1,this.$URIBase8,e):this.$URIBase8[e]=t,this},d.prototype.setQueryData=function(e){"use strict";return this.$URIBase8=e,this},d.prototype.getQueryData=function(){"use strict";return this.$URIBase8},d.prototype.removeQueryData=function(e){"use strict";ES("Array","isArray",!1,e)||(e=[e]);for(var t=0,n=e.length;t<n;++t)delete this.$URIBase8[e[t]];return this},d.prototype.setFragment=function(e){"use strict";return this.$URIBase3=e,this.setForceFragmentSeparator(!1),this},d.prototype.getFragment=function(){"use strict";return this.$URIBase3},d.prototype.setForceFragmentSeparator=function(e){"use strict";return this.$URIBase2=e,this},d.prototype.getForceFragmentSeparator=function(){"use strict";return this.$URIBase2},d.prototype.setIsGeneric=function(e){"use strict";return this.$URIBase4=e,this},d.prototype.getIsGeneric=function(){"use strict";return this.$URIBase4},d.prototype.isEmpty=function(){"use strict";return!(this.getPath()||this.getProtocol()||this.getDomain()||this.getPort()||ES("Object","keys",!1,this.getQueryData()).length>0||this.getFragment())},d.prototype.toString=function(){"use strict";for(var e=this,t=0;t<m.length;t++)e=m[t](e);return e.$URIBase10()},d.prototype.$URIBase10=function(){"use strict";var e="",t=this.getProtocol();t&&(e+=t+":"+(this.getIsGeneric()?"":"//"));var n=this.getDomain();n&&(e+=n);var r=this.getPort();r&&(e+=":"+r);var i=this.getPath();i?e+=i:e&&(e+="/");var o=this.$URIBase9.serialize(this.getQueryData());o&&(e+="?"+o);var a=this.getFragment();return a?e+="#"+a:this.getForceFragmentSeparator()&&(e+="#"),e},d.registerFilter=function(e){"use strict";m.push(e)},d.prototype.getOrigin=function(){"use strict";var e=this.getPort();return this.getProtocol()+"://"+this.getDomain()+(e?":"+e:"")},d.prototype.getQualifiedURIBase=function(){"use strict";return new d(this,this.$URIBase9).qualify()},d.prototype.qualify=function(){"use strict";if(!this.getDomain()){var e=new d(window.location.href,this.$URIBase9);this.setProtocol(e.getProtocol()).setDomain(e.getDomain()).setPort(e.getPort())}return this},d.prototype.setSubdomain=function(e){"use strict";var t=this.qualify().getDomain();return this.setDomain(l(t,e))},d.prototype.getSubdomain=function(){"use strict";if(!this.getDomain())return"";var e=this.getDomain().split(".");return e.length<=2?"":e[0]},d.isValidURI=function(e,t){return p(new d(null,t),e,!1,t)},i.exports=d},null),__d("sdk.URI",["Assert","QueryString","URIBase"],function(e,t,n,r,i,o,a,s,u){function c(e){"use strict";a.isString(e,"The passed argument was of invalid type."),p.constructor.call(this,e,h)}var l,p;t.__markCompiled&&t.__markCompiled();var d=/\.facebook\.com$/,h={serialize:function(e){return e?s.encode(e):""},deserialize:function(e){return e?s.decode(e):{}}};l=babelHelpers.inherits(c,u),p=l&&l.prototype,c.prototype.isFacebookURI=function(){"use strict";return d.test(this.getDomain())},c.prototype.valueOf=function(){"use strict";return this.toString()},i.exports=c},null),__d("Queue",[],function(e,t,n,r,i,o){function a(e){"use strict";this._opts=babelHelpers.extends({interval:0,processor:null},e),this._queue=[],this._stopped=!0}t.__markCompiled&&t.__markCompiled();var s={};a.prototype._dispatch=function(e){"use strict";if(!this._stopped&&0!==this._queue.length){if(!this._opts.processor)throw this._stopped=!0,new Error("No processor available");if(this._opts.interval)this._opts.processor.call(this,this._queue.shift()),this._timeout=setTimeout(ES(this._dispatch,"bind",!0,this),this._opts.interval);else for(;this._queue.length;)this._opts.processor.call(this,this._queue.shift())}},a.prototype.enqueue=function(e){"use strict";return this._opts.processor&&!this._stopped?this._opts.processor.call(this,e):this._queue.push(e),this},a.prototype.start=function(e){"use strict";return e&&(this._opts.processor=e),this._stopped=!1,this._dispatch(),this},a.prototype.isStarted=function(){"use strict";return!this._stopped},a.prototype.dispatch=function(){"use strict";this._dispatch(!0)},a.prototype.stop=function(e){"use strict";return this._stopped=!0,e&&clearTimeout(this._timeout),this},a.prototype.merge=function(e,t){"use strict";return this._queue[t?"unshift":"push"].apply(this._queue,e._queue),e._queue=[],this._dispatch(),this},a.prototype.getLength=function(){"use strict";return this._queue.length},a.get=function(e,t){"use strict";return e in s?s[e]:s[e]=new a(t)},a.exists=function(e){"use strict";return e in s},a.remove=function(e){"use strict";return delete s[e]},i.exports=a},null),__d("DOMEventListener",["invariant","wrapFunction"],function(e,t,n,r,i,o,a,s){t.__markCompiled&&t.__markCompiled();var u=void 0,c=void 0;window.addEventListener?(u=function(e,t,n){n.wrapper=s(n,"entry","DOMEventListener.add "+t),e.addEventListener(t,n.wrapper,!1)},c=function(e,t,n){e.removeEventListener(t,n.wrapper,!1)}):window.attachEvent?(u=function(e,t,n){n.wrapper=s(n,"entry","DOMEventListener.add "+t),e.attachEvent||a(0),e.attachEvent("on"+t,n.wrapper)},c=function(e,t,n){e.detachEvent||a(0),e.detachEvent("on"+t,n.wrapper)}):c=u=function(){};var l={add:function(e,t,n){return u(e,t,n),{remove:function(){c(e,t,n)}}},remove:c};i.exports=l},null),__d("UserAgent_DEPRECATED",[],function(e,t,n,r,i,o){function a(){if(!k){k=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),n=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(g=/\b(iPhone|iP[ao]d)/.exec(e),_=/\b(iP[ao]d)/.exec(e),v=/Android/i.exec(e),b=/FBAN\/\w+;/i.exec(e),w=/Mobile/i.exec(e),y=!!/Win64/.exec(e),t){(s=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN)&&document&&document.documentMode&&(s=document.documentMode);var r=/(?:Trident\/(\d+.\d+))/.exec(e);d=r?parseFloat(r[1])+4:s,u=t[2]?parseFloat(t[2]):NaN,c=t[3]?parseFloat(t[3]):NaN,(l=t[4]?parseFloat(t[4]):NaN)?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),p=t&&t[1]?parseFloat(t[1]):NaN):p=NaN}else s=u=c=p=l=NaN;if(n){if(n[1]){var i=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);h=!i||parseFloat(i[1].replace("_","."))}else h=!1;f=!!n[2],m=!!n[3]}else h=f=m=!1}}t.__markCompiled&&t.__markCompiled();var s,u,c,l,p,d,h,f,m,v,y,g,_,b,w,k=!1,x={ie:function(){return a()||s},ieCompatibilityMode:function(){return a()||d>s},ie64:function(){return x.ie()&&y},firefox:function(){return a()||u},opera:function(){return a()||c},webkit:function(){return a()||l},safari:function(){return x.webkit()},chrome:function(){return a()||p},windows:function(){return a()||f},osx:function(){return a()||h},linux:function(){return a()||m},iphone:function(){return a()||g},mobile:function(){return a()||g||_||v||w},nativeApp:function(){return a()||b},android:function(){return a()||v},ipad:function(){return a()||_}};i.exports=x},null),__d("htmlSpecialChars",[],function(e,t,n,r,i,o){t.__markCompiled&&t.__markCompiled();var a=/&/g,s=/</g,u=/>/g,c=/"/g,l=/'/g;i.exports=function(e){return void 0!==e&&null!==e&&e.toString?!1===e?"0":!0===e?"1":e.toString().replace(a,"&amp;").replace(c,"&quot;").replace(l,"&#039;").replace(s,"&lt;").replace(u,"&gt;"):""}},null),__d("Flash",["DOMEventListener","DOMWrapper","QueryString","UserAgent_DEPRECATED","guid","htmlSpecialChars"],function(e,t,n,r,i,o,a,s,u,c,l,p){function d(e){var t=g.getElementById(e);t&&t.parentNode.removeChild(t),delete y[e]}function h(){for(var e in y)y.hasOwnProperty(e)&&d(e)}function f(e){return e.replace(/\d+/g,function(e){return"000".substring(e.length)+e})}function m(e){v||(c.ie()>=9&&a.add(window,"unload",h),v=!0),y[e]=e}t.__markCompiled&&t.__markCompiled();var v,y={},g=s.getWindow().document,_={embed:function(e,t,n,r){var i=l();e=p(e).replace(/&amp;/g,"&"),"object"==typeof(n=babelHelpers.extends({allowscriptaccess:"always",flashvars:r,movie:e},n)).flashvars&&(n.flashvars=u.encode(n.flashvars));var o=[];for(var a in n)n.hasOwnProperty(a)&&n[a]&&o.push('<param name="'+p(a)+'" value="'+p(n[a])+'">');var s=t.appendChild(g.createElement("span")),d="<object "+(c.ie()?'classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" ':'type="application/x-shockwave-flash"')+'data="'+e+'" '+(n.height?'height="'+n.height+'" ':"")+(n.width?'width="'+n.width+'" ':"")+'id="'+i+'">'+o.join("")+"</object>";s.innerHTML=d;var h=s.firstChild;return m(i),h},remove:d,getVersion:function(){var e,t="Shockwave Flash",n="application/x-shockwave-flash";if(navigator.plugins&&"object"==typeof navigator.plugins[t]){var r=navigator.plugins[t].description;r&&navigator.mimeTypes&&navigator.mimeTypes[n]&&navigator.mimeTypes[n].enabledPlugin&&(e=r.match(/\d+/g))}if(!e)try{e=new ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").match(/(\d+),(\d+),(\d+),(\d+)/),e=Array.prototype.slice.call(e,1)}catch(e){}return e},getVersionString:function(){var e=_.getVersion();return e?e.join("."):""},checkMinVersion:function(e){var t=_.getVersion();return!!t&&f(t.join("."))>=f(e)},isAvailable:function(){return!!_.getVersion()}};i.exports=_},null),__d("emptyFunction",[],function(e,t,n,r,i,o){function a(e){return function(){return e}}t.__markCompiled&&t.__markCompiled();var s=function(){};s.thatReturns=a,s.thatReturnsFalse=a(!1),s.thatReturnsTrue=a(!0),s.thatReturnsNull=a(null),s.thatReturnsThis=function(){return this},s.thatReturnsArgument=function(e){return e},i.exports=s},null),__d("XDM",["DOMEventListener","DOMWrapper","emptyFunction","Flash","GlobalCallback","guid","Log","UserAgent_DEPRECATED","wrapFunction"],function(e,t,n,r,i,o,a,s,u,c,l,p,d,h,f){function m(e){for(var t={},n=e.length,r=y.transports;n--;)t[e[n]]=1;for(n=r.length;n--;){var i=r[n],o=v[i];if(!t[i]&&o.isAvailable())return i}}t.__markCompiled&&t.__markCompiled();var v={},y={transports:[]},g=s.getWindow(),_={register:function(e,t){d.debug("Registering %s as XDM provider",e),y.transports.push(e),v[e]=t},create:function(e){if(!e.whenReady&&!e.onMessage)throw d.error("An instance without whenReady or onMessage makes no sense"),new Error("An instance without whenReady or "+"onMessage makes no sense");e.channel||(d.warn("Missing channel name, selecting at random"),e.channel=p()),e.whenReady||(e.whenReady=u),e.onMessage||(e.onMessage=u);var t=e.transport||m(e.blacklist||[]),n=v[t];if(n&&n.isAvailable())return d.debug("%s is available",t),n.init(e),t}};_.register("flash",function(){var e,t,n=!1;return{isAvailable:function(){return c.checkMinVersion("8.0.24")},init:function(r){d.debug("init flash: "+r.channel);var i={send:function(t,n,r,i){d.debug("sending to: %s (%s)",n,i),e.postMessage(t,n,i)}};if(n)r.whenReady(i);else{var o=r.root.appendChild(g.document.createElement("div")),a=l.create(function(){l.remove(a),clearTimeout(t),d.info("xdm.swf called the callback");var n=l.create(function(e,t){e=decodeURIComponent(e),t=decodeURIComponent(t),d.debug("received message %s from %s",e,t),r.onMessage(e,t)},"xdm.swf:onMessage");e.init(r.channel,n),r.whenReady(i)},"xdm.swf:load");e=c.embed(r.flashUrl,o,null,{protocol:location.protocol.replace(":",""),host:location.host,callback:a,log:!1}),t=setTimeout(function(){d.warn("The Flash component did not load within %s ms - "+"verify that the container is not set to hidden or invisible using CSS as this will cause some browsers to not load the components",15e3)},15e3),n=!0}}}}());var b=/\.facebook\.com(\/|$)/;_.register("postmessage",function(){var e=!1;return{isAvailable:function(){return!!g.postMessage},init:function(t){d.debug("init postMessage: "+t.channel);var n="_FB_"+t.channel,r={send:function(e,t,n,r){if(g===n)throw d.error("Invalid windowref, equal to window (self)"),new Error;d.debug("sending to: %s (%s)",t,r);var i=function(){n.postMessage("_FB_"+r+e,t)};8==h.ie()||h.ieCompatibilityMode()?setTimeout(i,0):i()}};e?t.whenReady(r):(a.add(g,"message",f(function(e){var r=e.data,i=e.origin||"native";/^(https?:\/\/|native$)/.test(i)?("native"===i||b.test(location.hostname)||b.test(e.origin))&&("string"==typeof r?(d.debug("received message %s from %s",r,i),r.substring(0,n.length)==n&&(r=r.substring(n.length)),t.onMessage(r,i)):d.warn("Received message of type %s from %s, expected a string",typeof r,i)):d.debug("Received message from invalid origin type: %s",i)},"entry","onMessage")),t.whenReady(r),e=!0)}}}()),i.exports=_},null),__d("isFacebookURI",[],function(e,t,n,r,i,o){function a(e){return s||(s=new RegExp("(^|\\.)facebook\\.com$","i")),(!e.isEmpty()||"#"===e.toString())&&(!e.getDomain()&&!e.getProtocol()||-1!==ES(u,"indexOf",!0,e.getProtocol())&&s.test(e.getDomain()))}t.__markCompiled&&t.__markCompiled();var s=null,u=["http","https"];a.setRegex=function(e){s=e},i.exports=a},null),__d("sdk.Event",[],function(e,t,n,r,i,o){t.__markCompiled&&t.__markCompiled();var a={SUBSCRIBE:"event.subscribe",UNSUBSCRIBE:"event.unsubscribe",subscribers:function(){return this._subscribersMap||(this._subscribersMap={}),this._subscribersMap},subscribe:function(e,t){var n=this.subscribers();n[e]?-1==ES(n[e],"indexOf",!0,t)&&n[e].push(t):n[e]=[t],e!=this.SUBSCRIBE&&e!=this.UNSUBSCRIBE&&this.fire(this.SUBSCRIBE,e,n[e])},unsubscribe:function(e,t){var n=this.subscribers()[e];n&&ES(n,"forEach",!0,function(e,r){e==t&&n.splice(r,1)}),e!=this.SUBSCRIBE&&e!=this.UNSUBSCRIBE&&this.fire(this.UNSUBSCRIBE,e,n)},monitor:function(e,t){if(!t()){var n=this;this.subscribe(e,function r(){t.apply(t,arguments)&&n.unsubscribe(e,r)})}},clear:function(e){delete this.subscribers()[e]},fire:function(e){var t=Array.prototype.slice.call(arguments,1),n=this.subscribers()[e];n&&ES(n,"forEach",!0,function(e){e&&e.apply(this,t)})}};i.exports=a},null),__d("JSONRPC",["Log"],function(e,t,n,r,i,o,a){function s(e){"use strict";this.$JSONRPC1=0,this.$JSONRPC2={},this.remote=ES(function(e){return this.$JSONRPC3=e,this.remote},"bind",!0,this),this.local={},this.$JSONRPC4=e}t.__markCompiled&&t.__markCompiled(),s.prototype.stub=function(e){"use strict";this.remote[e]=ES(function(){for(var t={jsonrpc:"2.0",method:e},n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];"function"==typeof r[r.length-1]&&(t.id=++this.$JSONRPC1,this.$JSONRPC2[t.id]=r.pop()),t.params=r,this.$JSONRPC4(ES("JSON","stringify",!1,t),this.$JSONRPC3||{method:e})},"bind",!0,this)},s.prototype.read=function(e,t){"use strict";var n=ES("JSON","parse",!1,e),r=n.id;if(!n.method){if(!this.$JSONRPC2[r])return void a.warn("Could not find callback %s",r);var i=this.$JSONRPC2[r];return delete this.$JSONRPC2[r],delete n.id,delete n.jsonrpc,void i(n)}var o,s=this,u=this.local[n.method];if(o=r?function(e,n){var i={jsonrpc:"2.0",id:r};i[e]=n,setTimeout(function(){s.$JSONRPC4(ES("JSON","stringify",!1,i),t)},0)}:function(){},!u)return a.error('Method "%s" has not been defined',n.method),void o("error",{code:-32601,message:"Method not found",data:n.method});n.params.push(ES(o,"bind",!0,null,"result")),n.params.push(ES(o,"bind",!0,null,"error"));try{var c=u.apply(t||null,n.params);void 0!==c&&o("result",c)}catch(e){a.error("Invokation of RPC method %s resulted in the error: %s",n.method,e.message),o("error",{code:-32603,message:"Internal error",data:e.message})}},i.exports=s},null),__d("sdk.RPC",["Assert","JSONRPC","Queue"],function(e,t,n,r,i,o,a,s,u){t.__markCompiled&&t.__markCompiled();var c=new u,l=new s(function(e){c.enqueue(e)}),p={local:l.local,remote:l.remote,stub:ES(l.stub,"bind",!0,l),setInQueue:function(e){a.isInstanceOf(u,e),e.start(function(e){l.read(e)})},getOutQueue:function(){return c}};i.exports=p},null),__d("hasNamePropertyBug",["guid","UserAgent_DEPRECATED"],function(e,t,n,r,i,o,a,s){function u(){var e=document.createElement("form"),t=e.appendChild(document.createElement("input"));return t.name=a(),c=t!==e.elements[t.name],e=t=null,c}t.__markCompiled&&t.__markCompiled();var c=!!s.ie()&&undefined;i.exports=function(){return void 0===c?u():c}},null),__d("sdk.createIframe",["DOMEventListener","getBlankIframeSrc","guid","hasNamePropertyBug"],function(e,t,n,r,i,o,a,s,u,c){t.__markCompiled&&t.__markCompiled(),i.exports=function(e){var t,n=(e=ES("Object","assign",!1,{},e)).name||u(),r=e.root,i=e.style||{border:"none"},o=e.url,l=e.onload,p=e.onerror;c()?t=document.createElement('<iframe name="'+n+'"/>'):(t=document.createElement("iframe")).name=n,delete e.style,delete e.name,delete e.url,delete e.root,delete e.onload,delete e.onerror;var d=ES("Object","assign",!1,{frameBorder:0,allowTransparency:!0,allowFullscreen:!0,scrolling:"no"},e);d.width&&(t.width=d.width+"px"),d.height&&(t.height=d.height+"px"),delete d.height,delete d.width;for(var h in d)d.hasOwnProperty(h)&&t.setAttribute(h,d[h]);if(ES("Object","assign",!1,t.style,i),t.src=s(),r.appendChild(t),l)var f=a.add(t,"load",function(){f.remove(),l()});if(p)var m=a.add(t,"error",function(){m.remove(),p()});return t.src=o,t}},null),__d("sdk.FeatureFunctor",["invariant"],function(e,t,n,r,i,o,a){function s(e,t,n){if(e.features&&t in e.features){var r=e.features[t];return"object"==typeof r&&"number"==typeof r.rate?r.rate&&100*Math.random()<=r.rate?r.value||!0:!!r.value&&null:r}return n}t.__markCompiled&&t.__markCompiled(),i.exports={create:function(e){return function(t,n){return arguments.length>=2||a(0),s(e,t,n)}}}},null),__d("sdk.feature",["sdk.FeatureFunctor","JSSDKConfig"],function(e,t,n,r,i,o,a,s){t.__markCompiled&&t.__markCompiled(),i.exports=a.create(s)},null),__d("sdk.XD",["sdk.Content","sdk.Event","Log","QueryString","Queue","sdk.RPC","sdk.Runtime","sdk.Scribe","sdk.URI","UrlMap","JSSDKXDConfig","XDM","isFacebookURI","sdk.createIframe","sdk.feature","guid"],function(e,t,n,r,i,o,a,s,u,c,l,p,d,h,f,m,v,y,g,_,b,w){function k(e){u.info("Remote XD can talk to facebook.com (%s)",e),d.setEnvironment("canvas"===e?d.ENVIRONMENTS.CANVAS:d.ENVIRONMENTS.PAGETAB)}function x(e,t){if(!t)throw u.error("No senderOrigin"),new Error;var n=/^https?/.exec(t)[0];switch(e.xd_action){case"proxy_ready":var r,i;"https"==n?(r=D,i=O,d.setLoggedIntoFacebook("true"===e.logged_in)):(r=A,i=T),e.registered&&(k(e.registered),M=r.merge(M)),u.info("Proxy ready, starting queue %s containing %s messages",n+"ProxyQueue",r.getLength()),r.start(function(e){P.send("string"==typeof e?e:c.encode(e),t,i.contentWindow,F+"_"+n)});break;case"plugin_ready":if(u.info("Plugin %s ready, protocol: %s",e.name,n),B[e.name]={protocol:n},l.exists(e.name)){var o=l.get(e.name);u.debug("Enqueuing %s messages for %s in %s",o.getLength(),e.name,n+"ProxyQueue"),("https"==n?D:A).merge(o)}}e.data&&C(e.data,t)}function C(e,t){if(!t||"native"===t||g(new f(t))){if("string"==typeof e){if(/^FB_RPC:/.test(e))return void H.enqueue(e.substring(7));if("{"==e.substring(0,1))try{e=ES("JSON","parse",!1,e)}catch(t){return void u.warn("Failed to decode %s as JSON",e)}else e=c.decode(e)}if(t||e.xd_sig==I&&(t=e.xd_origin),e.xd_action)x(e,t);else if(e.access_token&&d.setSecure(/^https/.test(V)),e.cb){var n=q._callbacks[e.cb];q._forever[e.cb]||delete q._callbacks[e.cb],n&&n(e)}}}function S(e,t){if("facebook"==e)t.relation="parent.parent",M.enqueue(t);else{t.relation='parent.frames["'+e+'"]';var n=B[e];n?(u.debug("Enqueuing message for plugin %s in %s",e,n.protocol+"ProxyQueue"),("https"==n.protocol?D:A).enqueue(t)):(u.debug("Buffering message for plugin %s",e),l.get(e).enqueue(t))}}function E(e){if(!z){var t=a.appendHidden(document.createElement("div")),n=y.create({blacklist:null,root:t,channel:F,flashUrl:v.Flash.path,whenReady:function(r){P=r;var i={channel:F,origin:V,transport:n,xd_name:e},o="#"+c.encode(i);!0!==d.getSecure()&&(T=_({url:N+o,name:"fb_xdm_frame_http",id:"fb_xdm_frame_http",root:t,"aria-hidden":!0,title:U,tabindex:-1})),O=_({url:L+o,name:"fb_xdm_frame_https",id:"fb_xdm_frame_https",root:t,"aria-hidden":!0,title:U,tabindex:-1})},onMessage:C});n||h.log("jssdk_error",{appId:d.getClientID(),error:"XD_TRANSPORT",extra:{message:"Failed to create a valid transport"}}),z=!0}}t.__markCompiled&&t.__markCompiled();var T,O,P,M=new l,A=new l,D=new l,I=w(),R=v.useCdn?"cdn":"www",j=b("use_bundle",!1)?v.XdBundleUrl:v.XdUrl,N=m.resolve(R,!1)+j,L=m.resolve(R,!0)+j,F=w(),V=function(){if("origin"in location){if(location.origin&&"null"!==location.origin)return location.origin;if(window!==window.parent)try{var e=parent.location.origin;if(e&&"null"!==e)return e}catch(e){}}return location.protocol+"//"+location.host}(),z=!1,U="Facebook Cross Domain Communication Frame",B={},H=new l;p.setInQueue(H),p.getOutQueue().start(function(e){S("facebook","FB_RPC:"+e)});var q={rpc:p,_callbacks:{},_forever:{},_channel:F,_origin:V,onMessage:C,recv:C,init:E,sendToFacebook:S,inform:function(e,t,n,r){S("facebook",{method:e,params:ES("JSON","stringify",!1,t||{}),behavior:r||"p",relation:n})},handler:function(e,t,n,r){var i="#"+c.encode({cb:this.registerCallback(e,n,r),origin:V+"/"+F,domain:location.hostname,relation:t||"opener"});return("https:"==location.protocol?L:N)+i},registerCallback:function(e,t,n){return n=n||w(),t&&(q._forever[n]=!0),q._callbacks[n]=e,n},getXDArbiterURL:function(e){return e?L:N}};s.subscribe("init:post",function(e){E(e.xdProxyName);var t=b("xd_timeout",!1);t&&setTimeout(function(){O&&!!T==A.isStarted()&&!!O==D.isStarted()||h.log("jssdk_error",{appId:d.getClientID(),error:"XD_INITIALIZATION",extra:{message:"Failed to initialize in "+t+"ms"}})},t)}),i.exports=q},null),__d("sdk.getContextType",["sdk.Runtime","sdk.UA"],function(e,t,n,r,i,o,a,s){t.__markCompiled&&t.__markCompiled(),i.exports=function(){return s.nativeApp()?3:s.mobile()?2:a.isEnvironment(a.ENVIRONMENTS.CANVAS)?5:1}},null),__d("sdk.Auth",["sdk.Cookie","sdk.createIframe","DOMWrapper","sdk.feature","sdk.getContextType","guid","sdk.Impressions","Log","ObservableMixin","sdk.Runtime","sdk.Scribe","sdk.SignedRequest","UrlMap","sdk.URI","sdk.XD"],function(e,t,n,r,i,o,a,s,u,c,l,p,d,h,f,m,v,y,g,_,b){function w(e,t){var n=m.getUserID(),r="";if(e)if(e.userID)r=e.userID;else if(e.signedRequest){var i=y.parse(e.signedRequest);i&&i.user_id&&(r=i.user_id)}var o=m.getLoginStatus(),a="unknown"===o&&e||m.getUseCookie()&&m.getCookieUserID()!==r,s=n&&!e,u=e&&n&&n!=r,c=e!=T,l=t!=(o||"unknown");m.setLoginStatus(t),m.setAccessToken(e&&e.accessToken||null),m.setUserID(r),T=e;var p={authResponse:e,status:t};return(s||u)&&D.inform("logout",p),(a||u)&&D.inform("login",p),c&&D.inform("authresponse.change",p),l&&D.inform("status.change",p),p}function k(){return T}function x(e,t,n){return function(r){if(r&&r.access_token){var i=y.parse(r.signed_request);if(t={accessToken:r.access_token,userID:i.user_id,expiresIn:parseInt(r.expires_in,10),signedRequest:r.signed_request},r.granted_scopes&&(t.grantedScopes=r.granted_scopes),m.getUseCookie()){var o=0===t.expiresIn?0:ES("Date","now",!1)+1e3*t.expiresIn;!a.getDomain()&&r.base_domain&&a.setDomain("."+r.base_domain),a.setSignedRequestCookie(r.signed_request,o),C()}w(t,"connected")}else"logout"!==n&&"login_status"!==n||(w(null,r.error&&"not_authorized"===r.error?"not_authorized":"unknown"),m.getUseCookie()&&a.clearSignedRequestCookie(),"logout"===n&&(S(),v.log("jssdk_error",{appId:m.getClientID(),error:"PLATFORM_AUTH_LOGOUT",extra:{args:{fblo:!0}}})));return r&&1==r.https&&m.setSecure(!0),e&&e({authResponse:t,status:m.getLoginStatus()}),t}}function C(){a.setRaw(M,"",0)}function S(){a.setRaw(M,"y",ES("Date","now",!1)+A)}function E(e){var t,n=ES("Date","now",!1);O&&(clearTimeout(O),O=null);var r="y"===a.getRaw(M);if(c("getloginstatus_tracking",!0)&&v.log("jssdk_error",{appId:m.getClientID(),error:"PLATFORM_AUTH_GETLOGINSTATUS",extra:{args:{fblo:r}}}),r){var i="unknown";return w(null,i),void(e&&e({authResponse:null,status:i}))}var o=x(e,T,"login_status"),f=new _(g.resolve("www",!0)+"/connect/ping").setQueryData({client_id:m.getClientID(),response_type:"token,signed_request,code",domain:location.hostname,origin:l(),redirect_uri:b.handler(function(e){if(c("e2e_ping_tracking",!0)){var r={init:n,close:ES("Date","now",!1),method:"ping"};h.debug("e2e: %s",ES("JSON","stringify",!1,r)),d.log(114,{payload:r})}t.parentNode.removeChild(t),o(e)&&(O=setTimeout(function(){E(function(){})},12e5))},"parent"),sdk:"joey",kid_directed_site:m.getKidDirectedSite()});t=s({root:u.getRoot(),name:p(),url:f.toString(),style:{display:"none"}})}t.__markCompiled&&t.__markCompiled();var T,O,P,M="fblo_",A=31536e6,D=new f;ES("Object","assign",!1,D,{removeLogoutState:C,getLoginStatus:function(e,t){if(m.getClientID()){if(e){if(!t&&"loaded"==P)return void e({status:m.getLoginStatus(),authResponse:k()});D.subscribe("FB.loginStatus",e)}(t||"loading"!=P)&&(P="loading",E(function(e){P="loaded",D.inform("FB.loginStatus",e),D.clearSubscribers("FB.loginStatus")}))}else h.warn("FB.getLoginStatus() called before calling FB.init().")},fetchLoginStatus:E,setAuthResponse:w,getAuthResponse:k,parseSignedRequest:y.parse,xdResponseWrapper:x}),i.exports=D},null),__d("sdk.DOM",["Assert","sdk.UA","sdk.domReady"],function(e,t,n,r,i,o,a,s,u){function c(e,t){var n=e.getAttribute(t)||e.getAttribute(t.replace(/_/g,"-"))||e.getAttribute(t.replace(/-/g,"_"))||e.getAttribute(t.replace(/-/g,""))||e.getAttribute(t.replace(/_/g,""))||e.getAttribute("data-"+t)||e.getAttribute("data-"+t.replace(/_/g,"-"))||e.getAttribute("data-"+t.replace(/-/g,"_"))||e.getAttribute("data-"+t.replace(/-/g,""))||e.getAttribute("data-"+t.replace(/_/g,""));return n?String(n):null}function l(e,t){a.isTruthy(e,"element not specified"),a.isString(t);try{return String(e[t])}catch(e){throw new Error("Could not read property "+t+" : "+e.message)}}function p(e,t){a.isTruthy(e,"element not specified"),a.isString(t);var n=" "+l(e,"className")+" ";return ES(n,"indexOf",!0," "+t+" ")>=0}t.__markCompiled&&t.__markCompiled();var d={},h={containsCss:p,addCss:function(e,t){a.isTruthy(e,"element not specified"),a.isString(t),p(e,t)||(e.className=l(e,"className")+" "+t)},removeCss:function(e,t){a.isTruthy(e,"element not specified"),a.isString(t);var n=new RegExp("\\s*"+t,"g");e.className=ES(l(e,"className").replace(n,""),"trim",!0)},getByClass:function(e,t,n){if(a.isString(e),t=t||document.body,n=n||"*",t.querySelectorAll)return ES("Array","from",!1,t.querySelectorAll(n+"."+e));for(var r=t.getElementsByTagName(n),i=[],o=0,s=r.length;o<s;o++)p(r[o],e)&&(i[i.length]=r[o]);return i},getStyle:function(e,t){a.isTruthy(e,"element not specified"),a.isString(t),t=t.replace(/-(\w)/g,function(e,t){return t.toUpperCase()});var n=(e.currentStyle||document.defaultView.getComputedStyle(e,null))[t];return/backgroundPosition?/.test(t)&&/top|left/.test(n)&&(n="0%"),n},setStyle:function(e,t,n){a.isTruthy(e,"element not specified"),a.isString(t),t=t.replace(/-(\w)/g,function(e,t){return t.toUpperCase()}),e.style[t]=n},getAttr:c,getBoolAttr:function(e,t){var n=c(e,t);return n?/^(true|1|yes|on)$/.test(n):null},getProp:l,html:function(e,t){a.isTruthy(e,"element not specified"),a.isString(t);try{e.innerHTML=t}catch(e){throw new Error("Could not set innerHTML : "+e.message)}},addCssRules:function(e,t){for(var n,r=!0,i=0;n=t[i++];)n in d||(r=!1,d[n]=!0);if(!r)if(s.ie()<11)try{document.createStyleSheet().cssText=e}catch(t){document.styleSheets[0]&&(document.styleSheets[0].cssText+=e)}else{var o=document.createElement("style");o.type="text/css",o.textContent=e,document.getElementsByTagName("head")[0].appendChild(o)}},getViewportInfo:function(){var e=document.documentElement&&"CSS1Compat"==document.compatMode?document.documentElement:document.body;return{scrollTop:e.scrollTop||document.body.scrollTop,scrollLeft:e.scrollLeft||document.body.scrollLeft,width:window.innerWidth?window.innerWidth:e.clientWidth,height:window.innerHeight?window.innerHeight:e.clientHeight}},getPosition:function(e){a.isTruthy(e,"element not specified");var t=0,n=0;do{t+=e.offsetLeft,n+=e.offsetTop}while(e=e.offsetParent);return{x:t,y:n}},ready:u};i.exports=h},null),__d("normalizeError",["sdk.UA"],function(e,t,n,r,i,o,a){t.__markCompiled&&t.__markCompiled(),i.exports=function(e){var t={line:e.lineNumber||e.line,message:e.message,name:e.name,script:e.fileName||e.sourceURL||e.script,stack:e.stackTrace||e.stack};t._originalError=e;var n=/([\w:\.\/]+\.js):(\d+)/.exec(e.stack);a.chrome()&&n&&(t.script=n[1],t.line=parseInt(n[2],10));for(var r in t)null==t[r]&&delete t[r];return t}},null),__d("sdk.ErrorHandling",["ManagedError","sdk.Runtime","sdk.Scribe","sdk.feature","normalizeError","wrapFunction"],function(e,t,n,r,i,o,a,s,u,c,l,p){function d(e){var t=e._originalError;throw delete e._originalError,u.log("jssdk_error",{appId:s.getClientID(),error:e.name||e.message,extra:e}),t}function h(e,t){return function(){if(!v)return e.apply(this,arguments);try{return y=t,e.apply(this,arguments)}catch(e){if(e instanceof a)throw e;var n=l(e);n.entry=t;var r=ES(Array.prototype.slice.call(arguments),"map",!0,function(e){var t=Object.prototype.toString.call(e);return/^\[object (String|Number|Boolean|Object|Date)\]$/.test(t)?e:e.toString()});n.args=ES("JSON","stringify",!1,r).substring(0,200),d(n)}finally{y=""}}}function f(e){try{return e&&e.callee&&e.callee.caller?e.callee.caller.name:""}catch(e){return""}}function m(e,t){return function(n,r){var i=t+":"+(y||"[global]")+":"+(n.name||"[anonymous]"+f(arguments));return e(p(n,"entry",i),r)}}t.__markCompiled&&t.__markCompiled();var v=c("error_handling",!1),y="";v&&(setTimeout=m(setTimeout,"setTimeout"),setInterval=m(setInterval,"setInterval"),p.setWrapper(h,"entry"));var g={guard:h,unguard:function(e){return e.__wrapper||(e.__wrapper=function(){try{return e.apply(this,arguments)}catch(e){return window.setTimeout(function(){throw e},0),!1}}),e.__wrapper}};i.exports=g},null),__d("sdk.Insights",["sdk.Impressions"],function(e,t,n,r,i,o,a){t.__markCompiled&&t.__markCompiled();var s={TYPE:{NOTICE:"notice",WARNING:"warn",ERROR:"error"},CATEGORY:{DEPRECATED:"deprecated",APIERROR:"apierror"},log:function(e,t,n){var r={source:"jssdk",type:e,category:t,payload:n};a.log(113,r)},impression:a.impression};i.exports=s},null),__d("FB",["sdk.Auth","JSSDKCssConfig","dotAccess","sdk.domReady","sdk.DOM","sdk.ErrorHandling","sdk.Content","DOMWrapper","GlobalCallback","sdk.Insights","Log","sdk.Runtime","sdk.Scribe","JSSDKConfig"],function(e,t,n,r,i,o,a,s,u,c,l,p,d,h,f,m,v,y,g,_){function b(e,t,n,r){var i;switch(/^_/.test(n)?i="hide":k&&!k[t]&&(i=x),i){case"hide":return;case"stub":return function(){v.warn("The method FB.%s has been removed from the JS SDK.",t)};default:return p.guard(function(){function n(e){return ES("Array","isArray",!1,e)?ES(e,"map",!0,n):e&&"object"==typeof e&&e.__wrapped?e.__wrapped:"function"==typeof e&&/^function/.test(e.toString())?p.unguard(e):e}"warn"===i&&(v.warn("The method FB.%s is not officially supported by "+"Facebook and access to it will soon be removed.",t),C.hasOwnProperty(t)||(m.log(m.TYPE.WARNING,m.CATEGORY.DEPRECATED,"FB."+t),g.log("jssdk_error",{appId:y.getClientID(),error:"Private method used",extra:{args:t}}),C[t]=!0));var o,a=ES(Array.prototype.slice.call(arguments),"map",!0,n),s=e.apply(r,a),u=!0;if(s&&"object"==typeof s){(o=ES("Object","create",!1,s)).__wrapped=s;for(var c in s){var l=s[c];"function"==typeof l&&"constructor"!==c&&(u=!1,o[c]=b(l,t+":"+c,c,s))}}return u&&u?s:o},t)}}t.__markCompiled&&t.__markCompiled();var w,k,x=u(_,"api.mode"),C={};w=window.FB={};var S={};v.level=0,f.setPrefix("FB.__globalCallbacks");var E=document.createElement("div");h.setRoot(E),c(function(){v.info("domReady"),d.appendHidden(E),s.rules&&l.addCssRules(s.rules,s.components)}),y.subscribe("AccessToken.change",function(e){e||"connected"!==y.getLoginStatus()||a.getLoginStatus(null,!0)}),u(_,"api.whitelist.length")&&(k={},ES(_.api.whitelist,"forEach",!0,function(e){k[e]=1})),y.setSecure(function(){var e=/iframe_canvas|app_runner/.test(window.name),t=/dialog/.test(window.name);return"https:"==location.protocol&&(window==top||!e&&!t)||(/_fb_https?/.test(window.name)?-1!=ES(window.name,"indexOf",!0,"_fb_https"):void 0)}()),ES("Object","assign",!1,S,{provide:function(e,t){var n=e?u(w,e,!0):w;ES(ES("Object","keys",!1,t),"forEach",!0,function(r){var i=t[r];if("function"==typeof i){var o=(e?e+".":"")+r,a=b(i,o,r,t);a&&(n[r]=a)}else"object"==typeof i&&(o=(e?e+".":"")+r,k&&k[o]&&(n[r]=i))})}}),i.exports=S},null),__d("ArgumentError",["ManagedError"],function(e,t,n,r,i,o,a){function s(e,t){a.prototype.constructor.apply(this,arguments)}t.__markCompiled&&t.__markCompiled(),(s.prototype=new a).constructor=s,i.exports=s},null),__d("errorCode",[],function(e,t,n,r,i,o){"use strict";t.__markCompiled&&t.__markCompiled(),i.exports=function(e){throw new Error("errorCode"+'("'+e+'"): This should not happen. Oh noes!')}},null),__d("CORSRequest",["wrapFunction","QueryString","errorCode"],function(e,t,n,r,i,o,a,s,u){function c(e,t){if(!self.XMLHttpRequest)return null;var n=new XMLHttpRequest,r=function(){};if("withCredentials"in n)n.open(e,t,!0),n.setRequestHeader("Content-type","application/x-www-form-urlencoded");else{if(!self.XDomainRequest)return null;n=new XDomainRequest;try{n.open(e,t),n.onprogress=n.ontimeout=r}catch(e){return null}}var i={send:function(e){n.send(e)}},o=a(function(){o=r,"onload"in i&&i.onload(n)},"entry","XMLHttpRequest:load"),s=a(function(){s=r,"onerror"in i&&i.onerror(n)},"entry","XMLHttpRequest:error");return n.onload=function(){o()},n.onerror=function(){s()},n.onreadystatechange=function(){4==n.readyState&&(200==n.status?o():s())},i}t.__markCompiled&&t.__markCompiled();var l={execute:function(e,t,n,r){n.suppress_http_code=1;var i=s.encode(n);"post"!=t&&(e=s.appendToUrl(e,i),i="");var o=c(t,e);return!!o&&(o.onload=function(e){r(ES("JSON","parse",!1,e.responseText))},o.onerror=function(e){r(e.responseText?ES("JSON","parse",!1,e.responseText):{error:{code:1,error_subcode:1357045,message:"unknown error (empty response)",status:e.status,type:"http"}})},o.send(i),!0)}};i.exports=l},null),__d("FlashRequest",["DOMWrapper","Flash","GlobalCallback","QueryString","Queue"],function(e,t,n,r,i,o,a,s,u,c,l){function p(){if(!h)throw new Error("swfUrl has not been set");var e=u.create(function(){d.start(function(e){var t=f.execute(e.method,e.url,e.body);if(!t)throw new Error("Could create request");m[t]=e.callback})}),t=u.create(function(e,t,n){var r;try{r=ES("JSON","parse",!1,decodeURIComponent(n))}catch(e){r={error:{type:"SyntaxError",message:e.message,status:t,raw:n}}}m[e](r),delete m[e]});f=s.embed(h,a.getRoot(),null,{log:!1,initCallback:e,requestCallback:t})}t.__markCompiled&&t.__markCompiled();var d,h,f,m={},v={setSwfUrl:function(e){h=e},execute:function(e,t,n,r){n.suppress_http_code=1,n.method||(n.method=t);var i=c.encode(n);if("get"===t&&e.length+i.length<2e3?(e=c.appendToUrl(e,i),i=""):t="post",!d){if(!s.isAvailable())return!1;d=new l,p()}return d.enqueue({method:t,url:e,body:i,callback:r}),!0}};i.exports=v},null),__d("JSONPRequest",["DOMWrapper","GlobalCallback","QueryString"],function(e,t,n,r,i,o,a,s,u){t.__markCompiled&&t.__markCompiled();var c=2e3,l={execute:function(e,t,n,r){var i=document.createElement("script"),o=function(e){o=function(){},s.remove(n.callback),r(e),i.parentNode.removeChild(i)};if(n.callback=s.create(o),n.method||(n.method=t),(e=u.appendToUrl(e,n)).length>c)return s.remove(n.callback),!1;i.onerror=function(){o({error:{type:"http",message:"unknown error"}})};var l=function(){setTimeout(function(){o({error:{type:"http",message:"unknown error"}})},0)};return i.addEventListener?i.addEventListener("load",l,!1):i.onreadystatechange=function(){/loaded|complete/.test(this.readyState)&&l()},i.src=e,a.getRoot().appendChild(i),!0},MAX_QUERYSTRING_LENGTH:c};i.exports=l},null),__d("flattenObject",[],function(e,t,n,r,i,o){t.__markCompiled&&t.__markCompiled(),i.exports=function(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(null===r||undefined===r)continue;t[n]="string"==typeof r?r:ES("JSON","stringify",!1,r)}return t}},null),__d("ApiClient",["ArgumentError","Assert","CORSRequest","FlashRequest","flattenObject","JSONPRequest","Log","ObservableMixin","QueryString","sprintf","sdk.URI","UrlMap","ApiClientConfig","invariant"],function(e,t,n,r,i,o,a,s,u,c,l,p,d,h,f,m,v,y,g,_){function b(e,t,n,r){if(0!==V&&L>=V)return F.push(function(){return b(e,t,n,r)}),void B.inform("request.queued",e,t,n);L++,P&&(n=ES("Object","assign",!1,{},P,n)),n.pretty=n.pretty||0,n=l(n);var i={jsonp:p,cors:u,flash:c},o={},a=n.access_token||T;a&&(o.access_token=a),n.routing_control&&(o.routing_control=n.routing_control);var s=ES("Object","keys",!1,o);s.length>0&&(e=f.appendToUrl(e,o),ES(s,"forEach",!0,function(e){return delete n[e]}));var d;n.transport?(d=[n.transport],delete n.transport):d=I;for(var h=0;h<d.length;h++){var m=i[d[h]],v=ES("Object","assign",!1,{},n);if(m.execute(e,t,v,r))return}r({error:{type:"no-transport",message:"Could not find a usable transport for request"}})}function w(e,t,n,r,i,o){o&&o.error&&B.inform("request.error",t,n,r,o,ES("Date","now",!1)-i),B.inform("request.complete",t,n,r,o,ES("Date","now",!1)-i),L--,e&&e(o),F.length>0&&L<V&&F.shift()()}function k(e){var t=e.shift();s.isString(t,"Invalid path"),/^https?/.test(t)||"/"===t.charAt(0)||(t="/"+t);var n,r={};try{n=new v(t)}catch(e){throw new a(e.message,e)}ES(e,"forEach",!0,function(e){return r[typeof e]=e});var i=(r.string||"get").toLowerCase();s.isTrue(A.hasOwnProperty(i),m("Invalid method passed to ApiClient: %s",i));var o=r.function;o||d.warn("No callback passed to the ApiClient"),r.object&&n.addQueryData(l(r.object));var u=n.getQueryData();return u.method=i,{uri:n,callback:o,params:u}}function x(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=k(t),i=r.uri,o=r.callback,a=r.params,s=a.method;E(i,s)&&(s="post");var u=i.getProtocol()&&i.getDomain()?i.setQueryData({}).toString():y.resolve("graph")+i.getPath();B.inform("request.prepare",u,a),b(u,"get"==s?"get":"post",a,ES(w,"bind",!0,null,o,i.getPath(),s,a,ES("Date","now",!1)))}function C(e){var t,n=k(e),r=n.uri,i=n.callback,o=n.params.method,a=r.removeQueryData("method").toString();return"post"==o.toLowerCase()&&(t=f.encode(r.getQueryData()),a=r.setQueryData({}).toString()),{body:t,callback:i,method:o,relative_url:a}}function S(){R.length>0||_(0),R.length!==j.length&&_(0);var e=R,t=j;if(R=[],j=[],N=null,1!==e.length)x("/","POST",{batch:e,include_headers:!1,batch_app_id:O||U},function(e){ES("Array","isArray",!1,e)?ES(e,"forEach",!0,function(e,n){t[n](ES("JSON","parse",!1,e.body))}):ES(t,"forEach",!0,function(e){return e({error:{message:"Fatal: batch call failed."}})})});else{var n=e[0],r=t[0],i=n.body?f.decode(n.body):null;x(n.relative_url,n.method,i,r)}}function E(e,t){return e.toString().length>M&&"get"===t}t.__markCompiled&&t.__markCompiled();var T,O,P,M=p.MAX_QUERYSTRING_LENGTH,A={get:!0,post:!0,delete:!0,put:!0},D={fql_query:!0,fql_multiquery:!0,friends_get:!0,notifications_get:!0,stream_get:!0,users_getinfo:!0},I=["jsonp","cors","flash"],R=[],j=[],N=null,L=0,F=[],V=0,z=50,U=105440539523,B=ES("Object","assign",!1,new h,{setAccessToken:function(e){T=e},setAccessTokenForClientID:function(e,t){T&&O&&O!==t||(T=e)},getAccessToken:function(){return T},setClientID:function(e){O=e},setDefaultParams:function(e){P=e},setDefaultTransports:function(e){I=e},setMaxConcurrentRequests:function(e){V=e},getCurrentlyExecutingRequestCount:function(){return L},getQueuedRequestCount:function(){return F.length},rest:function(e,t){s.isObject(e),s.isString(e.method,"method missing"),t||d.warn("No callback passed to the ApiClient");var n=e.method.toLowerCase().replace(".","_");e.format="json-strings",e.api_key=O;var r=n in D?"api_read":"api";b(y.resolve(r)+"/restserver.php","get",e,ES(w,"bind",!0,null,t,"/restserver.php","get",e,ES("Date","now",!1)))},graph:x,scheduleBatchCall:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=C(t),i=r.body,o=r.callback,a={method:r.method,relative_url:r.relative_url};i&&(a.body=i),R.push(a),j.push(o),R.length==z?(N&&clearTimeout(N),S()):N||(N=setTimeout(S,0))},prepareBatchParams:C});c.setSwfUrl(g.FlashRequest.swfUrl),i.exports=B},null),__d("sdk.PlatformVersioning",["sdk.Runtime","ManagedError"],function(e,t,n,r,i,o,a,s){t.__markCompiled&&t.__markCompiled();var u=/^v\d+\.\d\d?$/,c={REGEX:u,assertVersionIsSet:function(){if(!a.getVersion())throw new s("init not called with valid version")},assertValidVersion:function(e){if(!u.test(e))throw new s("invalid version specified")}};i.exports=c},null),__d("sdk.api",["ApiClient","sdk.PlatformVersioning","sdk.Runtime","sdk.Scribe","sdk.URI","sdk.feature"],function(e,t,n,r,i,o,a,s,u,c,l,p){t.__markCompiled&&t.__markCompiled();var d,h=p("should_log_response_error",!1);u.subscribe("ClientID.change",function(e){return a.setClientID(e)}),u.subscribe("AccessToken.change",function(e){d=e,a.setAccessToken(e)}),a.setDefaultParams({sdk:"joey"}),a.subscribe("request.complete",function(e,t,n,r){var i=!1;r&&"object"==typeof r&&(r.error?("invalid_token"==r.error||"OAuthException"==r.error.type&&190==r.error.code)&&(i=!0):r.error_code&&"190"==r.error_code&&(i=!0)),i&&d===u.getAccessToken()&&u.setAccessToken(null)}),a.subscribe("request.complete",function(e,t,n,r){("/me/permissions"==e&&"delete"===t||"/restserver.php"==e&&"Auth.revokeAuthorization"==n.method)&&!0===r&&u.setAccessToken(null)}),a.subscribe("request.error",function(e,t,n,r){h&&"http"===r.error.type&&c.log("jssdk_error",{appId:u.getClientID(),error:"transport",extra:{name:"transport",message:ES("JSON","stringify",!1,r.error)}})}),i.exports=function(e){if("string"==typeof e)if(u.getIsVersioned()){s.assertVersionIsSet(),/https?/.test(e)||"/"===e.charAt(0)||(e="/"+e),e=new l(e).setDomain(null).setProtocol(null).toString(),s.REGEX.test(e.substring(1,ES(e,"indexOf",!0,"/",1)))||(e="/"+u.getVersion()+e);var t=[e].concat(Array.prototype.slice.call(arguments,1));a.graph.apply(a,t)}else a.graph.apply(a,arguments);else a.rest.apply(a,arguments)}},null),__d("legacy:fb.api",["FB","sdk.api"],function(e,t,n,r,i,o,a,s){t.__markCompiled&&t.__markCompiled(),a.provide("",{api:s})},3),__d("FBEventsParamList",[],function(e,t,n,r,i,o){"use strict";function a(){this.list=[]}function s(e){return"undefined"!=typeof JSON&&null!==JSON&&ES("JSON","stringify",!1)?ES("JSON","stringify",!1,e):Object.prototype.toString.call(e)}t.__markCompiled&&t.__markCompiled();var u="deep";a.prototype={append:function(e,t){this._append(encodeURIComponent(e),t,u)},_append:function(e,t,n){Object(t)!==t?this._appendPrimitive(e,t):n===u?this._appendObject(e,t):this._appendPrimitive(e,s(t))},_appendPrimitive:function(e,t){null!=t&&this.list.push([e,t])},_appendObject:function(e,t){for(var n in t)if(t.hasOwnProperty(n)){var r=e+"["+encodeURIComponent(n)+"]";this._append(r,t[n],"shallow")}},each:function(e){for(var t=this.list,n=0,r=t.length;n<r;n++)e(t[n][0],t[n][1])},toQueryString:function(){var e=[];return this.each(function(t,n){e.push(t+"="+encodeURIComponent(n))}),e.join("&")}},i.exports=a},null),__d("FBEventsUtils",[],function(e,t,n,r,i,o){"use strict";t.__markCompiled&&t.__markCompiled();var a="error",s="Facebook Pixel Error",u="Facebook Pixel Warning",c="warn",l=Object.prototype.toString,p=!("addEventListener"in document),d=window.console||{},h=window.postMessage||function(){};o.isArray=function(e){return ES("Array","isArray",!1)?ES("Array","isArray",!1,e):"[object Array]"===l.call(e)},o.logError=function(e){h({action:"FB_LOG",logType:s,logMessage:e},"*"),a in d&&d[a](s+": "+e)},o.logWarning=function(e){h({action:"FB_LOG",logType:u,logMessage:e},"*"),c in d&&d[c](u+": "+e)},o.listenOnce=function(e,t,n){t=p?"on"+t:t;var r=p?"attachEvent":"addEventListener",i=p?"detachEvent":"removeEventListener";e[r](t,function r(){e[i](t,r,!1),n()},!1)},o.injectMethod=function(e,t,n){var r=e[t];e[t]=function(){var e=r.apply(this,arguments);return n.apply(this,arguments),e}}},null),__d("FBPixelEndpoint",["FBEventsParamList","FBEventsUtils"],function(e,t,n,r,i,o,a,s){"use strict";function u(e,t,n,r){r=r||{};var i=new a;i.append("id",e),i.append("ev",t),i.append("dl",d),i.append("rl",f),i.append("if",h),i.append("ts",(new Date).valueOf()),i.append("cd",n);for(var o in r)i.append(o,r[o]);return i}function c(e,t){(new Image).src=e+"?"+t}function l(e,t){var n="fb"+Math.random().toString().replace(".",""),r=document.createElement("form");r.method="post",r.action=e,r.target=n,r.acceptCharset="utf-8",r.style.display="none";var i=!(!window.attachEvent||window.addEventListener)?'<iframe name="'+n+'">':"iframe",o=document.createElement(i);o.src="javascript:false",o.id=n,o.name=n,r.appendChild(o),s.listenOnce(o,"load",function(){t.each(function(e,t){var n=document.createElement("input");n.name=e,n.value=t,r.appendChild(n)}),s.listenOnce(o,"load",function(){r.parentNode.removeChild(r)}),r.submit()}),document.body.appendChild(r)}t.__markCompiled&&t.__markCompiled();var p="https://www.facebook.com/tr/",d=location.href,h=window.top!==window,f=document.referrer,m={sendEvent:function(e,t,n,r){var i=u(e,t,n,r),o=i.toQueryString();2048>(p+"?"+o).length?c(p,o):l(p,i)}};i.exports=m},null),__d("sdk.AppEvents",["Assert","sdk.Impressions","sdk.Runtime","FBPixelEndpoint","sdk.Auth"],function(e,t,n,r,i,o,a,s,u,c,l){function p(e,t,n,r){var i={ae:1,ev:t,vts:n,canvas:1};r&&(i.cd=r),s.impression({api_key:e,payload:ES("JSON","stringify",!1,i)})}function d(e,t,n,r){var i={vts:n,es:"APP"},o=l.getAuthResponse();o&&o.accessToken&&(i.at=o.accessToken);var a=r;c.sendEvent(e,t,a,i)}function h(e,t,n,r){a.isTrue(f(t),"Invalid event name: "+t+". It must be between 1 and "+g+" characters, and must be contain only alphanumerics, _, - or spaces, starting with alphanumeric or _."),u.isCanvasEnvironment()?p.apply(null,arguments):d.apply(null,arguments)}function f(e){return!(null===e||0===e.length||e.length>g||!new RegExp(_).test(e))}t.__markCompiled&&t.__markCompiled();var m={COMPLETED_REGISTRATION:"fb_mobile_complete_registration",VIEWED_CONTENT:"fb_mobile_content_view",SEARCHED:"fb_mobile_search",RATED:"fb_mobile_rate",COMPLETED_TUTORIAL:"fb_mobile_tutorial_completion",ADDED_TO_CART:"fb_mobile_add_to_cart",ADDED_TO_WISHLIST:"fb_mobile_add_to_wishlist",INITIATED_CHECKOUT:"fb_mobile_initiated_checkout",ADDED_PAYMENT_INFO:"fb_mobile_add_payment_info",ACHIEVED_LEVEL:"fb_mobile_level_achieved",UNLOCKED_ACHIEVEMENT:"fb_mobile_achievement_unlocked",PAGE_VIEW:"fb_page_view",SPENT_CREDITS:"fb_mobile_spent_credits"},v={ACTIVATED_APP:"fb_mobile_activate_app",PURCHASED:"fb_mobile_purchase"},y={CURRENCY:"fb_currency",REGISTRATION_METHOD:"fb_registration_method",CONTENT_TYPE:"fb_content_type",CONTENT_ID:"fb_content_id",SEARCH_STRING:"fb_search_string",SUCCESS:"fb_success",MAX_RATING_VALUE:"fb_max_rating_value",PAYMENT_INFO_AVAILABLE:"fb_payment_info_available",NUM_ITEMS:"fb_num_items",LEVEL:"fb_level",DESCRIPTION:"fb_description"},g=40,_="^[0-9a-zA-Z_]+[0-9a-zA-Z _-]*$";i.exports={activateApp:function(e){h(e,v.ACTIVATED_APP)},logEvent:h,logPurchase:function(e,t,n,r){var i={};i[y.CURRENCY]=n,h(e,v.PURCHASED,t,babelHelpers.extends({},r,i))},logPageView:function(e){h(e,m.PAGE_VIEW)},isValidEventName:f,EventNames:m,ParameterNames:y}},null),__d("legacy:fb.appevents",["Assert","sdk.AppEvents","FB","sdk.Runtime"],function(e,t,n,r,i,o,a,s,u,c){t.__markCompiled&&t.__markCompiled(),u.provide("AppEvents",{logEvent:function(e,t,n){a.isString(e,"Invalid eventName"),a.maybeNumber(t,"Invalid valueToSum"),a.maybeObject(n,"Invalid params");var r=c.getClientID();a.isTrue(null!==r&&r.length>0,"You need to call FB.init() with App ID first."),s.logEvent(r,e,t,n)},logPurchase:function(e,t,n){a.isNumber(e,"Invalid purchaseAmount"),a.isString(t,"Invalid currency"),a.maybeObject(n,"Invalid params");var r=c.getClientID();a.isTrue(null!==r&&r.length>0,"You need to call FB.init() with App ID first."),s.logPurchase(r,e,t,n)},activateApp:function(){var e=c.getClientID();a.isTrue(null!==e&&e.length>0,"You need to call FB.init() with App ID first."),s.activateApp(e)},logPageView:function(){var e=c.getClientID();a.isTrue(null!==e&&e.length>0,"You need to call FB.init() with App ID first."),s.logPageView(e)},EventNames:s.EventNames,ParameterNames:s.ParameterNames})},3),__d("resolveURI",[],function(e,t,n,r,i,o){t.__markCompiled&&t.__markCompiled(),i.exports=function(e){if(!e)return window.location.href;e=e.replace(/&/g,"&amp;").replace(/"/g,"&quot;");var t=document.createElement("div");return t.innerHTML='<a href="'+e+'"></a>',t.firstChild.href}},null),__d("sdk.Canvas.Environment",["sdk.RPC"],function(e,t,n,r,i,o,a){t.__markCompiled&&t.__markCompiled(),a.stub("getPageInfo"),a.stub("scrollTo");var s={getPageInfo:function(e){a.remote.getPageInfo(function(t){e(t.result)})},scrollTo:function(e,t){a.remote.scrollTo({x:e||0,y:t||0})}};i.exports=s},null),__d("sdk.DialogUtils",["sdk.Content","sdk.DOM","DOMEventListener","sdk.UA","sdk.feature"],function(e,t,n,r,i,o,a,s,u,c,l){"use strict";t.__markCompiled&&t.__markCompiled();var p={isOrientationPotrait:function(){return window.innerWidth<window.innerHeight},addDoubleClickAction:function(e,t,n){var r=null;return u.add(e,"click",function(){null!==r&&(clearTimeout(r),r=null,t()),r=setTimeout(function(){r=null},n)})},addIdleDesktopAction:function(e,t,n){var r=void 0,i=void 0,o=function(){r=setTimeout(t,n)};return o(),u.add(e,"mouseenter",function(){clearTimeout(r),i||(i=u.add(e,"mouseleave",function(){o()}))})},addMobileOrientationChangeAction:function(e){if(!c.mobile())return null;var t="onorientationchange"in window?"orientationchange":"resize";return u.add(window,t,function(t){return setTimeout(function(t){return e(t)},50)})},applyScreenDimensions:function(e){if(null!=e){var t=s.getViewportInfo();e.style.minHeight=t.height||t.width?t.height+"px":"",e.style.top=t.scrollTop?t.scrollTop+"px":""}},setDialogPositionToCenter:function(e,t,n){var r=function(e){return"number"==typeof e?e:parseInt(e,10)},i=s.getViewportInfo(),o=r(e.offsetWidth),a=r(e.offsetHeight),u=i.scrollLeft+(i.width-o)/2,p=(i.height-a)/2.5;u<p&&(p=u);var d=i.height-a-p,h=(i.height-a)/2;if(n&&(h=n.scrollTop-n.offsetTop+(n.clientHeight-a)/2),h<p?h=p:h>d&&(h=d),h+=i.scrollTop,c.mobile()){var f=100;t?(f+=(i.height-a)/2,s.addCss(document.body,"fb_reposition")):(s.addCss(document.body,"fb_hidden"),l("dialog_resize_refactor",!1)&&(document.body.style.width="auto"),h=1e4);var m=s.getByClass("fb_dialog_padding",e);m.length&&(m[0].style.height=f+"px")}e.style.left=(u>0?u:0)+"px",e.style.top=(h>0?h:0)+"px"},setDialogPositionToTop:function(e,t,n){this.setDialogPositionToCenter(e,t,n);var r=s.getViewportInfo(),i=r.scrollTop+.05*(r.height-e.offsetHeight);s.setStyle(e,"top",i+"px")},setupNewDarkOverlay:function(){var e=document.createElement("div");return e.setAttribute("id","fb_dialog_ipad_overlay"),this.applyScreenDimensions(e),e},setupNewDialog:function(e){e=e||{};var t=document.createElement("div"),n=e.onClose;if(e.closeIcon&&n){var r=document.createElement("a");r.className="fb_dialog_close_icon",u.add(r,"click",n),t.appendChild(r)}var i="fb_dialog";if(i+=" "+(e.classes||""),c.ie()?(i+=" fb_dialog_legacy",ES(["vert_left","vert_right","horiz_top","horiz_bottom","top_left","top_right","bottom_left","bottom_right"],"forEach",!0,function(e){var n=document.createElement("span");n.className="fb_dialog_"+e,t.appendChild(n)})):i+=c.mobile()?" fb_dialog_mobile":" fb_dialog_advanced",t.className=i,e.width){var o=parseInt(e.width,10);isNaN(o)||(t.style.width=o+"px")}var s=document.createElement("div");if(e.content&&a.append(e.content,s),s.className="fb_dialog_content",t.appendChild(s),c.mobile()){var l=document.createElement("div");l.className="fb_dialog_padding",t.appendChild(l)}return{dialogElement:t,contentRoot:s}},onDialogHideCleanup:function(e){var t=document.body;e?s.removeCss(t,"fb_reposition"):s.removeCss(t,"fb_hidden")}};i.exports=p},null),__d("sdk.fbt",[],function(e,t,n,r,i,o){t.__markCompiled&&t.__markCompiled();var a={_:function(e){return"string"==typeof e?e:e[0]}};i.exports=a},null),__d("sdk.Dialog",["sdk.Canvas.Environment","sdk.Content","sdk.DialogUtils","sdk.DOM","DOMEventListener","ObservableMixin","sdk.Runtime","Type","sdk.UA","sdk.fbt","sdk.feature"],function(e,t,n,r,i,o,a,s,u,c,l,p,d,h,f,m,v){function y(){if(v("dialog_resize_refactor",!1)){var e=c.getViewportInfo();if(e.height&&e.width)return{width:Math.min(e.width,_),height:Math.min(e.height,g)}}return null}t.__markCompiled&&t.__markCompiled();var g=590,_=500,b=h.extend({constructor:function(e,t){this.parent(),this.id=e,this.display=t,this._e2e={},w._dialogs||(w._dialogs={},w._addOrientationHandler()),w._dialogs[e]=this,this.trackEvent("init")},trackEvent:function(e,t){return this._e2e[e]?this:(this._e2e[e]=t||ES("Date","now",!1),"close"==e&&this.inform("e2e:end",this._e2e),this)},trackEvents:function(e){"string"==typeof e&&(e=ES("JSON","parse",!1,e));for(var t in e)e.hasOwnProperty(t)&&this.trackEvent(t,e[t]);return this}},p),w={newInstance:function(e,t){return new b(e,t)},_dialogs:null,_lastYOffset:0,_overlayListeners:[],_loaderEl:null,_overlayEl:null,_stack:[],_active:null,_forceTabletStyle:null,_closeOnOverlayTap:null,_positionDialogAtTopWhenPortrait:null,get:function(e){return w._dialogs[e]},_findRoot:function(e){for(;e;){if(c.containsCss(e,"fb_dialog"))return e;e=e.parentNode}},_createWWWLoader:function(e){return e=e||460,w.create({content:'<div class="dialog_title">'+'  <a id="fb_dialog_loader_close">    <div class="fb_dialog_close_icon"></div>  </a>  <span>Facebook</span>  <div style="clear:both;"></div></div><div class="dialog_content"></div><div class="dialog_footer"></div>',width:e})},_createMobileLoader:function(){var e;return e=f.nativeApp()?'<div class="dialog_header"></div>':w.isTabletStyle()?'<div class="overlayLoader">'+'<div id="fb_dialog_loader_spinner"></div><a id="fb_dialog_loader_close" href="#">'+m._("Atcelt")+"</a></div>":'<div class="dialog_header">'+'<table>  <tbody>    <tr>      <td class="header_left">        <label class="touchable_button">          <input type="submit" value="'+m._("Atcelt")+'"            id="fb_dialog_loader_close"/>        </label>      </td>      <td class="header_center">        <div>         '+m._("Ielādē...")+'        </div>      </td>      <td class="header_right">      </td>    </tr>  </tbody></table></div>',w.create({classes:"loading"+(w.isTabletStyle()?" centered":""),content:e})},_setDialogOverlayStyle:function(){u.applyScreenDimensions(w._overlayEl)},_showTabletOverlay:function(e){if(w.isTabletStyle()){if(w._overlayEl||(w._overlayEl=u.setupNewDarkOverlay(),s.append(w._overlayEl,null)),w._closeOnOverlayTap){var t=u.addDoubleClickAction(w._overlayEl,ES(e,"bind",!0,this),5e3);w._overlayListeners.push(t)}w._overlayEl.className=""}},_hideTabletOverlay:function(){w.isTabletStyle()&&(w._overlayEl.className="hidden",ES(w._overlayListeners,"forEach",!0,function(e){return e.remove()}),w._overlayListeners=[])},showLoader:function(e,t){e||(e=function(){});var n=function(){w._hideLoader(),u.onDialogHideCleanup(w.isTabletStyle()),w._hideTabletOverlay(),e()};w._showTabletOverlay(n),w._loaderEl||(w._loaderEl=w._findRoot(f.mobile()?w._createMobileLoader():w._createWWWLoader(t)));var r=document.getElementById("fb_dialog_loader_close");if(r){c.removeCss(r,"fb_hidden");var i=l.add(r,"click",n);w._overlayListeners.push(i)}w._makeActive(w._loaderEl)},setCloseOnOverlayTap:function(e){w._closeOnOverlayTap=!!e},setPositionDialogAtTopWhenPortrait:function(e){w._positionDialogAtTopWhenPortrait=!!e},_hideLoader:function(){w._loaderEl&&w._loaderEl==w._active&&(w._loaderEl.style.top="-10000px")},_makeActive:function(e){w._setDialogSizes(),w._lowerActive(),w._active=e,d.isEnvironment(d.ENVIRONMENTS.CANVAS)&&a.getPageInfo(function(e){w._centerActive(e)}),w._centerActive()},_lowerActive:function(){w._active&&(w._active.style.top="-10000px",w._active=null)},_removeStacked:function(e){w._stack=ES(w._stack,"filter",!0,function(t){return t!=e})},_centerActive:function(e){var t=w._active;t&&(w._positionDialogAtTopWhenPortrait&&u.isOrientationPotrait()?u.setDialogPositionToTop(t,w.isTabletStyle(),e):u.setDialogPositionToCenter(t,w.isTabletStyle(),e))},_setDialogSizes:function(){var e=!(arguments.length<=0||arguments[0]===undefined)&&arguments[0];if(f.mobile())for(var t in w._dialogs)if(w._dialogs.hasOwnProperty(t)){var n=document.getElementById(t);n&&(n.style.width=w.getDefaultSize().width+"px",e||(n.style.height=w.getDefaultSize().height+"px"))}},getDefaultSize:function(){if(f.mobile()){var e=y();if(e)return c.getViewportInfo().width<=e.width&&(e.width=c.getViewportInfo().width-30),c.getViewportInfo().height<=e.height&&(e.height=c.getViewportInfo().height-30),e;if(f.ipad())return{width:_,height:g};if(f.android())return{width:screen.availWidth,height:screen.availHeight};var t=window.innerWidth,n=window.innerHeight,r=t/n>1.2;return{width:t,height:Math.max(n,r?screen.width:screen.height)}}return{width:575,height:240}},_handleOrientationChange:function(){var e=v("dialog_resize_refactor",!1)?c.getViewportInfo().width:screen.availWidth;if(w._availScreenWidth=e,w.isTabletStyle())w._setDialogSizes(!0),w._centerActive(),w._setDialogOverlayStyle();else{var t=w.getDefaultSize().width;for(var n in w._dialogs)if(w._dialogs.hasOwnProperty(n)){var r=document.getElementById(n);r&&(r.style.width=t+"px")}}},_addOrientationHandler:function(){if(!f.mobile())return null;w._availScreenWidth=v("dialog_resize_refactor",!1)?c.getViewportInfo().width:screen.availWidth,u.addMobileOrientationChangeAction(w._handleOrientationChange)},create:function(e){var t=u.setupNewDialog(e);return s.append(t.dialogElement),e.visible&&w.show(t.dialogElement),"object"==typeof e.styles&&ES("Object","assign",!1,t.dialogElement.style,e.styles),t.contentRoot},show:function(e){var t=w._findRoot(e);t&&(w._removeStacked(t),w._hideLoader(),w._makeActive(t),w._stack.push(t),"fbCallID"in e&&w.get(e.fbCallID).inform("iframe_show").trackEvent("show"))},hide:function(e){var t=w._findRoot(e);w._hideLoader(),t==w._active&&(w._lowerActive(),u.onDialogHideCleanup(w.isTabletStyle()),w._hideTabletOverlay(),"fbCallID"in e&&w.get(e.fbCallID).inform("iframe_hide").trackEvent("hide"))},remove:function(e){if(e=w._findRoot(e)){var t=w._active==e;w._removeStacked(e),t?(w._hideLoader(),w._stack.length>0?w.show(w._stack.pop()):(w._lowerActive(),u.onDialogHideCleanup(w.isTabletStyle()),w._hideTabletOverlay())):null===w._active&&w._stack.length>0&&w.show(w._stack.pop()),setTimeout(function(){e.parentNode.removeChild(e)},3e3)}},isActive:function(e){var t=w._findRoot(e);return t&&t===w._active},setForceTabletStyle:function(e){w._forceTabletStyle=!!e},isTabletStyle:function(){var e;if(!f.mobile())return!1;if(w._forceTabletStyle)return!0;if(v("dialog_resize_refactor",!1)){var t=y();e=t&&(t.height>=g||t.width>=_)}else e=!!f.ipad();return e}};i.exports=w},null),__d("sdk.Frictionless",["sdk.Auth","sdk.api","sdk.Event","sdk.Dialog"],function(e,t,n,r,i,o,a,s,u,c){t.__markCompiled&&t.__markCompiled();var l={_allowedRecipients:{},_useFrictionless:!1,_updateRecipients:function(){l._allowedRecipients={},s("/me/apprequestformerrecipients",function(e){e&&!e.error&&ES(e.data,"forEach",!0,function(e){l._allowedRecipients[e.recipient_id]=!0})})},init:function(){l._useFrictionless=!0,a.getLoginStatus(function(e){"connected"==e.status&&l._updateRecipients()}),u.subscribe("auth.login",function(e){e.authResponse&&l._updateRecipients()})},_processRequestResponse:function(e,t){return function(n){var r=n&&n.updated_frictionless;l._useFrictionless&&r&&l._updateRecipients(),n&&(!t&&n.frictionless&&(c._hideLoader(),c._restoreBodyPosition(),c._hideIPadOverlay()),delete n.frictionless,delete n.updated_frictionless),e&&e(n)}},isAllowed:function(e){if(!e)return!1;if("number"==typeof e)return e in l._allowedRecipients;"string"==typeof e&&(e=e.split(",")),e=ES(e,"map",!0,function(e){return ES(String(e),"trim",!0)});var t=!0,n=!1;return ES(e,"forEach",!0,function(e){t=t&&e in l._allowedRecipients,n=!0}),t&&n}};u.subscribe("init:post",function(e){e.frictionlessRequests&&l.init()}),i.exports=l},null),__d("sdk.Native",["Log","sdk.UA"],function(e,t,n,r,i,o,a,s){t.__markCompiled&&t.__markCompiled();var u="fbNativeReady",c={onready:function(e){if(s.nativeApp())if(window.__fbNative&&!this.nativeReady&&ES("Object","assign",!1,this,window.__fbNative),this.nativeReady)e();else{window.addEventListener(u,function t(n){window.removeEventListener(u,t),this.onready(e)},!1)}else a.error("FB.Native.onready only works when the page is rendered "+"in a WebView of the native Facebook app. Test if this is the case calling FB.UA.nativeApp()")}};i.exports=c},null),__d("sdk.openMessenger",["sdk.UA"],function(e,t,n,r,i,o,a){"use strict";t.__markCompiled&&t.__markCompiled();var s="https://itunes.apple.com/us/app/messenger/id454638411",u="https://play.google.com/store/apps/details?id=com.facebook.orca",c=3e3;i.exports=function(e){var t=void 0,n=void 0,r=e.link,i=e.app_id;a.android()?(t="intent://share/#Intent;"+"package=com.facebook.orca;scheme=fb-messenger;S.android.intent.extra.TEXT="+encodeURIComponent(r)+";S.trigger=send_plugin;",i&&(t+="S.platform_app_id="+encodeURIComponent(i)+";"),t+="end",n=u):(t="fb-messenger://share?link="+encodeURIComponent(r),i&&(t+="&app_id="+encodeURIComponent(i)),n=s),setTimeout(function(){window.location.href=n},c),window.location.href=t}},null),__d("sdk.UIServer",["sdk.Auth","sdk.Content","sdk.DOM","sdk.Dialog","sdk.Event","sdk.Frictionless","Log","sdk.Native","QueryString","sdk.RPC","sdk.Runtime","JSSDKConfig","sdk.UA","UrlMap","sdk.XD","createObjectFrom","sdk.feature","sdk.fbt","flattenObject","sdk.getContextType","guid","insertIframe","sdk.openMessenger","resolveURI"],function(e,t,n,r,i,o,a,s,u,c,l,p,d,h,f,m,v,y,g,_,b,w,k,x,C,S,E,T,O,P){function M(e,t){return I[t]=!0,function(n){delete I[t],e(n)}}function A(e){return!!k("should_force_single_dialog_instance",!0)&&("pay"===e.method.toLowerCase()&&"async"===e.display)}t.__markCompiled&&t.__markCompiled();var D={transform:function(e){return"touch"===e.params.display&&R.canIframe(e.params)&&window.postMessage?(e.params.channel=R._xdChannelHandler(e.id,"parent"),g.nativeApp()||(e.params.in_iframe=1),e):R.genericTransform(e)},getXdRelation:function(e){return"touch"===e.display&&window.postMessage&&e.in_iframe?"parent":R.getXdRelation(e)}},I={},R={Methods:{"stream.share":{size:{width:670,height:340},url:"sharer.php",transform:function(e){return e.params.u||(e.params.u=window.location.toString()),e.params.display="popup",e}},apprequests:{transform:function(e){return e=D.transform(e),e.params.frictionless=p&&p._useFrictionless,e.params.frictionless&&(p.isAllowed(e.params.to)&&(e.params.display="iframe",e.params.in_iframe=!0,e.hideLoader=!0),e.cb=p._processRequestResponse(e.cb,e.hideLoader)),e.closeIcon=!1,e},getXdRelation:D.getXdRelation},"permissions.oauth":{url:"dialog/oauth",size:{width:g.mobile()?null:475,height:g.mobile()?null:183},transform:function(e){if(v.getClientID()){if(a.getAuthResponse()&&!e.params.scope&&!e.params.auth_type)return d.error("FB.login() called when user is already connected."),void(e.cb&&e.cb({status:v.getLoginStatus(),authResponse:a.getAuthResponse()}));var t=e.cb,n=e.id;delete e.cb;var r=ES("Object","keys",!1,ES("Object","assign",!1,e.params.response_type?w(e.params.response_type.split(",")):{},{token:!0,signed_request:!0})).join(",");return"async"===e.params.display?(ES("Object","assign",!1,e.params,{client_id:v.getClientID(),origin:S(),response_type:r,domain:location.hostname}),e.cb=a.xdResponseWrapper(t,a.getAuthResponse(),"permissions.oauth")):ES("Object","assign",!1,e.params,{client_id:v.getClientID(),redirect_uri:P(R.xdHandler(t,n,"opener",a.getAuthResponse(),"permissions.oauth")),origin:S(),response_type:r,domain:location.hostname}),e}d.error("FB.login() called before FB.init().")}},"auth.logout":{url:"logout.php",transform:function(e){if(v.getClientID()){if(a.getAuthResponse())return e.params.next=R.xdHandler(e.cb,e.id,"parent",a.getAuthResponse(),"logout"),e;d.error("FB.logout() called without an access token.")}else d.error("FB.logout() called before calling FB.init().")}},"login.status":{url:"dialog/oauth",transform:function(e){var t=e.cb,n=e.id;return delete e.cb,ES("Object","assign",!1,e.params,{client_id:v.getClientID(),redirect_uri:R.xdHandler(t,n,"parent",a.getAuthResponse(),"login_status"),origin:S(),response_type:"token,signed_request,code",domain:location.hostname}),e}},pay:{size:{width:555,height:120},connectDisplay:"popup"},live_broadcast:{transform:function(e){return"create"===e.params.phase&&(e.size={width:480,height:280}),"publish"===e.params.phase&&(e.size={width:772,height:540}),e},require_access_token:!0}},_loadedNodes:{},_defaultCb:{},_resultToken:'"xxRESULTTOKENxx"',genericTransform:function(e){return"dialog"!=e.params.display&&"iframe"!=e.params.display||ES("Object","assign",!1,e.params,{display:"iframe",channel:R._xdChannelHandler(e.id,"parent.parent")},!0),e},checkOauthDisplay:function(e){var t=e.scope||e.perms||v.getScope();if(!t)return e.display;for(var n=t.split(/\s|,/g),r=0;r<n.length;r++)if(!y.initSitevars.iframePermissions[ES(n[r],"trim",!0)])return"popup";return e.display},prepareCall:function(e,t){var n=e.method.toLowerCase(),r=R.Methods.hasOwnProperty(n)?ES("Object","assign",!1,{},R.Methods[n]):{},i=E(),o=v.getSecure()||"auth.status"!==n&&"login.status"!=n;if(ES("Object","assign",!1,e,{app_id:v.getClientID(),locale:v.getLocale(),sdk:"joey",access_token:o&&v.getAccessToken()||undefined}),"share"!==n&&"share_open_graph"!==n||(e.mobile_iframe=g.mobile()&&(e.mobile_iframe||e.iframe_test),e.mobile_iframe&&(r=ES("Object","assign",!1,{},D))),e.display=R.getDisplayMode(r,e),r.url||(r.url="dialog/"+n),"dialog/oauth"!=r.url&&"dialog/permissions.request"!=r.url||!("iframe"==e.display||"touch"==e.display&&e.in_iframe)||(e.display=R.checkOauthDisplay(e)),"popup"!=e.display||r.require_access_token||delete e.access_token,v.getIsVersioned()&&"dialog/"===r.url.substring(0,7)&&(r.url=e.version+"/"+r.url),A(e)){if(I[n]){var a='Dialog "'+n+'" is trying to run more than once.';return d.warn(a),void t({error_code:-100,error_message:a})}t=M(t,n)}var s={cb:t,id:i,size:r.size||R.getDefaultSize(),url:_.resolve("touch"==e.display?"m":"www",o)+"/"+r.url,params:e,name:n,dialog:c.newInstance(i,e.display)},u=r.transform?r.transform:R.genericTransform;if(!u||(s=u(s))){"touch"===e.display&&e.in_iframe&&(s.params.parent_height=window.innerHeight);var l=(r.getXdRelation||R.getXdRelation)(s.params);return s.id in R._defaultCb||"next"in s.params||"redirect_uri"in s.params||(s.params.next=R._xdResult(s.cb,s.id,l,!0)),"parent"===l&&ES("Object","assign",!1,s.params,{channel_url:R._xdChannelHandler(i,"parent.parent")},!0),s=R.prepareParams(s)}},prepareParams:function(e){"async"!==e.params.display&&delete e.params.method,e.params=C(e.params);var t=f.encode(e.params);return!g.nativeApp()&&R.urlTooLongForIE(e.url+"?"+t)?e.post=!0:t&&(e.url+="?"+t),e},urlTooLongForIE:function(e){return g.ie()&&g.ie()<=8&&e.length>2048},getDisplayMode:function(e,t){if("hidden"===t.display||"none"===t.display||"native"===t.display)return t.display;var n=v.isEnvironment(v.ENVIRONMENTS.CANVAS)||v.isEnvironment(v.ENVIRONMENTS.PAGETAB);return n&&!t.display?"async":g.mobile()||"touch"===t.display?"touch":"iframe"!=t.display&&"dialog"!=t.display||R.canIframe(t)?e.connectDisplay&&!n?e.connectDisplay:t.display||(R.canIframe(t)?"dialog":"popup"):(d.error('"dialog" mode can only be used when the user is connected.'),"popup")},canIframe:function(e){return!!v.getAccessToken()||!(!g.mobile()||!v.getLoggedIntoFacebook())&&!!e.mobile_iframe},getXdRelation:function(e){var t=e.display;return"popup"===t||"touch"===t?"opener":"dialog"===t||"iframe"===t||"hidden"===t||"none"===t?"parent":"async"===t?"parent.frames["+window.name+"]":void 0},popup:function(e){var t=void 0!==window.screenX?window.screenX:window.screenLeft,n=void 0!==window.screenY?window.screenY:window.screenTop,r=void 0!==window.outerWidth?window.outerWidth:document.documentElement.clientWidth,i=void 0!==window.outerHeight?window.outerHeight:document.documentElement.clientHeight-22,o=g.mobile()?null:e.size.width,a=g.mobile()?null:e.size.height,u=t<0?window.screen.width+t:t,c=parseInt(u+(r-o)/2,10),l=parseInt(n+(i-a)/2.5,10),p=[];null!==o&&p.push("width="+o),null!==a&&p.push("height="+a),p.push("left="+c),p.push("top="+l),p.push("scrollbars=1"),"permissions.request"!=e.name&&"permissions.oauth"!=e.name||p.push("location=1,toolbar=0"),p=p.join(",");var d;e.post?(d=window.open("about:blank",e.id,p),d&&(R.setLoadedNode(e,d,"popup"),s.submitToTarget({url:e.url,target:e.id,params:e.params}))):(d=window.open(e.url,e.id,p),d&&R.setLoadedNode(e,d,"popup")),d&&e.id in R._defaultCb&&R._popupMonitor()},setLoadedNode:function(e,t,n){"iframe"===n&&(t.fbCallID=e.id),t={node:t,type:n,fbCallID:e.id},R._loadedNodes[e.id]=t},getLoadedNode:function(e){var t="object"==typeof e?e.id:e,n=R._loadedNodes[t];return n?n.node:null},hidden:function(e){e.className="FB_UI_Hidden",e.root=s.appendHidden(""),R._insertIframe(e)},iframe:function(e){e.className="FB_UI_Dialog",e.params.mobile_iframe&&(c.setForceTabletStyle(!0),c.setCloseOnOverlayTap(!0),c.setPositionDialogAtTopWhenPortrait(!0));var t=function(){var t=ES("JSON","stringify",!1,{error_code:4201,error_message:x._("User canceled the Dialog flow")});R._triggerDefault(e.id,t)},n={onClose:t,closeIcon:e.closeIcon===undefined||e.closeIcon,classes:c.isTabletStyle()?"centered":""};e.params.mobile_iframe&&(n.styles={"border-radius":"8px"}),e.root=c.create(n),e.hideLoader||c.showLoader(t,e.size.width),u.addCss(e.root,"fb_dialog_iframe"),R._insertIframe(e)},touch:function(e){e.params&&e.params.in_iframe?e.ui_created?c.showLoader(function(){R._triggerDefault(e.id,null)},0):R.iframe(e):g.nativeApp()&&!e.ui_created?(e.frame=e.id,h.onready(function(){R.setLoadedNode(e,h.open(e.url+"#cb="+e.frameName),"native")}),R._popupMonitor()):e.ui_created||R.popup(e)},async:function(e){e.params.redirect_uri=location.protocol+"//"+location.host+location.pathname,delete e.params.access_token,m.remote.showDialog(e.params,function(t){var n=t.result;if(n&&n.e2e){var r=c.get(e.id);r.trackEvents(n.e2e),r.trackEvent("close"),delete n.e2e}e.cb(n)})},native:function(e){O(e.params)},getDefaultSize:function(){return c.getDefaultSize()},_insertIframe:function(e){R._loadedNodes[e.id]=!1;var t=function(t){e.id in R._loadedNodes&&R.setLoadedNode(e,t,"iframe")};T(e.post?{url:"about:blank",root:e.root,className:e.className,width:e.size.width,height:e.size.height,id:e.id,onInsert:t,onload:function(t){s.submitToTarget({url:e.url,target:t.name,params:e.params})}}:{url:e.url,root:e.root,className:e.className,width:e.size.width,height:e.size.height,id:e.id,name:e.frameName,onInsert:t})},_handleResizeMessage:function(e,t){var n=R.getLoadedNode(e);n&&(t.height&&(n.style.height=t.height+"px"),t.width&&(n.style.width=t.width+"px"),b.inform("resize.ack",t||{},"parent.frames["+n.name+"]"),c.isActive(n)?c._centerActive():c.show(n))},_triggerDefault:function(e,t){var n={frame:e};t&&(n.result=t),R._xdRecv(n,R._defaultCb[e]||function(){})},_popupMonitor:function(){var e;for(var t in R._loadedNodes)if(R._loadedNodes.hasOwnProperty(t)&&t in R._defaultCb){var n=R._loadedNodes[t];if("popup"!=n.type&&"native"!=n.type)continue;var r=n.node;try{r.closed?R._triggerDefault(t,null):e=!0}catch(e){}}e&&!R._popupInterval?R._popupInterval=setInterval(R._popupMonitor,100):!e&&R._popupInterval&&(clearInterval(R._popupInterval),R._popupInterval=null)},_xdChannelHandler:function(e,t){return b.handler(function(t){var n=R.getLoadedNode(e);if(n)if("resize"==t.type)R._handleResizeMessage(e,t);else if("hide"==t.type)c.hide(n);else if("rendered"==t.type){var r=c._findRoot(n);c.show(r)}else"fireevent"==t.type&&l.fire(t.event)},t,!0,null)},_xdNextHandler:function(e,t,n,r){return r&&(R._defaultCb[t]=e),b.handler(function(t){R._xdRecv(t,e)},n)+"&frame="+t},_xdRecv:function(e,t){var n=R.getLoadedNode(e.frame);if(n)if(n.close)try{n.close(),/iPhone.*Version\/(5|6)/.test(navigator.userAgent)&&"5"!==RegExp.$1&&window.focus(),R._popupCount--}catch(e){}else u.containsCss(n,"FB_UI_Hidden")?setTimeout(function(){n.parentNode.parentNode.removeChild(n.parentNode)},3e3):u.containsCss(n,"FB_UI_Dialog")&&c.remove(n);if(delete R._loadedNodes[e.frame],delete R._defaultCb[e.frame],e.e2e){var r=c.get(e.frame);r.trackEvents(e.e2e),r.trackEvent("close"),delete e.e2e}t(e)},_xdResult:function(e,t,n,r){return R._xdNextHandler(function(t){e&&e(t.result&&t.result!=R._resultToken&&ES("JSON","parse",!1,t.result))},t,n,r)+"&result="+encodeURIComponent(R._resultToken)},xdHandler:function(e,t,n,r,i){return R._xdNextHandler(a.xdResponseWrapper(e,r,i),t,n,!0)}};m.stub("showDialog"),i.exports=R},null),__d("sdk.ui",["Assert","sdk.Impressions","Log","sdk.PlatformVersioning","sdk.Runtime","sdk.UIServer","sdk.feature"],function(e,t,n,r,i,o,a,s,u,c,l,p,d){t.__markCompiled&&t.__markCompiled(),i.exports=function(e,t){if(a.isObject(e),a.maybeFunction(t),l.getIsVersioned()&&(c.assertVersionIsSet(),e.version?c.assertValidVersion(e.version):e.version=l.getVersion()),!(e=ES("Object","assign",!1,{},e)).method)return u.error('"method" is a required parameter for FB.ui().'),null;"pay.prompt"==e.method&&(e.method="pay");var n=e.method;if(e.redirect_uri&&(u.warn("When using FB.ui, you should not specify a redirect_uri."),delete e.redirect_uri),"permissions.request"!=n&&"permissions.oauth"!=n||"iframe"!=e.display&&"dialog"!=e.display||(e.display=p.checkOauthDisplay(e)),"native"===e.display&&"send"!==n)return u.error('display type "native" not supported'),null;var r=d("e2e_tracking",!0);r&&(e.e2e={});var i=p.prepareCall(e,t||function(){});if(!i)return null;var o=i.params.display;"dialog"===o?o="iframe":"none"===o&&(o="hidden");var h=p[o];return h?(r&&i.dialog.subscribe("e2e:end",function(e){e.method=n,e.display=o,u.debug("e2e: %s",ES("JSON","stringify",!1,e)),s.log(114,{payload:e})}),h(i),i.dialog):(u.error('"display" must be one of "popup", '+'"dialog", "iframe", "touch", "async", "hidden", or "none"'),null)}},null),__d("legacy:fb.auth",["sdk.Auth","sdk.Cookie","sdk.Event","FB","Log","sdk.Runtime","sdk.SignedRequest","sdk.ui"],function(e,t,n,r,i,o,a,s,u,c,l,p,d,h){t.__markCompiled&&t.__markCompiled(),c.provide("",{getLoginStatus:function(){return a.getLoginStatus.apply(a,arguments)},getAuthResponse:function(){return a.getAuthResponse()},getAccessToken:function(){return p.getAccessToken()||null},getUserID:function(){return p.getUserID()||p.getCookieUserID()},login:function(e,t){t&&t.perms&&!t.scope&&(t.scope=t.perms,delete t.perms,l.warn("OAuth2 specification states that 'perms' "+"should now be called 'scope'.  Please update."));var n=p.isEnvironment(p.ENVIRONMENTS.CANVAS)||p.isEnvironment(p.ENVIRONMENTS.PAGETAB);h(babelHelpers.extends({method:"permissions.oauth",display:n?"async":"popup",domain:location.hostname},t||{}),e)},logout:function(e){h({method:"auth.logout",display:"hidden"},e)}}),a.subscribe("logout",ES(u.fire,"bind",!0,u,"auth.logout")),a.subscribe("login",ES(u.fire,"bind",!0,u,"auth.login")),a.subscribe("authresponse.change",ES(u.fire,"bind",!0,u,"auth.authResponseChange")),a.subscribe("status.change",ES(u.fire,"bind",!0,u,"auth.statusChange")),u.subscribe("init:post",function(e){if(e.status&&a.getLoginStatus(),p.getClientID())if(e.authResponse)a.setAuthResponse(e.authResponse,"connected");else if(p.getUseCookie()){var t,n=s.loadSignedRequest();if(n){try{t=d.parse(n)}catch(e){s.clearSignedRequestCookie()}t&&t.user_id&&p.setCookieUserID(t.user_id)}s.loadMeta()}})},3),__d("sdk.Canvas.IframeHandling",["DOMWrapper","sdk.RPC"],function(e,t,n,r,i,o,a,s){function u(){var e=a.getWindow().document,t=e.body,n=e.documentElement,r=Math.max(t.offsetTop,0),i=Math.max(n.offsetTop,0),o=t.scrollHeight+r,s=t.offsetHeight+r,u=n.scrollHeight+i,c=n.offsetHeight+i;return Math.max(o,s,u,c)}function c(e){"object"!=typeof e&&(e={});var t=0,n=0;if(e.height||(e.height=u(),t=16,n=4),e.frame||(e.frame=window.name||"iframe_canvas"),l){var r=l.height,i=e.height-r;if(i<=n&&i>=-t)return!1}return l=e,s.remote.setSize(e),!0}t.__markCompiled&&t.__markCompiled();var l,p=null;s.stub("setSize");var d={setSize:c,setAutoGrow:function(e,t){t===undefined&&"number"==typeof e&&(t=e,e=!0),e||e===undefined?(null===p&&(p=setInterval(function(){c()},t||100)),c()):null!==p&&(clearInterval(p),p=null)}};i.exports=d},null),__d("sdk.Canvas.Navigation",["sdk.RPC"],function(e,t,n,r,i,o,a){t.__markCompiled&&t.__markCompiled(),a.stub("setNavigationEnabled");var s={setUrlHandler:function(e){a.local.navigate=function(t){e({path:t})},a.remote.setNavigationEnabled(!0)}};i.exports=s},null),__d("sdk.Canvas.Plugin",["Log","sdk.RPC","sdk.Runtime","sdk.UA","sdk.api"],function(e,t,n,r,i,o,a,s,u,c,l){function p(e){e._hideunity_savedstyle={},e._hideunity_savedstyle.left=e.style.left,e._hideunity_savedstyle.position=e.style.position,e._hideunity_savedstyle.width=e.style.width,e._hideunity_savedstyle.height=e.style.height,e.style.left="-10000px",e.style.position="absolute",e.style.width="1px",e.style.height="1px"}function d(e){e._hideunity_savedstyle&&(e.style.left=e._hideunity_savedstyle.left,e.style.position=e._hideunity_savedstyle.position,e.style.width=e._hideunity_savedstyle.width,e.style.height=e._hideunity_savedstyle.height)}function h(e){e._old_visibility=e.style.visibility,e.style.visibility="hidden"}function f(e){e.style.visibility=e._old_visibility||"",delete e._old_visibility}function m(e){if(!("application/x-shockwave-flash"===(e.type?e.type.toLowerCase():null)||e.classid&&e.classid.toUpperCase()==g))return!1;var t=/opaque|transparent/i;if(t.test(e.getAttribute("wmode")))return!1;for(var n=0;n<e.childNodes.length;n++){var r=e.childNodes[n];if(/param/i.test(r.nodeName)&&/wmode/i.test(r.name)&&t.test(r.value))return!1}return!0}function v(e){return"application/vnd.unity"===(e.type?e.type.toLowerCase():null)||e.classid&&e.classid.toUpperCase()==_}function y(e){var t=ES("Array","from",!1,window.document.getElementsByTagName("object"));t=t.concat(ES("Array","from",!1,window.document.getElementsByTagName("embed")));var n=!1,r=!1;if(ES(t,"forEach",!0,function(t){var i=m(t),o=k&&v(t);if(i||o){n=n||i,r=r||o;var s=function(){"opened"===e.state?i?h(t):p(t):i?f(t):d(t)};if(b){a.info("Calling developer specified callback");var u={state:e.state,elem:t};b(u),setTimeout(s,200)}else s()}}),Math.random()<=.001){var i={unity:r,flash:n};l(u.getClientID()+"/occludespopups","post",i)}}t.__markCompiled&&t.__markCompiled();var g="CLSID:D27CDB6E-AE6D-11CF-96B8-444553540000",_="CLSID:444785F1-DE89-4295-863A-D46C3A781394",b=null,w=c.osx()&&c.osx.getVersionParts(),k=!(w&&w[0]>10&&w[1]>10&&(c.chrome()>=31||c.webkit()>=537.71||c.firefox()>=25));s.local.hidePluginObjects=function(){a.info("hidePluginObjects called"),y({state:"opened"})},s.local.showPluginObjects=function(){a.info("showPluginObjects called"),y({state:"closed"})},s.local.showFlashObjects=s.local.showPluginObjects,s.local.hideFlashObjects=s.local.hidePluginObjects;var x={_setHidePluginCallback:function(e){b=e},hidePluginElement:function(){h(),p()},showPluginElement:function(){f(),d()}};i.exports=x},null),__d("sdk.Canvas.Tti",["sdk.RPC","sdk.Runtime"],function(e,t,n,r,i,o,a,s){function u(e,t){var n=[{appId:s.getClientID(),time:ES("Date","now",!1),name:t}];e&&n.push(function(t){e(t.result)}),a.remote.logTtiMessage.apply(null,n)}t.__markCompiled&&t.__markCompiled(),a.stub("logTtiMessage");var c={setDoneLoading:function(e){u(e,"RecordIframeAppTti")},startTimer:function(){u(null,"StartIframeAppTtiTimer")},stopTimer:function(e){u(e,"StopIframeAppTtiTimer")}};i.exports=c},null),__d("legacy:fb.canvas",["Assert","sdk.Canvas.Environment","sdk.Event","FB","sdk.Canvas.IframeHandling","sdk.Canvas.Navigation","sdk.Canvas.Plugin","sdk.RPC","sdk.Runtime","sdk.Canvas.Tti"],function(e,t,n,r,i,o,a,s,u,c,l,p,d,h,f,m){t.__markCompiled&&t.__markCompiled(),c.provide("Canvas",{setSize:function(e){return a.maybeObject(e,"Invalid argument"),l.setSize.apply(null,arguments)},setAutoGrow:function(){return l.setAutoGrow.apply(null,arguments)},getPageInfo:function(e){return a.isFunction(e,"Invalid argument"),s.getPageInfo.apply(null,arguments)},scrollTo:function(e,t){return a.maybeNumber(e,"Invalid argument"),a.maybeNumber(t,"Invalid argument"),s.scrollTo.apply(null,arguments)},setDoneLoading:function(e){return a.maybeFunction(e,"Invalid argument"),m.setDoneLoading.apply(null,arguments)},startTimer:function(){return m.startTimer.apply(null,arguments)},stopTimer:function(e){return a.maybeFunction(e,"Invalid argument"),m.stopTimer.apply(null,arguments)},getHash:function(e){return a.isFunction(e,"Invalid argument"),p.getHash.apply(null,arguments)},setHash:function(e){return a.isString(e,"Invalid argument"),p.setHash.apply(null,arguments)},setUrlHandler:function(e){return a.isFunction(e,"Invalid argument"),p.setUrlHandler.apply(null,arguments)}}),h.local.fireEvent=ES(u.fire,"bind",!0,u),u.subscribe("init:post",function(e){f.isEnvironment(f.ENVIRONMENTS.CANVAS)&&(a.isTrue(!e.hideFlashCallback||!e.hidePluginCallback,"cannot specify deprecated hideFlashCallback and new hidePluginCallback"),d._setHidePluginCallback(e.hidePluginCallback||e.hideFlashCallback))})},3),__d("sdk.Canvas.Prefetcher",["JSSDKCanvasPrefetcherConfig","sdk.Runtime","sdk.api"],function(e,t,n,r,i,o,a,s,u){function c(){var e={object:"data",link:"href",script:"src"};h==l.AUTOMATIC&&ES(ES("Object","keys",!1,e),"forEach",!0,function(t){var n=e[t];ES(ES("Array","from",!1,document.getElementsByTagName(t)),"forEach",!0,function(e){e[n]&&f.push(e[n])})}),0!==f.length&&(u(s.getClientID()+"/staticresources","post",{urls:ES("JSON","stringify",!1,f),is_https:"https:"===location.protocol}),f=[])}t.__markCompiled&&t.__markCompiled();var l={AUTOMATIC:0,MANUAL:1},p=a.sampleRate,d=a.blacklist,h=l.AUTOMATIC,f=[],m={COLLECT_AUTOMATIC:l.AUTOMATIC,COLLECT_MANUAL:l.MANUAL,addStaticResource:function(e){f.push(e)},setCollectionMode:function(e){h=e},_maybeSample:function(){s.isEnvironment(s.ENVIRONMENTS.CANVAS)&&s.getClientID()&&p&&(Math.random()>1/p||"*"==d||~ES(d,"indexOf",!0,s.getClientID())||setTimeout(c,3e4))}};i.exports=m},null),__d("legacy:fb.canvas.prefetcher",["FB","sdk.Canvas.Prefetcher","sdk.Event","sdk.Runtime"],function(e,t,n,r,i,o,a,s,u,c){t.__markCompiled&&t.__markCompiled(),a.provide("Canvas.Prefetcher",s),u.subscribe("init:post",function(e){c.isEnvironment(c.ENVIRONMENTS.CANVAS)&&s._maybeSample()})},3),__d("legacy:fb.canvas.presence",["sdk.RPC","sdk.Event"],function(e,t,n,r,i,o,a,s){t.__markCompiled&&t.__markCompiled(),s.subscribe(s.SUBSCRIBE,function(e,t){"canvas.friendsOnlineUpdated"==e&&1===t.length&&a.remote.useFriendsOnline(!0)}),s.subscribe(s.UNSUBSCRIBE,function(e,t){"canvas.friendsOnlineUpdated"==e&&0===t.length&&a.remote.useFriendsOnline(!1)}),a.stub("useFriendsOnline")},3),__d("legacy:fb.canvas.syncrequests",["sdk.RPC","sdk.Event"],function(e,t,n,r,i,o,a,s){function u(e,t){"canvas.syncRequestUpdated"==e&&(a.remote.initPendingSyncRequests(),s.unsubscribe(s.SUBSCRIBE,u))}t.__markCompiled&&t.__markCompiled(),a.stub("initPendingSyncRequests"),s.subscribe(s.SUBSCRIBE,u)},3),__d("legacy:fb.event",["FB","sdk.Event","sdk.Runtime","sdk.Scribe","sdk.feature"],function(e,t,n,r,i,o,a,s,u,c,l){t.__markCompiled&&t.__markCompiled();var p=[],d=null,h=l("event_subscriptions_log",!1);a.provide("Event",{subscribe:function(e,t){return h&&(p.push(e),d||(d=setTimeout(function(){c.log("jssdk_error",{appId:u.getClientID(),error:"EVENT_SUBSCRIPTIONS_LOG",extra:{line:0,name:"EVENT_SUBSCRIPTIONS_LOG",script:"N/A",stack:"N/A",message:p.sort().join(",")}}),p.length=0,d=null},h))),s.subscribe(e,t)},unsubscribe:ES(s.unsubscribe,"bind",!0,s)})},3),__d("legacy:fb.frictionless",["FB","sdk.Frictionless"],function(e,t,n,r,i,o,a,s){t.__markCompiled&&t.__markCompiled(),a.provide("Frictionless",s)},3),__d("sdk.MBasicInitializer",["sdk.DOM","sdk.Runtime","sdk.UA","sdk.URI","UrlMap","sdk.fbt","sdk.feature"],function(e,t,n,r,i,o,a,s,u,c,l,p,d){t.__markCompiled&&t.__markCompiled();var h=function(){function e(e){if(e){var t=e.parentNode;if(t){var n=a.getAttr(e,"href")||window.location.href,r=new c(l.resolve("m"));r.setPath("/dialog/share"),r.addQueryData("href",encodeURI(n)),r.addQueryData("app_id",s.getClientID()),r.addQueryData("mbasic_link",1);var i=document.createElement("a");i.style="display:inline-block; zoom:1;",i.textContent=p._("Share to Facebook"),i.setAttribute("href",r.toString()),i.setAttribute("target","_blank"),t.insertBefore(i,e),t.removeChild(e)}}}d("js_sdk_mbasic_share_plugin_init",!1)&&(ES(ES("Array","from",!1,document.getElementsByTagName("fb:share-button")),"forEach",!0,function(t){return e(t)}),ES(ES("Array","from",!1,document.getElementsByClassName("fb-share-button")),"forEach",!0,function(t){return e(t)}))};i.exports={init:function(){u.mBasic()&&h()}}},null),__d("sdk.init",["sdk.Cookie","sdk.ErrorHandling","sdk.Event","sdk.Impressions","Log","ManagedError","sdk.MBasicInitializer","sdk.PlatformVersioning","QueryString","sdk.Runtime","sdk.UA","sdk.URI","sdk.feature"],function(e,t,n,r,i,o,a,s,u,c,l,p,d,h,f,m,v,y,g){function _(e){return"number"==typeof e&&e>0||"string"==typeof e&&/^[0-9a-f]{21,}$|^[0-9]{1,21}$/.test(e)?e.toString():(l.warn("Invalid App Id: Must be a number or numeric string representing "+"the application id."),null)}function b(e){if(m.getInitialized()&&l.warn("FB.init has already been called - this could indicate a problem"),m.getIsVersioned()){if("[object Object]"!==Object.prototype.toString.call(e))throw new p("Invalid argument");e.authResponse&&l.warn("Setting authResponse is not supported"),e.version||(e.version=new y(location.href).getQueryData().sdk_version),h.assertValidVersion(e.version),m.setVersion(e.version)}else/number|string/.test(typeof e)&&(l.warn("FB.init called with invalid parameters"),e={apiKey:e}),e=ES("Object","assign",!1,{status:!0},e||{});var t=_(e.appId||e.apiKey);null!==t&&m.setClientID(t),"scope"in e&&m.setScope(e.scope),e.cookie&&(m.setUseCookie(!0),"string"==typeof e.cookie&&a.setDomain(e.cookie)),e.kidDirectedSite&&m.setKidDirectedSite(!0),m.setInitialized(!0),g("js_sdk_impression_on_load",!0)&&c.log(115,{}),v.mBasic()&&d.init(),u.fire("init:post",e)}t.__markCompiled&&t.__markCompiled(),setTimeout(function(){var e=/(connect\.facebook\.net|\.facebook\.com\/assets.php).*?#(.*)/;ES(ES("Array","from",!1,fb_fif_window.document.getElementsByTagName("script")),"forEach",!0,function(t){if(t.src){var n=e.exec(t.src);if(n){var r=f.decode(n[2]);for(var i in r)r.hasOwnProperty(i)&&"0"==r[i]&&(r[i]=0);b(r)}}}),window.fbAsyncInit&&!window.fbAsyncInit.hasRun&&(window.fbAsyncInit.hasRun=!0,s.unguard(window.fbAsyncInit)())},0),i.exports=b},null),__d("legacy:fb.init",["FB","sdk.init"],function(e,t,n,r,i,o,a,s){t.__markCompiled&&t.__markCompiled(),a.provide("",{init:s})},3),__d("legacy:fb.ui",["FB","sdk.ui"],function(e,t,n,r,i,o,a,s){t.__markCompiled&&t.__markCompiled(),a.provide("",{ui:s})},3),__d("legacy:fb.versioned-sdk",["sdk.Runtime"],function(e,t,n,r,i,o,a){t.__markCompiled&&t.__markCompiled(),a.setIsVersioned(!0)},3),__d("IframePlugin",["sdk.Auth","sdk.DOM","sdk.Event","Log","ObservableMixin","sdk.PlatformVersioning","QueryString","sdk.Runtime","Type","sdk.UA","sdk.URI","UrlMap","sdk.XD","sdk.createIframe","sdk.feature","guid","resolveURI"],function(e,t,n,r,i,o,a,s,u,c,l,p,d,h,f,m,v,y,g,_,b,w,k){function x(e,t,n){(t||0===t)&&(e.style.width="100%"===t?"100%":t+"px"),(n||0===n)&&(e.style.height=n+"px")}function C(e){return function(t){var n={width:t.width,height:t.height,pluginID:e};u.fire("xfbml.resize",n)}}function S(e,t){return e[t]||e[t.replace(/_/g,"-")]||e[t.replace(/_/g,"")]||e["data-"+t]||e["data-"+t.replace(/_/g,"-")]||e["data-"+t.replace(/_/g,"")]||undefined}function E(e,t,n,r){ES(ES("Object","keys",!1,e),"forEach",!0,function(i){"text"!=e[i]||n[i]||(n[i]=t.textContent||t.innerText||"",t.setAttribute(i,n[i])),r[i]=M[e[i]](S(n,i))})}function T(e){return"100%"===e?"100%":e||"0"===e||0===e?parseInt(e,10):undefined}function O(e){e&&x(e,0,0)}t.__markCompiled&&t.__markCompiled();var P={skin:"string",font:"string",width:"string",height:"px",ref:"string",color_scheme:"string"},M={string:function(e){return e},bool:function(e){return e?/^(?:true|1|yes|on)$/i.test(e):undefined},url:function(e){return k(e)},url_maybe:function(e){return e?k(e):e},hostname:function(e){return e||window.location.hostname},px:function(e){return/^(\d+)(?:px)?$/.test(e)?parseInt(RegExp.$1,10):undefined},text:function(e){return e}},A=f.extend({constructor:function(e,t,n,r){this.parent(),n=n.replace(/-/g,"_");var i=S(r,"plugin_id");this.subscribe("xd.resize",C(i)),this.subscribe("xd.resize.flow",C(i)),this.subscribe("xd.resize.flow",ES(function(e){ES("Object","assign",!1,this._iframeOptions.root.style,{verticalAlign:"bottom",overflow:""}),x(this._iframeOptions.root,T(e.width),T(e.height)),this.updateLift(),clearTimeout(this._timeoutID)},"bind",!0,this)),this.subscribe("xd.resize",ES(function(e){ES("Object","assign",!1,this._iframeOptions.root.style,{verticalAlign:"bottom",overflow:""}),x(this._iframeOptions.root,T(e.width),T(e.height)),x(this._iframe,T(e.width),T(e.height)),this._isIframeResized=!0,this.updateLift(),clearTimeout(this._timeoutID)},"bind",!0,this)),this.subscribe("xd.resize.iframe",ES(function(e){"true"===e.reposition&&b("reposition_iframe",!1)&&this.reposition(T(e.width)),x(this._iframe,T(e.width),T(e.height)),this._isIframeResized=!0,this.updateLift(),clearTimeout(this._timeoutID)},"bind",!0,this)),this.subscribe("xd.sdk_event",function(t){var n=ES("JSON","parse",!1,t.data);n.pluginID=i,u.fire(t.event,n,e)});var o=y.resolve("www",!0)+"/plugins/"+n+".php?",c={};E(this.getParams(),e,r,c),E(P,e,r,c),ES("Object","assign",!1,c,{app_id:h.getClientID(),locale:h.getLocale(),sdk:"joey",kid_directed_site:h.getKidDirectedSite(),channel:g.handler(ES(function(e){return this.inform("xd."+e.type,e)},"bind",!0,this),"parent.parent",!0)}),c.container_width=e.offsetWidth,s.addCss(e,"fb_iframe_widget");var l=w();this.subscribe("xd.verify",function(e){g.sendToFacebook(l,{method:"xd/verify",params:ES("JSON","stringify",!1,e.token)})}),this.subscribe("xd.refreshLoginStatus",ES(function(){a.removeLogoutState(),a.getLoginStatus(ES(this.inform,"bind",!0,this,"login.status"),!0)},"bind",!0,this));var p=document.createElement("span");ES("Object","assign",!1,p.style,{verticalAlign:"top",width:"0px",height:"0px",overflow:"hidden"}),this._element=e,this._ns=t,this._tag=n,this._params=c,this._config=this.getConfig(),this._iframeOptions={root:p,url:o+d.encode(c),name:l,width:this._config.mobile_fullsize&&m.mobile()?void 0:c.width||1e3,height:c.height||1e3,style:{border:"none",visibility:"hidden"},title:this._ns+":"+this._tag+" Facebook Social Plugin",onload:ES(function(){return this.inform("render")},"bind",!0,this),onerror:ES(function(){return O(this._iframe)},"bind",!0,this)},this.isFluid()&&"auto"!==c.width&&(s.addCss(this._element,"fb_iframe_widget_fluid_desktop"),!c.width&&this._config.full_width&&(this._element.style.width="100%",this._iframeOptions.root.style.width="100%",this._iframeOptions.style.width="100%",this._params.container_width=this._element.offsetWidth,this._iframeOptions.url=o+d.encode(this._params)))},process:function(){if(h.getIsVersioned()){p.assertVersionIsSet();var e=new v(this._iframeOptions.url);this._iframeOptions.url=e.setPath("/"+h.getVersion()+e.getPath()).toString()}var t=ES("Object","assign",!1,{},this._params);delete t.channel;var n=d.encode(t);if(this._element.getAttribute("fb-iframe-plugin-query")==n)return c.info("Skipping render: %s:%s %s",this._ns,this._tag,n),void this.inform("render");for(this._element.setAttribute("fb-iframe-plugin-query",n),this.subscribe("render",ES(function(){this._iframe.style.visibility="visible",this._isIframeResized||O(this._iframe)},"bind",!0,this));this._element.firstChild;)this._element.removeChild(this._element.firstChild);this._element.appendChild(this._iframeOptions.root);var r=m.mobile()?120:45;if(this._timeoutID=setTimeout(ES(function(){O(this._iframe),c.warn("%s:%s failed to resize in %ss",this._ns,this._tag,r)},"bind",!0,this),1e3*r),this._iframe=_(this._iframeOptions),(m.mobile()||"auto"===t.width)&&(s.addCss(this._element,"fb_iframe_widget_fluid"),!this._iframeOptions.width)){ES("Object","assign",!1,this._element.style,{display:"block",width:"100%",height:"auto"}),ES("Object","assign",!1,this._iframeOptions.root.style,{width:"100%",height:"auto"});var i={height:"auto",position:"static",width:"100%"};(m.iphone()||m.ipad())&&ES("Object","assign",!1,i,{width:"220px","min-width":"100%"}),ES("Object","assign",!1,this._iframe.style,i)}},getConfig:function(){return{}},isFluid:function(){return this.getConfig().fluid},reposition:function(e){var t=s.getPosition(this._iframe).x,n=s.getViewportInfo().width,r=parseInt(s.getStyle(this._iframe,"width"),10),i={};if(t+e>n&&t>e)this._iframe.style.left=parseInt(s.getStyle(this._iframe,"width"),10)-e+"px",this._isRepositioned=!0,i.type="reposition";else{if(!this._isRepositioned||r-e==0)return;this._iframe.style.left="0px",this._isRepositioned=!1,i.type="restore"}g.sendToFacebook(this._iframe.name,{method:"xd/reposition",params:ES("JSON","stringify",!1,i)})},updateLift:function(){var e=this._iframe.style.width===this._iframeOptions.root.style.width&&this._iframe.style.height===this._iframeOptions.root.style.height;s[e?"removeCss":"addCss"](this._iframe,"fb_iframe_widget_lift")}},l);A.getVal=S,A.withParams=function(e,t){return A.extend({getParams:function(){return e},getConfig:function(){return t||{}}})},i.exports=A},null),__d("PluginConfig",["sdk.feature"],function(e,t,n,r,i,o,a){t.__markCompiled&&t.__markCompiled();var s={messengerpreconfirmation:{mobile_fullsize:!0},messengeraccountconfirmation:{mobile_fullsize:!0},messengerbusinesslink:{mobile_fullsize:!0},messengertoggle:{mobile_fullsize:!0},messengermessageus:{mobile_fullsize:!0},send_to_messenger:{mobile_fullsize:!0},post:{fluid:a("fluid_embed",!1),mobile_fullsize:!0}};i.exports=s},null),__d("PluginTags",[],function(e,t,n,r,i,o){t.__markCompiled&&t.__markCompiled();var a={comment_embed:{href:"url",include_parent:"bool"},composer:{action_type:"string",action_properties:"string"},create_event_button:{},follow:{href:"url",layout:"string",show_faces:"bool",size:"string"},like:{href:"url",layout:"string",show_faces:"bool",share:"bool",action:"string",send:"bool",size:"string"},like_box:{href:"string",show_faces:"bool",header:"bool",stream:"bool",force_wall:"bool",show_border:"bool",id:"string",connections:"string",profile_id:"string",name:"string"},page:{href:"string",hide_cta:"bool",hide_cover:"bool",small_header:"bool",adapt_container_width:"bool",show_facepile:"bool",show_posts:"bool",tabs:"string"},messenger_checkbox:{messenger_app_id:"string",page_id:"string",pixel_id:"string",prechecked:"bool",allow_login:"bool",size:"string",origin:"string",user_ref:"string",identity_match:"string"},messengerpreconfirmation:{messenger_app_id:"string",page_id:"string"},messengeraccountconfirmation:{messenger_app_id:"string",page_id:"string",state:"string"},messengerbusinesslink:{messenger_app_id:"string",page_id:"string",state:"string"},messengertoggle:{messenger_app_id:"string",page_id:"string",token:"string",psid:"string"},messengermessageus:{messenger_app_id:"string",page_id:"string",color:"string",size:"string"},send_to_messenger:{messenger_app_id:"string",page_id:"string",color:"string",size:"string",enforce_login:"bool",identity_match:"string",origin:"string"},page_events:{href:"url"},post:{href:"url",show_text:"bool"},profile_pic:{uid:"string",linked:"bool",href:"string",size:"string",facebook_logo:"bool"},send:{href:"url",size:"string"},send_to_mobile:{max_rows:"string",show_faces:"bool",size:"string"}},s={subscribe:"follow",fan:"like_box",likebox:"like_box"};ES(ES("Object","keys",!1,s),"forEach",!0,function(e){a[e]=a[s[e]]}),i.exports=a},null),__d("runOnce",[],function(e,t,n,r,i,o){t.__markCompiled&&t.__markCompiled(),i.exports=function(e){var t,n;return function(){return t||(t=!0,n=e()),n}}},null),__d("XFBML",["Assert","sdk.DOM","Log","ObservableMixin","sdk.UA","runOnce"],function(e,t,n,r,i,o,a,s,u,c,l,p){function d(e,t){return ES(e[t]+"","trim",!0)}function h(e){return e.scopeName?e.scopeName+":"+e.nodeName:""}function f(e){return _[d(e,"nodeName").toLowerCase()]||_[h(e).toLowerCase()]}function m(e){var t=ES(d(e,"className").split(/\s+/),"filter",!0,function(e){return b.hasOwnProperty(e)});return 0===t.length?undefined:e.getAttribute("fb-xfbml-state")||!e.childNodes||0===e.childNodes.length||1===e.childNodes.length&&3===e.childNodes[0].nodeType||1===e.children.length&&"fb-xfbml-parse-ignore"===d(e.children[0],"className")?b[t[0]]:void 0}function v(e){var t={};return ES(ES("Array","from",!1,e.attributes),"forEach",!0,function(e){t[d(e,"name")]=d(e,"value")}),t}function y(e,t,n){var r=document.createElement("div");return s.addCss(e,t+"-"+n),ES(ES("Array","from",!1,e.childNodes),"forEach",!0,function(e){r.appendChild(e)}),ES(ES("Array","from",!1,e.attributes),"forEach",!0,function(e){r.setAttribute(e.name,e.value)}),e.parentNode.replaceChild(r,e),r}function g(e,t,n){a.isTrue(e&&e.nodeType&&1===e.nodeType&&!!e.getElementsByTagName,"Invalid DOM node passed to FB.XFBML.parse()"),a.isFunction(t,"Invalid callback passed to FB.XFBML.parse()");var r=++w;u.info("XFBML Parsing Start %s",r);var i=1,o=0,s=function(){0===--i&&(u.info("XFBML Parsing Finish %s, %s tags found",r,o),t(),k.inform("render",r,o)),a.isTrue(i>=0,"onrender() has been called too many times")};ES(ES("Array","from",!1,e.getElementsByTagName("*")),"forEach",!0,function(e){if((n||!e.getAttribute("fb-xfbml-state"))&&1===e.nodeType){var t=f(e)||m(e);if(t){l.ie()<9&&e.scopeName&&(e=y(e,t.xmlns,t.localName)),i++,o++;var r=new t.ctor(e,t.xmlns,t.localName,v(e));r.subscribe("render",p(function(){e.setAttribute("fb-xfbml-state","rendered"),s()}));!function t(){"parsed"==e.getAttribute("fb-xfbml-state")?k.subscribe("render.queue",t):(e.setAttribute("fb-xfbml-state","parsed"),r.process())}()}}}),k.inform("parse",r,o);setTimeout(function(){i>0&&u.warn("%s tags failed to render in %s ms",i,3e4)},3e4),s()}t.__markCompiled&&t.__markCompiled();var _={},b={},w=0,k=new c;k.subscribe("render",function(){var e=k.getSubscribers("render.queue");k.clearSubscribers("render.queue"),ES(e,"forEach",!0,function(e){e()})}),ES("Object","assign",!1,k,{registerTag:function(e){var t=e.xmlns+":"+e.localName;a.isUndefined(_[t],t+" already registered"),_[t]=e,b[e.xmlns+"-"+e.localName]=e},parse:function(e,t){g(e||document.body,t||function(){},!0)},parseNew:function(){g(document.body,function(){},!1)}}),i.exports=k},null),__d("sdk.Arbiter",[],function(e,t,n,r,i,o){t.__markCompiled&&t.__markCompiled();var a={BEHAVIOR_EVENT:"e",BEHAVIOR_PERSISTENT:"p",BEHAVIOR_STATE:"s"};i.exports=a},null),__d("sdk.XFBML.Element",["sdk.DOM","Type","ObservableMixin"],function(e,t,n,r,i,o,a,s,u){t.__markCompiled&&t.__markCompiled();var c=s.extend({constructor:function(e){this.parent(),this.dom=e},fire:function(){this.inform.apply(this,arguments)},getAttribute:function(e,t,n){var r=a.getAttr(this.dom,e);return r?n?n(r):r:t},_getBoolAttribute:function(e,t){var n=a.getBoolAttr(this.dom,e);return null===n?t:n},_getPxAttribute:function(e,t){return this.getAttribute(e,t,function(e){var n=parseInt(e,10);return isNaN(n)?t:n})},_getLengthAttribute:function(e,t){return this.getAttribute(e,t,function(e){if("100%"===e||"auto"===e)return e;var n=parseInt(e,10);return isNaN(n)?t:n})},_getAttributeFromList:function(e,t,n){return this.getAttribute(e,t,function(e){return e=e.toLowerCase(),ES(n,"indexOf",!0,e)>-1?e:t})},isValid:function(){for(var e=this.dom;e;e=e.parentNode)if(e==document.body)return!0},clear:function(){a.html(this.dom,"")}},u);i.exports=c},null),__d("sdk.XFBML.IframeWidget",["sdk.Arbiter","sdk.Auth","sdk.Content","sdk.DOM","sdk.Event","sdk.XFBML.Element","guid","insertIframe","QueryString","sdk.Runtime","sdk.ui","UrlMap","sdk.XD"],function(e,t,n,r,i,o,a,s,u,c,l,p,d,h,f,m,v,y,g){t.__markCompiled&&t.__markCompiled();var _=p.extend({_iframeName:null,_showLoader:!0,_refreshOnAuthChange:!1,_allowReProcess:!1,_fetchPreCachedLoader:!1,_visibleAfter:"load",_widgetPipeEnabled:!1,_borderReset:!1,_repositioned:!1,getUrlBits:function(){throw new Error("Inheriting class needs to implement getUrlBits().")},setupAndValidate:function(){return!0},oneTimeSetup:function(){},getSize:function(){},getIframeName:function(){return this._iframeName},getIframeTitle:function(){return"Facebook Social Plugin"},getChannelUrl:function(){if(!this._channelUrl){var e=this;this._channelUrl=g.handler(function(t){e.fire("xd."+t.type,t)},"parent.parent",!0)}return this._channelUrl},getIframeNode:function(){return this.dom.getElementsByTagName("iframe")[0]},arbiterInform:function(e,t,n){g.sendToFacebook(this.getIframeName(),{method:e,params:ES("JSON","stringify",!1,t||{}),behavior:n||a.BEHAVIOR_PERSISTENT})},_arbiterInform:function(e,t,n){var r='parent.frames["'+this.getIframeNode().name+'"]';g.inform(e,t,r,n)},getDefaultWebDomain:function(){return y.resolve("www")},process:function(e){if(this._done){if(!this._allowReProcess&&!e)return;this.clear()}else this._oneTimeSetup();if(this._done=!0,this._iframeName=this.getIframeName()||this._iframeName||d(),this.setupAndValidate()){this._showLoader&&this._addLoader(),c.addCss(this.dom,"fb_iframe_widget"),"immediate"!=this._visibleAfter?c.addCss(this.dom,"fb_hide_iframes"):this.subscribe("iframe.onload",ES(this.fire,"bind",!0,this,"render"));var t=this.getSize()||{},n=this.getFullyQualifiedURL();"100%"==t.width&&c.addCss(this.dom,"fb_iframe_widget_fluid"),this.clear(),h({url:n,root:this.dom.appendChild(document.createElement("span")),name:this._iframeName,title:this.getIframeTitle(),className:m.getRtl()?"fb_rtl":"fb_ltr",height:t.height,width:t.width,onload:ES(this.fire,"bind",!0,this,"iframe.onload")}),this._resizeFlow(t),this.loaded=!1,this.subscribe("iframe.onload",ES(function(){this.loaded=!0,this._isResizeHandled||c.addCss(this.dom,"fb_hide_iframes")},"bind",!0,this))}else this.fire("render")},generateWidgetPipeIframeName:function(){return"fb_iframe_"+ ++b},getFullyQualifiedURL:function(){var e=this._getURL();if((e+="?"+f.encode(this._getQS())).length>2e3){e="about:blank";var t=ES(function(){this._postRequest(),this.unsubscribe("iframe.onload",t)},"bind",!0,this);this.subscribe("iframe.onload",t)}return e},_getWidgetPipeShell:function(){return y.resolve("www")+"/common/widget_pipe_shell.php"},_oneTimeSetup:function(){this.subscribe("xd.resize",ES(this._handleResizeMsg,"bind",!0,this)),this.subscribe("xd.resize",ES(this._bubbleResizeEvent,"bind",!0,this)),this.subscribe("xd.resize.iframe",ES(this._resizeIframe,"bind",!0,this)),this.subscribe("xd.resize.flow",ES(this._resizeFlow,"bind",!0,this)),this.subscribe("xd.resize.flow",ES(this._bubbleResizeEvent,"bind",!0,this)),this.subscribe("xd.refreshLoginStatus",function(){s.getLoginStatus(function(){},!0)}),this.subscribe("xd.logout",function(){v({method:"auth.logout",display:"hidden"},function(){})}),this._refreshOnAuthChange&&this._setupAuthRefresh(),"load"==this._visibleAfter&&this.subscribe("iframe.onload",ES(this._makeVisible,"bind",!0,this)),this.subscribe("xd.verify",ES(function(e){this.arbiterInform("xd/verify",e.token)},"bind",!0,this)),this.oneTimeSetup()},_makeVisible:function(){this._removeLoader(),c.removeCss(this.dom,"fb_hide_iframes"),this.fire("render")},_setupAuthRefresh:function(){s.getLoginStatus(ES(function(e){var t=e.status;l.subscribe("auth.statusChange",ES(function(e){this.isValid()&&("unknown"!=t&&"unknown"!=e.status||this.process(!0),t=e.status)},"bind",!0,this))},"bind",!0,this))},_handleResizeMsg:function(e){this.isValid()&&(this._resizeIframe(e),this._resizeFlow(e),this._borderReset||(this.getIframeNode().style.border="none",this._borderReset=!0),this._isResizeHandled=!0,this._makeVisible())},_bubbleResizeEvent:function(e){var t={height:e.height,width:e.width,pluginID:this.getAttribute("plugin-id")};l.fire("xfbml.resize",t)},_resizeIframe:function(e){var t=this.getIframeNode();"true"===e.reposition&&this._repositionIframe(e),e.height&&(t.style.height=e.height+"px"),e.width&&(t.style.width=e.width+"px"),this._updateIframeZIndex()},_resizeFlow:function(e){var t=this.dom.getElementsByTagName("span")[0];e.height&&(t.style.height=e.height+"px"),e.width&&(t.style.width=e.width+"px"),this._updateIframeZIndex()},_updateIframeZIndex:function(){var e=this.dom.getElementsByTagName("span")[0],t=this.getIframeNode(),n=t.style.height===e.style.height&&t.style.width===e.style.width;c[n?"removeCss":"addCss"](t,"fb_iframe_widget_lift")},_repositionIframe:function(e){var t=this.getIframeNode(),n=parseInt(c.getStyle(t,"width"),10),r=c.getPosition(t).x,i=c.getViewportInfo().width,o=parseInt(e.width,10);r+o>i&&r>o?(t.style.left=n-o+"px",this.arbiterInform("xd/reposition",{type:"horizontal"}),this._repositioned=!0):this._repositioned&&(t.style.left="0px",this.arbiterInform("xd/reposition",{type:"restore"}),this._repositioned=!1)},_addLoader:function(){this._loaderDiv||(c.addCss(this.dom,"fb_iframe_widget_loader"),this._loaderDiv=document.createElement("div"),this._loaderDiv.className="FB_Loader",this.dom.appendChild(this._loaderDiv))},_removeLoader:function(){this._loaderDiv&&(c.removeCss(this.dom,"fb_iframe_widget_loader"),this._loaderDiv.parentNode&&this._loaderDiv.parentNode.removeChild(this._loaderDiv),this._loaderDiv=null)},_getQS:function(){return ES("Object","assign",!1,{api_key:m.getClientID(),locale:m.getLocale(),sdk:"joey",kid_directed_site:m.getKidDirectedSite(),ref:this.getAttribute("ref")},this.getUrlBits().params)},_getURL:function(){return this.getDefaultWebDomain()+"/plugins/"+this.getUrlBits().name+".php"},_postRequest:function(){u.submitToTarget({url:this._getURL(),target:this.getIframeNode().name,params:this._getQS()})}}),b=0;i.exports=_},null),__d("sdk.XFBML.Comments",["sdk.Event","sdk.XFBML.IframeWidget","QueryString","sdk.Runtime","JSSDKConfig","sdk.UA","UrlMap"],function(e,t,n,r,i,o,a,s,u,c,l,p,d){t.__markCompiled&&t.__markCompiled();var h=s.extend({_visibleAfter:"immediate",_refreshOnAuthChange:!0,setupAndValidate:function(){var e={channel_url:this.getChannelUrl(),colorscheme:this.getAttribute("colorscheme"),skin:this.getAttribute("skin"),numposts:this.getAttribute("num-posts",10),width:this._getLengthAttribute("width"),href:this.getAttribute("href"),permalink:this.getAttribute("permalink"),publish_feed:this.getAttribute("publish_feed"),order_by:this.getAttribute("order_by"),mobile:this._getBoolAttribute("mobile"),version:this.getAttribute("version")};if(e.width||e.permalink||(e.width=550),l.initSitevars.enableMobileComments&&p.mobile()&&!1!==e.mobile&&(e.mobile=!0,delete e.width),e.skin||(e.skin=e.colorscheme),e.href){var t=this.getAttribute("fb_comment_id");t||(t=u.decode(document.URL.substring(ES(document.URL,"indexOf",!0,"?")+1)).fb_comment_id)&&ES(t,"indexOf",!0,"#")>0&&(t=t.substring(0,ES(t,"indexOf",!0,"#"))),t&&(e.fb_comment_id=t,this.subscribe("render",ES(function(){window.location.hash||(window.location.hash=this.getIframeNode().id)},"bind",!0,this)))}else{if(e.migrated=this.getAttribute("migrated"),e.xid=this.getAttribute("xid"),e.title=this.getAttribute("title",document.title),e.url=this.getAttribute("url",document.URL),e.quiet=this.getAttribute("quiet"),e.reverse=this.getAttribute("reverse"),e.simple=this.getAttribute("simple"),e.css=this.getAttribute("css"),e.notify=this.getAttribute("notify"),!e.xid){var n=ES(document.URL,"indexOf",!0,"#");e.xid=n>0?encodeURIComponent(document.URL.substring(0,n)):encodeURIComponent(document.URL)}e.migrated&&(e.href=d.resolve("www")+"/plugins/comments_v1.php?app_id="+c.getClientID()+"&xid="+encodeURIComponent(e.xid)+"&url="+encodeURIComponent(e.url))}return e.version||(e.version=c.getVersion()),this._attr=e,!0},oneTimeSetup:function(){this.subscribe("xd.sdk_event",function(e){a.fire(e.event,ES("JSON","parse",!1,e.data))})},getSize:function(){if(!this._attr.permalink)return{width:this._attr.mobile||"auto"===this._attr.width||"100%"===this._attr.width?"100%":Math.max(this._attr.width,320),height:100}},getUrlBits:function(){return{name:"comments",params:this._attr}},getDefaultWebDomain:function(){return d.resolve("www",!0)}});i.exports=h},null),__d("sdk.XFBML.CommentsCount",["ApiClient","sdk.DOM","sdk.XFBML.Element","sprintf"],function(e,t,n,r,i,o,a,s,u,c){t.__markCompiled&&t.__markCompiled();var l=u.extend({process:function(){s.addCss(this.dom,"fb_comments_count_zero");var e=this.getAttribute("href",window.location.href);a.scheduleBatchCall("/v2.1/"+encodeURIComponent(e),{fields:"share"},ES(function(e){var t=e.share&&e.share.comment_count||0;s.html(this.dom,c('<span class="fb_comments_count">%s</span>',t)),t>0&&s.removeCss(this.dom,"fb_comments_count_zero"),this.fire("render")},"bind",!0,this))}});i.exports=l},null),__d("safeEval",[],function(e,t,n,r,i,o){t.__markCompiled&&t.__markCompiled(),i.exports=function(e,t){if(null!==e&&void 0!==e)return"string"!=typeof e?e:/^\w+$/.test(e)&&"function"==typeof window[e]?window[e].apply(null,t||[]):Function('return eval("'+e.replace(/"/g,'\\"')+'");').apply(null,t||[])}},null),__d("sdk.Helper",["sdk.ErrorHandling","sdk.Event","UrlMap","safeEval","sprintf"],function(e,t,n,r,i,o,a,s,u,c,l){t.__markCompiled&&t.__markCompiled();var p={isUser:function(e){return e<22e8||e>=1e14&&e<=0x5b0a58f100ef||e>=89e12&&e<=89999999999999||e>=6000001e7&&e<=60000019999999},upperCaseFirstChar:function(e){return e.length>0?e.substr(0,1).toUpperCase()+e.substr(1):e},getProfileLink:function(e,t,n){return!n&&e&&(n=l("%s/profile.php?id=%s",u.resolve("www"),e.uid||e.id)),n&&(t=l('<a class="fb_link" href="%s">%s</a>',n,t)),t},invokeHandler:function(e,t,n){e&&("string"==typeof e?a.unguard(c)(e,n):e.apply&&a.unguard(e).apply(t,n||[]))},fireEvent:function(e,t){var n=t._attr.href;t.fire(e,n),s.fire(e,n,t)},executeFunctionByName:function(e){for(var t=Array.prototype.slice.call(arguments,1),n=e.split("."),r=n.pop(),i=window,o=0;o<n.length;o++)i=i[n[o]];return i[r].apply(this,t)}};i.exports=p},null),__d("sdk.XFBML.LoginButton",["sdk.Helper","IframePlugin","Log","sdk.ui"],function(e,t,n,r,i,o,a,s,u,c){t.__markCompiled&&t.__markCompiled();var l=s.extend({constructor:function(e,t,n,r){this.parent(e,t,n,r);var i=s.getVal(r,"on_login"),o=null;i&&(o=function(e){e.error_code?u.debug("Plugin Return Error (%s): %s",e.error_code,e.error_message||e.error_description):a.invokeHandler(i,null,[e])},this.subscribe("login.status",o)),this.subscribe("xd.login_button_native_open",function(e){c(ES("JSON","parse",!1,e.params),o)})},getParams:function(){return{scope:"string",perms:"string",size:"string",login_text:"text",show_faces:"bool",max_rows:"string",show_login_face:"bool",registration_url:"url_maybe",auto_logout_link:"bool",one_click:"bool",show_banner:"bool",auth_type:"string",default_audience:"string"}}});i.exports=l},null),__d("escapeHTML",[],function(e,t,n,r,i,o){t.__markCompiled&&t.__markCompiled();var a=/[&<>"'\/]/g,s={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;","/":"&#x2F;"};i.exports=function(e){return e.replace(a,function(e){return s[e]})}},null),__d("sdk.XFBML.Name",["ApiClient","escapeHTML","sdk.Event","sdk.XFBML.Element","sdk.Helper","Log","sdk.Runtime"],function(e,t,n,r,i,o,a,s,u,c,l,p,d){t.__markCompiled&&t.__markCompiled();var h={}.hasOwnProperty,f=c.extend({process:function(){if(ES("Object","assign",!1,this,{_uid:this.getAttribute("uid"),_firstnameonly:this._getBoolAttribute("first-name-only"),_lastnameonly:this._getBoolAttribute("last-name-only"),_possessive:this._getBoolAttribute("possessive"),_reflexive:this._getBoolAttribute("reflexive"),_objective:this._getBoolAttribute("objective"),_linked:this._getBoolAttribute("linked",!0),_subjectId:this.getAttribute("subject-id")}),!this._uid)return p.error('"uid" is a required attribute for <fb:name>'),void this.fire("render");var e=[];this._firstnameonly?e.push("first_name"):this._lastnameonly?e.push("last_name"):e.push("name"),this._subjectId&&(e.push("gender"),this._subjectId==d.getUserID()&&(this._reflexive=!0)),u.monitor("auth.statusChange",ES(function(){if(!this.isValid())return this.fire("render"),!0;this._uid&&"loggedinuser"!=this._uid||(this._uid=d.getUserID()),this._uid&&a.scheduleBatchCall("/v1.0/"+this._uid,{fields:e.join(",")},ES(function(e){h.call(e,"error")?p.warn("The name is not found for ID: "+this._uid):(this._subjectId==this._uid?this._renderPronoun(e):this._renderOther(e),this.fire("render"))},"bind",!0,this))},"bind",!0,this))},_renderPronoun:function(e){var t="",n=this._objective;if(this._subjectId&&(n=!0,this._subjectId===this._uid&&(this._reflexive=!0)),this._uid==d.getUserID()&&this._getBoolAttribute("use-you",!0))t=this._possessive?this._reflexive?"your own":"your":this._reflexive?"yourself":"you";else switch(e.gender){case"male":t=this._possessive?this._reflexive?"his own":"his":this._reflexive?"himself":n?"him":"he";break;case"female":t=this._possessive?this._reflexive?"her own":"her":this._reflexive?"herself":n?"her":"she";break;default:t=this._getBoolAttribute("use-they",!0)?this._possessive?this._reflexive?"their own":"their":this._reflexive?"themselves":n?"them":"they":this._possessive?this._reflexive?"his/her own":"his/her":this._reflexive?"himself/herself":n?"him/her":"he/she"}this._getBoolAttribute("capitalize",!1)&&(t=l.upperCaseFirstChar(t)),this.dom.innerHTML=t},_renderOther:function(e){var t="",n="";this._uid==d.getUserID()&&this._getBoolAttribute("use-you",!0)?t=this._reflexive?this._possessive?"your own":"yourself":this._possessive?"your":"you":e&&(null===e.first_name&&(e.first_name=""),null===e.last_name&&(e.last_name=""),this._firstnameonly&&e.first_name!==undefined?t=s(e.first_name):this._lastnameonly&&e.last_name!==undefined&&(t=s(e.last_name)),t||(t=s(e.name)),""!==t&&this._possessive&&(t+="'s")),t||(t=s(this.getAttribute("if-cant-see","Facebook User"))),t&&(this._getBoolAttribute("capitalize",!1)&&(t=l.upperCaseFirstChar(t)),n=e&&this._linked?l.getProfileLink(e,t,this.getAttribute("href",null)):t),this.dom.innerHTML=n}});i.exports=f},null),__d("UnicodeUtils",["invariant"],function(e,t,n,r,i,o,a){"use strict";function s(e){return p<=e&&e<=f}function u(e){return m.test(e)}function c(e,t){return 1+s(e.charCodeAt(t))}function l(e,t,n){if(t=t||0,n=n===undefined?1/0:n||0,!u(e))return e.substr(t,n);var r=e.length;if(r<=0||t>r||n<=0)return"";var i=0;if(t>0){for(;t>0&&i<r;t--)i+=c(e,i);if(i>=r)return""}else if(t<0){for(i=r;t<0&&0<i;t++)i-=c(e,i-1);i<0&&(i=0)}var o=r;if(n<r)for(o=i;n>0&&o<r;n--)o+=c(e,o);return e.substring(i,o)}t.__markCompiled&&t.__markCompiled();var p=55296,d=56319,h=56320,f=57343,m=/[\uD800-\uDFFF]/,v={getCodePoints:function(e){for(var t=[],n=0;n<e.length;n+=c(e,n))t.push(e.codePointAt(n));return t},getUTF16Length:c,hasSurrogateUnit:u,isCodeUnitInSurrogateRange:s,isSurrogatePair:function(e,t){if(0<=t&&t<e.length||a(0),t+1===e.length)return!1;var n=e.charCodeAt(t),r=e.charCodeAt(t+1);return p<=n&&n<=d&&h<=r&&r<=f},strlen:function(e){if(!u(e))return e.length;for(var t=0,n=0;n<e.length;n+=c(e,n))t++;return t},substring:function(e,t,n){t=t||0,n=n===undefined?1/0:n||0,t<0&&(t=0),n<0&&(n=0);var r=Math.abs(n-t);return t=t<n?t:n,l(e,t,r)},substr:l};i.exports=v},null),__d("isNode",[],function(e,t,n,r,i,o){t.__markCompiled&&t.__markCompiled(),i.exports=function(e){return!(!e||!("function"==typeof Node?e instanceof Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}},null),__d("isTextNode",["isNode"],function(e,t,n,r,i,o,a){t.__markCompiled&&t.__markCompiled(),i.exports=function(e){return a(e)&&3==e.nodeType}},null),__d("containsNode",["isTextNode"],function(e,t,n,r,i,o,a){function s(e,t){return!(!e||!t)&&(e===t||!a(e)&&(a(t)?s(e,t.parentNode):"contains"in e?ES(e,"contains",!0,t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}t.__markCompiled&&t.__markCompiled(),i.exports=s},null),__d("sdk.XFBML.Quote",["sdk.DOM","DOMEventListener","IframePlugin","UnicodeUtils","sdk.UA","sdk.XD","containsNode","sdk.feature"],function(e,t,n,r,i,o,a,s,u,c,l,p,d,h){"use strict";function f(e){var t=e.getRangeAt(0).startContainer;return 3===t.nodeType?t.parentNode:t}function m(e){if(document.getSelection&&!S){var t=document.getSelection();if(0!==t.rangeCount){var n=k.length;if(y(),n){for(var r=!1,i=0;i<n;i++)if(d(k[i],t.focusNode)){r=!0;break}if(!r)return}if(""!==(b=t.toString())){b=ES(b.toString().replace(/\s+/g," "),"trim",!0);var o=Number(h("sharequotelimit",500));if(b=c.strlen(b)>o?c.substr(b,0,o-3)+"...":c.substr(b,0,o),f(t).appendChild(C),!x&&C){var a=v(t);C.style.left=a.x+"px",C.style.top=a.y+"px"}}else y()}else y()}}function v(e){var t=C&&C.offsetWidth,n=t?C.offsetHeight:_,r=t?C.offsetWidth:g,i=e.getRangeAt(0),o=document.createElement("span"),a=document.createElement("span"),s=document.createRange();s.setStart(i.startContainer,i.startOffset),s.insertNode(o);var u=document.createRange();u.setStart(i.endContainer,i.endOffset),u.insertNode(a);var c=o.offsetTop-n,l=o.offsetLeft+(a.offsetLeft-o.offsetLeft)/2-r/2;return o.parentNode.removeChild(o),a.parentNode.removeChild(a),{x:l,y:c}}function y(){b="",!x&&C&&(C.style.left="-9999px")}t.__markCompiled&&t.__markCompiled();var g=155,_=70,b="",w=null,k=[],x=!1,C=null,S=l.mobile(),E=u.extend({constructor:function(e,t,n,r){return w||(this.parent(e,t,n,r),x="button"===a.getAttr(e,"layout"),C=e,C.style.position="absolute",C.style.display="",s.add(document,"keyup",m),s.add(document,"mouseup",m),this.subscribe("xd.getTextSelection",ES(function(){p.sendToFacebook(this._iframeOptions.name,{method:"setTextSelection",params:ES("JSON","stringify",!1,{text:b})}),y()},"bind",!0,this)),k=ES(ES("Array","from",!1,document.getElementsByTagName("*")),"filter",!0,function(e){return"article"===e.nodeName.toLowerCase()||a.containsCss(e,"fb-quotable")}),y(),w=this)},getParams:function(){return{href:"url",layout:"string"}}});i.exports=E},null),__d("sdk.XFBML.Save",["sdk.Content","sdk.DialogUtils","sdk.DOM","sdk.Event","IframePlugin","QueryString","sdk.UA","sdk.XD","sdk.createIframe"],function(e,t,n,r,i,o,a,s,u,c,l,p,d,h,f){"use strict";t.__markCompiled&&t.__markCompiled();var m=void 0,v=l.extend({constructor:function(e,t,n,r){this.parent(e,t,n,r);var i=d.mobile();this.subscribe("xd.savePluginGetBlankIframe",ES(function(e){var t=void 0,n=void 0,r=void 0,o=function(e){e&&u.removeCss(e,"fb_invisible")},l=function(e){e&&u.addCss(e,"fb_invisible")};i&&(t=s.setupNewDarkOverlay(),l(t),a.append(t),s.addDoubleClickAction(t,function(){return ES(r,"forEach",!0,l)},5e3)),n=this.setupNewIframeDialog(ES("JSON","parse",!1,e.data),e.fromIframe,ES("JSON","parse",!1,e.isHTTPS)),l(n),a.append(n),r=[n,t];var p=function(){ES(r,"forEach",!0,l),s.onDialogHideCleanup(i),clearInterval(m)},d=void 0;this.subscribe("xd.savePluginShowIframe",ES(function(){c.fire("savePlugin:hideDialog"),ES(r,"forEach",!0,o),this.positionOnScreen(n,t),i||d||(d=s.addIdleDesktopAction(n,p,7e3))},"bind",!0,this)),this.subscribe("xd.savePluginHideIframe",function(){return p()}),c.subscribe("savePlugin:hideDialog",function(){return p()});var h=setInterval(function(){0===document.getElementsByName(e.fromIframe).length&&(clearTimeout(h),p(),ES(r,"forEach",!0,function(e){e&&e.parentNode.removeChild(e)}))},500)},"bind",!0,this))},positionOnScreen:function(e,t){var n=d.mobile();n?function(){var r=function(e,t){null!=t&&s.setDialogPositionToCenter(t,n),s.setDialogPositionToCenter(e,n)};r(e,t),s.addMobileOrientationChangeAction(function(n){r(e,t)}),m=setInterval(function(){return r(e,t)},100)}():(u.setStyle(e,"position","fixed"),u.setStyle(e,"top","20px"),u.setStyle(e,"right","20px"))},setupNewIframeDialog:function(e,t,n){var r="#"+p.encode({forIframe:t}),i=s.setupNewDialog();return f({url:h.getXDArbiterURL(n)+r,name:"blank_"+this._iframeOptions.name,root:i.contentRoot,tabindex:-1}),u.addCss(i.contentRoot,"fb_dialog_iframe"),ES("Object","assign",!1,i.dialogElement.style,e.style||{}),u.setStyle(i.dialogElement,"width",e.width+"px"),u.setStyle(i.dialogElement,"height",e.height+"px"),ES(e.classList,"forEach",!0,function(e){return u.addCss(i.dialogElement,e)}),u.removeCss(i.dialogElement,"fb_dialog_advanced"),i.dialogElement},getParams:function(){return{uri:"url",url_category:"string",size:"string"}}});i.exports=v},null),__d("sdk.XFBML.ShareButton",["IframePlugin","sdk.UA","sdk.ui"],function(e,t,n,r,i,o,a,s,u){"use strict";t.__markCompiled&&t.__markCompiled();var c=a.extend({constructor:function(e,t,n,r){this.parent(e,t,n,r),this.subscribe("xd.shareTriggerMobileIframe",function(e){var t=ES("JSON","parse",!1,e.data);u({method:"share",href:t.href,mobile_iframe:s.mobile()})})},getParams:function(){return{href:"url",layout:"string",mobile_iframe:"bool",type:"string",size:"string"}}});i.exports=c},null),__d("sdk.XFBML.Video",["Assert","sdk.Event","IframePlugin","ObservableMixin","sdk.XD"],function(e,t,n,r,i,o,a,s,u,c,l){function p(e){"use strict";this.$VideoCache1=e.isMuted,this.$VideoCache2=e.volume,this.$VideoCache3=e.timePosition,this.$VideoCache4=e.duration}function d(e,t,n){"use strict";this.$VideoController1=e,this.$VideoController2=t,this.$VideoController3=n}t.__markCompiled&&t.__markCompiled(),p.prototype.update=function(e){"use strict";e.isMuted!==undefined&&(this.$VideoCache1=e.isMuted),e.volume!==undefined&&(this.$VideoCache2=e.volume),e.timePosition!==undefined&&(this.$VideoCache3=e.timePosition),e.duration!==undefined&&(this.$VideoCache4=e.duration)},p.prototype.isMuted=function(){"use strict";return this.$VideoCache1},p.prototype.getVolume=function(){"use strict";return this.$VideoCache1?0:this.$VideoCache2},p.prototype.getCurrentPosition=function(){"use strict";return this.$VideoCache3},p.prototype.getDuration=function(){"use strict";return this.$VideoCache4},d.prototype.play=function(){"use strict";l.sendToFacebook(this.$VideoController1,{method:"play",params:ES("JSON","stringify",!1,{})})},d.prototype.pause=function(){"use strict";l.sendToFacebook(this.$VideoController1,{method:"pause",params:ES("JSON","stringify",!1,{})})},d.prototype.seek=function(e){"use strict";a.isNumber(e,"Invalid argument"),l.sendToFacebook(this.$VideoController1,{method:"seek",params:ES("JSON","stringify",!1,{target:e})})},d.prototype.mute=function(){"use strict";l.sendToFacebook(this.$VideoController1,{method:"mute",params:ES("JSON","stringify",!1,{})})},d.prototype.unmute=function(){"use strict";l.sendToFacebook(this.$VideoController1,{method:"unmute",params:ES("JSON","stringify",!1,{})})},d.prototype.setVolume=function(e){"use strict";a.isNumber(e,"Invalid argument"),l.sendToFacebook(this.$VideoController1,{method:"setVolume",params:ES("JSON","stringify",!1,{volume:e})})},d.prototype.isMuted=function(){"use strict";return this.$VideoController3.isMuted()},d.prototype.getVolume=function(){"use strict";return this.$VideoController3.getVolume()},d.prototype.getCurrentPosition=function(){"use strict";return this.$VideoController3.getCurrentPosition()},d.prototype.getDuration=function(){"use strict";return this.$VideoController3.getDuration()},d.prototype.subscribe=function(e,t){"use strict";return a.isString(e,"Invalid argument"),a.isFunction(t,"Invalid argument"),this.$VideoController2.subscribe(e,t),{release:ES(function(){this.$VideoController2.unsubscribe(e,t)},"bind",!0,this)}};var h=u.extend({constructor:function(e,t,n,r){this.parent(e,t,n,r),this._videoController=null,this._sharedObservable=null,this._sharedVideoCache=null,this.subscribe("xd.onVideoAPIReady",function(e){this._sharedObservable=new c,this._sharedVideoCache=new p(ES("JSON","parse",!1,e.data)),this._videoController=new d(this._iframeOptions.name,this._sharedObservable,this._sharedVideoCache),s.fire("xfbml.ready",{type:"video",id:r.id,instance:this._videoController})}),this.subscribe("xd.stateChange",function(e){this._sharedObservable.inform(e.state)}),this.subscribe("xd.cachedStateUpdateRequest",function(e){this._sharedVideoCache.update(ES("JSON","parse",!1,e.data))})},getParams:function(){return{allowfullscreen:"bool",autoplay:"bool",controls:"bool",href:"url",show_captions:"bool",show_text:"bool"}},getConfig:function(){return{fluid:!0,full_width:!0}}});i.exports=h},null),__d("legacy:fb.xfbml",["Assert","sdk.Event","FB","IframePlugin","PluginConfig","PluginTags","XFBML","sdk.domReady","sdk.feature","wrapFunction","sdk.XFBML.Comments","sdk.XFBML.CommentsCount","sdk.XFBML.LoginButton","sdk.XFBML.Name","sdk.XFBML.Quote","sdk.XFBML.Save","sdk.XFBML.ShareButton","sdk.XFBML.Video"],function(e,t,n,r,i,o,a,s,u,c,l,p,d,h,f,m){t.__markCompiled&&t.__markCompiled();var v={comments:t("sdk.XFBML.Comments"),comments_count:t("sdk.XFBML.CommentsCount"),login_button:t("sdk.XFBML.LoginButton"),name:t("sdk.XFBML.Name"),quote:t("sdk.XFBML.Quote"),save:t("sdk.XFBML.Save"),share_button:t("sdk.XFBML.ShareButton"),video:t("sdk.XFBML.Video")},y=f("plugin_tags_blacklist",[]);ES(ES("Object","keys",!1,p),"forEach",!0,function(e){-1===ES(y,"indexOf",!0,e)&&d.registerTag({xmlns:"fb",localName:e.replace(/_/g,"-"),ctor:c.withParams(p[e],l[e])})}),ES(ES("Object","keys",!1,v),"forEach",!0,function(e){-1===ES(y,"indexOf",!0,e)&&d.registerTag({xmlns:"fb",localName:e.replace(/_/g,"-"),ctor:v[e]})}),u.provide("XFBML",{parse:function(e){return a.maybeXfbml(e,"Invalid argument"),e&&9===e.nodeType&&(e=e.body),d.parse.apply(null,arguments)}}),d.subscribe("parse",ES(s.fire,"bind",!0,s,"xfbml.parse")),d.subscribe("render",ES(s.fire,"bind",!0,s,"xfbml.render")),s.subscribe("init:post",function(e){e.xfbml&&setTimeout(m(ES(h,"bind",!0,null,d.parse),"entry","init:post:xfbml.parse"),0)}),a.define("Xfbml",function(e){return(1===e.nodeType||9===e.nodeType)&&"string"==typeof e.nodeName});try{document.namespaces&&!document.namespaces.item.fb&&document.namespaces.add("fb")}catch(e){}},3)}}).call(global)}(window.inDapIF?parent.window:window,window)}catch(e){(new Image).src="https://www.facebook.com/common/scribe_endpoint.php?c=jssdk_error&m="+encodeURIComponent('{"error":"LOAD", "extra": {"name":"'+e.name+'","line":"'+(e.lineNumber||e.line)+'","script":"'+(e.fileName||e.sourceURL||e.script)+'","stack":"'+(e.stackTrace||e.stack)+'","revision":"2613995","namespace":"FB","message":"'+e.message+'"}}')}!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";function n(e,t){var n=(t=t||te).createElement("script");n.text=e,t.head.appendChild(n).parentNode.removeChild(n)}function r(e){var t=!!e&&"length"in e&&e.length,n=he.type(e);return"function"!==n&&!he.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function i(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}function o(e,t,n){return he.isFunction(t)?he.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?he.grep(e,function(e){return e===t!==n}):"string"!=typeof t?he.grep(e,function(e){return ae.call(t,e)>-1!==n}):xe.test(t)?he.filter(t,e,n):(t=he.filter(t,e),he.grep(e,function(e){return ae.call(t,e)>-1!==n&&1===e.nodeType}))}function a(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function s(e){var t={};return he.each(e.match(Oe)||[],function(e,n){t[n]=!0}),t}function u(e){return e}function c(e){throw e}function l(e,t,n,r){var i;try{e&&he.isFunction(i=e.promise)?i.call(e).done(t).fail(n):e&&he.isFunction(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}function p(){te.removeEventListener("DOMContentLoaded",p),e.removeEventListener("load",p),he.ready()}function d(){this.expando=he.expando+d.uid++}function h(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:je.test(e)?JSON.parse(e):e)}function f(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(Ne,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=h(n)}catch(e){}Re.set(e,t,n)}else n=void 0;return n}function m(e,t,n,r){var i,o=1,a=20,s=r?function(){return r.cur()}:function(){return he.css(e,t,"")},u=s(),c=n&&n[3]||(he.cssNumber[t]?"":"px"),l=(he.cssNumber[t]||"px"!==c&&+u)&&Fe.exec(he.css(e,t));if(l&&l[3]!==c){c=c||l[3],n=n||[],l=+u||1;do{l/=o=o||".5",he.style(e,t,l+c)}while(o!==(o=s()/u)&&1!==o&&--a)}return n&&(l=+l||+u||0,i=n[1]?l+(n[1]+1)*n[2]:+n[2],r&&(r.unit=c,r.start=l,r.end=i)),i}function v(e){var t,n=e.ownerDocument,r=e.nodeName,i=Be[r];return i||(t=n.body.appendChild(n.createElement(r)),i=he.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),Be[r]=i,i)}function y(e,t){for(var n,r,i=[],o=0,a=e.length;o<a;o++)(r=e[o]).style&&(n=r.style.display,t?("none"===n&&(i[o]=Ie.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&ze(r)&&(i[o]=v(r))):"none"!==n&&(i[o]="none",Ie.set(r,"display",n)));for(o=0;o<a;o++)null!=i[o]&&(e[o].style.display=i[o]);return e}function g(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&i(e,t)?he.merge([e],n):n}function _(e,t){for(var n=0,r=e.length;n<r;n++)Ie.set(e[n],"globalEval",!t||Ie.get(t[n],"globalEval"))}function b(e,t,n,r,i){for(var o,a,s,u,c,l,p=t.createDocumentFragment(),d=[],h=0,f=e.length;h<f;h++)if((o=e[h])||0===o)if("object"===he.type(o))he.merge(d,o.nodeType?[o]:o);else if(Ye.test(o)){for(a=a||p.appendChild(t.createElement("div")),s=(qe.exec(o)||["",""])[1].toLowerCase(),u=Ge[s]||Ge._default,a.innerHTML=u[1]+he.htmlPrefilter(o)+u[2],l=u[0];l--;)a=a.lastChild;he.merge(d,a.childNodes),(a=p.firstChild).textContent=""}else d.push(t.createTextNode(o));for(p.textContent="",h=0;o=d[h++];)if(r&&he.inArray(o,r)>-1)i&&i.push(o);else if(c=he.contains(o.ownerDocument,o),a=g(p.appendChild(o),"script"),c&&_(a),n)for(l=0;o=a[l++];)We.test(o.type||"")&&n.push(o);return p}function w(){return!0}function k(){return!1}function x(){try{return te.activeElement}catch(e){}}function C(e,t,n,r,i,o){var a,s;if("object"==typeof t){"string"!=typeof n&&(r=r||n,n=void 0);for(s in t)C(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=k;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return he().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=he.guid++)),e.each(function(){he.event.add(this,t,i,r,n)})}function S(e,t){return i(e,"table")&&i(11!==t.nodeType?t:t.firstChild,"tr")?he(">tbody",e)[0]||e:e}function E(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function T(e){var t=tt.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function O(e,t){var n,r,i,o,a,s,u,c;if(1===t.nodeType){if(Ie.hasData(e)&&(o=Ie.access(e),a=Ie.set(t,o),c=o.events)){delete a.handle,a.events={};for(i in c)for(n=0,r=c[i].length;n<r;n++)he.event.add(t,i,c[i][n])}Re.hasData(e)&&(s=Re.access(e),u=he.extend({},s),Re.set(t,u))}}function P(e,t){var n=t.nodeName.toLowerCase();"input"===n&&He.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function M(e,t,r,i){t=ie.apply([],t);var o,a,s,u,c,l,p=0,d=e.length,h=d-1,f=t[0],m=he.isFunction(f);if(m||d>1&&"string"==typeof f&&!de.checkClone&&et.test(f))return e.each(function(n){var o=e.eq(n);m&&(t[0]=f.call(this,n,o.html())),M(o,t,r,i)});if(d&&(o=b(t,e[0].ownerDocument,!1,e,i),a=o.firstChild,1===o.childNodes.length&&(o=a),a||i)){for(u=(s=he.map(g(o,"script"),E)).length;p<d;p++)c=o,p!==h&&(c=he.clone(c,!0,!0),u&&he.merge(s,g(c,"script"))),r.call(e[p],c,p);if(u)for(l=s[s.length-1].ownerDocument,he.map(s,T),p=0;p<u;p++)c=s[p],We.test(c.type||"")&&!Ie.access(c,"globalEval")&&he.contains(l,c)&&(c.src?he._evalUrl&&he._evalUrl(c.src):n(c.textContent.replace(nt,""),l))}return e}function A(e,t,n){for(var r,i=t?he.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||he.cleanData(g(r)),r.parentNode&&(n&&he.contains(r.ownerDocument,r)&&_(g(r,"script")),r.parentNode.removeChild(r));return e}function D(e,t,n){var r,i,o,a,s=e.style;return(n=n||ot(e))&&(""!==(a=n.getPropertyValue(t)||n[t])||he.contains(e.ownerDocument,e)||(a=he.style(e,t)),!de.pixelMarginRight()&&it.test(a)&&rt.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0!==a?a+"":a}function I(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}function R(e){if(e in pt)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=lt.length;n--;)if((e=lt[n]+t)in pt)return e}function j(e){var t=he.cssProps[e];return t||(t=he.cssProps[e]=R(e)||e),t}function N(e,t,n){var r=Fe.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function L(e,t,n,r,i){var o,a=0;for(o=n===(r?"border":"content")?4:"width"===t?1:0;o<4;o+=2)"margin"===n&&(a+=he.css(e,n+Ve[o],!0,i)),r?("content"===n&&(a-=he.css(e,"padding"+Ve[o],!0,i)),"margin"!==n&&(a-=he.css(e,"border"+Ve[o]+"Width",!0,i))):(a+=he.css(e,"padding"+Ve[o],!0,i),"padding"!==n&&(a+=he.css(e,"border"+Ve[o]+"Width",!0,i)));return a}function F(e,t,n){var r,i=ot(e),o=D(e,t,i),a="border-box"===he.css(e,"boxSizing",!1,i);return it.test(o)?o:(r=a&&(de.boxSizingReliable()||o===e.style[t]),"auto"===o&&(o=e["offset"+t[0].toUpperCase()+t.slice(1)]),(o=parseFloat(o)||0)+L(e,t,n||(a?"border":"content"),r,i)+"px")}function V(e,t,n,r,i){return new V.prototype.init(e,t,n,r,i)}function z(){ht&&(!1===te.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(z):e.setTimeout(z,he.fx.interval),he.fx.tick())}function U(){return e.setTimeout(function(){dt=void 0}),dt=he.now()}function B(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=Ve[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function H(e,t,n){for(var r,i=(W.tweeners[t]||[]).concat(W.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function q(e,t){var n,r,i,o,a;for(n in e)if(r=he.camelCase(n),i=t[r],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=he.cssHooks[r])&&"expand"in a){o=a.expand(o),delete e[r];for(n in o)n in e||(e[n]=o[n],t[n]=i)}else t[r]=i}function W(e,t,n){var r,i,o=0,a=W.prefilters.length,s=he.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;for(var t=dt||U(),n=Math.max(0,c.startTime+c.duration-t),r=1-(n/c.duration||0),o=0,a=c.tweens.length;o<a;o++)c.tweens[o].run(r);return s.notifyWith(e,[c,r,n]),r<1&&a?n:(a||s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c]),!1)},c=s.promise({elem:e,props:he.extend({},t),opts:he.extend(!0,{specialEasing:{},easing:he.easing._default},n),originalProperties:t,originalOptions:n,startTime:dt||U(),duration:n.duration,tweens:[],createTween:function(t,n){var r=he.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(r),r},stop:function(t){var n=0,r=t?c.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)c.tweens[n].run(1);return t?(s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c,t])):s.rejectWith(e,[c,t]),this}}),l=c.props;for(q(l,c.opts.specialEasing);o<a;o++)if(r=W.prefilters[o].call(c,e,l,c.opts))return he.isFunction(r.stop)&&(he._queueHooks(c.elem,c.opts.queue).stop=he.proxy(r.stop,r)),r;return he.map(l,H,c),he.isFunction(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),he.fx.timer(he.extend(u,{elem:e,anim:c,queue:c.opts.queue})),c}function G(e){return(e.match(Oe)||[]).join(" ")}function Y(e){return e.getAttribute&&e.getAttribute("class")||""}function Z(e,t,n,r){var i;if(Array.isArray(t))he.each(t,function(t,i){n||St.test(e)?r(e,i):Z(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)});else if(n||"object"!==he.type(t))r(e,t);else for(i in t)Z(e+"["+i+"]",t[i],n,r)}function K(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(Oe)||[];if(he.isFunction(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function X(e,t,n,r){function i(s){var u;return o[s]=!0,he.each(e[s]||[],function(e,s){var c=s(t,n,r);return"string"!=typeof c||a||o[c]?a?!(u=c):void 0:(t.dataTypes.unshift(c),i(c),!1)}),u}var o={},a=e===Lt;return i(t.dataTypes[0])||!o["*"]&&i("*")}function J(e,t){var n,r,i=he.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&he.extend(!0,e,r),e}function Q(e,t,n){for(var r,i,o,a,s=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}function $(e,t,n,r){var i,o,a,s,u,c={},l=e.dataTypes.slice();if(l[1])for(a in e.converters)c[a.toLowerCase()]=e.converters[a];for(o=l.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=l.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=c[u+" "+o]||c["* "+o]))for(i in c)if((s=i.split(" "))[1]===o&&(a=c[u+" "+s[0]]||c["* "+s[0]])){!0===a?a=c[i]:!0!==c[i]&&(o=s[0],l.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}var ee=[],te=e.document,ne=Object.getPrototypeOf,re=ee.slice,ie=ee.concat,oe=ee.push,ae=ee.indexOf,se={},ue=se.toString,ce=se.hasOwnProperty,le=ce.toString,pe=le.call(Object),de={},he=function(e,t){return new he.fn.init(e,t)},fe=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,me=/^-ms-/,ve=/-([a-z])/g,ye=function(e,t){return t.toUpperCase()};he.fn=he.prototype={jquery:"3.2.1",constructor:he,length:0,toArray:function(){return re.call(this)},get:function(e){return null==e?re.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=he.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return he.each(this,e)},map:function(e){return this.pushStack(he.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(re.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:oe,sort:ee.sort,splice:ee.splice},he.extend=he.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[s]||{},s++),"object"==typeof a||he.isFunction(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)n=a[t],a!==(r=e[t])&&(c&&r&&(he.isPlainObject(r)||(i=Array.isArray(r)))?(i?(i=!1,o=n&&Array.isArray(n)?n:[]):o=n&&he.isPlainObject(n)?n:{},a[t]=he.extend(c,o,r)):void 0!==r&&(a[t]=r));return a},he.extend({expando:"jQuery"+("3.2.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===he.type(e)},isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){var t=he.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==ue.call(e))&&(!(t=ne(e))||"function"==typeof(n=ce.call(t,"constructor")&&t.constructor)&&le.call(n)===pe)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?se[ue.call(e)]||"object":typeof e},globalEval:function(e){n(e)},camelCase:function(e){return e.replace(me,"ms-").replace(ve,ye)},each:function(e,t){var n,i=0;if(r(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},trim:function(e){return null==e?"":(e+"").replace(fe,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(r(Object(e))?he.merge(n,"string"==typeof e?[e]:e):oe.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:ae.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var i,o,a=0,s=[];if(r(e))for(i=e.length;a<i;a++)null!=(o=t(e[a],a,n))&&s.push(o);else for(a in e)null!=(o=t(e[a],a,n))&&s.push(o);return ie.apply([],s)},guid:1,proxy:function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),he.isFunction(e))return r=re.call(arguments,2),i=function(){return e.apply(t||this,r.concat(re.call(arguments)))},i.guid=e.guid=e.guid||he.guid++,i},now:Date.now,support:de}),"function"==typeof Symbol&&(he.fn[Symbol.iterator]=ee[Symbol.iterator]),he.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){se["[object "+t+"]"]=t.toLowerCase()});var ge=function(e){function t(e,t,n,r){var i,o,a,s,u,l,d,h=t&&t.ownerDocument,f=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==f&&9!==f&&11!==f)return n;if(!r&&((t?t.ownerDocument||t:V)!==A&&M(t),t=t||A,I)){if(11!==f&&(u=me.exec(e)))if(i=u[1]){if(9===f){if(!(a=t.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(h&&(a=h.getElementById(i))&&L(t,a)&&a.id===i)return n.push(a),n}else{if(u[2])return X.apply(n,t.getElementsByTagName(e)),n;if((i=u[3])&&b.getElementsByClassName&&t.getElementsByClassName)return X.apply(n,t.getElementsByClassName(i)),n}if(b.qsa&&!q[e+" "]&&(!R||!R.test(e))){if(1!==f)h=t,d=e;else if("object"!==t.nodeName.toLowerCase()){for((s=t.getAttribute("id"))?s=s.replace(_e,be):t.setAttribute("id",s=F),o=(l=C(e)).length;o--;)l[o]="#"+s+" "+p(l[o]);d=l.join(","),h=ve.test(e)&&c(t.parentNode)||t}if(d)try{return X.apply(n,h.querySelectorAll(d)),n}catch(e){}finally{s===F&&t.removeAttribute("id")}}}return E(e.replace(oe,"$1"),t,n,r)}function n(){function e(n,r){return t.push(n+" ")>w.cacheLength&&delete e[t.shift()],e[n+" "]=r}var t=[];return e}function r(e){return e[F]=!0,e}function i(e){var t=A.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function o(e,t){for(var n=e.split("|"),r=n.length;r--;)w.attrHandle[n[r]]=t}function a(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function s(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ke(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function u(e){return r(function(t){return t=+t,r(function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function c(e){return e&&void 0!==e.getElementsByTagName&&e}function l(){}function p(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function d(e,t,n){var r=t.dir,i=t.next,o=i||r,a=n&&"parentNode"===o,s=U++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||a)return e(t,n,i);return!1}:function(t,n,u){var c,l,p,d=[z,s];if(u){for(;t=t[r];)if((1===t.nodeType||a)&&e(t,n,u))return!0}else for(;t=t[r];)if(1===t.nodeType||a)if(p=t[F]||(t[F]={}),l=p[t.uniqueID]||(p[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[r]||t;else{if((c=l[o])&&c[0]===z&&c[1]===s)return d[2]=c[2];if(l[o]=d,d[2]=e(t,n,u))return!0}return!1}}function h(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function f(e,n,r){for(var i=0,o=n.length;i<o;i++)t(e,n[i],r);return r}function m(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,c=null!=t;s<u;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),c&&t.push(s)));return a}function v(e,t,n,i,o,a){return i&&!i[F]&&(i=v(i)),o&&!o[F]&&(o=v(o,a)),r(function(r,a,s,u){var c,l,p,d=[],h=[],v=a.length,y=r||f(t||"*",s.nodeType?[s]:s,[]),g=!e||!r&&t?y:m(y,d,e,s,u),_=n?o||(r?e:v||i)?[]:a:g;if(n&&n(g,_,s,u),i)for(c=m(_,h),i(c,[],s,u),l=c.length;l--;)(p=c[l])&&(_[h[l]]=!(g[h[l]]=p));if(r){if(o||e){if(o){for(c=[],l=_.length;l--;)(p=_[l])&&c.push(g[l]=p);o(null,_=[],c,u)}for(l=_.length;l--;)(p=_[l])&&(c=o?Q(r,p):d[l])>-1&&(r[c]=!(a[c]=p))}}else _=m(_===a?_.splice(v,_.length):_),o?o(null,a,_,u):X.apply(a,_)})}function y(e){for(var t,n,r,i=e.length,o=w.relative[e[0].type],a=o||w.relative[" "],s=o?1:0,u=d(function(e){return e===t},a,!0),c=d(function(e){return Q(t,e)>-1},a,!0),l=[function(e,n,r){var i=!o&&(r||n!==T)||((t=n).nodeType?u(e,n,r):c(e,n,r));return t=null,i}];s<i;s++)if(n=w.relative[e[s].type])l=[d(h(l),n)];else{if((n=w.filter[e[s].type].apply(null,e[s].matches))[F]){for(r=++s;r<i&&!w.relative[e[r].type];r++);return v(s>1&&h(l),s>1&&p(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(oe,"$1"),n,s<r&&y(e.slice(s,r)),r<i&&y(e=e.slice(r)),r<i&&p(e))}l.push(n)}return h(l)}function g(e,n){var i=n.length>0,o=e.length>0,a=function(r,a,s,u,c){var l,p,d,h=0,f="0",v=r&&[],y=[],g=T,_=r||o&&w.find.TAG("*",c),b=z+=null==g?1:Math.random()||.1,k=_.length;for(c&&(T=a===A||a||c);f!==k&&null!=(l=_[f]);f++){if(o&&l){for(p=0,a||l.ownerDocument===A||(M(l),s=!I);d=e[p++];)if(d(l,a||A,s)){u.push(l);break}c&&(z=b)}i&&((l=!d&&l)&&h--,r&&v.push(l))}if(h+=f,i&&f!==h){for(p=0;d=n[p++];)d(v,y,a,s);if(r){if(h>0)for(;f--;)v[f]||y[f]||(y[f]=Z.call(u));y=m(y)}X.apply(u,y),c&&!r&&y.length>0&&h+n.length>1&&t.uniqueSort(u)}return c&&(z=b,T=g),v};return i?r(a):a}var _,b,w,k,x,C,S,E,T,O,P,M,A,D,I,R,j,N,L,F="sizzle"+1*new Date,V=e.document,z=0,U=0,B=n(),H=n(),q=n(),W=function(e,t){return e===t&&(P=!0),0},G={}.hasOwnProperty,Y=[],Z=Y.pop,K=Y.push,X=Y.push,J=Y.slice,Q=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},$="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ee="[\\x20\\t\\r\\n\\f]",te="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",ne="\\["+ee+"*("+te+")(?:"+ee+"*([*^$|!~]?=)"+ee+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+te+"))|)"+ee+"*\\]",re=":("+te+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ne+")*)|.*)\\)|)",ie=new RegExp(ee+"+","g"),oe=new RegExp("^"+ee+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ee+"+$","g"),ae=new RegExp("^"+ee+"*,"+ee+"*"),se=new RegExp("^"+ee+"*([>+~]|"+ee+")"+ee+"*"),ue=new RegExp("="+ee+"*([^\\]'\"]*?)"+ee+"*\\]","g"),ce=new RegExp(re),le=new RegExp("^"+te+"$"),pe={ID:new RegExp("^#("+te+")"),CLASS:new RegExp("^\\.("+te+")"),TAG:new RegExp("^("+te+"|[*])"),ATTR:new RegExp("^"+ne),PSEUDO:new RegExp("^"+re),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ee+"*(even|odd|(([+-]|)(\\d*)n|)"+ee+"*(?:([+-]|)"+ee+"*(\\d+)|))"+ee+"*\\)|)","i"),bool:new RegExp("^(?:"+$+")$","i"),needsContext:new RegExp("^"+ee+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ee+"*((?:-\\d)?\\d*)"+ee+"*\\)|)(?=[^-]|$)","i")},de=/^(?:input|select|textarea|button)$/i,he=/^h\d$/i,fe=/^[^{]+\{\s*\[native \w/,me=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ve=/[+~]/,ye=new RegExp("\\\\([\\da-f]{1,6}"+ee+"?|("+ee+")|.)","ig"),ge=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},_e=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,be=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},we=function(){M()},ke=d(function(e){return!0===e.disabled&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{X.apply(Y=J.call(V.childNodes),V.childNodes),Y[V.childNodes.length].nodeType}catch(e){X={apply:Y.length?function(e,t){K.apply(e,J.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}b=t.support={},x=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},M=t.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:V;return r!==A&&9===r.nodeType&&r.documentElement?(A=r,D=A.documentElement,I=!x(A),V!==A&&(n=A.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",we,!1):n.attachEvent&&n.attachEvent("onunload",we)),b.attributes=i(function(e){return e.className="i",!e.getAttribute("className")}),b.getElementsByTagName=i(function(e){return e.appendChild(A.createComment("")),!e.getElementsByTagName("*").length}),b.getElementsByClassName=fe.test(A.getElementsByClassName),b.getById=i(function(e){return D.appendChild(e).id=F,!A.getElementsByName||!A.getElementsByName(F).length}),b.getById?(w.filter.ID=function(e){var t=e.replace(ye,ge);return function(e){return e.getAttribute("id")===t}},w.find.ID=function(e,t){if(void 0!==t.getElementById&&I){var n=t.getElementById(e);return n?[n]:[]}}):(w.filter.ID=function(e){var t=e.replace(ye,ge);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},w.find.ID=function(e,t){if(void 0!==t.getElementById&&I){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),w.find.TAG=b.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):b.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},w.find.CLASS=b.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&I)return t.getElementsByClassName(e)},j=[],R=[],(b.qsa=fe.test(A.querySelectorAll))&&(i(function(e){D.appendChild(e).innerHTML="<a id='"+F+"'></a><select id='"+F+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&R.push("[*^$]="+ee+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||R.push("\\["+ee+"*(?:value|"+$+")"),e.querySelectorAll("[id~="+F+"-]").length||R.push("~="),e.querySelectorAll(":checked").length||R.push(":checked"),e.querySelectorAll("a#"+F+"+*").length||R.push(".#.+[+~]")}),i(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=A.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&R.push("name"+ee+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&R.push(":enabled",":disabled"),D.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&R.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),R.push(",.*:")})),(b.matchesSelector=fe.test(N=D.matches||D.webkitMatchesSelector||D.mozMatchesSelector||D.oMatchesSelector||D.msMatchesSelector))&&i(function(e){b.disconnectedMatch=N.call(e,"*"),N.call(e,"[s!='']:x"),j.push("!=",re)}),R=R.length&&new RegExp(R.join("|")),j=j.length&&new RegExp(j.join("|")),t=fe.test(D.compareDocumentPosition),L=t||fe.test(D.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},W=t?function(e,t){if(e===t)return P=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!b.sortDetached&&t.compareDocumentPosition(e)===n?e===A||e.ownerDocument===V&&L(V,e)?-1:t===A||t.ownerDocument===V&&L(V,t)?1:O?Q(O,e)-Q(O,t):0:4&n?-1:1)}:function(e,t){if(e===t)return P=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,s=[e],u=[t];if(!i||!o)return e===A?-1:t===A?1:i?-1:o?1:O?Q(O,e)-Q(O,t):0;if(i===o)return a(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)u.unshift(n);for(;s[r]===u[r];)r++;return r?a(s[r],u[r]):s[r]===V?-1:u[r]===V?1:0},A):A},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==A&&M(e),n=n.replace(ue,"='$1']"),b.matchesSelector&&I&&!q[n+" "]&&(!j||!j.test(n))&&(!R||!R.test(n)))try{var r=N.call(e,n);if(r||b.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){}return t(n,A,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==A&&M(e),L(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==A&&M(e);var n=w.attrHandle[t.toLowerCase()],r=n&&G.call(w.attrHandle,t.toLowerCase())?n(e,t,!I):void 0;return void 0!==r?r:b.attributes||!I?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},t.escape=function(e){return(e+"").replace(_e,be)},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],r=0,i=0;if(P=!b.detectDuplicates,O=!b.sortStable&&e.slice(0),e.sort(W),P){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return O=null,e},k=t.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=k(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=k(t);return n},(w=t.selectors={cacheLength:50,createPseudo:r,match:pe,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(ye,ge),e[3]=(e[3]||e[4]||e[5]||"").replace(ye,ge),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return pe.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&ce.test(n)&&(t=C(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(ye,ge).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=B[e+" "];return t||(t=new RegExp("(^|"+ee+")"+e+"("+ee+"|$)"))&&B(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,r){return function(i){var o=t.attr(i,e);return null==o?"!="===n:!n||(o+="","="===n?o===r:"!="===n?o!==r:"^="===n?r&&0===o.indexOf(r):"*="===n?r&&o.indexOf(r)>-1:"$="===n?r&&o.slice(-r.length)===r:"~="===n?(" "+o.replace(ie," ")+" ").indexOf(r)>-1:"|="===n&&(o===r||o.slice(0,r.length+1)===r+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var c,l,p,d,h,f,m=o!==a?"nextSibling":"previousSibling",v=t.parentNode,y=s&&t.nodeName.toLowerCase(),g=!u&&!s,_=!1;if(v){if(o){for(;m;){for(d=t;d=d[m];)if(s?d.nodeName.toLowerCase()===y:1===d.nodeType)return!1;f=m="only"===e&&!f&&"nextSibling"}return!0}if(f=[a?v.firstChild:v.lastChild],a&&g){for(_=(h=(c=(l=(p=(d=v)[F]||(d[F]={}))[d.uniqueID]||(p[d.uniqueID]={}))[e]||[])[0]===z&&c[1])&&c[2],d=h&&v.childNodes[h];d=++h&&d&&d[m]||(_=h=0)||f.pop();)if(1===d.nodeType&&++_&&d===t){l[e]=[z,h,_];break}}else if(g&&(_=h=(c=(l=(p=(d=t)[F]||(d[F]={}))[d.uniqueID]||(p[d.uniqueID]={}))[e]||[])[0]===z&&c[1]),!1===_)for(;(d=++h&&d&&d[m]||(_=h=0)||f.pop())&&((s?d.nodeName.toLowerCase()!==y:1!==d.nodeType)||!++_||(g&&((l=(p=d[F]||(d[F]={}))[d.uniqueID]||(p[d.uniqueID]={}))[e]=[z,_]),d!==t)););return(_-=i)===r||_%r==0&&_/r>=0}}},PSEUDO:function(e,n){var i,o=w.pseudos[e]||w.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return o[F]?o(n):o.length>1?(i=[e,e,"",n],w.setFilters.hasOwnProperty(e.toLowerCase())?r(function(e,t){for(var r,i=o(e,n),a=i.length;a--;)e[r=Q(e,i[a])]=!(t[r]=i[a])}):function(e){return o(e,0,i)}):o}},pseudos:{not:r(function(e){var t=[],n=[],i=S(e.replace(oe,"$1"));return i[F]?r(function(e,t,n,r){for(var o,a=i(e,null,r,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,r,o){return t[0]=e,i(t,null,o,n),t[0]=null,!n.pop()}}),has:r(function(e){return function(n){return t(e,n).length>0}}),contains:r(function(e){return e=e.replace(ye,ge),function(t){return(t.textContent||t.innerText||k(t)).indexOf(e)>-1}}),lang:r(function(e){return le.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(ye,ge).toLowerCase(),function(t){var n;do{if(n=I?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===D},focus:function(e){return e===A.activeElement&&(!A.hasFocus||A.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:s(!1),disabled:s(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!w.pseudos.empty(e)},header:function(e){return he.test(e.nodeName)},input:function(e){return de.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:u(function(){return[0]}),last:u(function(e,t){return[t-1]}),eq:u(function(e,t,n){return[n<0?n+t:n]}),even:u(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:u(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:u(function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e}),gt:u(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=w.pseudos.eq;for(_ in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})w.pseudos[_]=function(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}(_);for(_ in{submit:!0,reset:!0})w.pseudos[_]=function(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}(_);return l.prototype=w.filters=w.pseudos,w.setFilters=new l,C=t.tokenize=function(e,n){var r,i,o,a,s,u,c,l=H[e+" "];if(l)return n?0:l.slice(0);for(s=e,u=[],c=w.preFilter;s;){r&&!(i=ae.exec(s))||(i&&(s=s.slice(i[0].length)||s),u.push(o=[])),r=!1,(i=se.exec(s))&&(r=i.shift(),o.push({value:r,type:i[0].replace(oe," ")}),s=s.slice(r.length));for(a in w.filter)!(i=pe[a].exec(s))||c[a]&&!(i=c[a](i))||(r=i.shift(),o.push({value:r,type:a,matches:i}),s=s.slice(r.length));if(!r)break}return n?s.length:s?t.error(e):H(e,u).slice(0)},S=t.compile=function(e,t){var n,r=[],i=[],o=q[e+" "];if(!o){for(t||(t=C(e)),n=t.length;n--;)(o=y(t[n]))[F]?r.push(o):i.push(o);(o=q(e,g(i,r))).selector=e}return o},E=t.select=function(e,t,n,r){var i,o,a,s,u,l="function"==typeof e&&e,d=!r&&C(e=l.selector||e);if(n=n||[],1===d.length){if((o=d[0]=d[0].slice(0)).length>2&&"ID"===(a=o[0]).type&&9===t.nodeType&&I&&w.relative[o[1].type]){if(!(t=(w.find.ID(a.matches[0].replace(ye,ge),t)||[])[0]))return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=pe.needsContext.test(e)?0:o.length;i--&&(a=o[i],!w.relative[s=a.type]);)if((u=w.find[s])&&(r=u(a.matches[0].replace(ye,ge),ve.test(o[0].type)&&c(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&p(o)))return X.apply(n,r),n;break}}return(l||S(e,d))(r,t,!I,n,!t||ve.test(e)&&c(t.parentNode)||t),n},b.sortStable=F.split("").sort(W).join("")===F,b.detectDuplicates=!!P,M(),b.sortDetached=i(function(e){return 1&e.compareDocumentPosition(A.createElement("fieldset"))}),i(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||o("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),b.attributes&&i(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||o("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),i(function(e){return null==e.getAttribute("disabled")})||o($,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),t}(e);he.find=ge,he.expr=ge.selectors,he.expr[":"]=he.expr.pseudos,he.uniqueSort=he.unique=ge.uniqueSort,he.text=ge.getText,he.isXMLDoc=ge.isXML,he.contains=ge.contains,he.escapeSelector=ge.escape;var _e=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&he(e).is(n))break;r.push(e)}return r},be=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},we=he.expr.match.needsContext,ke=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,xe=/^.[^:#\[\.,]*$/;he.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?he.find.matchesSelector(r,e)?[r]:[]:he.find.matches(e,he.grep(t,function(e){return 1===e.nodeType}))},he.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(he(e).filter(function(){for(t=0;t<r;t++)if(he.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)he.find(e,i[t],n);return r>1?he.uniqueSort(n):n},filter:function(e){return this.pushStack(o(this,e||[],!1))},not:function(e){return this.pushStack(o(this,e||[],!0))},is:function(e){return!!o(this,"string"==typeof e&&we.test(e)?he(e):e||[],!1).length}});var Ce,Se=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(he.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||Ce,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:Se.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof he?t[0]:t,he.merge(this,he.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:te,!0)),ke.test(r[1])&&he.isPlainObject(t))for(r in t)he.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=te.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):he.isFunction(e)?void 0!==n.ready?n.ready(e):e(he):he.makeArray(e,this)}).prototype=he.fn,Ce=he(te);var Ee=/^(?:parents|prev(?:Until|All))/,Te={children:!0,contents:!0,next:!0,prev:!0};he.fn.extend({has:function(e){var t=he(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(he.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&he(e);if(!we.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&he.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?he.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?ae.call(he(e),this[0]):ae.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(he.uniqueSort(he.merge(this.get(),he(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),he.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return _e(e,"parentNode")},parentsUntil:function(e,t,n){return _e(e,"parentNode",n)},next:function(e){return a(e,"nextSibling")},prev:function(e){return a(e,"previousSibling")},nextAll:function(e){return _e(e,"nextSibling")},prevAll:function(e){return _e(e,"previousSibling")},nextUntil:function(e,t,n){return _e(e,"nextSibling",n)},prevUntil:function(e,t,n){return _e(e,"previousSibling",n)},siblings:function(e){return be((e.parentNode||{}).firstChild,e)},children:function(e){return be(e.firstChild)},contents:function(e){return i(e,"iframe")?e.contentDocument:(i(e,"template")&&(e=e.content||e),he.merge([],e.childNodes))}},function(e,t){he.fn[e]=function(n,r){var i=he.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=he.filter(r,i)),this.length>1&&(Te[e]||he.uniqueSort(i),Ee.test(e)&&i.reverse()),this.pushStack(i)}});var Oe=/[^\x20\t\r\n\f]+/g;he.Callbacks=function(e){e="string"==typeof e?s(e):he.extend({},e);var t,n,r,i,o=[],a=[],u=-1,c=function(){for(i=i||e.once,r=t=!0;a.length;u=-1)for(n=a.shift();++u<o.length;)!1===o[u].apply(n[0],n[1])&&e.stopOnFalse&&(u=o.length,n=!1);e.memory||(n=!1),t=!1,i&&(o=n?[]:"")},l={add:function(){return o&&(n&&!t&&(u=o.length-1,a.push(n)),function t(n){he.each(n,function(n,r){he.isFunction(r)?e.unique&&l.has(r)||o.push(r):r&&r.length&&"string"!==he.type(r)&&t(r)})}(arguments),n&&!t&&c()),this},remove:function(){return he.each(arguments,function(e,t){for(var n;(n=he.inArray(t,o,n))>-1;)o.splice(n,1),n<=u&&u--}),this},has:function(e){return e?he.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=a=[],n||t||(o=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||c()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l},he.extend({Deferred:function(t){var n=[["notify","progress",he.Callbacks("memory"),he.Callbacks("memory"),2],["resolve","done",he.Callbacks("once memory"),he.Callbacks("once memory"),0,"resolved"],["reject","fail",he.Callbacks("once memory"),he.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return he.Deferred(function(t){he.each(n,function(n,r){var i=he.isFunction(e[r[4]])&&e[r[4]];o[r[1]](function(){var e=i&&i.apply(this,arguments);e&&he.isFunction(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[r[0]+"With"](this,i?[e]:arguments)})}),e=null}).promise()},then:function(t,r,i){function o(t,n,r,i){return function(){var s=this,l=arguments,p=function(){var e,p;if(!(t<a)){if((e=r.apply(s,l))===n.promise())throw new TypeError("Thenable self-resolution");p=e&&("object"==typeof e||"function"==typeof e)&&e.then,he.isFunction(p)?i?p.call(e,o(a,n,u,i),o(a,n,c,i)):(a++,p.call(e,o(a,n,u,i),o(a,n,c,i),o(a,n,u,n.notifyWith))):(r!==u&&(s=void 0,l=[e]),(i||n.resolveWith)(s,l))}},d=i?p:function(){try{p()}catch(e){he.Deferred.exceptionHook&&he.Deferred.exceptionHook(e,d.stackTrace),t+1>=a&&(r!==c&&(s=void 0,l=[e]),n.rejectWith(s,l))}};t?d():(he.Deferred.getStackHook&&(d.stackTrace=he.Deferred.getStackHook()),e.setTimeout(d))}}var a=0;return he.Deferred(function(e){n[0][3].add(o(0,e,he.isFunction(i)?i:u,e.notifyWith)),n[1][3].add(o(0,e,he.isFunction(t)?t:u)),n[2][3].add(o(0,e,he.isFunction(r)?r:c))}).promise()},promise:function(e){return null!=e?he.extend(e,i):i}},o={};return he.each(n,function(e,t){var a=t[2],s=t[5];i[t[1]]=a.add,s&&a.add(function(){r=s},n[3-e][2].disable,n[0][2].lock),a.add(t[3].fire),o[t[0]]=function(){return o[t[0]+"With"](this===o?void 0:this,arguments),this},o[t[0]+"With"]=a.fireWith}),i.promise(o),t&&t.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),i=re.call(arguments),o=he.Deferred(),a=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?re.call(arguments):n,--t||o.resolveWith(r,i)}};if(t<=1&&(l(e,o.done(a(n)).resolve,o.reject,!t),"pending"===o.state()||he.isFunction(i[n]&&i[n].then)))return o.then();for(;n--;)l(i[n],a(n),o.reject);return o.promise()}});var Pe=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;he.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&Pe.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},he.readyException=function(t){e.setTimeout(function(){throw t})};var Me=he.Deferred();he.fn.ready=function(e){return Me.then(e).catch(function(e){he.readyException(e)}),this},he.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--he.readyWait:he.isReady)||(he.isReady=!0,!0!==e&&--he.readyWait>0||Me.resolveWith(te,[he]))}}),he.ready.then=Me.then,"complete"===te.readyState||"loading"!==te.readyState&&!te.documentElement.doScroll?e.setTimeout(he.ready):(te.addEventListener("DOMContentLoaded",p),e.addEventListener("load",p));var Ae=function(e,t,n,r,i,o,a){var s=0,u=e.length,c=null==n;if("object"===he.type(n)){i=!0;for(s in n)Ae(e,t,s,n[s],!0,o,a)}else if(void 0!==r&&(i=!0,he.isFunction(r)||(a=!0),c&&(a?(t.call(e,r),t=null):(c=t,t=function(e,t,n){return c.call(he(e),n)})),t))for(;s<u;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:c?t.call(e):u?t(e[0],n):o},De=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};d.uid=1,d.prototype={cache:function(e){var t=e[this.expando];return t||(t={},De(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[he.camelCase(t)]=n;else for(r in t)i[he.camelCase(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][he.camelCase(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(he.camelCase):(t=he.camelCase(t))in r?[t]:t.match(Oe)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||he.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!he.isEmptyObject(t)}};var Ie=new d,Re=new d,je=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Ne=/[A-Z]/g;he.extend({hasData:function(e){return Re.hasData(e)||Ie.hasData(e)},data:function(e,t,n){return Re.access(e,t,n)},removeData:function(e,t){Re.remove(e,t)},_data:function(e,t,n){return Ie.access(e,t,n)},_removeData:function(e,t){Ie.remove(e,t)}}),he.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(i=Re.get(o),1===o.nodeType&&!Ie.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf("data-")&&(r=he.camelCase(r.slice(5)),f(o,r,i[r]));Ie.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each(function(){Re.set(this,e)}):Ae(this,function(t){var n;if(o&&void 0===t){if(void 0!==(n=Re.get(o,e)))return n;if(void 0!==(n=f(o,e)))return n}else this.each(function(){Re.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){Re.remove(this,e)})}}),he.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Ie.get(e,t),n&&(!r||Array.isArray(n)?r=Ie.access(e,t,he.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=he.queue(e,t),r=n.length,i=n.shift(),o=he._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){he.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Ie.get(e,n)||Ie.access(e,n,{empty:he.Callbacks("once memory").add(function(){Ie.remove(e,[t+"queue",n])})})}}),he.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?he.queue(this[0],e):void 0===t?this:this.each(function(){var n=he.queue(this,e,t);he._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&he.dequeue(this,e)})},dequeue:function(e){return this.each(function(){he.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=he.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=Ie.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var Le=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Fe=new RegExp("^(?:([+-])=|)("+Le+")([a-z%]*)$","i"),Ve=["Top","Right","Bottom","Left"],ze=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&he.contains(e.ownerDocument,e)&&"none"===he.css(e,"display")},Ue=function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];i=n.apply(e,r||[]);for(o in t)e.style[o]=a[o];return i},Be={};he.fn.extend({show:function(){return y(this,!0)},hide:function(){return y(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ze(this)?he(this).show():he(this).hide()})}});var He=/^(?:checkbox|radio)$/i,qe=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,We=/^$|\/(?:java|ecma)script/i,Ge={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Ge.optgroup=Ge.option,Ge.tbody=Ge.tfoot=Ge.colgroup=Ge.caption=Ge.thead,Ge.th=Ge.td;var Ye=/<|&#?\w+;/;!function(){var e=te.createDocumentFragment().appendChild(te.createElement("div")),t=te.createElement("input");t.setAttribute("type","radio"),t.setAttribute("checked","checked"),t.setAttribute("name","t"),e.appendChild(t),de.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",de.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var Ze=te.documentElement,Ke=/^key/,Xe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Je=/^([^.]*)(?:\.(.+)|)/;he.event={global:{},add:function(e,t,n,r,i){var o,a,s,u,c,l,p,d,h,f,m,v=Ie.get(e);if(v)for(n.handler&&(n=(o=n).handler,i=o.selector),i&&he.find.matchesSelector(Ze,i),n.guid||(n.guid=he.guid++),(u=v.events)||(u=v.events={}),(a=v.handle)||(a=v.handle=function(t){return void 0!==he&&he.event.triggered!==t.type?he.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(Oe)||[""]).length;c--;)h=m=(s=Je.exec(t[c])||[])[1],f=(s[2]||"").split(".").sort(),h&&(p=he.event.special[h]||{},h=(i?p.delegateType:p.bindType)||h,p=he.event.special[h]||{},l=he.extend({type:h,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&he.expr.match.needsContext.test(i),namespace:f.join(".")},o),(d=u[h])||((d=u[h]=[]).delegateCount=0,p.setup&&!1!==p.setup.call(e,r,f,a)||e.addEventListener&&e.addEventListener(h,a)),p.add&&(p.add.call(e,l),l.handler.guid||(l.handler.guid=n.guid)),i?d.splice(d.delegateCount++,0,l):d.push(l),he.event.global[h]=!0)},remove:function(e,t,n,r,i){var o,a,s,u,c,l,p,d,h,f,m,v=Ie.hasData(e)&&Ie.get(e);if(v&&(u=v.events)){for(c=(t=(t||"").match(Oe)||[""]).length;c--;)if(s=Je.exec(t[c])||[],h=m=s[1],f=(s[2]||"").split(".").sort(),h){for(p=he.event.special[h]||{},d=u[h=(r?p.delegateType:p.bindType)||h]||[],s=s[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=d.length;o--;)l=d[o],!i&&m!==l.origType||n&&n.guid!==l.guid||s&&!s.test(l.namespace)||r&&r!==l.selector&&("**"!==r||!l.selector)||(d.splice(o,1),l.selector&&d.delegateCount--,p.remove&&p.remove.call(e,l));a&&!d.length&&(p.teardown&&!1!==p.teardown.call(e,f,v.handle)||he.removeEvent(e,h,v.handle),delete u[h])}else for(h in u)he.event.remove(e,h+t[c],n,r,!0);he.isEmptyObject(u)&&Ie.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=he.event.fix(e),u=new Array(arguments.length),c=(Ie.get(this,"events")||{})[s.type]||[],l=he.event.special[s.type]||{};for(u[0]=s,t=1;t<arguments.length;t++)u[t]=arguments[t];if(s.delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,s)){for(a=he.event.handlers.call(this,s,c),t=0;(i=a[t++])&&!s.isPropagationStopped();)for(s.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!s.rnamespace.test(o.namespace)||(s.handleObj=o,s.data=o.data,void 0!==(r=((he.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,u))&&!1===(s.result=r)&&(s.preventDefault(),s.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,s),s.result}},handlers:function(e,t){var n,r,i,o,a,s=[],u=t.delegateCount,c=e.target;if(u&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(o=[],a={},n=0;n<u;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?he(i,this).index(c)>-1:he.find(i,this,null,[c]).length),a[i]&&o.push(r);o.length&&s.push({elem:c,handlers:o})}return c=this,u<t.length&&s.push({elem:c,handlers:t.slice(u)}),s},addProp:function(e,t){Object.defineProperty(he.Event.prototype,e,{enumerable:!0,configurable:!0,get:he.isFunction(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[he.expando]?e:new he.Event(e)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==x()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===x()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&i(this,"input"))return this.click(),!1},_default:function(e){return i(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},he.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},he.Event=function(e,t){if(!(this instanceof he.Event))return new he.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?w:k,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&he.extend(this,t),this.timeStamp=e&&e.timeStamp||he.now(),this[he.expando]=!0},he.Event.prototype={constructor:he.Event,isDefaultPrevented:k,isPropagationStopped:k,isImmediatePropagationStopped:k,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=w,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=w,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=w,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},he.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&Ke.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&Xe.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},he.event.addProp),he.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){he.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return i&&(i===r||he.contains(r,i))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),he.fn.extend({on:function(e,t,n,r){return C(this,e,t,n,r)},one:function(e,t,n,r){return C(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,he(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=k),this.each(function(){he.event.remove(this,e,n,t)})}});var Qe=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,$e=/<script|<style|<link/i,et=/checked\s*(?:[^=]|=\s*.checked.)/i,tt=/^true\/(.*)/,nt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;he.extend({htmlPrefilter:function(e){return e.replace(Qe,"<$1></$2>")},clone:function(e,t,n){var r,i,o,a,s=e.cloneNode(!0),u=he.contains(e.ownerDocument,e);if(!(de.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||he.isXMLDoc(e)))for(a=g(s),r=0,i=(o=g(e)).length;r<i;r++)P(o[r],a[r]);if(t)if(n)for(o=o||g(e),a=a||g(s),r=0,i=o.length;r<i;r++)O(o[r],a[r]);else O(e,s);return(a=g(s,"script")).length>0&&_(a,!u&&g(e,"script")),s},cleanData:function(e){for(var t,n,r,i=he.event.special,o=0;void 0!==(n=e[o]);o++)if(De(n)){if(t=n[Ie.expando]){if(t.events)for(r in t.events)i[r]?he.event.remove(n,r):he.removeEvent(n,r,t.handle);n[Ie.expando]=void 0}n[Re.expando]&&(n[Re.expando]=void 0)}}}),he.fn.extend({detach:function(e){return A(this,e,!0)},remove:function(e){return A(this,e)},text:function(e){return Ae(this,function(e){return void 0===e?he.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return M(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||S(this,e).appendChild(e)})},prepend:function(){return M(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=S(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return M(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return M(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(he.cleanData(g(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return he.clone(this,e,t)})},html:function(e){return Ae(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!$e.test(e)&&!Ge[(qe.exec(e)||["",""])[1].toLowerCase()]){e=he.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(he.cleanData(g(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return M(this,arguments,function(t){var n=this.parentNode;he.inArray(this,e)<0&&(he.cleanData(g(this)),n&&n.replaceChild(t,this))},e)}}),he.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){he.fn[e]=function(e){for(var n,r=[],i=he(e),o=i.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),he(i[a])[t](n),oe.apply(r,n.get());return this.pushStack(r)}});var rt=/^margin/,it=new RegExp("^("+Le+")(?!px)[a-z%]+$","i"),ot=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)};!function(){function t(){if(s){s.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",s.innerHTML="",Ze.appendChild(a);var t=e.getComputedStyle(s);n="1%"!==t.top,o="2px"===t.marginLeft,r="4px"===t.width,s.style.marginRight="50%",i="4px"===t.marginRight,Ze.removeChild(a),s=null}}var n,r,i,o,a=te.createElement("div"),s=te.createElement("div");s.style&&(s.style.backgroundClip="content-box",s.cloneNode(!0).style.backgroundClip="",de.clearCloneStyle="content-box"===s.style.backgroundClip,a.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",a.appendChild(s),he.extend(de,{pixelPosition:function(){return t(),n},boxSizingReliable:function(){return t(),r},pixelMarginRight:function(){return t(),i},reliableMarginLeft:function(){return t(),o}}))}();var at=/^(none|table(?!-c[ea]).+)/,st=/^--/,ut={position:"absolute",visibility:"hidden",display:"block"},ct={letterSpacing:"0",fontWeight:"400"},lt=["Webkit","Moz","ms"],pt=te.createElement("div").style;he.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=D(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=he.camelCase(t),u=st.test(t),c=e.style;if(u||(t=j(s)),a=he.cssHooks[t]||he.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:c[t];"string"==(o=typeof n)&&(i=Fe.exec(n))&&i[1]&&(n=m(e,t,i),o="number"),null!=n&&n===n&&("number"===o&&(n+=i&&i[3]||(he.cssNumber[s]?"":"px")),de.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,r){var i,o,a,s=he.camelCase(t);return st.test(t)||(t=j(s)),(a=he.cssHooks[t]||he.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=D(e,t,r)),"normal"===i&&t in ct&&(i=ct[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),he.each(["height","width"],function(e,t){he.cssHooks[t]={get:function(e,n,r){if(n)return!at.test(he.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?F(e,t,r):Ue(e,ut,function(){return F(e,t,r)})},set:function(e,n,r){var i,o=r&&ot(e),a=r&&L(e,t,r,"border-box"===he.css(e,"boxSizing",!1,o),o);return a&&(i=Fe.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=he.css(e,t)),N(0,n,a)}}}),he.cssHooks.marginLeft=I(de.reliableMarginLeft,function(e,t){if(t)return(parseFloat(D(e,"marginLeft"))||e.getBoundingClientRect().left-Ue(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),he.each({margin:"",padding:"",border:"Width"},function(e,t){he.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+Ve[r]+t]=o[r]||o[r-2]||o[0];return i}},rt.test(e)||(he.cssHooks[e+t].set=N)}),he.fn.extend({css:function(e,t){return Ae(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=ot(e),i=t.length;a<i;a++)o[t[a]]=he.css(e,t[a],!1,r);return o}return void 0!==n?he.style(e,t,n):he.css(e,t)},e,t,arguments.length>1)}}),he.Tween=V,V.prototype={constructor:V,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||he.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(he.cssNumber[n]?"":"px")},cur:function(){var e=V.propHooks[this.prop];return e&&e.get?e.get(this):V.propHooks._default.get(this)},run:function(e){var t,n=V.propHooks[this.prop];return this.options.duration?this.pos=t=he.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):V.propHooks._default.set(this),this}},V.prototype.init.prototype=V.prototype,V.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=he.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){he.fx.step[e.prop]?he.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[he.cssProps[e.prop]]&&!he.cssHooks[e.prop]?e.elem[e.prop]=e.now:he.style(e.elem,e.prop,e.now+e.unit)}}},V.propHooks.scrollTop=V.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},he.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},he.fx=V.prototype.init,he.fx.step={};var dt,ht,ft=/^(?:toggle|show|hide)$/,mt=/queueHooks$/;he.Animation=he.extend(W,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return m(n.elem,e,Fe.exec(t),n),n}]},tweener:function(e,t){he.isFunction(e)?(t=e,e=["*"]):e=e.match(Oe);for(var n,r=0,i=e.length;r<i;r++)n=e[r],W.tweeners[n]=W.tweeners[n]||[],W.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,u,c,l,p="width"in t||"height"in t,d=this,h={},f=e.style,m=e.nodeType&&ze(e),v=Ie.get(e,"fxshow");n.queue||(null==(a=he._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,d.always(function(){d.always(function(){a.unqueued--,he.queue(e,"fx").length||a.empty.fire()})}));for(r in t)if(i=t[r],ft.test(i)){if(delete t[r],o=o||"toggle"===i,i===(m?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;m=!0}h[r]=v&&v[r]||he.style(e,r)}if((u=!he.isEmptyObject(t))||!he.isEmptyObject(h)){p&&1===e.nodeType&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],null==(c=v&&v.display)&&(c=Ie.get(e,"display")),"none"===(l=he.css(e,"display"))&&(c?l=c:(y([e],!0),c=e.style.display||c,l=he.css(e,"display"),y([e]))),("inline"===l||"inline-block"===l&&null!=c)&&"none"===he.css(e,"float")&&(u||(d.done(function(){f.display=c}),null==c&&(l=f.display,c="none"===l?"":l)),f.display="inline-block")),n.overflow&&(f.overflow="hidden",d.always(function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]})),u=!1;for(r in h)u||(v?"hidden"in v&&(m=v.hidden):v=Ie.access(e,"fxshow",{display:c}),o&&(v.hidden=!m),m&&y([e],!0),d.done(function(){m||y([e]),Ie.remove(e,"fxshow");for(r in h)he.style(e,r,h[r])})),u=H(m?v[r]:0,r,d),r in v||(v[r]=u.start,m&&(u.end=u.start,u.start=0))}}],prefilter:function(e,t){t?W.prefilters.unshift(e):W.prefilters.push(e)}}),he.speed=function(e,t,n){var r=e&&"object"==typeof e?he.extend({},e):{complete:n||!n&&t||he.isFunction(e)&&e,duration:e,easing:n&&t||t&&!he.isFunction(t)&&t};return he.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in he.fx.speeds?r.duration=he.fx.speeds[r.duration]:r.duration=he.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){he.isFunction(r.old)&&r.old.call(this),r.queue&&he.dequeue(this,r.queue)},r},he.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ze).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=he.isEmptyObject(e),o=he.speed(t,n,r),a=function(){var t=W(this,he.extend({},e),o);(i||Ie.get(this,"finish"))&&t.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",o=he.timers,a=Ie.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&mt.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||he.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=Ie.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=he.timers,a=r?r.length:0;for(n.finish=!0,he.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),he.each(["toggle","show","hide"],function(e,t){var n=he.fn[t];he.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(B(t,!0),e,r,i)}}),he.each({slideDown:B("show"),slideUp:B("hide"),slideToggle:B("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){he.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),he.timers=[],he.fx.tick=function(){var e,t=0,n=he.timers;for(dt=he.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||he.fx.stop(),dt=void 0},he.fx.timer=function(e){he.timers.push(e),he.fx.start()},he.fx.interval=13,he.fx.start=function(){ht||(ht=!0,z())},he.fx.stop=function(){ht=null},he.fx.speeds={slow:600,fast:200,_default:400},he.fn.delay=function(t,n){return t=he.fx?he.fx.speeds[t]||t:t,n=n||"fx",this.queue(n,function(n,r){var i=e.setTimeout(n,t);r.stop=function(){e.clearTimeout(i)}})},function(){var e=te.createElement("input"),t=te.createElement("select").appendChild(te.createElement("option"));e.type="checkbox",de.checkOn=""!==e.value,de.optSelected=t.selected,(e=te.createElement("input")).value="t",e.type="radio",de.radioValue="t"===e.value}();var vt,yt=he.expr.attrHandle;he.fn.extend({attr:function(e,t){return Ae(this,he.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){he.removeAttr(this,e)})}}),he.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?he.prop(e,t,n):(1===o&&he.isXMLDoc(e)||(i=he.attrHooks[t.toLowerCase()]||(he.expr.match.bool.test(t)?vt:void 0)),void 0!==n?null===n?void he.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=he.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!de.radioValue&&"radio"===t&&i(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(Oe);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),vt={set:function(e,t,n){return!1===t?he.removeAttr(e,n):e.setAttribute(n,n),n}},he.each(he.expr.match.bool.source.match(/\w+/g),function(e,t){var n=yt[t]||he.find.attr;yt[t]=function(e,t,r){var i,o,a=t.toLowerCase();return r||(o=yt[a],yt[a]=i,i=null!=n(e,t,r)?a:null,yt[a]=o),i}});var gt=/^(?:input|select|textarea|button)$/i,_t=/^(?:a|area)$/i;he.fn.extend({prop:function(e,t){return Ae(this,he.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[he.propFix[e]||e]})}}),he.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&he.isXMLDoc(e)||(t=he.propFix[t]||t,i=he.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=he.find.attr(e,"tabindex");return t?parseInt(t,10):gt.test(e.nodeName)||_t.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),de.optSelected||(he.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),he.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){he.propFix[this.toLowerCase()]=this}),he.fn.extend({addClass:function(e){var t,n,r,i,o,a,s,u=0;if(he.isFunction(e))return this.each(function(t){he(this).addClass(e.call(this,t,Y(this)))});if("string"==typeof e&&e)for(t=e.match(Oe)||[];n=this[u++];)if(i=Y(n),r=1===n.nodeType&&" "+G(i)+" "){for(a=0;o=t[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=G(r))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,i,o,a,s,u=0;if(he.isFunction(e))return this.each(function(t){he(this).removeClass(e.call(this,t,Y(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(Oe)||[];n=this[u++];)if(i=Y(n),r=1===n.nodeType&&" "+G(i)+" "){for(a=0;o=t[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");i!==(s=G(r))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):he.isFunction(e)?this.each(function(n){he(this).toggleClass(e.call(this,n,Y(this),t),t)}):this.each(function(){var t,r,i,o;if("string"===n)for(r=0,i=he(this),o=e.match(Oe)||[];t=o[r++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else void 0!==e&&"boolean"!==n||((t=Y(this))&&Ie.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":Ie.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+G(Y(n))+" ").indexOf(t)>-1)return!0;return!1}});var bt=/\r/g;he.fn.extend({val:function(e){var t,n,r,i=this[0];{if(arguments.length)return r=he.isFunction(e),this.each(function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,he(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=he.map(i,function(e){return null==e?"":e+""})),(t=he.valHooks[this.type]||he.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))});if(i)return(t=he.valHooks[i.type]||he.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(bt,""):null==n?"":n}}}),he.extend({valHooks:{option:{get:function(e){var t=he.find.attr(e,"value");return null!=t?t:G(he.text(e))}},select:{get:function(e){var t,n,r,o=e.options,a=e.selectedIndex,s="select-one"===e.type,u=s?null:[],c=s?a+1:o.length;for(r=a<0?c:s?a:0;r<c;r++)if(((n=o[r]).selected||r===a)&&!n.disabled&&(!n.parentNode.disabled||!i(n.parentNode,"optgroup"))){if(t=he(n).val(),s)return t;u.push(t)}return u},set:function(e,t){for(var n,r,i=e.options,o=he.makeArray(t),a=i.length;a--;)((r=i[a]).selected=he.inArray(he.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),he.each(["radio","checkbox"],function(){he.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=he.inArray(he(e).val(),t)>-1}},de.checkOn||(he.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var wt=/^(?:focusinfocus|focusoutblur)$/;he.extend(he.event,{trigger:function(t,n,r,i){var o,a,s,u,c,l,p,d=[r||te],h=ce.call(t,"type")?t.type:t,f=ce.call(t,"namespace")?t.namespace.split("."):[];if(a=s=r=r||te,3!==r.nodeType&&8!==r.nodeType&&!wt.test(h+he.event.triggered)&&(h.indexOf(".")>-1&&(h=(f=h.split(".")).shift(),f.sort()),c=h.indexOf(":")<0&&"on"+h,t=t[he.expando]?t:new he.Event(h,"object"==typeof t&&t),t.isTrigger=i?2:3,t.namespace=f.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:he.makeArray(n,[t]),p=he.event.special[h]||{},i||!p.trigger||!1!==p.trigger.apply(r,n))){if(!i&&!p.noBubble&&!he.isWindow(r)){for(u=p.delegateType||h,wt.test(u+h)||(a=a.parentNode);a;a=a.parentNode)d.push(a),s=a;s===(r.ownerDocument||te)&&d.push(s.defaultView||s.parentWindow||e)}for(o=0;(a=d[o++])&&!t.isPropagationStopped();)t.type=o>1?u:p.bindType||h,(l=(Ie.get(a,"events")||{})[t.type]&&Ie.get(a,"handle"))&&l.apply(a,n),(l=c&&a[c])&&l.apply&&De(a)&&(t.result=l.apply(a,n),!1===t.result&&t.preventDefault());return t.type=h,i||t.isDefaultPrevented()||p._default&&!1!==p._default.apply(d.pop(),n)||!De(r)||c&&he.isFunction(r[h])&&!he.isWindow(r)&&((s=r[c])&&(r[c]=null),he.event.triggered=h,r[h](),he.event.triggered=void 0,s&&(r[c]=s)),t.result}},simulate:function(e,t,n){var r=he.extend(new he.Event,n,{type:e,isSimulated:!0});he.event.trigger(r,null,t)}}),he.fn.extend({trigger:function(e,t){return this.each(function(){he.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return he.event.trigger(e,t,n,!0)}}),he.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){he.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),he.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),de.focusin="onfocusin"in e,de.focusin||he.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){he.event.simulate(t,e.target,he.event.fix(e))};he.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=Ie.access(r,t);i||r.addEventListener(e,n,!0),Ie.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=Ie.access(r,t)-1;i?Ie.access(r,t,i):(r.removeEventListener(e,n,!0),Ie.remove(r,t))}}});var kt=e.location,xt=he.now(),Ct=/\?/;he.parseXML=function(t){var n;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(e){n=void 0}return n&&!n.getElementsByTagName("parsererror").length||he.error("Invalid XML: "+t),n};var St=/\[\]$/,Et=/\r?\n/g,Tt=/^(?:submit|button|image|reset|file)$/i,Ot=/^(?:input|select|textarea|keygen)/i;he.param=function(e,t){var n,r=[],i=function(e,t){var n=he.isFunction(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(Array.isArray(e)||e.jquery&&!he.isPlainObject(e))he.each(e,function(){i(this.name,this.value)});else for(n in e)Z(n,e[n],t,i);return r.join("&")},he.fn.extend({serialize:function(){return he.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=he.prop(this,"elements");return e?he.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!he(this).is(":disabled")&&Ot.test(this.nodeName)&&!Tt.test(e)&&(this.checked||!He.test(e))}).map(function(e,t){var n=he(this).val();return null==n?null:Array.isArray(n)?he.map(n,function(e){return{name:t.name,value:e.replace(Et,"\r\n")}}):{name:t.name,value:n.replace(Et,"\r\n")}}).get()}});var Pt=/%20/g,Mt=/#.*$/,At=/([?&])_=[^&]*/,Dt=/^(.*?):[ \t]*([^\r\n]*)$/gm,It=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Rt=/^(?:GET|HEAD)$/,jt=/^\/\//,Nt={},Lt={},Ft="*/".concat("*"),Vt=te.createElement("a");Vt.href=kt.href,he.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:kt.href,type:"GET",isLocal:It.test(kt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ft,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":he.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?J(J(e,he.ajaxSettings),t):J(he.ajaxSettings,e)},ajaxPrefilter:K(Nt),ajaxTransport:K(Lt),ajax:function(t,n){function r(t,n,r,s){var c,d,h,b,w,k=n;l||(l=!0,u&&e.clearTimeout(u),i=void 0,a=s||"",x.readyState=t>0?4:0,c=t>=200&&t<300||304===t,r&&(b=Q(f,x,r)),b=$(f,b,x,c),c?(f.ifModified&&((w=x.getResponseHeader("Last-Modified"))&&(he.lastModified[o]=w),(w=x.getResponseHeader("etag"))&&(he.etag[o]=w)),204===t||"HEAD"===f.type?k="nocontent":304===t?k="notmodified":(k=b.state,d=b.data,c=!(h=b.error))):(h=k,!t&&k||(k="error",t<0&&(t=0))),x.status=t,x.statusText=(n||k)+"",c?y.resolveWith(m,[d,k,x]):y.rejectWith(m,[x,k,h]),x.statusCode(_),_=void 0,p&&v.trigger(c?"ajaxSuccess":"ajaxError",[x,f,c?d:h]),g.fireWith(m,[x,k]),p&&(v.trigger("ajaxComplete",[x,f]),--he.active||he.event.trigger("ajaxStop")))}"object"==typeof t&&(n=t,t=void 0),n=n||{};var i,o,a,s,u,c,l,p,d,h,f=he.ajaxSetup({},n),m=f.context||f,v=f.context&&(m.nodeType||m.jquery)?he(m):he.event,y=he.Deferred(),g=he.Callbacks("once memory"),_=f.statusCode||{},b={},w={},k="canceled",x={readyState:0,getResponseHeader:function(e){var t;if(l){if(!s)for(s={};t=Dt.exec(a);)s[t[1].toLowerCase()]=t[2];t=s[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return l?a:null},setRequestHeader:function(e,t){return null==l&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,b[e]=t),this},overrideMimeType:function(e){return null==l&&(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(l)x.always(e[x.status]);else for(t in e)_[t]=[_[t],e[t]];return this},abort:function(e){var t=e||k;return i&&i.abort(t),r(0,t),this}};if(y.promise(x),f.url=((t||f.url||kt.href)+"").replace(jt,kt.protocol+"//"),f.type=n.method||n.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(Oe)||[""],null==f.crossDomain){c=te.createElement("a");try{c.href=f.url,c.href=c.href,f.crossDomain=Vt.protocol+"//"+Vt.host!=c.protocol+"//"+c.host}catch(e){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=he.param(f.data,f.traditional)),X(Nt,f,n,x),l)return x;(p=he.event&&f.global)&&0==he.active++&&he.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Rt.test(f.type),o=f.url.replace(Mt,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Pt,"+")):(h=f.url.slice(o.length),f.data&&(o+=(Ct.test(o)?"&":"?")+f.data,delete f.data),!1===f.cache&&(o=o.replace(At,"$1"),h=(Ct.test(o)?"&":"?")+"_="+xt+++h),f.url=o+h),f.ifModified&&(he.lastModified[o]&&x.setRequestHeader("If-Modified-Since",he.lastModified[o]),he.etag[o]&&x.setRequestHeader("If-None-Match",he.etag[o])),(f.data&&f.hasContent&&!1!==f.contentType||n.contentType)&&x.setRequestHeader("Content-Type",f.contentType),x.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Ft+"; q=0.01":""):f.accepts["*"]);for(d in f.headers)x.setRequestHeader(d,f.headers[d]);if(f.beforeSend&&(!1===f.beforeSend.call(m,x,f)||l))return x.abort();if(k="abort",g.add(f.complete),x.done(f.success),x.fail(f.error),i=X(Lt,f,n,x)){if(x.readyState=1,p&&v.trigger("ajaxSend",[x,f]),l)return x;f.async&&f.timeout>0&&(u=e.setTimeout(function(){x.abort("timeout")},f.timeout));try{l=!1,i.send(b,r)}catch(e){if(l)throw e;r(-1,e)}}else r(-1,"No Transport");return x},getJSON:function(e,t,n){return he.get(e,t,n,"json")},getScript:function(e,t){return he.get(e,void 0,t,"script")}}),he.each(["get","post"],function(e,t){he[t]=function(e,n,r,i){return he.isFunction(n)&&(i=i||r,r=n,n=void 0),he.ajax(he.extend({url:e,type:t,dataType:i,data:n,success:r},he.isPlainObject(e)&&e))}}),he._evalUrl=function(e){return he.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},he.fn.extend({wrapAll:function(e){var t;return this[0]&&(he.isFunction(e)&&(e=e.call(this[0])),t=he(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return he.isFunction(e)?this.each(function(t){he(this).wrapInner(e.call(this,t))}):this.each(function(){var t=he(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=he.isFunction(e);return this.each(function(n){he(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){he(this).replaceWith(this.childNodes)}),this}}),he.expr.pseudos.hidden=function(e){return!he.expr.pseudos.visible(e)},he.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},he.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var zt={0:200,1223:204},Ut=he.ajaxSettings.xhr();de.cors=!!Ut&&"withCredentials"in Ut,de.ajax=Ut=!!Ut,he.ajaxTransport(function(t){var n,r;if(de.cors||Ut&&!t.crossDomain)return{send:function(i,o){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");for(a in i)s.setRequestHeader(a,i[a]);n=function(e){return function(){n&&(n=r=s.onload=s.onerror=s.onabort=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(zt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=n(),r=s.onerror=n("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&e.setTimeout(function(){n&&r()})},n=n("abort");try{s.send(t.hasContent&&t.data||null)}catch(e){if(n)throw e}},abort:function(){n&&n()}}}),he.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),he.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return he.globalEval(e),e}}}),he.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),he.ajaxTransport("script",function(e){if(e.crossDomain){var t,n;return{send:function(r,i){t=he("<script>").prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),te.head.appendChild(t[0])},abort:function(){n&&n()}}}});var Bt=[],Ht=/(=)\?(?=&|$)|\?\?/;he.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Bt.pop()||he.expando+"_"+xt++;return this[e]=!0,e}}),he.ajaxPrefilter("json jsonp",function(t,n,r){var i,o,a,s=!1!==t.jsonp&&(Ht.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ht.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=he.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Ht,"$1"+i):!1!==t.jsonp&&(t.url+=(Ct.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return a||he.error(i+" was not called"),a[0]},t.dataTypes[0]="json",o=e[i],e[i]=function(){a=arguments},r.always(function(){void 0===o?he(e).removeProp(i):e[i]=o,t[i]&&(t.jsonpCallback=n.jsonpCallback,Bt.push(i)),a&&he.isFunction(o)&&o(a[0]),a=o=void 0}),"script"}),de.createHTMLDocument=function(){var e=te.implementation.createHTMLDocument("").body;return e.innerHTML="<form></form><form></form>",2===e.childNodes.length}(),he.parseHTML=function(e,t,n){if("string"!=typeof e)return[];"boolean"==typeof t&&(n=t,t=!1);var r,i,o;return t||(de.createHTMLDocument?((r=(t=te.implementation.createHTMLDocument("")).createElement("base")).href=te.location.href,t.head.appendChild(r)):t=te),i=ke.exec(e),o=!n&&[],i?[t.createElement(i[1])]:(i=b([e],t,o),o&&o.length&&he(o).remove(),he.merge([],i.childNodes))},he.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return s>-1&&(r=G(e.slice(s)),e=e.slice(0,s)),he.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),a.length>0&&he.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?he("<div>").append(he.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},he.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){he.fn[t]=function(e){return this.on(t,e)}}),he.expr.pseudos.animated=function(e){return he.grep(he.timers,function(t){return e===t.elem}).length},he.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,c=he.css(e,"position"),l=he(e),p={};"static"===c&&(e.style.position="relative"),s=l.offset(),o=he.css(e,"top"),u=he.css(e,"left"),("absolute"===c||"fixed"===c)&&(o+u).indexOf("auto")>-1?(a=(r=l.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),he.isFunction(t)&&(t=t.call(e,n,he.extend({},s))),null!=t.top&&(p.top=t.top-s.top+a),null!=t.left&&(p.left=t.left-s.left+i),"using"in t?t.using.call(e,p):l.css(p)}},he.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){he.offset.setOffset(this,e,t)});var t,n,r,i,o=this[0];if(o)return o.getClientRects().length?(r=o.getBoundingClientRect(),t=o.ownerDocument,n=t.documentElement,i=t.defaultView,{top:r.top+i.pageYOffset-n.clientTop,left:r.left+i.pageXOffset-n.clientLeft}):{top:0,left:0}},position:function(){if(this[0]){var e,t,n=this[0],r={top:0,left:0};return"fixed"===he.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),i(e[0],"html")||(r=e.offset()),r={top:r.top+he.css(e[0],"borderTopWidth",!0),left:r.left+he.css(e[0],"borderLeftWidth",!0)}),{top:t.top-r.top-he.css(n,"marginTop",!0),left:t.left-r.left-he.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===he.css(e,"position");)e=e.offsetParent;return e||Ze})}}),he.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;he.fn[e]=function(r){return Ae(this,function(e,r,i){var o;if(he.isWindow(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===i)return o?o[t]:e[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i},e,r,arguments.length)}}),he.each(["top","left"],function(e,t){he.cssHooks[t]=I(de.pixelPosition,function(e,n){if(n)return n=D(e,t),it.test(n)?he(e).position()[t]+"px":n})}),he.each({Height:"height",Width:"width"},function(e,t){he.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){he.fn[r]=function(i,o){var a=arguments.length&&(n||"boolean"!=typeof i),s=n||(!0===i||!0===o?"margin":"border");return Ae(this,function(t,n,i){var o;return he.isWindow(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===i?he.css(t,n,s):he.style(t,n,i,s)},t,a?i:void 0,a)}})}),he.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),he.holdReady=function(e){e?he.readyWait++:he.ready(!0)},he.isArray=Array.isArray,he.parseJSON=JSON.parse,he.nodeName=i,"function"==typeof define&&define.amd&&define("jquery",[],function(){return he});var qt=e.jQuery,Wt=e.$;return he.noConflict=function(t){return e.$===he&&(e.$=Wt),t&&e.jQuery===he&&(e.jQuery=qt),he},t||(e.jQuery=e.$=he),he}),function(e){"function"==typeof define&&define.amd?define(["jquery","../version","../keycode"],e):e(jQuery)}(function(e){function t(e){for(var t,n;e.length&&e[0]!==document;){if(("absolute"===(t=e.css("position"))||"relative"===t||"fixed"===t)&&(n=parseInt(e.css("zIndex"),10),!isNaN(n)&&0!==n))return n;e=e.parent()}return 0}function n(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},e.extend(this._defaults,this.regional[""]),this.regional.en=e.extend(!0,{},this.regional[""]),this.regional["en-US"]=e.extend(!0,{},this.regional.en),this.dpDiv=r(e("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function r(t){var n="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.on("mouseout",n,function(){e(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&e(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&e(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",n,i)}function i(){e.datepicker._isDisabledDatepicker(a.inline?a.dpDiv.parent()[0]:a.input[0])||(e(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),e(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&e(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&e(this).addClass("ui-datepicker-next-hover"))}function o(t,n){e.extend(t,n);for(var r in n)null==n[r]&&(t[r]=n[r]);return t}e.extend(e.ui,{datepicker:{version:"1.12.1"}});var a;return e.extend(n.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(e){return o(this._defaults,e||{}),this},_attachDatepicker:function(t,n){var r,i,o;i="div"===(r=t.nodeName.toLowerCase())||"span"===r,t.id||(this.uuid+=1,t.id="dp"+this.uuid),(o=this._newInst(e(t),i)).settings=e.extend({},n||{}),"input"===r?this._connectDatepicker(t,o):i&&this._inlineDatepicker(t,o)},_newInst:function(t,n){return{id:t[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:t,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:n,dpDiv:n?r(e("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(t,n){var r=e(t);n.append=e([]),n.trigger=e([]),r.hasClass(this.markerClassName)||(this._attachments(r,n),r.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(n),e.data(t,"datepicker",n),n.settings.disabled&&this._disableDatepicker(t))},_attachments:function(t,n){var r,i,o,a=this._get(n,"appendText"),s=this._get(n,"isRTL");n.append&&n.append.remove(),a&&(n.append=e("<span class='"+this._appendClass+"'>"+a+"</span>"),t[s?"before":"after"](n.append)),t.off("focus",this._showDatepicker),n.trigger&&n.trigger.remove(),"focus"!==(r=this._get(n,"showOn"))&&"both"!==r||t.on("focus",this._showDatepicker),"button"!==r&&"both"!==r||(i=this._get(n,"buttonText"),o=this._get(n,"buttonImage"),n.trigger=e(this._get(n,"buttonImageOnly")?e("<img/>").addClass(this._triggerClass).attr({src:o,alt:i,title:i}):e("<button type='button'></button>").addClass(this._triggerClass).html(o?e("<img/>").attr({src:o,alt:i,title:i}):i)),t[s?"before":"after"](n.trigger),n.trigger.on("click",function(){return e.datepicker._datepickerShowing&&e.datepicker._lastInput===t[0]?e.datepicker._hideDatepicker():e.datepicker._datepickerShowing&&e.datepicker._lastInput!==t[0]?(e.datepicker._hideDatepicker(),e.datepicker._showDatepicker(t[0])):e.datepicker._showDatepicker(t[0]),!1}))},_autoSize:function(e){if(this._get(e,"autoSize")&&!e.inline){var t,n,r,i,o=new Date(2009,11,20),a=this._get(e,"dateFormat");a.match(/[DM]/)&&(t=function(e){for(n=0,r=0,i=0;i<e.length;i++)e[i].length>n&&(n=e[i].length,r=i);return r},o.setMonth(t(this._get(e,a.match(/MM/)?"monthNames":"monthNamesShort"))),o.setDate(t(this._get(e,a.match(/DD/)?"dayNames":"dayNamesShort"))+20-o.getDay())),e.input.attr("size",this._formatDate(e,o).length)}},_inlineDatepicker:function(t,n){var r=e(t);r.hasClass(this.markerClassName)||(r.addClass(this.markerClassName).append(n.dpDiv),e.data(t,"datepicker",n),this._setDate(n,this._getDefaultDate(n),!0),this._updateDatepicker(n),this._updateAlternate(n),n.settings.disabled&&this._disableDatepicker(t),n.dpDiv.css("display","block"))},_dialogDatepicker:function(t,n,r,i,a){var s,u,c,l,p,d=this._dialogInst;return d||(this.uuid+=1,s="dp"+this.uuid,this._dialogInput=e("<input type='text' id='"+s+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),e("body").append(this._dialogInput),(d=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},e.data(this._dialogInput[0],"datepicker",d)),o(d.settings,i||{}),n=n&&n.constructor===Date?this._formatDate(d,n):n,this._dialogInput.val(n),this._pos=a?a.length?a:[a.pageX,a.pageY]:null,this._pos||(u=document.documentElement.clientWidth,c=document.documentElement.clientHeight,l=document.documentElement.scrollLeft||document.body.scrollLeft,p=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[u/2-100+l,c/2-150+p]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),d.settings.onSelect=r,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),e.blockUI&&e.blockUI(this.dpDiv),e.data(this._dialogInput[0],"datepicker",d),this},_destroyDatepicker:function(t){var n,r=e(t),i=e.data(t,"datepicker");r.hasClass(this.markerClassName)&&(n=t.nodeName.toLowerCase(),e.removeData(t,"datepicker"),"input"===n?(i.append.remove(),i.trigger.remove(),r.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):"div"!==n&&"span"!==n||r.removeClass(this.markerClassName).empty(),a===i&&(a=null))},_enableDatepicker:function(t){var n,r,i=e(t),o=e.data(t,"datepicker");i.hasClass(this.markerClassName)&&("input"===(n=t.nodeName.toLowerCase())?(t.disabled=!1,o.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==n&&"span"!==n||((r=i.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),r.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=e.map(this._disabledInputs,function(e){return e===t?null:e}))},_disableDatepicker:function(t){var n,r,i=e(t),o=e.data(t,"datepicker");i.hasClass(this.markerClassName)&&("input"===(n=t.nodeName.toLowerCase())?(t.disabled=!0,o.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==n&&"span"!==n||((r=i.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),r.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=e.map(this._disabledInputs,function(e){return e===t?null:e}),this._disabledInputs[this._disabledInputs.length]=t)},_isDisabledDatepicker:function(e){if(!e)return!1;for(var t=0;t<this._disabledInputs.length;t++)if(this._disabledInputs[t]===e)return!0;return!1},_getInst:function(t){try{return e.data(t,"datepicker")}catch(e){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(t,n,r){var i,a,s,u,c=this._getInst(t);if(2===arguments.length&&"string"==typeof n)return"defaults"===n?e.extend({},e.datepicker._defaults):c?"all"===n?e.extend({},c.settings):this._get(c,n):null;i=n||{},"string"==typeof n&&((i={})[n]=r),c&&(this._curInst===c&&this._hideDatepicker(),a=this._getDateDatepicker(t,!0),s=this._getMinMaxDate(c,"min"),u=this._getMinMaxDate(c,"max"),o(c.settings,i),null!==s&&void 0!==i.dateFormat&&void 0===i.minDate&&(c.settings.minDate=this._formatDate(c,s)),null!==u&&void 0!==i.dateFormat&&void 0===i.maxDate&&(c.settings.maxDate=this._formatDate(c,u)),"disabled"in i&&(i.disabled?this._disableDatepicker(t):this._enableDatepicker(t)),this._attachments(e(t),c),this._autoSize(c),this._setDate(c,a),this._updateAlternate(c),this._updateDatepicker(c))},_changeDatepicker:function(e,t,n){this._optionDatepicker(e,t,n)},_refreshDatepicker:function(e){var t=this._getInst(e);t&&this._updateDatepicker(t)},_setDateDatepicker:function(e,t){var n=this._getInst(e);n&&(this._setDate(n,t),this._updateDatepicker(n),this._updateAlternate(n))},_getDateDatepicker:function(e,t){var n=this._getInst(e);return n&&!n.inline&&this._setDateFromField(n,t),n?this._getDate(n):null},_doKeyDown:function(t){var n,r,i,o=e.datepicker._getInst(t.target),a=!0,s=o.dpDiv.is(".ui-datepicker-rtl");if(o._keyEvent=!0,e.datepicker._datepickerShowing)switch(t.keyCode){case 9:e.datepicker._hideDatepicker(),a=!1;break;case 13:return(i=e("td."+e.datepicker._dayOverClass+":not(."+e.datepicker._currentClass+")",o.dpDiv))[0]&&e.datepicker._selectDay(t.target,o.selectedMonth,o.selectedYear,i[0]),(n=e.datepicker._get(o,"onSelect"))?(r=e.datepicker._formatDate(o),n.apply(o.input?o.input[0]:null,[r,o])):e.datepicker._hideDatepicker(),!1;case 27:e.datepicker._hideDatepicker();break;case 33:e.datepicker._adjustDate(t.target,t.ctrlKey?-e.datepicker._get(o,"stepBigMonths"):-e.datepicker._get(o,"stepMonths"),"M");break;case 34:e.datepicker._adjustDate(t.target,t.ctrlKey?+e.datepicker._get(o,"stepBigMonths"):+e.datepicker._get(o,"stepMonths"),"M");break;case 35:(t.ctrlKey||t.metaKey)&&e.datepicker._clearDate(t.target),a=t.ctrlKey||t.metaKey;break;case 36:(t.ctrlKey||t.metaKey)&&e.datepicker._gotoToday(t.target),a=t.ctrlKey||t.metaKey;break;case 37:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,s?1:-1,"D"),a=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&e.datepicker._adjustDate(t.target,t.ctrlKey?-e.datepicker._get(o,"stepBigMonths"):-e.datepicker._get(o,"stepMonths"),"M");break;case 38:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,-7,"D"),a=t.ctrlKey||t.metaKey;break;case 39:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,s?-1:1,"D"),a=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&e.datepicker._adjustDate(t.target,t.ctrlKey?+e.datepicker._get(o,"stepBigMonths"):+e.datepicker._get(o,"stepMonths"),"M");break;case 40:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,7,"D"),a=t.ctrlKey||t.metaKey;break;default:a=!1}else 36===t.keyCode&&t.ctrlKey?e.datepicker._showDatepicker(this):a=!1;a&&(t.preventDefault(),t.stopPropagation())},_doKeyPress:function(t){var n,r,i=e.datepicker._getInst(t.target);if(e.datepicker._get(i,"constrainInput"))return n=e.datepicker._possibleChars(e.datepicker._get(i,"dateFormat")),r=String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),t.ctrlKey||t.metaKey||r<" "||!n||n.indexOf(r)>-1},_doKeyUp:function(t){var n=e.datepicker._getInst(t.target);if(n.input.val()!==n.lastVal)try{e.datepicker.parseDate(e.datepicker._get(n,"dateFormat"),n.input?n.input.val():null,e.datepicker._getFormatConfig(n))&&(e.datepicker._setDateFromField(n),e.datepicker._updateAlternate(n),e.datepicker._updateDatepicker(n))}catch(e){}return!0},_showDatepicker:function(n){if("input"!==(n=n.target||n).nodeName.toLowerCase()&&(n=e("input",n.parentNode)[0]),!e.datepicker._isDisabledDatepicker(n)&&e.datepicker._lastInput!==n){var r,i,a,s,u,c,l;r=e.datepicker._getInst(n),e.datepicker._curInst&&e.datepicker._curInst!==r&&(e.datepicker._curInst.dpDiv.stop(!0,!0),r&&e.datepicker._datepickerShowing&&e.datepicker._hideDatepicker(e.datepicker._curInst.input[0])),!1!==(a=(i=e.datepicker._get(r,"beforeShow"))?i.apply(n,[n,r]):{})&&(o(r.settings,a),r.lastVal=null,e.datepicker._lastInput=n,e.datepicker._setDateFromField(r),e.datepicker._inDialog&&(n.value=""),e.datepicker._pos||(e.datepicker._pos=e.datepicker._findPos(n),e.datepicker._pos[1]+=n.offsetHeight),s=!1,e(n).parents().each(function(){return!(s|="fixed"===e(this).css("position"))}),u={left:e.datepicker._pos[0],top:e.datepicker._pos[1]},e.datepicker._pos=null,r.dpDiv.empty(),r.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),e.datepicker._updateDatepicker(r),u=e.datepicker._checkOffset(r,u,s),r.dpDiv.css({position:e.datepicker._inDialog&&e.blockUI?"static":s?"fixed":"absolute",display:"none",left:u.left+"px",top:u.top+"px"}),r.inline||(c=e.datepicker._get(r,"showAnim"),l=e.datepicker._get(r,"duration"),r.dpDiv.css("z-index",t(e(n))+1),e.datepicker._datepickerShowing=!0,e.effects&&e.effects.effect[c]?r.dpDiv.show(c,e.datepicker._get(r,"showOptions"),l):r.dpDiv[c||"show"](c?l:null),e.datepicker._shouldFocusInput(r)&&r.input.trigger("focus"),e.datepicker._curInst=r))}},_updateDatepicker:function(t){this.maxRows=4,a=t,t.dpDiv.empty().append(this._generateHTML(t)),this._attachHandlers(t);var n,r=this._getNumberOfMonths(t),o=r[1],s=t.dpDiv.find("."+this._dayOverClass+" a");s.length>0&&i.apply(s.get(0)),t.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),o>1&&t.dpDiv.addClass("ui-datepicker-multi-"+o).css("width",17*o+"em"),t.dpDiv[(1!==r[0]||1!==r[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),t.dpDiv[(this._get(t,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),t===e.datepicker._curInst&&e.datepicker._datepickerShowing&&e.datepicker._shouldFocusInput(t)&&t.input.trigger("focus"),t.yearshtml&&(n=t.yearshtml,setTimeout(function(){n===t.yearshtml&&t.yearshtml&&t.dpDiv.find("select.ui-datepicker-year:first").replaceWith(t.yearshtml),n=t.yearshtml=null},0))},_shouldFocusInput:function(e){return e.input&&e.input.is(":visible")&&!e.input.is(":disabled")&&!e.input.is(":focus")},_checkOffset:function(t,n,r){var i=t.dpDiv.outerWidth(),o=t.dpDiv.outerHeight(),a=t.input?t.input.outerWidth():0,s=t.input?t.input.outerHeight():0,u=document.documentElement.clientWidth+(r?0:e(document).scrollLeft()),c=document.documentElement.clientHeight+(r?0:e(document).scrollTop());return n.left-=this._get(t,"isRTL")?i-a:0,n.left-=r&&n.left===t.input.offset().left?e(document).scrollLeft():0,n.top-=r&&n.top===t.input.offset().top+s?e(document).scrollTop():0,n.left-=Math.min(n.left,n.left+i>u&&u>i?Math.abs(n.left+i-u):0),n.top-=Math.min(n.top,n.top+o>c&&c>o?Math.abs(o+s):0),n},_findPos:function(t){for(var n,r=this._getInst(t),i=this._get(r,"isRTL");t&&("hidden"===t.type||1!==t.nodeType||e.expr.filters.hidden(t));)t=t[i?"previousSibling":"nextSibling"];return n=e(t).offset(),[n.left,n.top]},_hideDatepicker:function(t){var n,r,i,o,a=this._curInst;!a||t&&a!==e.data(t,"datepicker")||this._datepickerShowing&&(n=this._get(a,"showAnim"),r=this._get(a,"duration"),i=function(){e.datepicker._tidyDialog(a)},e.effects&&(e.effects.effect[n]||e.effects[n])?a.dpDiv.hide(n,e.datepicker._get(a,"showOptions"),r,i):a.dpDiv["slideDown"===n?"slideUp":"fadeIn"===n?"fadeOut":"hide"](n?r:null,i),n||i(),this._datepickerShowing=!1,(o=this._get(a,"onClose"))&&o.apply(a.input?a.input[0]:null,[a.input?a.input.val():"",a]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),e.blockUI&&(e.unblockUI(),e("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(e){e.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(t){if(e.datepicker._curInst){var n=e(t.target),r=e.datepicker._getInst(n[0]);(n[0].id===e.datepicker._mainDivId||0!==n.parents("#"+e.datepicker._mainDivId).length||n.hasClass(e.datepicker.markerClassName)||n.closest("."+e.datepicker._triggerClass).length||!e.datepicker._datepickerShowing||e.datepicker._inDialog&&e.blockUI)&&(!n.hasClass(e.datepicker.markerClassName)||e.datepicker._curInst===r)||e.datepicker._hideDatepicker()}},_adjustDate:function(t,n,r){var i=e(t),o=this._getInst(i[0]);this._isDisabledDatepicker(i[0])||(this._adjustInstDate(o,n+("M"===r?this._get(o,"showCurrentAtPos"):0),r),this._updateDatepicker(o))},_gotoToday:function(t){var n,r=e(t),i=this._getInst(r[0]);this._get(i,"gotoCurrent")&&i.currentDay?(i.selectedDay=i.currentDay,i.drawMonth=i.selectedMonth=i.currentMonth,i.drawYear=i.selectedYear=i.currentYear):(n=new Date,i.selectedDay=n.getDate(),i.drawMonth=i.selectedMonth=n.getMonth(),i.drawYear=i.selectedYear=n.getFullYear()),this._notifyChange(i),this._adjustDate(r)},_selectMonthYear:function(t,n,r){var i=e(t),o=this._getInst(i[0]);o["selected"+("M"===r?"Month":"Year")]=o["draw"+("M"===r?"Month":"Year")]=parseInt(n.options[n.selectedIndex].value,10),this._notifyChange(o),this._adjustDate(i)},_selectDay:function(t,n,r,i){var o,a=e(t);e(i).hasClass(this._unselectableClass)||this._isDisabledDatepicker(a[0])||((o=this._getInst(a[0])).selectedDay=o.currentDay=e("a",i).html(),o.selectedMonth=o.currentMonth=n,o.selectedYear=o.currentYear=r,this._selectDate(t,this._formatDate(o,o.currentDay,o.currentMonth,o.currentYear)))},_clearDate:function(t){var n=e(t);this._selectDate(n,"")},_selectDate:function(t,n){var r,i=e(t),o=this._getInst(i[0]);n=null!=n?n:this._formatDate(o),o.input&&o.input.val(n),this._updateAlternate(o),(r=this._get(o,"onSelect"))?r.apply(o.input?o.input[0]:null,[n,o]):o.input&&o.input.trigger("change"),o.inline?this._updateDatepicker(o):(this._hideDatepicker(),this._lastInput=o.input[0],"object"!=typeof o.input[0]&&o.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(t){var n,r,i,o=this._get(t,"altField");o&&(n=this._get(t,"altFormat")||this._get(t,"dateFormat"),r=this._getDate(t),i=this.formatDate(n,r,this._getFormatConfig(t)),e(o).val(i))},noWeekends:function(e){var t=e.getDay();return[t>0&&t<6,""]},iso8601Week:function(e){var t,n=new Date(e.getTime());return n.setDate(n.getDate()+4-(n.getDay()||7)),t=n.getTime(),n.setMonth(0),n.setDate(1),Math.floor(Math.round((t-n)/864e5)/7)+1},parseDate:function(t,n,r){if(null==t||null==n)throw"Invalid arguments";if(""===(n="object"==typeof n?n.toString():n+""))return null;var i,o,a,s,u=0,c=(r?r.shortYearCutoff:null)||this._defaults.shortYearCutoff,l="string"!=typeof c?c:(new Date).getFullYear()%100+parseInt(c,10),p=(r?r.dayNamesShort:null)||this._defaults.dayNamesShort,d=(r?r.dayNames:null)||this._defaults.dayNames,h=(r?r.monthNamesShort:null)||this._defaults.monthNamesShort,f=(r?r.monthNames:null)||this._defaults.monthNames,m=-1,v=-1,y=-1,g=-1,_=!1,b=function(e){var n=i+1<t.length&&t.charAt(i+1)===e;return n&&i++,n},w=function(e){var t=b(e),r="@"===e?14:"!"===e?20:"y"===e&&t?4:"o"===e?3:2,i="y"===e?r:1,o=new RegExp("^\\d{"+i+","+r+"}"),a=n.substring(u).match(o);if(!a)throw"Missing number at position "+u;return u+=a[0].length,parseInt(a[0],10)},k=function(t,r,i){var o=-1,a=e.map(b(t)?i:r,function(e,t){return[[t,e]]}).sort(function(e,t){return-(e[1].length-t[1].length)});if(e.each(a,function(e,t){var r=t[1];if(n.substr(u,r.length).toLowerCase()===r.toLowerCase())return o=t[0],u+=r.length,!1}),-1!==o)return o+1;throw"Unknown name at position "+u},x=function(){if(n.charAt(u)!==t.charAt(i))throw"Unexpected literal at position "+u;u++};for(i=0;i<t.length;i++)if(_)"'"!==t.charAt(i)||b("'")?x():_=!1;else switch(t.charAt(i)){case"d":y=w("d");break;case"D":k("D",p,d);break;case"o":g=w("o");break;case"m":v=w("m");break;case"M":v=k("M",h,f);break;case"y":m=w("y");break;case"@":m=(s=new Date(w("@"))).getFullYear(),v=s.getMonth()+1,y=s.getDate();break;case"!":m=(s=new Date((w("!")-this._ticksTo1970)/1e4)).getFullYear(),v=s.getMonth()+1,y=s.getDate();break;case"'":b("'")?x():_=!0;break;default:x()}if(u<n.length&&(a=n.substr(u),!/^\s+/.test(a)))throw"Extra/unparsed characters found in date: "+a;if(-1===m?m=(new Date).getFullYear():m<100&&(m+=(new Date).getFullYear()-(new Date).getFullYear()%100+(m<=l?0:-100)),g>-1)for(v=1,y=g;;){if(o=this._getDaysInMonth(m,v-1),y<=o)break;v++,y-=o}if((s=this._daylightSavingAdjust(new Date(m,v-1,y))).getFullYear()!==m||s.getMonth()+1!==v||s.getDate()!==y)throw"Invalid date";return s},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(e,t,n){if(!t)return"";var r,i=(n?n.dayNamesShort:null)||this._defaults.dayNamesShort,o=(n?n.dayNames:null)||this._defaults.dayNames,a=(n?n.monthNamesShort:null)||this._defaults.monthNamesShort,s=(n?n.monthNames:null)||this._defaults.monthNames,u=function(t){var n=r+1<e.length&&e.charAt(r+1)===t;return n&&r++,n},c=function(e,t,n){var r=""+t;if(u(e))for(;r.length<n;)r="0"+r;return r},l=function(e,t,n,r){return u(e)?r[t]:n[t]},p="",d=!1;if(t)for(r=0;r<e.length;r++)if(d)"'"!==e.charAt(r)||u("'")?p+=e.charAt(r):d=!1;else switch(e.charAt(r)){case"d":p+=c("d",t.getDate(),2);break;case"D":p+=l("D",t.getDay(),i,o);break;case"o":p+=c("o",Math.round((new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()-new Date(t.getFullYear(),0,0).getTime())/864e5),3);break;case"m":p+=c("m",t.getMonth()+1,2);break;case"M":p+=l("M",t.getMonth(),a,s);break;case"y":p+=u("y")?t.getFullYear():(t.getFullYear()%100<10?"0":"")+t.getFullYear()%100;break;case"@":p+=t.getTime();break;case"!":p+=1e4*t.getTime()+this._ticksTo1970;break;case"'":u("'")?p+="'":d=!0;break;default:p+=e.charAt(r)}return p},_possibleChars:function(e){var t,n="",r=!1,i=function(n){var r=t+1<e.length&&e.charAt(t+1)===n;return r&&t++,r};for(t=0;t<e.length;t++)if(r)"'"!==e.charAt(t)||i("'")?n+=e.charAt(t):r=!1;else switch(e.charAt(t)){case"d":case"m":case"y":case"@":n+="0123456789";break;case"D":case"M":return null;case"'":i("'")?n+="'":r=!0;break;default:n+=e.charAt(t)}return n},_get:function(e,t){return void 0!==e.settings[t]?e.settings[t]:this._defaults[t]},_setDateFromField:function(e,t){if(e.input.val()!==e.lastVal){var n=this._get(e,"dateFormat"),r=e.lastVal=e.input?e.input.val():null,i=this._getDefaultDate(e),o=i,a=this._getFormatConfig(e);try{o=this.parseDate(n,r,a)||i}catch(e){r=t?"":r}e.selectedDay=o.getDate(),e.drawMonth=e.selectedMonth=o.getMonth(),e.drawYear=e.selectedYear=o.getFullYear(),e.currentDay=r?o.getDate():0,e.currentMonth=r?o.getMonth():0,e.currentYear=r?o.getFullYear():0,this._adjustInstDate(e)}},_getDefaultDate:function(e){return this._restrictMinMax(e,this._determineDate(e,this._get(e,"defaultDate"),new Date))},_determineDate:function(t,n,r){var i=null==n||""===n?r:"string"==typeof n?function(n){try{return e.datepicker.parseDate(e.datepicker._get(t,"dateFormat"),n,e.datepicker._getFormatConfig(t))}catch(e){}for(var r=(n.toLowerCase().match(/^c/)?e.datepicker._getDate(t):null)||new Date,i=r.getFullYear(),o=r.getMonth(),a=r.getDate(),s=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,u=s.exec(n);u;){switch(u[2]||"d"){case"d":case"D":a+=parseInt(u[1],10);break;case"w":case"W":a+=7*parseInt(u[1],10);break;case"m":case"M":o+=parseInt(u[1],10),a=Math.min(a,e.datepicker._getDaysInMonth(i,o));break;case"y":case"Y":i+=parseInt(u[1],10),a=Math.min(a,e.datepicker._getDaysInMonth(i,o))}u=s.exec(n)}return new Date(i,o,a)}(n):"number"==typeof n?isNaN(n)?r:function(e){var t=new Date;return t.setDate(t.getDate()+e),t}(n):new Date(n.getTime());return(i=i&&"Invalid Date"===i.toString()?r:i)&&(i.setHours(0),i.setMinutes(0),i.setSeconds(0),i.setMilliseconds(0)),this._daylightSavingAdjust(i)},_daylightSavingAdjust:function(e){return e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null},_setDate:function(e,t,n){var r=!t,i=e.selectedMonth,o=e.selectedYear,a=this._restrictMinMax(e,this._determineDate(e,t,new Date));e.selectedDay=e.currentDay=a.getDate(),e.drawMonth=e.selectedMonth=e.currentMonth=a.getMonth(),e.drawYear=e.selectedYear=e.currentYear=a.getFullYear(),i===e.selectedMonth&&o===e.selectedYear||n||this._notifyChange(e),this._adjustInstDate(e),e.input&&e.input.val(r?"":this._formatDate(e))},_getDate:function(e){return!e.currentYear||e.input&&""===e.input.val()?null:this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay))},_attachHandlers:function(t){var n=this._get(t,"stepMonths"),r="#"+t.id.replace(/\\\\/g,"\\");t.dpDiv.find("[data-handler]").map(function(){var t={prev:function(){e.datepicker._adjustDate(r,-n,"M")},next:function(){e.datepicker._adjustDate(r,+n,"M")},hide:function(){e.datepicker._hideDatepicker()},today:function(){e.datepicker._gotoToday(r)},selectDay:function(){return e.datepicker._selectDay(r,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return e.datepicker._selectMonthYear(r,this,"M"),!1},selectYear:function(){return e.datepicker._selectMonthYear(r,this,"Y"),!1}};e(this).on(this.getAttribute("data-event"),t[this.getAttribute("data-handler")])})},_generateHTML:function(e){var t,n,r,i,o,a,s,u,c,l,p,d,h,f,m,v,y,g,_,b,w,k,x,C,S,E,T,O,P,M,A,D,I,R,j,N,L,F,V,z=new Date,U=this._daylightSavingAdjust(new Date(z.getFullYear(),z.getMonth(),z.getDate())),B=this._get(e,"isRTL"),H=this._get(e,"showButtonPanel"),q=this._get(e,"hideIfNoPrevNext"),W=this._get(e,"navigationAsDateFormat"),G=this._getNumberOfMonths(e),Y=this._get(e,"showCurrentAtPos"),Z=this._get(e,"stepMonths"),K=1!==G[0]||1!==G[1],X=this._daylightSavingAdjust(e.currentDay?new Date(e.currentYear,e.currentMonth,e.currentDay):new Date(9999,9,9)),J=this._getMinMaxDate(e,"min"),Q=this._getMinMaxDate(e,"max"),$=e.drawMonth-Y,ee=e.drawYear;if($<0&&($+=12,ee--),Q)for(t=this._daylightSavingAdjust(new Date(Q.getFullYear(),Q.getMonth()-G[0]*G[1]+1,Q.getDate())),t=J&&t<J?J:t;this._daylightSavingAdjust(new Date(ee,$,1))>t;)--$<0&&($=11,ee--);for(e.drawMonth=$,e.drawYear=ee,n=this._get(e,"prevText"),n=W?this.formatDate(n,this._daylightSavingAdjust(new Date(ee,$-Z,1)),this._getFormatConfig(e)):n,r=this._canAdjustMonth(e,-1,ee,$)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+n+"'><span class='ui-icon ui-icon-circle-triangle-"+(B?"e":"w")+"'>"+n+"</span></a>":q?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+n+"'><span class='ui-icon ui-icon-circle-triangle-"+(B?"e":"w")+"'>"+n+"</span></a>",i=this._get(e,"nextText"),i=W?this.formatDate(i,this._daylightSavingAdjust(new Date(ee,$+Z,1)),this._getFormatConfig(e)):i,o=this._canAdjustMonth(e,1,ee,$)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+i+"'><span class='ui-icon ui-icon-circle-triangle-"+(B?"w":"e")+"'>"+i+"</span></a>":q?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+i+"'><span class='ui-icon ui-icon-circle-triangle-"+(B?"w":"e")+"'>"+i+"</span></a>",a=this._get(e,"currentText"),s=this._get(e,"gotoCurrent")&&e.currentDay?X:U,a=W?this.formatDate(a,s,this._getFormatConfig(e)):a,u=e.inline?"":"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>"+this._get(e,"closeText")+"</button>",c=H?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(B?u:"")+(this._isInRange(e,s)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+a+"</button>":"")+(B?"":u)+"</div>":"",l=parseInt(this._get(e,"firstDay"),10),l=isNaN(l)?0:l,p=this._get(e,"showWeek"),d=this._get(e,"dayNames"),h=this._get(e,"dayNamesMin"),f=this._get(e,"monthNames"),m=this._get(e,"monthNamesShort"),v=this._get(e,"beforeShowDay"),y=this._get(e,"showOtherMonths"),g=this._get(e,"selectOtherMonths"),_=this._getDefaultDate(e),b="",k=0;k<G[0];k++){for(x="",this.maxRows=4,C=0;C<G[1];C++){if(S=this._daylightSavingAdjust(new Date(ee,$,e.selectedDay)),E=" ui-corner-all",T="",K){if(T+="<div class='ui-datepicker-group",G[1]>1)switch(C){case 0:T+=" ui-datepicker-group-first",E=" ui-corner-"+(B?"right":"left");break;case G[1]-1:T+=" ui-datepicker-group-last",E=" ui-corner-"+(B?"left":"right");break;default:T+=" ui-datepicker-group-middle",E=""}T+="'>"}for(T+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+E+"'>"+(/all|left/.test(E)&&0===k?B?o:r:"")+(/all|right/.test(E)&&0===k?B?r:o:"")+this._generateMonthYearHeader(e,$,ee,J,Q,k>0||C>0,f,m)+"</div><table class='ui-datepicker-calendar'><thead><tr>",O=p?"<th class='ui-datepicker-week-col'>"+this._get(e,"weekHeader")+"</th>":"",w=0;w<7;w++)P=(w+l)%7,O+="<th scope='col'"+((w+l+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+d[P]+"'>"+h[P]+"</span></th>";for(T+=O+"</tr></thead><tbody>",M=this._getDaysInMonth(ee,$),ee===e.selectedYear&&$===e.selectedMonth&&(e.selectedDay=Math.min(e.selectedDay,M)),A=(this._getFirstDayOfMonth(ee,$)-l+7)%7,D=Math.ceil((A+M)/7),I=K&&this.maxRows>D?this.maxRows:D,this.maxRows=I,R=this._daylightSavingAdjust(new Date(ee,$,1-A)),j=0;j<I;j++){for(T+="<tr>",N=p?"<td class='ui-datepicker-week-col'>"+this._get(e,"calculateWeek")(R)+"</td>":"",w=0;w<7;w++)L=v?v.apply(e.input?e.input[0]:null,[R]):[!0,""],V=(F=R.getMonth()!==$)&&!g||!L[0]||J&&R<J||Q&&R>Q,N+="<td class='"+((w+l+6)%7>=5?" ui-datepicker-week-end":"")+(F?" ui-datepicker-other-month":"")+(R.getTime()===S.getTime()&&$===e.selectedMonth&&e._keyEvent||_.getTime()===R.getTime()&&_.getTime()===S.getTime()?" "+this._dayOverClass:"")+(V?" "+this._unselectableClass+" ui-state-disabled":"")+(F&&!y?"":" "+L[1]+(R.getTime()===X.getTime()?" "+this._currentClass:"")+(R.getTime()===U.getTime()?" ui-datepicker-today":""))+"'"+(F&&!y||!L[2]?"":" title='"+L[2].replace(/'/g,"&#39;")+"'")+(V?"":" data-handler='selectDay' data-event='click' data-month='"+R.getMonth()+"' data-year='"+R.getFullYear()+"'")+">"+(F&&!y?"&#xa0;":V?"<span class='ui-state-default'>"+R.getDate()+"</span>":"<a class='ui-state-default"+(R.getTime()===U.getTime()?" ui-state-highlight":"")+(R.getTime()===X.getTime()?" ui-state-active":"")+(F?" ui-priority-secondary":"")+"' href='#'>"+R.getDate()+"</a>")+"</td>",R.setDate(R.getDate()+1),R=this._daylightSavingAdjust(R);T+=N+"</tr>"}++$>11&&($=0,ee++),x+=T+="</tbody></table>"+(K?"</div>"+(G[0]>0&&C===G[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}b+=x}return b+=c,e._keyEvent=!1,b},_generateMonthYearHeader:function(e,t,n,r,i,o,a,s){var u,c,l,p,d,h,f,m,v=this._get(e,"changeMonth"),y=this._get(e,"changeYear"),g=this._get(e,"showMonthAfterYear"),_="<div class='ui-datepicker-title'>",b="";if(o||!v)b+="<span class='ui-datepicker-month'>"+a[t]+"</span>";else{for(u=r&&r.getFullYear()===n,c=i&&i.getFullYear()===n,b+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",l=0;l<12;l++)(!u||l>=r.getMonth())&&(!c||l<=i.getMonth())&&(b+="<option value='"+l+"'"+(l===t?" selected='selected'":"")+">"+s[l]+"</option>");b+="</select>"}if(g||(_+=b+(!o&&v&&y?"":"&#xa0;")),!e.yearshtml)if(e.yearshtml="",o||!y)_+="<span class='ui-datepicker-year'>"+n+"</span>";else{for(p=this._get(e,"yearRange").split(":"),d=(new Date).getFullYear(),f=(h=function(e){var t=e.match(/c[+\-].*/)?n+parseInt(e.substring(1),10):e.match(/[+\-].*/)?d+parseInt(e,10):parseInt(e,10);return isNaN(t)?d:t})(p[0]),m=Math.max(f,h(p[1]||"")),f=r?Math.max(f,r.getFullYear()):f,m=i?Math.min(m,i.getFullYear()):m,e.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";f<=m;f++)e.yearshtml+="<option value='"+f+"'"+(f===n?" selected='selected'":"")+">"+f+"</option>";e.yearshtml+="</select>",_+=e.yearshtml,e.yearshtml=null}return _+=this._get(e,"yearSuffix"),g&&(_+=(!o&&v&&y?"":"&#xa0;")+b),_+="</div>"},_adjustInstDate:function(e,t,n){var r=e.selectedYear+("Y"===n?t:0),i=e.selectedMonth+("M"===n?t:0),o=Math.min(e.selectedDay,this._getDaysInMonth(r,i))+("D"===n?t:0),a=this._restrictMinMax(e,this._daylightSavingAdjust(new Date(r,i,o)));e.selectedDay=a.getDate(),e.drawMonth=e.selectedMonth=a.getMonth(),e.drawYear=e.selectedYear=a.getFullYear(),"M"!==n&&"Y"!==n||this._notifyChange(e)},_restrictMinMax:function(e,t){var n=this._getMinMaxDate(e,"min"),r=this._getMinMaxDate(e,"max"),i=n&&t<n?n:t;return r&&i>r?r:i},_notifyChange:function(e){var t=this._get(e,"onChangeMonthYear");t&&t.apply(e.input?e.input[0]:null,[e.selectedYear,e.selectedMonth+1,e])},_getNumberOfMonths:function(e){var t=this._get(e,"numberOfMonths");return null==t?[1,1]:"number"==typeof t?[1,t]:t},_getMinMaxDate:function(e,t){return this._determineDate(e,this._get(e,t+"Date"),null)},_getDaysInMonth:function(e,t){return 32-this._daylightSavingAdjust(new Date(e,t,32)).getDate()},_getFirstDayOfMonth:function(e,t){return new Date(e,t,1).getDay()},_canAdjustMonth:function(e,t,n,r){var i=this._getNumberOfMonths(e),o=this._daylightSavingAdjust(new Date(n,r+(t<0?t:i[0]*i[1]),1));return t<0&&o.setDate(this._getDaysInMonth(o.getFullYear(),o.getMonth())),this._isInRange(e,o)},_isInRange:function(e,t){var n,r,i=this._getMinMaxDate(e,"min"),o=this._getMinMaxDate(e,"max"),a=null,s=null,u=this._get(e,"yearRange");return u&&(n=u.split(":"),r=(new Date).getFullYear(),a=parseInt(n[0],10),s=parseInt(n[1],10),n[0].match(/[+\-].*/)&&(a+=r),n[1].match(/[+\-].*/)&&(s+=r)),(!i||t.getTime()>=i.getTime())&&(!o||t.getTime()<=o.getTime())&&(!a||t.getFullYear()>=a)&&(!s||t.getFullYear()<=s)},_getFormatConfig:function(e){var t=this._get(e,"shortYearCutoff");return t="string"!=typeof t?t:(new Date).getFullYear()%100+parseInt(t,10),{shortYearCutoff:t,dayNamesShort:this._get(e,"dayNamesShort"),dayNames:this._get(e,"dayNames"),monthNamesShort:this._get(e,"monthNamesShort"),monthNames:this._get(e,"monthNames")}},_formatDate:function(e,t,n,r){t||(e.currentDay=e.selectedDay,e.currentMonth=e.selectedMonth,e.currentYear=e.selectedYear);var i=t?"object"==typeof t?t:this._daylightSavingAdjust(new Date(r,n,t)):this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return this.formatDate(this._get(e,"dateFormat"),i,this._getFormatConfig(e))}}),e.fn.datepicker=function(t){if(!this.length)return this;e.datepicker.initialized||(e(document).on("mousedown",e.datepicker._checkExternalClick),e.datepicker.initialized=!0),0===e("#"+e.datepicker._mainDivId).length&&e("body").append(e.datepicker.dpDiv);var n=Array.prototype.slice.call(arguments,1);return"string"!=typeof t||"isDisabled"!==t&&"getDate"!==t&&"widget"!==t?"option"===t&&2===arguments.length&&"string"==typeof arguments[1]?e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this[0]].concat(n)):this.each(function(){"string"==typeof t?e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this].concat(n)):e.datepicker._attachDatepicker(this,t)}):e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this[0]].concat(n))},e.datepicker=new n,e.datepicker.initialized=!1,e.datepicker.uuid=(new Date).getTime(),e.datepicker.version="1.12.1",e.datepicker}),function(e,t,n){"use strict";!function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=123)}([function(e,t,r){var i=r(2),o=r(28),a=r(12),s=r(13),u=r(18),c=function(e,t,r){var l,p,d,h,f=e&c.F,m=e&c.G,v=e&c.S,y=e&c.P,g=e&c.B,_=m?i:v?i[t]||(i[t]={}):(i[t]||{}).prototype,b=m?o:o[t]||(o[t]={}),w=b.prototype||(b.prototype={});m&&(r=t);for(l in r)d=((p=!f&&_&&_[l]!==n)?_:r)[l],h=g&&p?u(d,i):y&&"function"==typeof d?u(Function.call,d):d,_&&s(_,l,d,e&c.U),b[l]!=d&&a(b,l,h),y&&w[l]!=d&&(w[l]=d)};i.core=o,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},function(e,t,n){var r=n(4);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,n){var r=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof t&&(t=r)},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(49)("wks"),i=n(32),o=n(2).Symbol,a="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=r},function(e,t,n){e.exports=!n(3)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(1),i=n(89),o=n(21),a=Object.defineProperty;t.f=n(6)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(23),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){var r=n(22);e.exports=function(e){return Object(r(e))}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(7),i=n(31);e.exports=n(6)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(2),i=n(12),o=n(11),a=n(32)("src"),s=Function.toString,u=(""+s).split("toString");n(28).inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var c="function"==typeof n;c&&(o(n,"name")||i(n,"name",t)),e[t]!==n&&(c&&(o(n,a)||i(n,a,e[t]?""+e[t]:u.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||s.call(this)})},function(e,t,n){var r=n(0),i=n(3),o=n(22),a=/"/g,s=function(e,t,n,r){var i=String(o(e)),s="<"+t;return""!==n&&(s+=" "+n+'="'+String(r).replace(a,"&quot;")+'"'),s+">"+i+"</"+t+">"};e.exports=function(e,t){var n={};n[e]=t(s),r(r.P+r.F*i(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}),"String",n)}},function(e,t,n){var r=n(46),i=n(22);e.exports=function(e){return r(i(e))}},function(e,t,n){var r=n(47),i=n(31),o=n(15),a=n(21),s=n(11),u=n(89),c=Object.getOwnPropertyDescriptor;t.f=n(6)?c:function(e,t){if(e=o(e),t=a(t,!0),u)try{return c(e,t)}catch(e){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},function(e,t,n){var r=n(11),i=n(9),o=n(65)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,r){var i=r(10);e.exports=function(e,t,r){if(i(e),t===n)return e;switch(r){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(3);e.exports=function(e,t){return!!e&&r(function(){t?e.call(null,function(){},1):e.call(null)})}},function(e,t,n){var r=n(4);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e){if(e==n)throw TypeError("Can't call method on  "+e);return e}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(0),i=n(28),o=n(3);e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*o(function(){n(1)}),"Object",a)}},function(e,t,r){var i=r(18),o=r(46),a=r(9),s=r(8),u=r(82);e.exports=function(e,t){var r=1==e,c=2==e,l=3==e,p=4==e,d=6==e,h=5==e||d,f=t||u;return function(t,u,m){for(var v,y,g=a(t),_=o(g),b=i(u,m,3),w=s(_.length),k=0,x=r?f(t,w):c?f(t,0):n;w>k;k++)if((h||k in _)&&(v=_[k],y=b(v,k,g),e))if(r)x[k]=y;else if(y)switch(e){case 3:return!0;case 5:return v;case 6:return k;case 2:x.push(v)}else if(p)return!1;return d?-1:l||p?p:x}}},function(e,t,r){if(r(6)){var i=r(33),o=r(2),a=r(3),s=r(0),u=r(59),c=r(88),l=r(18),p=r(39),d=r(31),h=r(12),f=r(41),m=r(23),v=r(8),y=r(116),g=r(35),_=r(21),b=r(11),w=r(48),k=r(4),x=r(9),C=r(79),S=r(36),E=r(17),T=r(37).f,O=r(81),P=r(32),M=r(5),A=r(25),D=r(50),I=r(57),R=r(84),j=r(44),N=r(54),L=r(38),F=r(83),V=r(105),z=r(7),U=r(16),B=z.f,H=U.f,q=o.RangeError,W=o.TypeError,G=o.Uint8Array,Y=Array.prototype,Z=c.ArrayBuffer,K=c.DataView,X=A(0),J=A(2),Q=A(3),$=A(4),ee=A(5),te=A(6),ne=D(!0),re=D(!1),ie=R.values,oe=R.keys,ae=R.entries,se=Y.lastIndexOf,ue=Y.reduce,ce=Y.reduceRight,le=Y.join,pe=Y.sort,de=Y.slice,he=Y.toString,fe=Y.toLocaleString,me=M("iterator"),ve=M("toStringTag"),ye=P("typed_constructor"),ge=P("def_constructor"),_e=u.CONSTR,be=u.TYPED,we=u.VIEW,ke=A(1,function(e,t){return Te(I(e,e[ge]),t)}),xe=a(function(){return 1===new G(new Uint16Array([1]).buffer)[0]}),Ce=!!G&&!!G.prototype.set&&a(function(){new G(1).set({})}),Se=function(e,t){var n=m(e);if(n<0||n%t)throw q("Wrong offset!");return n},Ee=function(e){if(k(e)&&be in e)return e;throw W(e+" is not a typed array!")},Te=function(e,t){if(!(k(e)&&ye in e))throw W("It is not a typed array constructor!");return new e(t)},Oe=function(e,t){return Pe(I(e,e[ge]),t)},Pe=function(e,t){for(var n=0,r=t.length,i=Te(e,r);r>n;)i[n]=t[n++];return i},Me=function(e,t,n){B(e,t,{get:function(){return this._d[n]}})},Ae=function(e){var t,r,i,o,a,s,u=x(e),c=arguments.length,p=c>1?arguments[1]:n,d=p!==n,h=O(u);if(h!=n&&!C(h)){for(s=h.call(u),i=[],t=0;!(a=s.next()).done;t++)i.push(a.value);u=i}for(d&&c>2&&(p=l(p,arguments[2],2)),t=0,r=v(u.length),o=Te(this,r);r>t;t++)o[t]=d?p(u[t],t):u[t];return o},De=function(){for(var e=0,t=arguments.length,n=Te(this,t);t>e;)n[e]=arguments[e++];return n},Ie=!!G&&a(function(){fe.call(new G(1))}),Re=function(){return fe.apply(Ie?de.call(Ee(this)):Ee(this),arguments)},je={copyWithin:function(e,t){return V.call(Ee(this),e,t,arguments.length>2?arguments[2]:n)},every:function(e){return $(Ee(this),e,arguments.length>1?arguments[1]:n)},fill:function(e){return F.apply(Ee(this),arguments)},filter:function(e){return Oe(this,J(Ee(this),e,arguments.length>1?arguments[1]:n))},find:function(e){return ee(Ee(this),e,arguments.length>1?arguments[1]:n)},findIndex:function(e){return te(Ee(this),e,arguments.length>1?arguments[1]:n)},forEach:function(e){X(Ee(this),e,arguments.length>1?arguments[1]:n)},indexOf:function(e){return re(Ee(this),e,arguments.length>1?arguments[1]:n)},includes:function(e){return ne(Ee(this),e,arguments.length>1?arguments[1]:n)},join:function(e){return le.apply(Ee(this),arguments)},lastIndexOf:function(e){return se.apply(Ee(this),arguments)},map:function(e){return ke(Ee(this),e,arguments.length>1?arguments[1]:n)},reduce:function(e){return ue.apply(Ee(this),arguments)},reduceRight:function(e){return ce.apply(Ee(this),arguments)},reverse:function(){for(var e,t=this,n=Ee(t).length,r=Math.floor(n/2),i=0;i<r;)e=t[i],t[i++]=t[--n],t[n]=e;return t},some:function(e){return Q(Ee(this),e,arguments.length>1?arguments[1]:n)},sort:function(e){return pe.call(Ee(this),e)},subarray:function(e,t){var r=Ee(this),i=r.length,o=g(e,i);return new(I(r,r[ge]))(r.buffer,r.byteOffset+o*r.BYTES_PER_ELEMENT,v((t===n?i:g(t,i))-o))}},Ne=function(e,t){return Oe(this,de.call(Ee(this),e,t))},Le=function(e){Ee(this);var t=Se(arguments[1],1),n=this.length,r=x(e),i=v(r.length),o=0;if(i+t>n)throw q("Wrong length!");for(;o<i;)this[t+o]=r[o++]},Fe={entries:function(){return ae.call(Ee(this))},keys:function(){return oe.call(Ee(this))},values:function(){return ie.call(Ee(this))}},Ve=function(e,t){return k(e)&&e[be]&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},ze=function(e,t){return Ve(e,t=_(t,!0))?d(2,e[t]):H(e,t)},Ue=function(e,t,n){return!(Ve(e,t=_(t,!0))&&k(n)&&b(n,"value"))||b(n,"get")||b(n,"set")||n.configurable||b(n,"writable")&&!n.writable||b(n,"enumerable")&&!n.enumerable?B(e,t,n):(e[t]=n.value,e)};_e||(U.f=ze,z.f=Ue),s(s.S+s.F*!_e,"Object",{getOwnPropertyDescriptor:ze,defineProperty:Ue}),a(function(){he.call({})})&&(he=fe=function(){return le.call(this)});var Be=f({},je);f(Be,Fe),h(Be,me,Fe.values),f(Be,{slice:Ne,set:Le,constructor:function(){},toString:he,toLocaleString:Re}),Me(Be,"buffer","b"),Me(Be,"byteOffset","o"),Me(Be,"byteLength","l"),Me(Be,"length","e"),B(Be,ve,{get:function(){return this[be]}}),e.exports=function(e,t,r,c){var l=e+((c=!!c)?"Clamped":"")+"Array",d="get"+e,f="set"+e,m=o[l],g=m||{},_=m&&E(m),b=!m||!u.ABV,x={},C=m&&m.prototype,O=function(e,n){var r=e._d;return r.v[d](n*t+r.o,xe)},P=function(e,n,r){var i=e._d;c&&(r=(r=Math.round(r))<0?0:r>255?255:255&r),i.v[f](n*t+i.o,r,xe)},M=function(e,t){B(e,t,{get:function(){return O(this,t)},set:function(e){return P(this,t,e)},enumerable:!0})};b?(m=r(function(e,r,i,o){p(e,m,l,"_d");var a,s,u,c,d=0,f=0;if(k(r)){if(!(r instanceof Z||"ArrayBuffer"==(c=w(r))||"SharedArrayBuffer"==c))return be in r?Pe(m,r):Ae.call(m,r);a=r,f=Se(i,t);var g=r.byteLength;if(o===n){if(g%t)throw q("Wrong length!");if((s=g-f)<0)throw q("Wrong length!")}else if((s=v(o)*t)+f>g)throw q("Wrong length!");u=s/t}else u=y(r),a=new Z(s=u*t);for(h(e,"_d",{b:a,o:f,l:s,e:u,v:new K(a)});d<u;)M(e,d++)}),C=m.prototype=S(Be),h(C,"constructor",m)):a(function(){m(1)})&&a(function(){new m(-1)})&&N(function(e){new m,new m(null),new m(1.5),new m(e)},!0)||(m=r(function(e,r,i,o){p(e,m,l);var a;return k(r)?r instanceof Z||"ArrayBuffer"==(a=w(r))||"SharedArrayBuffer"==a?o!==n?new g(r,Se(i,t),o):i!==n?new g(r,Se(i,t)):new g(r):be in r?Pe(m,r):Ae.call(m,r):new g(y(r))}),X(_!==Function.prototype?T(g).concat(T(_)):T(g),function(e){e in m||h(m,e,g[e])}),m.prototype=C,i||(C.constructor=m));var A=C[me],D=!!A&&("values"==A.name||A.name==n),I=Fe.values;h(m,ye,!0),h(C,be,l),h(C,we,!0),h(C,ge,m),(c?new m(1)[ve]==l:ve in C)||B(C,ve,{get:function(){return l}}),x[l]=m,s(s.G+s.W+s.F*(m!=g),x),s(s.S,l,{BYTES_PER_ELEMENT:t}),s(s.S+s.F*a(function(){g.of.call(m,1)}),l,{from:Ae,of:De}),"BYTES_PER_ELEMENT"in C||h(C,"BYTES_PER_ELEMENT",t),s(s.P,l,je),L(l),s(s.P+s.F*Ce,l,{set:Le}),s(s.P+s.F*!D,l,Fe),i||C.toString==he||(C.toString=he),s(s.P+s.F*a(function(){new m(1).slice()}),l,{slice:Ne}),s(s.P+s.F*(a(function(){return[1,2].toLocaleString()!=new m([1,2]).toLocaleString()})||!a(function(){C.toLocaleString.call([1,2])})),l,{toLocaleString:Re}),j[l]=D?A:I,i||D||h(C,me,I)}}else e.exports=function(){}},function(e,t,r){var i=r(110),o=r(0),a=r(49)("metadata"),s=a.store||(a.store=new(r(113))),u=function(e,t,r){var o=s.get(e);if(!o){if(!r)return n;s.set(e,o=new i)}var a=o.get(t);if(!a){if(!r)return n;o.set(t,a=new i)}return a};e.exports={store:s,map:u,has:function(e,t,r){var i=u(t,r,!1);return i!==n&&i.has(e)},get:function(e,t,r){var i=u(t,r,!1);return i===n?n:i.get(e)},set:function(e,t,n,r){u(n,r,!0).set(e,t)},keys:function(e,t){var n=u(e,t,!1),r=[];return n&&n.forEach(function(e,t){r.push(t)}),r},key:function(e){return e===n||"symbol"==typeof e?e:String(e)},exp:function(e){o(o.S,"Reflect",e)}}},function(t,n){var r=t.exports={version:"2.5.1"};"number"==typeof e&&(e=r)},function(e,t,n){var r=n(32)("meta"),i=n(4),o=n(11),a=n(7).f,s=0,u=Object.isExtensible||function(){return!0},c=!n(3)(function(){return u(Object.preventExtensions({}))}),l=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},p=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!u(e))return"F";if(!t)return"E";l(e)}return e[r].i},getWeak:function(e,t){if(!o(e,r)){if(!u(e))return!0;if(!t)return!1;l(e)}return e[r].w},onFreeze:function(e){return c&&p.NEED&&u(e)&&!o(e,r)&&l(e),e}}},function(e,t,r){var i=r(5)("unscopables"),o=Array.prototype;o[i]==n&&r(12)(o,i,{}),e.exports=function(e){o[i][e]=!0}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){var r=0,i=Math.random();e.exports=function(e){return"Symbol(".concat(e===n?"":e,")_",(++r+i).toString(36))}},function(e,t){e.exports=!1},function(e,t,n){var r=n(91),i=n(66);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t,n){var r=n(23),i=Math.max,o=Math.min;e.exports=function(e,t){return(e=r(e))<0?i(e+t,0):o(e,t)}},function(e,t,r){var i=r(1),o=r(92),a=r(66),s=r(65)("IE_PROTO"),u=function(){},c=function(){var e,t=r(63)("iframe"),n=a.length;for(t.style.display="none",r(67).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;n--;)delete c.prototype[a[n]];return c()};e.exports=Object.create||function(e,t){var r;return null!==e?(u.prototype=i(e),r=new u,u.prototype=null,r[s]=e):r=c(),t===n?r:o(r,t)}},function(e,t,n){var r=n(91),i=n(66).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){var r=n(2),i=n(7),o=n(6),a=n(5)("species");e.exports=function(e){var t=r[e];o&&t&&!t[a]&&i.f(t,a,{configurable:!0,get:function(){return this}})}},function(e,t){e.exports=function(e,t,r,i){if(!(e instanceof t)||i!==n&&i in e)throw TypeError(r+": incorrect invocation!");return e}},function(e,t,n){var r=n(18),i=n(103),o=n(79),a=n(1),s=n(8),u=n(81),c={},l={};(t=e.exports=function(e,t,n,p,d){var h,f,m,v,y=d?function(){return e}:u(e),g=r(n,p,t?2:1),_=0;if("function"!=typeof y)throw TypeError(e+" is not iterable!");if(o(y)){for(h=s(e.length);h>_;_++)if((v=t?g(a(f=e[_])[0],f[1]):g(e[_]))===c||v===l)return v}else for(m=y.call(e);!(f=m.next()).done;)if((v=i(m,g,f.value,t))===c||v===l)return v}).BREAK=c,t.RETURN=l},function(e,t,n){var r=n(13);e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},function(e,t,n){var r=n(7).f,i=n(11),o=n(5)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},function(e,t,n){var r=n(0),i=n(22),o=n(3),a=n(70),s="["+a+"]",u=RegExp("^"+s+s+"*"),c=RegExp(s+s+"*$"),l=function(e,t,n){var i={},s=o(function(){return!!a[e]()||"​…"!="​…"[e]()}),u=i[e]=s?t(p):a[e];n&&(i[n]=u),r(r.P+r.F*s,"String",i)},p=l.trim=function(e,t){return e=String(i(e)),1&t&&(e=e.replace(u,"")),2&t&&(e=e.replace(c,"")),e};e.exports=l},function(e,t){e.exports={}},function(e,t,n){var r=n(4);e.exports=function(e,t){if(!r(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},function(e,t,n){var r=n(19);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,r){var i=r(19),o=r(5)("toStringTag"),a="Arguments"==i(function(){return arguments}()),s=function(e,t){try{return e[t]}catch(e){}};e.exports=function(e){var t,r,u;return e===n?"Undefined":null===e?"Null":"string"==typeof(r=s(t=Object(e),o))?r:a?i(t):"Object"==(u=i(t))&&"function"==typeof t.callee?"Arguments":u}},function(e,t,n){var r=n(2),i=r["__core-js_shared__"]||(r["__core-js_shared__"]={});e.exports=function(e){return i[e]||(i[e]={})}},function(e,t,n){var r=n(15),i=n(8),o=n(35);e.exports=function(e){return function(t,n,a){var s,u=r(t),c=i(u.length),l=o(a,c);if(e&&n!=n){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===n)return e||l||0;return!e&&-1}}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(19);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,r){var i=r(4),o=r(19),a=r(5)("match");e.exports=function(e){var t;return i(e)&&((t=e[a])!==n?!!t:"RegExp"==o(e))}},function(e,t,n){var r=n(5)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o=[7],a=o[r]();a.next=function(){return{done:n=!0}},o[r]=function(){return a},e(o)}catch(e){}return n}},function(e,t,n){var r=n(1);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){var r=n(12),i=n(13),o=n(3),a=n(22),s=n(5);e.exports=function(e,t,n){var u=s(e),c=n(a,u,""[e]),l=c[0],p=c[1];o(function(){var t={};return t[u]=function(){return 7},7!=""[e](t)})&&(i(String.prototype,e,l),r(RegExp.prototype,u,2==t?function(e,t){return p.call(e,this,t)}:function(e){return p.call(e,this)}))}},function(e,t,r){var i=r(1),o=r(10),a=r(5)("species");e.exports=function(e,t){var r,s=i(e).constructor;return s===n||(r=i(s)[a])==n?t:o(r)}},function(e,t,r){var i=r(2),o=r(0),a=r(13),s=r(41),u=r(29),c=r(40),l=r(39),p=r(4),d=r(3),h=r(54),f=r(42),m=r(69);e.exports=function(e,t,r,v,y,g){var _=i[e],b=_,w=y?"set":"add",k=b&&b.prototype,x={},C=function(e){var t=k[e];a(k,e,"delete"==e?function(e){return!(g&&!p(e))&&t.call(this,0===e?0:e)}:"has"==e?function(e){return!(g&&!p(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return g&&!p(e)?n:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};if("function"==typeof b&&(g||k.forEach&&!d(function(){(new b).entries().next()}))){var S=new b,E=S[w](g?{}:-0,1)!=S,T=d(function(){S.has(1)}),O=h(function(e){new b(e)}),P=!g&&d(function(){for(var e=new b,t=5;t--;)e[w](t,t);return!e.has(-0)});O||((b=t(function(t,r){l(t,b,e);var i=m(new _,t,b);return r!=n&&c(r,y,i[w],i),i})).prototype=k,k.constructor=b),(T||P)&&(C("delete"),C("has"),y&&C("get")),(P||E)&&C(w),g&&k.clear&&delete k.clear}else b=v.getConstructor(t,e,y,w),s(b.prototype,r),u.NEED=!0;return f(b,e),x[e]=b,o(o.G+o.W+o.F*(b!=_),x),g||v.setStrong(b,e,y),b}},function(e,t,n){for(var r,i=n(2),o=n(12),a=n(32),s=a("typed_array"),u=a("view"),c=!(!i.ArrayBuffer||!i.DataView),l=c,p=0,d="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");p<9;)(r=i[d[p++]])?(o(r.prototype,s,!0),o(r.prototype,u,!0)):l=!1;e.exports={ABV:c,CONSTR:l,TYPED:s,VIEW:u}},function(e,t,n){e.exports=n(33)||!n(3)(function(){var e=Math.random();__defineSetter__.call(null,e,function(){}),delete n(2)[e]})},function(e,t,n){var r=n(0);e.exports=function(e){r(r.S,e,{of:function(){for(var e=arguments.length,t=Array(e);e--;)t[e]=arguments[e];return new this(t)}})}},function(e,t,r){var i=r(0),o=r(10),a=r(18),s=r(40);e.exports=function(e){i(i.S,e,{from:function(e){var t,r,i,u,c=arguments[1];return o(this),(t=c!==n)&&o(c),e==n?new this:(r=[],t?(i=0,u=a(c,arguments[2],2),s(e,!1,function(e){r.push(u(e,i++))})):s(e,!1,r.push,r),new this(r))}})}},function(e,t,n){var r=n(4),i=n(2).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},function(e,t,n){var r=n(2),i=n(28),o=n(33),a=n(90),s=n(7).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},function(e,t,n){var r=n(49)("keys"),i=n(32);e.exports=function(e){return r[e]||(r[e]=i(e))}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(2).document;e.exports=r&&r.documentElement},function(e,t,r){var i=r(4),o=r(1),a=function(e,t){if(o(e),!i(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,n){try{(n=r(18)(Function.call,r(16).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,r){return a(e,r),t?e.__proto__=r:n(e,r),e}}({},!1):n),check:a}},function(e,t,n){var r=n(4),i=n(68).set;e.exports=function(e,t,n){var o,a=t.constructor;return a!==n&&"function"==typeof a&&(o=a.prototype)!==n.prototype&&r(o)&&i&&i(e,o),e}},function(e,t){e.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},function(e,t,n){var r=n(23),i=n(22);e.exports=function(e){var t=String(i(this)),n="",o=r(e);if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(t+=t))1&o&&(n+=t);return n}},function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},function(e,t){var n=Math.expm1;e.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:n},function(e,t,r){var i=r(23),o=r(22);e.exports=function(e){return function(t,r){var a,s,u=String(o(t)),c=i(r),l=u.length;return c<0||c>=l?e?"":n:(a=u.charCodeAt(c))<55296||a>56319||c+1===l||(s=u.charCodeAt(c+1))<56320||s>57343?e?u.charAt(c):a:e?u.slice(c,c+2):s-56320+(a-55296<<10)+65536}}},function(e,t,n){var r=n(53),i=n(22);e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(e))}},function(e,t,n){var r=n(5)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(e){}}return!0}},function(e,t,r){var i=r(33),o=r(0),a=r(13),s=r(12),u=r(11),c=r(44),l=r(78),p=r(42),d=r(17),h=r(5)("iterator"),f=!([].keys&&"next"in[].keys()),m=function(){return this};e.exports=function(e,t,r,v,y,g,_){l(r,t,v);var b,w,k,x=function(e){if(!f&&e in T)return T[e];switch(e){case"keys":case"values":return function(){return new r(this,e)}}return function(){return new r(this,e)}},C=t+" Iterator",S="values"==y,E=!1,T=e.prototype,O=T[h]||T["@@iterator"]||y&&T[y],P=O||x(y),M=y?S?x("entries"):P:n,A="Array"==t?T.entries||O:O;if(A&&(k=d(A.call(new e)))!==Object.prototype&&k.next&&(p(k,C,!0),i||u(k,h)||s(k,h,m)),S&&O&&"values"!==O.name&&(E=!0,P=function(){return O.call(this)}),i&&!_||!f&&!E&&T[h]||s(T,h,P),c[t]=P,c[C]=m,y)if(b={values:S?P:x("values"),keys:g?P:x("keys"),entries:M},_)for(w in b)w in T||a(T,w,b[w]);else o(o.P+o.F*(f||E),t,b);return b}},function(e,t,n){var r=n(36),i=n(31),o=n(42),a={};n(12)(a,n(5)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},function(e,t,r){var i=r(44),o=r(5)("iterator"),a=Array.prototype;e.exports=function(e){return e!==n&&(i.Array===e||a[o]===e)}},function(e,t,n){var r=n(7),i=n(31);e.exports=function(e,t,n){t in e?r.f(e,t,i(0,n)):e[t]=n}},function(e,t,r){var i=r(48),o=r(5)("iterator"),a=r(44);e.exports=r(28).getIteratorMethod=function(e){if(e!=n)return e[o]||e["@@iterator"]||a[i(e)]}},function(e,t,n){var r=n(207);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,r){var i=r(9),o=r(35),a=r(8);e.exports=function(e){for(var t=i(this),r=a(t.length),s=arguments.length,u=o(s>1?arguments[1]:n,r),c=s>2?arguments[2]:n,l=c===n?r:o(c,r);l>u;)t[u++]=e;return t}},function(e,t,r){var i=r(30),o=r(106),a=r(44),s=r(15);e.exports=r(77)(Array,"Array",function(e,t){this._t=s(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,r=this._i++;return!e||r>=e.length?(this._t=n,o(1)):"keys"==t?o(0,r):"values"==t?o(0,e[r]):o(0,[r,e[r]])},"values"),a.Arguments=a.Array,i("keys"),i("values"),i("entries")},function(e,t,n){var r,i,o,a=n(18),s=n(96),u=n(67),c=n(63),l=n(2),p=l.process,d=l.setImmediate,h=l.clearImmediate,f=l.MessageChannel,m=l.Dispatch,v=0,y={},g=function(){var e=+this;if(y.hasOwnProperty(e)){var t=y[e];delete y[e],t()}},_=function(e){g.call(e.data)};d&&h||(d=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return y[++v]=function(){s("function"==typeof e?e:Function(e),t)},r(v),v},h=function(e){delete y[e]},"process"==n(19)(p)?r=function(e){p.nextTick(a(g,e,1))}:m&&m.now?r=function(e){m.now(a(g,e,1))}:f?(o=(i=new f).port2,i.port1.onmessage=_,r=a(o.postMessage,o,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(e){l.postMessage(e+"","*")},l.addEventListener("message",_,!1)):r="onreadystatechange"in c("script")?function(e){u.appendChild(c("script")).onreadystatechange=function(){u.removeChild(this),g.call(e)}}:function(e){setTimeout(a(g,e,1),0)}),e.exports={set:d,clear:h}},function(e,t,r){var i=r(2),o=r(85).set,a=i.MutationObserver||i.WebKitMutationObserver,s=i.process,u=i.Promise,c="process"==r(19)(s);e.exports=function(){var e,t,r,l=function(){var i,o;for(c&&(i=s.domain)&&i.exit();e;){o=e.fn,e=e.next;try{o()}catch(i){throw e?r():t=n,i}}t=n,i&&i.enter()};if(c)r=function(){s.nextTick(l)};else if(a){var p=!0,d=document.createTextNode("");new a(l).observe(d,{characterData:!0}),r=function(){d.data=p=!p}}else if(u&&u.resolve){var h=u.resolve();r=function(){h.then(l)}}else r=function(){o.call(i,l)};return function(i){var o={fn:i,next:n};t&&(t.next=o),e||(e=o,r()),t=o}}},function(e,t,r){function i(e){var t,r;this.promise=new e(function(e,i){if(t!==n||r!==n)throw TypeError("Bad Promise constructor");t=e,r=i}),this.resolve=o(t),this.reject=o(r)}var o=r(10);e.exports.f=function(e){return new i(e)}},function(e,t,r){function i(e,t,n){var r,i,o,a=Array(n),s=8*n-t-1,u=(1<<s)-1,c=u>>1,l=23===t?V(2,-24)-V(2,-77):0,p=0,d=e<0||0===e&&1/e<0?1:0;for((e=F(e))!=e||e===N?(i=e!=e?1:0,r=u):(r=z(U(e)/B),e*(o=V(2,-r))<1&&(r--,o*=2),(e+=r+c>=1?l/o:l*V(2,1-c))*o>=2&&(r++,o/=2),r+c>=u?(i=0,r=u):r+c>=1?(i=(e*o-1)*V(2,t),r+=c):(i=e*V(2,c-1)*V(2,t),r=0));t>=8;a[p++]=255&i,i/=256,t-=8);for(r=r<<t|i,s+=t;s>0;a[p++]=255&r,r/=256,s-=8);return a[--p]|=128*d,a}function o(e,t,n){var r,i=8*n-t-1,o=(1<<i)-1,a=o>>1,s=i-7,u=n-1,c=e[u--],l=127&c;for(c>>=7;s>0;l=256*l+e[u],u--,s-=8);for(r=l&(1<<-s)-1,l>>=-s,s+=t;s>0;r=256*r+e[u],u--,s-=8);if(0===l)l=1-a;else{if(l===o)return r?NaN:c?-N:N;r+=V(2,t),l-=a}return(c?-1:1)*r*V(2,l-t)}function a(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function s(e){return[255&e]}function u(e){return[255&e,e>>8&255]}function c(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function l(e){return i(e,52,8)}function p(e){return i(e,23,4)}function d(e,t,n){T(e[M],t,{get:function(){return this[n]}})}function h(e,t,n,r){var i=S(+n);if(i+t>e[q])throw j(A);var o=e[H]._b,a=i+e[W],s=o.slice(a,a+t);return r?s:s.reverse()}function f(e,t,n,r,i,o){var a=S(+n);if(a+t>e[q])throw j(A);for(var s=e[H]._b,u=a+e[W],c=r(+i),l=0;l<t;l++)s[u+l]=c[o?l:t-l-1]}var m=r(2),v=r(6),y=r(33),g=r(59),_=r(12),b=r(41),w=r(3),k=r(39),x=r(23),C=r(8),S=r(116),E=r(37).f,T=r(7).f,O=r(83),P=r(42),M="prototype",A="Wrong index!",D=m.ArrayBuffer,I=m.DataView,R=m.Math,j=m.RangeError,N=m.Infinity,L=D,F=R.abs,V=R.pow,z=R.floor,U=R.log,B=R.LN2,H=v?"_b":"buffer",q=v?"_l":"byteLength",W=v?"_o":"byteOffset";if(g.ABV){if(!w(function(){D(1)})||!w(function(){new D(-1)})||w(function(){return new D,new D(1.5),new D(NaN),"ArrayBuffer"!=D.name})){for(var G,Y=(D=function(e){return k(this,D),new L(S(e))})[M]=L[M],Z=E(L),K=0;Z.length>K;)(G=Z[K++])in D||_(D,G,L[G]);y||(Y.constructor=D)}var X=new I(new D(2)),J=I[M].setInt8;X.setInt8(0,2147483648),X.setInt8(1,2147483649),!X.getInt8(0)&&X.getInt8(1)||b(I[M],{setInt8:function(e,t){J.call(this,e,t<<24>>24)},setUint8:function(e,t){J.call(this,e,t<<24>>24)}},!0)}else D=function(e){k(this,D,"ArrayBuffer");var t=S(e);this._b=O.call(Array(t),0),this[q]=t},I=function(e,t,r){k(this,I,"DataView"),k(e,D,"DataView");var i=e[q],o=x(t);if(o<0||o>i)throw j("Wrong offset!");if(r=r===n?i-o:C(r),o+r>i)throw j("Wrong length!");this[H]=e,this[W]=o,this[q]=r},v&&(d(D,"byteLength","_l"),d(I,"buffer","_b"),d(I,"byteLength","_l"),d(I,"byteOffset","_o")),b(I[M],{getInt8:function(e){return h(this,1,e)[0]<<24>>24},getUint8:function(e){return h(this,1,e)[0]},getInt16:function(e){var t=h(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=h(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return a(h(this,4,e,arguments[1]))},getUint32:function(e){return a(h(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return o(h(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return o(h(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){f(this,1,e,s,t)},setUint8:function(e,t){f(this,1,e,s,t)},setInt16:function(e,t){f(this,2,e,u,t,arguments[2])},setUint16:function(e,t){f(this,2,e,u,t,arguments[2])},setInt32:function(e,t){f(this,4,e,c,t,arguments[2])},setUint32:function(e,t){f(this,4,e,c,t,arguments[2])},setFloat32:function(e,t){f(this,4,e,p,t,arguments[2])},setFloat64:function(e,t){f(this,8,e,l,t,arguments[2])}});P(D,"ArrayBuffer"),P(I,"DataView"),_(I[M],g.VIEW,!0),t.ArrayBuffer=D,t.DataView=I},function(e,t,n){e.exports=!n(6)&&!n(3)(function(){return 7!=Object.defineProperty(n(63)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){t.f=n(5)},function(e,t,n){var r=n(11),i=n(15),o=n(50)(!1),a=n(65)("IE_PROTO");e.exports=function(e,t){var n,s=i(e),u=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);for(;t.length>u;)r(s,n=t[u++])&&(~o(c,n)||c.push(n));return c}},function(e,t,n){var r=n(7),i=n(1),o=n(34);e.exports=n(6)?Object.defineProperties:function(e,t){i(e);for(var n,a=o(t),s=a.length,u=0;s>u;)r.f(e,n=a[u++],t[n]);return e}},function(e,t,n){var r=n(15),i=n(37).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return i(e)}catch(e){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?s(e):i(r(e))}},function(e,t,n){var r=n(34),i=n(51),o=n(47),a=n(9),s=n(46),u=Object.assign;e.exports=!u||n(3)(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=u({},e)[n]||Object.keys(u({},t)).join("")!=r})?function(e,t){for(var n=a(e),u=arguments.length,c=1,l=i.f,p=o.f;u>c;)for(var d,h=s(arguments[c++]),f=l?r(h).concat(l(h)):r(h),m=f.length,v=0;m>v;)p.call(h,d=f[v++])&&(n[d]=h[d]);return n}:u},function(e,t,n){var r=n(10),i=n(4),o=n(96),a=[].slice,s={},u=function(e,t,n){if(!(t in s)){for(var r=[],i=0;i<t;i++)r[i]="a["+i+"]";s[t]=Function("F,a","return new F("+r.join(",")+")")}return s[t](e,n)};e.exports=Function.bind||function(e){var t=r(this),n=a.call(arguments,1),s=function(){var r=n.concat(a.call(arguments));return this instanceof s?u(t,r.length,r):o(t,r,e)};return i(t.prototype)&&(s.prototype=t.prototype),s}},function(e,t){e.exports=function(e,t,r){var i=r===n;switch(t.length){case 0:return i?e():e.call(r);case 1:return i?e(t[0]):e.call(r,t[0]);case 2:return i?e(t[0],t[1]):e.call(r,t[0],t[1]);case 3:return i?e(t[0],t[1],t[2]):e.call(r,t[0],t[1],t[2]);case 4:return i?e(t[0],t[1],t[2],t[3]):e.call(r,t[0],t[1],t[2],t[3])}return e.apply(r,t)}},function(e,t,n){var r=n(19);e.exports=function(e,t){if("number"!=typeof e&&"Number"!=r(e))throw TypeError(t);return+e}},function(e,t,n){var r=n(4),i=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&i(e)===e}},function(e,t,n){var r=n(2).parseFloat,i=n(43).trim;e.exports=1/r(n(70)+"-0")!=-1/0?function(e){var t=i(String(e),3),n=r(t);return 0===n&&"-"==t.charAt(0)?-0:n}:r},function(e,t,n){var r=n(2).parseInt,i=n(43).trim,o=n(70),a=/^[-+]?0[xX]/;e.exports=8!==r(o+"08")||22!==r(o+"0x16")?function(e,t){var n=i(String(e),3);return r(n,t>>>0||(a.test(n)?16:10))}:r},function(e,t){e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)}},function(e,t,n){var r=n(72),i=Math.pow,o=i(2,-52),a=i(2,-23),s=i(2,127)*(2-a),u=i(2,-126),c=function(e){return e+1/o-1/o};e.exports=Math.fround||function(e){var t,n,i=Math.abs(e),l=r(e);return i<u?l*c(i/u/a)*u*a:(t=(1+a/o)*i,(n=t-(t-i))>s||n!=n?l*(1/0):l*n)}},function(e,t,r){var i=r(1);e.exports=function(e,t,r,o){try{return o?t(i(r)[0],r[1]):t(r)}catch(t){var a=e.return;throw a!==n&&i(a.call(e)),t}}},function(e,t,n){var r=n(10),i=n(9),o=n(46),a=n(8);e.exports=function(e,t,n,s,u){r(t);var c=i(e),l=o(c),p=a(c.length),d=u?p-1:0,h=u?-1:1;if(n<2)for(;;){if(d in l){s=l[d],d+=h;break}if(d+=h,u?d<0:p<=d)throw TypeError("Reduce of empty array with no initial value")}for(;u?d>=0:p>d;d+=h)d in l&&(s=t(s,l[d],d,c));return s}},function(e,t,r){var i=r(9),o=r(35),a=r(8);e.exports=[].copyWithin||function(e,t){var r=i(this),s=a(r.length),u=o(e,s),c=o(t,s),l=arguments.length>2?arguments[2]:n,p=Math.min((l===n?s:o(l,s))-c,s-u),d=1;for(c<u&&u<c+p&&(d=-1,c+=p-1,u+=p-1);p-- >0;)c in r?r[u]=r[c]:delete r[u],u+=d,c+=d;return r}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){n(6)&&"g"!=/./g.flags&&n(7).f(RegExp.prototype,"flags",{configurable:!0,get:n(55)})},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,n){var r=n(1),i=n(4),o=n(87);e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=o.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,r){var i=r(111),o=r(45);e.exports=r(58)("Map",function(e){return function(){return e(this,arguments.length>0?arguments[0]:n)}},{get:function(e){var t=i.getEntry(o(this,"Map"),e);return t&&t.v},set:function(e,t){return i.def(o(this,"Map"),0===e?0:e,t)}},i,!0)},function(e,t,r){var i=r(7).f,o=r(36),a=r(41),s=r(18),u=r(39),c=r(40),l=r(77),p=r(106),d=r(38),h=r(6),f=r(29).fastKey,m=r(45),v=h?"_s":"size",y=function(e,t){var n,r=f(t);if("F"!==r)return e._i[r];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,r,l){var p=e(function(e,i){u(e,p,t,"_i"),e._t=t,e._i=o(null),e._f=n,e._l=n,e[v]=0,i!=n&&c(i,r,e[l],e)});return a(p.prototype,{clear:function(){for(var e=m(this,t),r=e._i,i=e._f;i;i=i.n)i.r=!0,i.p&&(i.p=i.p.n=n),delete r[i.i];e._f=e._l=n,e[v]=0},delete:function(e){var n=m(this,t),r=y(n,e);if(r){var i=r.n,o=r.p;delete n._i[r.i],r.r=!0,o&&(o.n=i),i&&(i.p=o),n._f==r&&(n._f=i),n._l==r&&(n._l=o),n[v]--}return!!r},forEach:function(e){m(this,t);for(var r,i=s(e,arguments.length>1?arguments[1]:n,3);r=r?r.n:this._f;)for(i(r.v,r.k,this);r&&r.r;)r=r.p},has:function(e){return!!y(m(this,t),e)}}),h&&i(p.prototype,"size",{get:function(){return m(this,t)[v]}}),p},def:function(e,t,r){var i,o,a=y(e,t);return a?a.v=r:(e._l=a={i:o=f(t,!0),k:t,v:r,p:i=e._l,n:n,r:!1},e._f||(e._f=a),i&&(i.n=a),e[v]++,"F"!==o&&(e._i[o]=a)),e},getEntry:y,setStrong:function(e,t,r){l(e,t,function(e,r){this._t=m(e,t),this._k=r,this._l=n},function(){for(var e=this,t=e._k,r=e._l;r&&r.r;)r=r.p;return e._t&&(e._l=r=r?r.n:e._t._f)?"keys"==t?p(0,r.k):"values"==t?p(0,r.v):p(0,[r.k,r.v]):(e._t=n,p(1))},r?"entries":"values",!r,!0),d(t)}}},function(e,t,r){var i=r(111),o=r(45);e.exports=r(58)("Set",function(e){return function(){return e(this,arguments.length>0?arguments[0]:n)}},{add:function(e){return i.def(o(this,"Set"),e=0===e?0:e,e)}},i)},function(e,t,r){var i,o=r(25)(0),a=r(13),s=r(29),u=r(94),c=r(114),l=r(4),p=r(3),d=r(45),h=s.getWeak,f=Object.isExtensible,m=c.ufstore,v={},y=function(e){return function(){return e(this,arguments.length>0?arguments[0]:n)}},g={get:function(e){if(l(e)){var t=h(e);return!0===t?m(d(this,"WeakMap")).get(e):t?t[this._i]:n}},set:function(e,t){return c.def(d(this,"WeakMap"),e,t)}},_=e.exports=r(58)("WeakMap",y,g,c,!0,!0);p(function(){return 7!=(new _).set((Object.freeze||Object)(v),7).get(v)})&&(u((i=c.getConstructor(y,"WeakMap")).prototype,g),s.NEED=!0,o(["delete","has","get","set"],function(e){var t=_.prototype,n=t[e];a(t,e,function(t,r){if(l(t)&&!f(t)){this._f||(this._f=new i);var o=this._f[e](t,r);return"set"==e?this:o}return n.call(this,t,r)})}))},function(e,t,r){var i=r(41),o=r(29).getWeak,a=r(1),s=r(4),u=r(39),c=r(40),l=r(25),p=r(11),d=r(45),h=l(5),f=l(6),m=0,v=function(e){return e._l||(e._l=new y)},y=function(){this.a=[]},g=function(e,t){return h(e.a,function(e){return e[0]===t})};y.prototype={get:function(e){var t=g(this,e);if(t)return t[1]},has:function(e){return!!g(this,e)},set:function(e,t){var n=g(this,e);n?n[1]=t:this.a.push([e,t])},delete:function(e){var t=f(this.a,function(t){return t[0]===e});return~t&&this.a.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,r,a){var l=e(function(e,i){u(e,l,t,"_i"),e._t=t,e._i=m++,e._l=n,i!=n&&c(i,r,e[a],e)});return i(l.prototype,{delete:function(e){if(!s(e))return!1;var n=o(e);return!0===n?v(d(this,t)).delete(e):n&&p(n,this._i)&&delete n[this._i]},has:function(e){if(!s(e))return!1;var n=o(e);return!0===n?v(d(this,t)).has(e):n&&p(n,this._i)}}),l},def:function(e,t,n){var r=o(a(t),!0);return!0===r?v(e).set(t,n):r[e._i]=n,e},ufstore:v}},function(e,t,n){var r=n(37),i=n(51),o=n(1),a=n(2).Reflect;e.exports=a&&a.ownKeys||function(e){var t=r.f(o(e)),n=i.f;return n?t.concat(n(e)):t}},function(e,t,r){var i=r(23),o=r(8);e.exports=function(e){if(e===n)return 0;var t=i(e),r=o(t);if(t!==r)throw RangeError("Wrong length!");return r}},function(e,t,r){function i(e,t,r,l,p,d,h,f){for(var m,v,y=p,g=0,_=!!h&&u(h,f,3);g<l;){if(g in r){if(m=_?_(r[g],g,t):r[g],v=!1,a(m)&&(v=(v=m[c])!==n?!!v:o(m)),v&&d>0)y=i(e,t,m,s(m.length),y,d-1)-1;else{if(y>=9007199254740991)throw TypeError();e[y]=m}y++}g++}return y}var o=r(52),a=r(4),s=r(8),u=r(18),c=r(5)("isConcatSpreadable");e.exports=i},function(e,t,r){var i=r(8),o=r(71),a=r(22);e.exports=function(e,t,r,s){var u=String(a(e)),c=u.length,l=r===n?" ":String(r),p=i(t);if(p<=c||""==l)return u;var d=p-c,h=o.call(l,Math.ceil(d/l.length));return h.length>d&&(h=h.slice(0,d)),s?h+u:u+h}},function(e,t,n){var r=n(34),i=n(15),o=n(47).f;e.exports=function(e){return function(t){for(var n,a=i(t),s=r(a),u=s.length,c=0,l=[];u>c;)o.call(a,n=s[c++])&&l.push(e?[n,a[n]]:a[n]);return l}}},function(e,t,n){var r=n(48),i=n(121);e.exports=function(e){return function(){if(r(this)!=e)throw TypeError(e+"#toJSON isn't generic");return i(this)}}},function(e,t,n){var r=n(40);e.exports=function(e,t){var n=[];return r(e,!1,n.push,n,t),n}},function(e,t){e.exports=Math.scale||function(e,t,n,r,i){return 0===arguments.length||e!=e||t!=t||n!=n||r!=r||i!=i?NaN:e===1/0||e===-1/0?e:(e-t)*(i-r)/(n-t)+r}},function(e,t,n){n(124),n(126),n(127),n(128),n(129),n(130),n(131),n(132),n(133),n(134),n(135),n(136),n(137),n(138),n(139),n(140),n(142),n(143),n(144),n(145),n(146),n(147),n(148),n(149),n(150),n(151),n(152),n(153),n(154),n(155),n(156),n(157),n(158),n(159),n(160),n(161),n(162),n(163),n(164),n(165),n(166),n(167),n(168),n(169),n(170),n(171),n(172),n(173),n(174),n(175),n(176),n(177),n(178),n(179),n(180),n(181),n(182),n(183),n(184),n(185),n(186),n(187),n(188),n(189),n(190),n(191),n(192),n(193),n(194),n(195),n(196),n(197),n(198),n(199),n(200),n(201),n(202),n(203),n(204),n(205),n(206),n(208),n(209),n(210),n(211),n(212),n(213),n(214),n(215),n(216),n(217),n(218),n(219),n(84),n(220),n(221),n(222),n(107),n(223),n(224),n(225),n(226),n(227),n(110),n(112),n(113),n(228),n(229),n(230),n(231),n(232),n(233),n(234),n(235),n(236),n(237),n(238),n(239),n(240),n(241),n(242),n(243),n(244),n(245),n(247),n(248),n(250),n(251),n(252),n(253),n(254),n(255),n(256),n(257),n(258),n(259),n(260),n(261),n(262),n(263),n(264),n(265),n(266),n(267),n(268),n(269),n(270),n(271),n(272),n(273),n(274),n(275),n(276),n(277),n(278),n(279),n(280),n(281),n(282),n(283),n(284),n(285),n(286),n(287),n(288),n(289),n(290),n(291),n(292),n(293),n(294),n(295),n(296),n(297),n(298),n(299),n(300),n(301),n(302),n(303),n(304),n(305),n(306),n(307),n(308),n(309),n(310),n(311),n(312),n(313),n(314),n(315),n(316),n(317),n(318),e.exports=n(319)},function(e,t,r){var i=r(2),o=r(11),a=r(6),s=r(0),u=r(13),c=r(29).KEY,l=r(3),p=r(49),d=r(42),h=r(32),f=r(5),m=r(90),v=r(64),y=r(125),g=r(52),_=r(1),b=r(15),w=r(21),k=r(31),x=r(36),C=r(93),S=r(16),E=r(7),T=r(34),O=S.f,P=E.f,M=C.f,A=i.Symbol,D=i.JSON,I=D&&D.stringify,R=f("_hidden"),j=f("toPrimitive"),N={}.propertyIsEnumerable,L=p("symbol-registry"),F=p("symbols"),V=p("op-symbols"),z=Object.prototype,U="function"==typeof A,B=i.QObject,H=!B||!B.prototype||!B.prototype.findChild,q=a&&l(function(){return 7!=x(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=O(z,t);r&&delete z[t],P(e,t,n),r&&e!==z&&P(z,t,r)}:P,W=function(e){var t=F[e]=x(A.prototype);return t._k=e,t},G=U&&"symbol"==typeof A.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof A},Y=function(e,t,n){return e===z&&Y(V,t,n),_(e),t=w(t,!0),_(n),o(F,t)?(n.enumerable?(o(e,R)&&e[R][t]&&(e[R][t]=!1),n=x(n,{enumerable:k(0,!1)})):(o(e,R)||P(e,R,k(1,{})),e[R][t]=!0),q(e,t,n)):P(e,t,n)},Z=function(e,t){_(e);for(var n,r=y(t=b(t)),i=0,o=r.length;o>i;)Y(e,n=r[i++],t[n]);return e},K=function(e){var t=N.call(this,e=w(e,!0));return!(this===z&&o(F,e)&&!o(V,e))&&(!(t||!o(this,e)||!o(F,e)||o(this,R)&&this[R][e])||t)},X=function(e,t){if(e=b(e),t=w(t,!0),e!==z||!o(F,t)||o(V,t)){var n=O(e,t);return!n||!o(F,t)||o(e,R)&&e[R][t]||(n.enumerable=!0),n}},J=function(e){for(var t,n=M(b(e)),r=[],i=0;n.length>i;)o(F,t=n[i++])||t==R||t==c||r.push(t);return r},Q=function(e){for(var t,n=e===z,r=M(n?V:b(e)),i=[],a=0;r.length>a;)!o(F,t=r[a++])||n&&!o(z,t)||i.push(F[t]);return i};U||(u((A=function(){if(this instanceof A)throw TypeError("Symbol is not a constructor!");var e=h(arguments.length>0?arguments[0]:n),t=function(n){this===z&&t.call(V,n),o(this,R)&&o(this[R],e)&&(this[R][e]=!1),q(this,e,k(1,n))};return a&&H&&q(z,e,{configurable:!0,set:t}),W(e)}).prototype,"toString",function(){return this._k}),S.f=X,E.f=Y,r(37).f=C.f=J,r(47).f=K,r(51).f=Q,a&&!r(33)&&u(z,"propertyIsEnumerable",K,!0),m.f=function(e){return W(f(e))}),s(s.G+s.W+s.F*!U,{Symbol:A});for(var $="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ee=0;$.length>ee;)f($[ee++]);for(var te=T(f.store),ne=0;te.length>ne;)v(te[ne++]);s(s.S+s.F*!U,"Symbol",{for:function(e){return o(L,e+="")?L[e]:L[e]=A(e)},keyFor:function(e){if(!G(e))throw TypeError(e+" is not a symbol!");for(var t in L)if(L[t]===e)return t},useSetter:function(){H=!0},useSimple:function(){H=!1}}),s(s.S+s.F*!U,"Object",{create:function(e,t){return t===n?x(e):Z(x(e),t)},defineProperty:Y,defineProperties:Z,getOwnPropertyDescriptor:X,getOwnPropertyNames:J,getOwnPropertySymbols:Q}),D&&s(s.S+s.F*(!U||l(function(){var e=A();return"[null]"!=I([e])||"{}"!=I({a:e})||"{}"!=I(Object(e))})),"JSON",{stringify:function(e){if(e!==n&&!G(e)){for(var t,r,i=[e],o=1;arguments.length>o;)i.push(arguments[o++]);return"function"==typeof(t=i[1])&&(r=t),!r&&g(t)||(t=function(e,t){if(r&&(t=r.call(this,e,t)),!G(t))return t}),i[1]=t,I.apply(D,i)}}}),A.prototype[j]||r(12)(A.prototype,j,A.prototype.valueOf),d(A,"Symbol"),d(Math,"Math",!0),d(i.JSON,"JSON",!0)},function(e,t,n){var r=n(34),i=n(51),o=n(47);e.exports=function(e){var t=r(e),n=i.f;if(n)for(var a,s=n(e),u=o.f,c=0;s.length>c;)u.call(e,a=s[c++])&&t.push(a);return t}},function(e,t,n){var r=n(0);r(r.S+r.F*!n(6),"Object",{defineProperty:n(7).f})},function(e,t,n){var r=n(0);r(r.S+r.F*!n(6),"Object",{defineProperties:n(92)})},function(e,t,n){var r=n(15),i=n(16).f;n(24)("getOwnPropertyDescriptor",function(){return function(e,t){return i(r(e),t)}})},function(e,t,n){var r=n(0);r(r.S,"Object",{create:n(36)})},function(e,t,n){var r=n(9),i=n(17);n(24)("getPrototypeOf",function(){return function(e){return i(r(e))}})},function(e,t,n){var r=n(9),i=n(34);n(24)("keys",function(){return function(e){return i(r(e))}})},function(e,t,n){n(24)("getOwnPropertyNames",function(){return n(93).f})},function(e,t,n){var r=n(4),i=n(29).onFreeze;n(24)("freeze",function(e){return function(t){return e&&r(t)?e(i(t)):t}})},function(e,t,n){var r=n(4),i=n(29).onFreeze;n(24)("seal",function(e){return function(t){return e&&r(t)?e(i(t)):t}})},function(e,t,n){var r=n(4),i=n(29).onFreeze;n(24)("preventExtensions",function(e){return function(t){return e&&r(t)?e(i(t)):t}})},function(e,t,n){var r=n(4);n(24)("isFrozen",function(e){return function(t){return!r(t)||!!e&&e(t)}})},function(e,t,n){var r=n(4);n(24)("isSealed",function(e){return function(t){return!r(t)||!!e&&e(t)}})},function(e,t,n){var r=n(4);n(24)("isExtensible",function(e){return function(t){return!!r(t)&&(!e||e(t))}})},function(e,t,n){var r=n(0);r(r.S+r.F,"Object",{assign:n(94)})},function(e,t,n){var r=n(0);r(r.S,"Object",{is:n(141)})},function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,n){var r=n(0);r(r.S,"Object",{setPrototypeOf:n(68).set})},function(e,t,n){var r=n(48),i={};i[n(5)("toStringTag")]="z",i+""!="[object z]"&&n(13)(Object.prototype,"toString",function(){return"[object "+r(this)+"]"},!0)},function(e,t,n){var r=n(0);r(r.P,"Function",{bind:n(95)})},function(e,t,n){var r=n(7).f,i=Function.prototype,o=/^\s*function ([^ (]*)/;"name"in i||n(6)&&r(i,"name",{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(e){return""}}})},function(e,t,n){var r=n(4),i=n(17),o=n(5)("hasInstance"),a=Function.prototype;o in a||n(7).f(a,o,{value:function(e){if("function"!=typeof this||!r(e))return!1;if(!r(this.prototype))return e instanceof this;for(;e=i(e);)if(this.prototype===e)return!0;return!1}})},function(e,t,n){var r=n(2),i=n(11),o=n(19),a=n(69),s=n(21),u=n(3),c=n(37).f,l=n(16).f,p=n(7).f,d=n(43).trim,h=r.Number,f=h,m=h.prototype,v="Number"==o(n(36)(m)),y="trim"in String.prototype,g=function(e){var t=s(e,!1);if("string"==typeof t&&t.length>2){var n,r,i,o=(t=y?t.trim():d(t,3)).charCodeAt(0);if(43===o||45===o){if(88===(n=t.charCodeAt(2))||120===n)return NaN}else if(48===o){switch(t.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+t}for(var a,u=t.slice(2),c=0,l=u.length;c<l;c++)if((a=u.charCodeAt(c))<48||a>i)return NaN;return parseInt(u,r)}}return+t};if(!h(" 0o1")||!h("0b1")||h("+0x1")){h=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof h&&(v?u(function(){m.valueOf.call(n)}):"Number"!=o(n))?a(new f(g(t)),n,h):g(t)};for(var _,b=n(6)?c(f):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;b.length>w;w++)i(f,_=b[w])&&!i(h,_)&&p(h,_,l(f,_));h.prototype=m,m.constructor=h,n(13)(r,"Number",h)}},function(e,t,n){var r=n(0),i=n(23),o=n(97),a=n(71),s=1..toFixed,u=Math.floor,c=[0,0,0,0,0,0],l="Number.toFixed: incorrect invocation!",p=function(e,t){for(var n=-1,r=t;++n<6;)r+=e*c[n],c[n]=r%1e7,r=u(r/1e7)},d=function(e){for(var t=6,n=0;--t>=0;)n+=c[t],c[t]=u(n/e),n=n%e*1e7},h=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==c[e]){var n=String(c[e]);t=""===t?n:t+a.call("0",7-n.length)+n}return t},f=function(e,t,n){return 0===t?n:t%2==1?f(e,t-1,n*e):f(e*e,t/2,n)},m=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t};r(r.P+r.F*(!!s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(3)(function(){s.call({})})),"Number",{toFixed:function(e){var t,n,r,s,u=o(this,l),c=i(e),v="",y="0";if(c<0||c>20)throw RangeError(l);if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return String(u);if(u<0&&(v="-",u=-u),u>1e-21)if(t=m(u*f(2,69,1))-69,n=t<0?u*f(2,-t,1):u/f(2,t,1),n*=4503599627370496,(t=52-t)>0){for(p(0,n),r=c;r>=7;)p(1e7,0),r-=7;for(p(f(10,r,1),0),r=t-1;r>=23;)d(1<<23),r-=23;d(1<<r),p(1,1),d(2),y=h()}else p(0,n),p(1<<-t,0),y=h()+a.call("0",c);return y=c>0?v+((s=y.length)<=c?"0."+a.call("0",c-s)+y:y.slice(0,s-c)+"."+y.slice(s-c)):v+y}})},function(e,t,r){var i=r(0),o=r(3),a=r(97),s=1..toPrecision;i(i.P+i.F*(o(function(){return"1"!==s.call(1,n)})||!o(function(){s.call({})})),"Number",{toPrecision:function(e){var t=a(this,"Number#toPrecision: incorrect invocation!");return e===n?s.call(t):s.call(t,e)}})},function(e,t,n){var r=n(0);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(e,t,n){var r=n(0),i=n(2).isFinite;r(r.S,"Number",{isFinite:function(e){return"number"==typeof e&&i(e)}})},function(e,t,n){var r=n(0);r(r.S,"Number",{isInteger:n(98)})},function(e,t,n){var r=n(0);r(r.S,"Number",{isNaN:function(e){return e!=e}})},function(e,t,n){var r=n(0),i=n(98),o=Math.abs;r(r.S,"Number",{isSafeInteger:function(e){return i(e)&&o(e)<=9007199254740991}})},function(e,t,n){var r=n(0);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(e,t,n){var r=n(0);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(e,t,n){var r=n(0),i=n(99);r(r.S+r.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},function(e,t,n){var r=n(0),i=n(100);r(r.S+r.F*(Number.parseInt!=i),"Number",{parseInt:i})},function(e,t,n){var r=n(0),i=n(100);r(r.G+r.F*(parseInt!=i),{parseInt:i})},function(e,t,n){var r=n(0),i=n(99);r(r.G+r.F*(parseFloat!=i),{parseFloat:i})},function(e,t,n){var r=n(0),i=n(101),o=Math.sqrt,a=Math.acosh;r(r.S+r.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(1/0)==1/0),"Math",{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?Math.log(e)+Math.LN2:i(e-1+o(e-1)*o(e+1))}})},function(e,t,n){function r(e){return isFinite(e=+e)&&0!=e?e<0?-r(-e):Math.log(e+Math.sqrt(e*e+1)):e}var i=n(0),o=Math.asinh;i(i.S+i.F*!(o&&1/o(0)>0),"Math",{asinh:r})},function(e,t,n){var r=n(0),i=Math.atanh;r(r.S+r.F*!(i&&1/i(-0)<0),"Math",{atanh:function(e){return 0==(e=+e)?e:Math.log((1+e)/(1-e))/2}})},function(e,t,n){var r=n(0),i=n(72);r(r.S,"Math",{cbrt:function(e){return i(e=+e)*Math.pow(Math.abs(e),1/3)}})},function(e,t,n){var r=n(0);r(r.S,"Math",{clz32:function(e){return(e>>>=0)?31-Math.floor(Math.log(e+.5)*Math.LOG2E):32}})},function(e,t,n){var r=n(0),i=Math.exp;r(r.S,"Math",{cosh:function(e){return(i(e=+e)+i(-e))/2}})},function(e,t,n){var r=n(0),i=n(73);r(r.S+r.F*(i!=Math.expm1),"Math",{expm1:i})},function(e,t,n){var r=n(0);r(r.S,"Math",{fround:n(102)})},function(e,t,n){var r=n(0),i=Math.abs;r(r.S,"Math",{hypot:function(e,t){for(var n,r,o=0,a=0,s=arguments.length,u=0;a<s;)u<(n=i(arguments[a++]))?(o=o*(r=u/n)*r+1,u=n):o+=n>0?(r=n/u)*r:n;return u===1/0?1/0:u*Math.sqrt(o)}})},function(e,t,n){var r=n(0),i=Math.imul;r(r.S+r.F*n(3)(function(){return-5!=i(4294967295,5)||2!=i.length}),"Math",{imul:function(e,t){var n=+e,r=+t,i=65535&n,o=65535&r;return 0|i*o+((65535&n>>>16)*o+i*(65535&r>>>16)<<16>>>0)}})},function(e,t,n){var r=n(0);r(r.S,"Math",{log10:function(e){return Math.log(e)*Math.LOG10E}})},function(e,t,n){var r=n(0);r(r.S,"Math",{log1p:n(101)})},function(e,t,n){var r=n(0);r(r.S,"Math",{log2:function(e){return Math.log(e)/Math.LN2}})},function(e,t,n){var r=n(0);r(r.S,"Math",{sign:n(72)})},function(e,t,n){var r=n(0),i=n(73),o=Math.exp;r(r.S+r.F*n(3)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(e){return Math.abs(e=+e)<1?(i(e)-i(-e))/2:(o(e-1)-o(-e-1))*(Math.E/2)}})},function(e,t,n){var r=n(0),i=n(73),o=Math.exp;r(r.S,"Math",{tanh:function(e){var t=i(e=+e),n=i(-e);return t==1/0?1:n==1/0?-1:(t-n)/(o(e)+o(-e))}})},function(e,t,n){var r=n(0);r(r.S,"Math",{trunc:function(e){return(e>0?Math.floor:Math.ceil)(e)}})},function(e,t,n){var r=n(0),i=n(35),o=String.fromCharCode,a=String.fromCodePoint;r(r.S+r.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,a=0;r>a;){if(t=+arguments[a++],i(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?o(t):o(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},function(e,t,n){var r=n(0),i=n(15),o=n(8);r(r.S,"String",{raw:function(e){for(var t=i(e.raw),n=o(t.length),r=arguments.length,a=[],s=0;n>s;)a.push(String(t[s++])),s<r&&a.push(String(arguments[s]));return a.join("")}})},function(e,t,n){n(43)("trim",function(e){return function(){return e(this,3)}})},function(e,t,n){var r=n(0),i=n(74)(!1);r(r.P,"String",{codePointAt:function(e){return i(this,e)}})},function(e,t,r){var i=r(0),o=r(8),a=r(75),s="".endsWith;i(i.P+i.F*r(76)("endsWith"),"String",{endsWith:function(e){var t=a(this,e,"endsWith"),r=arguments.length>1?arguments[1]:n,i=o(t.length),u=r===n?i:Math.min(o(r),i),c=String(e);return s?s.call(t,c,u):t.slice(u-c.length,u)===c}})},function(e,t,r){var i=r(0),o=r(75);i(i.P+i.F*r(76)("includes"),"String",{includes:function(e){return!!~o(this,e,"includes").indexOf(e,arguments.length>1?arguments[1]:n)}})},function(e,t,n){var r=n(0);r(r.P,"String",{repeat:n(71)})},function(e,t,r){var i=r(0),o=r(8),a=r(75),s="".startsWith;i(i.P+i.F*r(76)("startsWith"),"String",{startsWith:function(e){var t=a(this,e,"startsWith"),r=o(Math.min(arguments.length>1?arguments[1]:n,t.length)),i=String(e);return s?s.call(t,i,r):t.slice(r,r+i.length)===i}})},function(e,t,r){var i=r(74)(!0);r(77)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,r=this._i;return r>=t.length?{value:n,done:!0}:(e=i(t,r),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){n(14)("anchor",function(e){return function(t){return e(this,"a","name",t)}})},function(e,t,n){n(14)("big",function(e){return function(){return e(this,"big","","")}})},function(e,t,n){n(14)("blink",function(e){return function(){return e(this,"blink","","")}})},function(e,t,n){n(14)("bold",function(e){return function(){return e(this,"b","","")}})},function(e,t,n){n(14)("fixed",function(e){return function(){return e(this,"tt","","")}})},function(e,t,n){n(14)("fontcolor",function(e){return function(t){return e(this,"font","color",t)}})},function(e,t,n){n(14)("fontsize",function(e){return function(t){return e(this,"font","size",t)}})},function(e,t,n){n(14)("italics",function(e){return function(){return e(this,"i","","")}})},function(e,t,n){n(14)("link",function(e){return function(t){return e(this,"a","href",t)}})},function(e,t,n){n(14)("small",function(e){return function(){return e(this,"small","","")}})},function(e,t,n){n(14)("strike",function(e){return function(){return e(this,"strike","","")}})},function(e,t,n){n(14)("sub",function(e){return function(){return e(this,"sub","","")}})},function(e,t,n){n(14)("sup",function(e){return function(){return e(this,"sup","","")}})},function(e,t,n){var r=n(0);r(r.S,"Array",{isArray:n(52)})},function(e,t,r){var i=r(18),o=r(0),a=r(9),s=r(103),u=r(79),c=r(8),l=r(80),p=r(81);o(o.S+o.F*!r(54)(function(e){Array.from(e)}),"Array",{from:function(e){var t,r,o,d,h=a(e),f="function"==typeof this?this:Array,m=arguments.length,v=m>1?arguments[1]:n,y=v!==n,g=0,_=p(h);if(y&&(v=i(v,m>2?arguments[2]:n,2)),_==n||f==Array&&u(_))for(r=new f(t=c(h.length));t>g;g++)l(r,g,y?v(h[g],g):h[g]);else for(d=_.call(h),r=new f;!(o=d.next()).done;g++)l(r,g,y?s(d,v,[o.value,g],!0):o.value);return r.length=g,r}})},function(e,t,n){var r=n(0),i=n(80);r(r.S+r.F*n(3)(function(){function e(){}return!(Array.of.call(e)instanceof e)}),"Array",{of:function(){for(var e=0,t=arguments.length,n=new("function"==typeof this?this:Array)(t);t>e;)i(n,e,arguments[e++]);return n.length=t,n}})},function(e,t,r){var i=r(0),o=r(15),a=[].join;i(i.P+i.F*(r(46)!=Object||!r(20)(a)),"Array",{join:function(e){return a.call(o(this),e===n?",":e)}})},function(e,t,r){var i=r(0),o=r(67),a=r(19),s=r(35),u=r(8),c=[].slice;i(i.P+i.F*r(3)(function(){o&&c.call(o)}),"Array",{slice:function(e,t){var r=u(this.length),i=a(this);if(t=t===n?r:t,"Array"==i)return c.call(this,e,t);for(var o=s(e,r),l=s(t,r),p=u(l-o),d=Array(p),h=0;h<p;h++)d[h]="String"==i?this.charAt(o+h):this[o+h];return d}})},function(e,t,r){var i=r(0),o=r(10),a=r(9),s=r(3),u=[].sort,c=[1,2,3];i(i.P+i.F*(s(function(){c.sort(n)})||!s(function(){c.sort(null)})||!r(20)(u)),"Array",{sort:function(e){return e===n?u.call(a(this)):u.call(a(this),o(e))}})},function(e,t,n){var r=n(0),i=n(25)(0),o=n(20)([].forEach,!0);r(r.P+r.F*!o,"Array",{forEach:function(e){return i(this,e,arguments[1])}})},function(e,t,r){var i=r(4),o=r(52),a=r(5)("species");e.exports=function(e){var t;return o(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!o(t.prototype)||(t=n),i(t)&&null===(t=t[a])&&(t=n)),t===n?Array:t}},function(e,t,n){var r=n(0),i=n(25)(1);r(r.P+r.F*!n(20)([].map,!0),"Array",{map:function(e){return i(this,e,arguments[1])}})},function(e,t,n){var r=n(0),i=n(25)(2);r(r.P+r.F*!n(20)([].filter,!0),"Array",{filter:function(e){return i(this,e,arguments[1])}})},function(e,t,n){var r=n(0),i=n(25)(3);r(r.P+r.F*!n(20)([].some,!0),"Array",{some:function(e){return i(this,e,arguments[1])}})},function(e,t,n){var r=n(0),i=n(25)(4);r(r.P+r.F*!n(20)([].every,!0),"Array",{every:function(e){return i(this,e,arguments[1])}})},function(e,t,n){var r=n(0),i=n(104);r(r.P+r.F*!n(20)([].reduce,!0),"Array",{reduce:function(e){return i(this,e,arguments.length,arguments[1],!1)}})},function(e,t,n){var r=n(0),i=n(104);r(r.P+r.F*!n(20)([].reduceRight,!0),"Array",{reduceRight:function(e){return i(this,e,arguments.length,arguments[1],!0)}})},function(e,t,n){var r=n(0),i=n(50)(!1),o=[].indexOf,a=!!o&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(a||!n(20)(o)),"Array",{indexOf:function(e){return a?o.apply(this,arguments)||0:i(this,e,arguments[1])}})},function(e,t,n){var r=n(0),i=n(15),o=n(23),a=n(8),s=[].lastIndexOf,u=!!s&&1/[1].lastIndexOf(1,-0)<0;r(r.P+r.F*(u||!n(20)(s)),"Array",{lastIndexOf:function(e){if(u)return s.apply(this,arguments)||0;var t=i(this),n=a(t.length),r=n-1;for(arguments.length>1&&(r=Math.min(r,o(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in t&&t[r]===e)return r||0;return-1}})},function(e,t,n){var r=n(0);r(r.P,"Array",{copyWithin:n(105)}),n(30)("copyWithin")},function(e,t,n){var r=n(0);r(r.P,"Array",{fill:n(83)}),n(30)("fill")},function(e,t,r){var i=r(0),o=r(25)(5),a=!0;"find"in[]&&Array(1).find(function(){a=!1}),i(i.P+i.F*a,"Array",{find:function(e){return o(this,e,arguments.length>1?arguments[1]:n)}}),r(30)("find")},function(e,t,r){var i=r(0),o=r(25)(6),a="findIndex",s=!0;a in[]&&Array(1)[a](function(){s=!1}),i(i.P+i.F*s,"Array",{findIndex:function(e){return o(this,e,arguments.length>1?arguments[1]:n)}}),r(30)(a)},function(e,t,n){n(38)("Array")},function(e,t,r){var i=r(2),o=r(69),a=r(7).f,s=r(37).f,u=r(53),c=r(55),l=i.RegExp,p=l,d=l.prototype,h=/a/g,f=/a/g,m=new l(h)!==h;if(r(6)&&(!m||r(3)(function(){return f[r(5)("match")]=!1,l(h)!=h||l(f)==f||"/a/i"!=l(h,"i")}))){l=function(e,t){var r=this instanceof l,i=u(e),a=t===n;return!r&&i&&e.constructor===l&&a?e:o(m?new p(i&&!a?e.source:e,t):p((i=e instanceof l)?e.source:e,i&&a?c.call(e):t),r?this:d,l)};for(var v=s(p),y=0;v.length>y;)!function(e){e in l||a(l,e,{configurable:!0,get:function(){return p[e]},set:function(t){p[e]=t}})}(v[y++]);d.constructor=l,l.prototype=d,r(13)(i,"RegExp",l)}r(38)("RegExp")},function(e,t,r){r(107);var i=r(1),o=r(55),a=r(6),s=/./.toString,u=function(e){r(13)(RegExp.prototype,"toString",e,!0)};r(3)(function(){return"/a/b"!=s.call({source:"a",flags:"b"})})?u(function(){var e=i(this);return"/".concat(e.source,"/","flags"in e?e.flags:!a&&e instanceof RegExp?o.call(e):n)}):"toString"!=s.name&&u(function(){return s.call(this)})},function(e,t,r){r(56)("match",1,function(e,t,r){return[function(r){var i=e(this),o=r==n?n:r[t];return o!==n?o.call(r,i):new RegExp(r)[t](String(i))},r]})},function(e,t,r){r(56)("replace",2,function(e,t,r){return[function(i,o){var a=e(this),s=i==n?n:i[t];return s!==n?s.call(i,a,o):r.call(String(a),i,o)},r]})},function(e,t,r){r(56)("search",1,function(e,t,r){return[function(r){var i=e(this),o=r==n?n:r[t];return o!==n?o.call(r,i):new RegExp(r)[t](String(i))},r]})},function(e,t,r){r(56)("split",2,function(e,t,i){var o=r(53),a=i,s=[].push,u="length";if("c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1)[u]||2!="ab".split(/(?:ab)*/)[u]||4!=".".split(/(.?)(.?)/)[u]||".".split(/()()/)[u]>1||"".split(/.?/)[u]){var c=/()??/.exec("")[1]===n;i=function(e,t){var r=String(this);if(e===n&&0===t)return[];if(!o(e))return a.call(r,e,t);var i,l,p,d,h,f=[],m=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),v=0,y=t===n?4294967295:t>>>0,g=new RegExp(e.source,m+"g");for(c||(i=new RegExp("^"+g.source+"$(?!\\s)",m));(l=g.exec(r))&&!((p=l.index+l[0][u])>v&&(f.push(r.slice(v,l.index)),!c&&l[u]>1&&l[0].replace(i,function(){for(h=1;h<arguments[u]-2;h++)arguments[h]===n&&(l[h]=n)}),l[u]>1&&l.index<r[u]&&s.apply(f,l.slice(1)),d=l[0][u],v=p,f[u]>=y));)g.lastIndex===l.index&&g.lastIndex++;return v===r[u]?!d&&g.test("")||f.push(""):f.push(r.slice(v)),f[u]>y?f.slice(0,y):f}}else"0".split(n,0)[u]&&(i=function(e,t){return e===n&&0===t?[]:a.call(this,e,t)});return[function(r,o){var a=e(this),s=r==n?n:r[t];return s!==n?s.call(r,a,o):i.call(String(a),r,o)},i]})},function(e,t,r){var i,o,a,s,u=r(33),c=r(2),l=r(18),p=r(48),d=r(0),h=r(4),f=r(10),m=r(39),v=r(40),y=r(57),g=r(85).set,_=r(86)(),b=r(87),w=r(108),k=r(109),x=c.TypeError,C=c.process,S=c.Promise,E="process"==p(C),T=function(){},O=o=b.f,P=!!function(){try{var e=S.resolve(1),t=(e.constructor={})[r(5)("species")]=function(e){e(T,T)};return(E||"function"==typeof PromiseRejectionEvent)&&e.then(T)instanceof t}catch(e){}}(),M=function(e){var t;return!(!h(e)||"function"!=typeof(t=e.then))&&t},A=function(e,t){if(!e._n){e._n=!0;var n=e._c;_(function(){for(var r=e._v,i=1==e._s,o=0;n.length>o;)!function(t){var n,o,a=i?t.ok:t.fail,s=t.resolve,u=t.reject,c=t.domain;try{a?(i||(2==e._h&&R(e),e._h=1),!0===a?n=r:(c&&c.enter(),n=a(r),c&&c.exit()),n===t.promise?u(x("Promise-chain cycle")):(o=M(n))?o.call(n,s,u):s(n)):u(r)}catch(e){u(e)}}(n[o++]);e._c=[],e._n=!1,t&&!e._h&&D(e)})}},D=function(e){g.call(c,function(){var t,r,i,o=e._v,a=I(e);if(a&&(t=w(function(){E?C.emit("unhandledRejection",o,e):(r=c.onunhandledrejection)?r({promise:e,reason:o}):(i=c.console)&&i.error&&i.error("Unhandled promise rejection",o)}),e._h=E||I(e)?2:1),e._a=n,a&&t.e)throw t.v})},I=function(e){if(1==e._h)return!1;for(var t,n=e._a||e._c,r=0;n.length>r;)if((t=n[r++]).fail||!I(t.promise))return!1;return!0},R=function(e){g.call(c,function(){var t;E?C.emit("rejectionHandled",e):(t=c.onrejectionhandled)&&t({promise:e,reason:e._v})})},j=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),A(t,!0))},N=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw x("Promise can't be resolved itself");(t=M(e))?_(function(){var r={_w:n,_d:!1};try{t.call(e,l(N,r,1),l(j,r,1))}catch(e){j.call(r,e)}}):(n._v=e,n._s=1,A(n,!1))}catch(e){j.call({_w:n,_d:!1},e)}}};P||(S=function(e){m(this,S,"Promise","_h"),f(e),i.call(this);try{e(l(N,this,1),l(j,this,1))}catch(e){j.call(this,e)}},(i=function(e){this._c=[],this._a=n,this._s=0,this._d=!1,this._v=n,this._h=0,this._n=!1}).prototype=r(41)(S.prototype,{then:function(e,t){var r=O(y(this,S));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=E?C.domain:n,this._c.push(r),this._a&&this._a.push(r),this._s&&A(this,!1),r.promise},catch:function(e){return this.then(n,e)}}),a=function(){var e=new i;this.promise=e,this.resolve=l(N,e,1),this.reject=l(j,e,1)},b.f=O=function(e){return e===S||e===s?new a(e):o(e)}),d(d.G+d.W+d.F*!P,{Promise:S}),r(42)(S,"Promise"),r(38)("Promise"),s=r(28).Promise,d(d.S+d.F*!P,"Promise",{reject:function(e){var t=O(this);return(0,t.reject)(e),t.promise}}),d(d.S+d.F*(u||!P),"Promise",{resolve:function(e){return k(u&&this===s?S:this,e)}}),d(d.S+d.F*!(P&&r(54)(function(e){S.all(e).catch(T)})),"Promise",{all:function(e){var t=this,r=O(t),i=r.resolve,o=r.reject,a=w(function(){var r=[],a=0,s=1;v(e,!1,function(e){var u=a++,c=!1;r.push(n),s++,t.resolve(e).then(function(e){c||(c=!0,r[u]=e,--s||i(r))},o)}),--s||i(r)});return a.e&&o(a.v),r.promise},race:function(e){var t=this,n=O(t),r=n.reject,i=w(function(){v(e,!1,function(e){t.resolve(e).then(n.resolve,r)})});return i.e&&r(i.v),n.promise}})},function(e,t,r){var i=r(114),o=r(45);r(58)("WeakSet",function(e){return function(){return e(this,arguments.length>0?arguments[0]:n)}},{add:function(e){return i.def(o(this,"WeakSet"),e,!0)}},i,!1,!0)},function(e,t,n){var r=n(0),i=n(10),o=n(1),a=(n(2).Reflect||{}).apply,s=Function.apply;r(r.S+r.F*!n(3)(function(){a(function(){})}),"Reflect",{apply:function(e,t,n){var r=i(e),u=o(n);return a?a(r,t,u):s.call(r,t,u)}})},function(e,t,n){var r=n(0),i=n(36),o=n(10),a=n(1),s=n(4),u=n(3),c=n(95),l=(n(2).Reflect||{}).construct,p=u(function(){function e(){}return!(l(function(){},[],e)instanceof e)}),d=!u(function(){l(function(){})});r(r.S+r.F*(p||d),"Reflect",{construct:function(e,t){o(e),a(t);var n=arguments.length<3?e:o(arguments[2]);if(d&&!p)return l(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return r.push.apply(r,t),new(c.apply(e,r))}var u=n.prototype,h=i(s(u)?u:Object.prototype),f=Function.apply.call(e,h,t);return s(f)?f:h}})},function(e,t,n){var r=n(7),i=n(0),o=n(1),a=n(21);i(i.S+i.F*n(3)(function(){Reflect.defineProperty(r.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(e,t,n){o(e),t=a(t,!0),o(n);try{return r.f(e,t,n),!0}catch(e){return!1}}})},function(e,t,n){var r=n(0),i=n(16).f,o=n(1);r(r.S,"Reflect",{deleteProperty:function(e,t){var n=i(o(e),t);return!(n&&!n.configurable)&&delete e[t]}})},function(e,t,r){var i=r(0),o=r(1),a=function(e){this._t=o(e),this._i=0;var t,n=this._k=[];for(t in e)n.push(t)};r(78)(a,"Object",function(){var e,t=this,r=t._k;do{if(t._i>=r.length)return{value:n,done:!0}}while(!((e=r[t._i++])in t._t));return{value:e,done:!1}}),i(i.S,"Reflect",{enumerate:function(e){return new a(e)}})},function(e,t,r){function i(e,t){var r,u,p=arguments.length<3?e:arguments[2];return l(e)===p?e[t]:(r=o.f(e,t))?s(r,"value")?r.value:r.get!==n?r.get.call(p):n:c(u=a(e))?i(u,t,p):void 0}var o=r(16),a=r(17),s=r(11),u=r(0),c=r(4),l=r(1);u(u.S,"Reflect",{get:i})},function(e,t,n){var r=n(16),i=n(0),o=n(1);i(i.S,"Reflect",{getOwnPropertyDescriptor:function(e,t){return r.f(o(e),t)}})},function(e,t,n){var r=n(0),i=n(17),o=n(1);r(r.S,"Reflect",{getPrototypeOf:function(e){return i(o(e))}})},function(e,t,n){var r=n(0);r(r.S,"Reflect",{has:function(e,t){return t in e}})},function(e,t,n){var r=n(0),i=n(1),o=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(e){return i(e),!o||o(e)}})},function(e,t,n){var r=n(0);r(r.S,"Reflect",{ownKeys:n(115)})},function(e,t,n){var r=n(0),i=n(1),o=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(e){i(e);try{return o&&o(e),!0}catch(e){return!1}}})},function(e,t,r){function i(e,t,r){var c,h,f=arguments.length<4?e:arguments[3],m=a.f(p(e),t);if(!m){if(d(h=s(e)))return i(h,t,r,f);m=l(0)}return u(m,"value")?!(!1===m.writable||!d(f)||(c=a.f(f,t)||l(0),c.value=r,o.f(f,t,c),0)):m.set!==n&&(m.set.call(f,r),!0)}var o=r(7),a=r(16),s=r(17),u=r(11),c=r(0),l=r(31),p=r(1),d=r(4);c(c.S,"Reflect",{set:i})},function(e,t,n){var r=n(0),i=n(68);i&&r(r.S,"Reflect",{setPrototypeOf:function(e,t){i.check(e,t);try{return i.set(e,t),!0}catch(e){return!1}}})},function(e,t,n){var r=n(0);r(r.S,"Date",{now:function(){return(new Date).getTime()}})},function(e,t,n){var r=n(0),i=n(9),o=n(21);r(r.P+r.F*n(3)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(e){var t=i(this),n=o(t);return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},function(e,t,n){var r=n(0),i=n(246);r(r.P+r.F*(Date.prototype.toISOString!==i),"Date",{toISOString:i})},function(e,t,n){var r=n(3),i=Date.prototype.getTime,o=Date.prototype.toISOString,a=function(e){return e>9?e:"0"+e};e.exports=r(function(){return"0385-07-25T07:06:39.999Z"!=o.call(new Date(-5e13-1))})||!r(function(){o.call(new Date(NaN))})?function(){if(!isFinite(i.call(this)))throw RangeError("Invalid time value");var e=this,t=e.getUTCFullYear(),n=e.getUTCMilliseconds(),r=t<0?"-":t>9999?"+":"";return r+("00000"+Math.abs(t)).slice(r?-6:-4)+"-"+a(e.getUTCMonth()+1)+"-"+a(e.getUTCDate())+"T"+a(e.getUTCHours())+":"+a(e.getUTCMinutes())+":"+a(e.getUTCSeconds())+"."+(n>99?n:"0"+a(n))+"Z"}:o},function(e,t,n){var r=Date.prototype,i=r.toString,o=r.getTime;new Date(NaN)+""!="Invalid Date"&&n(13)(r,"toString",function(){var e=o.call(this);return e===e?i.call(this):"Invalid Date"})},function(e,t,n){var r=n(5)("toPrimitive"),i=Date.prototype;r in i||n(12)(i,r,n(249))},function(e,t,n){var r=n(1),i=n(21);e.exports=function(e){if("string"!==e&&"number"!==e&&"default"!==e)throw TypeError("Incorrect hint");return i(r(this),"number"!=e)}},function(e,t,r){var i=r(0),o=r(59),a=r(88),s=r(1),u=r(35),c=r(8),l=r(4),p=r(2).ArrayBuffer,d=r(57),h=a.ArrayBuffer,f=a.DataView,m=o.ABV&&p.isView,v=h.prototype.slice,y=o.VIEW;i(i.G+i.W+i.F*(p!==h),{ArrayBuffer:h}),i(i.S+i.F*!o.CONSTR,"ArrayBuffer",{isView:function(e){return m&&m(e)||l(e)&&y in e}}),i(i.P+i.U+i.F*r(3)(function(){return!new h(2).slice(1,n).byteLength}),"ArrayBuffer",{slice:function(e,t){if(v!==n&&t===n)return v.call(s(this),e);for(var r=s(this).byteLength,i=u(e,r),o=u(t===n?r:t,r),a=new(d(this,h))(c(o-i)),l=new f(this),p=new f(a),m=0;i<o;)p.setUint8(m++,l.getUint8(i++));return a}}),r(38)("ArrayBuffer")},function(e,t,n){var r=n(0);r(r.G+r.W+r.F*!n(59).ABV,{DataView:n(88).DataView})},function(e,t,n){n(26)("Int8",1,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(26)("Uint8",1,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(26)("Uint8",1,function(e){return function(t,n,r){return e(this,t,n,r)}},!0)},function(e,t,n){n(26)("Int16",2,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(26)("Uint16",2,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(26)("Int32",4,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(26)("Uint32",4,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(26)("Float32",4,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(26)("Float64",8,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,r){var i=r(0),o=r(50)(!0);i(i.P,"Array",{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:n)}}),r(30)("includes")},function(e,t,n){var r=n(0),i=n(117),o=n(9),a=n(8),s=n(10),u=n(82);r(r.P,"Array",{flatMap:function(e){var t,n,r=o(this);return s(e),t=a(r.length),n=u(r,0),i(n,r,r,t,0,1,e,arguments[1]),n}}),n(30)("flatMap")},function(e,t,r){var i=r(0),o=r(117),a=r(9),s=r(8),u=r(23),c=r(82);i(i.P,"Array",{flatten:function(){var e=arguments[0],t=a(this),r=s(t.length),i=c(t,0);return o(i,t,t,r,0,e===n?1:u(e)),i}}),r(30)("flatten")},function(e,t,n){var r=n(0),i=n(74)(!0);r(r.P,"String",{at:function(e){return i(this,e)}})},function(e,t,r){var i=r(0),o=r(118);i(i.P,"String",{padStart:function(e){return o(this,e,arguments.length>1?arguments[1]:n,!0)}})},function(e,t,r){var i=r(0),o=r(118);i(i.P,"String",{padEnd:function(e){return o(this,e,arguments.length>1?arguments[1]:n,!1)}})},function(e,t,n){n(43)("trimLeft",function(e){return function(){return e(this,1)}},"trimStart")},function(e,t,n){n(43)("trimRight",function(e){return function(){return e(this,2)}},"trimEnd")},function(e,t,n){var r=n(0),i=n(22),o=n(8),a=n(53),s=n(55),u=RegExp.prototype,c=function(e,t){this._r=e,this._s=t};n(78)(c,"RegExp String",function(){var e=this._r.exec(this._s);return{value:e,done:null===e}}),r(r.P,"String",{matchAll:function(e){if(i(this),!a(e))throw TypeError(e+" is not a regexp!");var t=String(this),n="flags"in u?String(e.flags):s.call(e),r=new RegExp(e.source,~n.indexOf("g")?n:"g"+n);return r.lastIndex=o(e.lastIndex),new c(r,t)}})},function(e,t,n){n(64)("asyncIterator")},function(e,t,n){n(64)("observable")},function(e,t,r){var i=r(0),o=r(115),a=r(15),s=r(16),u=r(80);i(i.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,r,i=a(e),c=s.f,l=o(i),p={},d=0;l.length>d;)(r=c(i,t=l[d++]))!==n&&u(p,t,r);return p}})},function(e,t,n){var r=n(0),i=n(119)(!1);r(r.S,"Object",{values:function(e){return i(e)}})},function(e,t,n){var r=n(0),i=n(119)(!0);r(r.S,"Object",{entries:function(e){return i(e)}})},function(e,t,n){var r=n(0),i=n(9),o=n(10),a=n(7);n(6)&&r(r.P+n(60),"Object",{__defineGetter__:function(e,t){a.f(i(this),e,{get:o(t),enumerable:!0,configurable:!0})}})},function(e,t,n){var r=n(0),i=n(9),o=n(10),a=n(7);n(6)&&r(r.P+n(60),"Object",{__defineSetter__:function(e,t){a.f(i(this),e,{set:o(t),enumerable:!0,configurable:!0})}})},function(e,t,n){var r=n(0),i=n(9),o=n(21),a=n(17),s=n(16).f;n(6)&&r(r.P+n(60),"Object",{__lookupGetter__:function(e){var t,n=i(this),r=o(e,!0);do{if(t=s(n,r))return t.get}while(n=a(n))}})},function(e,t,n){var r=n(0),i=n(9),o=n(21),a=n(17),s=n(16).f;n(6)&&r(r.P+n(60),"Object",{__lookupSetter__:function(e){var t,n=i(this),r=o(e,!0);do{if(t=s(n,r))return t.set}while(n=a(n))}})},function(e,t,n){var r=n(0);r(r.P+r.R,"Map",{toJSON:n(120)("Map")})},function(e,t,n){var r=n(0);r(r.P+r.R,"Set",{toJSON:n(120)("Set")})},function(e,t,n){n(61)("Map")},function(e,t,n){n(61)("Set")},function(e,t,n){n(61)("WeakMap")},function(e,t,n){n(61)("WeakSet")},function(e,t,n){n(62)("Map")},function(e,t,n){n(62)("Set")},function(e,t,n){n(62)("WeakMap")},function(e,t,n){n(62)("WeakSet")},function(e,t,n){var r=n(0);r(r.G,{global:n(2)})},function(e,t,n){var r=n(0);r(r.S,"System",{global:n(2)})},function(e,t,n){var r=n(0),i=n(19);r(r.S,"Error",{isError:function(e){return"Error"===i(e)}})},function(e,t,n){var r=n(0);r(r.S,"Math",{clamp:function(e,t,n){return Math.min(n,Math.max(t,e))}})},function(e,t,n){var r=n(0);r(r.S,"Math",{DEG_PER_RAD:Math.PI/180})},function(e,t,n){var r=n(0),i=180/Math.PI;r(r.S,"Math",{degrees:function(e){return e*i}})},function(e,t,n){var r=n(0),i=n(122),o=n(102);r(r.S,"Math",{fscale:function(e,t,n,r,a){return o(i(e,t,n,r,a))}})},function(e,t,n){var r=n(0);r(r.S,"Math",{iaddh:function(e,t,n,r){var i=e>>>0,o=n>>>0;return(t>>>0)+(r>>>0)+((i&o|(i|o)&~(i+o>>>0))>>>31)|0}})},function(e,t,n){var r=n(0);r(r.S,"Math",{isubh:function(e,t,n,r){var i=e>>>0,o=n>>>0;return(t>>>0)-(r>>>0)-((~i&o|~(i^o)&i-o>>>0)>>>31)|0}})},function(e,t,n){var r=n(0);r(r.S,"Math",{imulh:function(e,t){var n=+e,r=+t,i=65535&n,o=65535&r,a=n>>16,s=r>>16,u=(a*o>>>0)+(i*o>>>16);return a*s+(u>>16)+((i*s>>>0)+(65535&u)>>16)}})},function(e,t,n){var r=n(0);r(r.S,"Math",{RAD_PER_DEG:180/Math.PI})},function(e,t,n){var r=n(0),i=Math.PI/180;r(r.S,"Math",{radians:function(e){return e*i}})},function(e,t,n){var r=n(0);r(r.S,"Math",{scale:n(122)})},function(e,t,n){var r=n(0);r(r.S,"Math",{umulh:function(e,t){var n=+e,r=+t,i=65535&n,o=65535&r,a=n>>>16,s=r>>>16,u=(a*o>>>0)+(i*o>>>16);return a*s+(u>>>16)+((i*s>>>0)+(65535&u)>>>16)}})},function(e,t,n){var r=n(0);r(r.S,"Math",{signbit:function(e){return(e=+e)!=e?e:0==e?1/e==1/0:e>0}})},function(e,t,n){var r=n(0),i=n(28),o=n(2),a=n(57),s=n(109);r(r.P+r.R,"Promise",{finally:function(e){var t=a(this,i.Promise||o.Promise),n="function"==typeof e;return this.then(n?function(n){return s(t,e()).then(function(){return n})}:e,n?function(n){return s(t,e()).then(function(){throw n})}:e)}})},function(e,t,n){var r=n(0),i=n(87),o=n(108);r(r.S,"Promise",{try:function(e){var t=i.f(this),n=o(e);return(n.e?t.reject:t.resolve)(n.v),t.promise}})},function(e,t,n){var r=n(27),i=n(1),o=r.key,a=r.set;r.exp({defineMetadata:function(e,t,n,r){a(e,t,i(n),o(r))}})},function(e,t,r){var i=r(27),o=r(1),a=i.key,s=i.map,u=i.store;i.exp({deleteMetadata:function(e,t){var r=arguments.length<3?n:a(arguments[2]),i=s(o(t),r,!1);if(i===n||!i.delete(e))return!1;if(i.size)return!0;var c=u.get(t);return c.delete(r),!!c.size||u.delete(t)}})},function(e,t,r){var i=r(27),o=r(1),a=r(17),s=i.has,u=i.get,c=i.key,l=function(e,t,r){if(s(e,t,r))return u(e,t,r);var i=a(t);return null!==i?l(e,i,r):n};i.exp({getMetadata:function(e,t){return l(e,o(t),arguments.length<3?n:c(arguments[2]))}})},function(e,t,r){var i=r(112),o=r(121),a=r(27),s=r(1),u=r(17),c=a.keys,l=a.key,p=function(e,t){var n=c(e,t),r=u(e);if(null===r)return n;var a=p(r,t);return a.length?n.length?o(new i(n.concat(a))):a:n};a.exp({getMetadataKeys:function(e){return p(s(e),arguments.length<2?n:l(arguments[1]))}})},function(e,t,r){var i=r(27),o=r(1),a=i.get,s=i.key;i.exp({getOwnMetadata:function(e,t){return a(e,o(t),arguments.length<3?n:s(arguments[2]))}})},function(e,t,r){var i=r(27),o=r(1),a=i.keys,s=i.key;i.exp({getOwnMetadataKeys:function(e){return a(o(e),arguments.length<2?n:s(arguments[1]))}})},function(e,t,r){var i=r(27),o=r(1),a=r(17),s=i.has,u=i.key,c=function(e,t,n){if(s(e,t,n))return!0;var r=a(t);return null!==r&&c(e,r,n)};i.exp({hasMetadata:function(e,t){return c(e,o(t),arguments.length<3?n:u(arguments[2]))}})},function(e,t,r){var i=r(27),o=r(1),a=i.has,s=i.key;i.exp({hasOwnMetadata:function(e,t){return a(e,o(t),arguments.length<3?n:s(arguments[2]))}})},function(e,t,r){var i=r(27),o=r(1),a=r(10),s=i.key,u=i.set;i.exp({metadata:function(e,t){return function(r,i){u(e,t,(i!==n?o:a)(r),s(i))}}})},function(e,t,n){var r=n(0),i=n(86)(),o=n(2).process,a="process"==n(19)(o);r(r.G,{asap:function(e){var t=a&&o.domain;i(t?t.bind(e):e)}})},function(e,t,r){var i=r(0),o=r(2),a=r(28),s=r(86)(),u=r(5)("observable"),c=r(10),l=r(1),p=r(39),d=r(41),h=r(12),f=r(40),m=f.RETURN,v=function(e){return null==e?n:c(e)},y=function(e){var t=e._c;t&&(e._c=n,t())},g=function(e){return e._o===n},_=function(e){g(e)||(e._o=n,y(e))},b=function(e,t){l(e),this._c=n,this._o=e,e=new w(this);try{var r=t(e),i=r;null!=r&&("function"==typeof r.unsubscribe?r=function(){i.unsubscribe()}:c(r),this._c=r)}catch(t){return void e.error(t)}g(this)&&y(this)};b.prototype=d({},{unsubscribe:function(){_(this)}});var w=function(e){this._s=e};w.prototype=d({},{next:function(e){var t=this._s;if(!g(t)){var n=t._o;try{var r=v(n.next);if(r)return r.call(n,e)}catch(e){try{_(t)}finally{throw e}}}},error:function(e){var t=this._s;if(g(t))throw e;var r=t._o;t._o=n;try{var i=v(r.error);if(!i)throw e;e=i.call(r,e)}catch(e){try{y(t)}finally{throw e}}return y(t),e},complete:function(e){var t=this._s;if(!g(t)){var r=t._o;t._o=n;try{var i=v(r.complete);e=i?i.call(r,e):n}catch(e){try{y(t)}finally{throw e}}return y(t),e}}});var k=function(e){p(this,k,"Observable","_f")._f=c(e)};d(k.prototype,{subscribe:function(e){return new b(e,this._f)},forEach:function(e){var t=this;return new(a.Promise||o.Promise)(function(n,r){c(e);var i=t.subscribe({next:function(t){try{return e(t)}catch(e){r(e),i.unsubscribe()}},error:r,complete:n})})}}),d(k,{from:function(e){var t="function"==typeof this?this:k,n=v(l(e)[u]);if(n){var r=l(n.call(e));return r.constructor===t?r:new t(function(e){return r.subscribe(e)})}return new t(function(t){var n=!1;return s(function(){if(!n){try{if(f(e,!1,function(e){if(t.next(e),n)return m})===m)return}catch(e){if(n)throw e;return void t.error(e)}t.complete()}}),function(){n=!0}})},of:function(){for(var e=0,t=arguments.length,n=Array(t);e<t;)n[e]=arguments[e++];return new("function"==typeof this?this:k)(function(e){var t=!1;return s(function(){if(!t){for(var r=0;r<n.length;++r)if(e.next(n[r]),t)return;e.complete()}}),function(){t=!0}})}}),h(k.prototype,u,function(){return this}),i(i.G,{Observable:k}),r(38)("Observable")},function(e,t,n){var r=n(0),i=n(85);r(r.G+r.B,{setImmediate:i.set,clearImmediate:i.clear})},function(e,t,n){for(var r=n(84),i=n(34),o=n(13),a=n(2),s=n(12),u=n(44),c=n(5),l=c("iterator"),p=c("toStringTag"),d=u.Array,h={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},f=i(h),m=0;m<f.length;m++){var v,y=f[m],g=h[y],_=a[y],b=_&&_.prototype;if(b&&(b[l]||s(b,l,d),b[p]||s(b,p,y),u[y]=d,g))for(v in r)b[v]||o(b,v,r[v],!0)}},function(e,t,n){var r=n(2),i=n(0),o=r.navigator,a=[].slice,s=!!o&&/MSIE .\./.test(o.userAgent),u=function(e){return function(t,n){var r=arguments.length>2,i=!!r&&a.call(arguments,2);return e(r?function(){("function"==typeof t?t:Function(t)).apply(this,i)}:t,n)}};i(i.G+i.B+i.F*s,{setTimeout:u(r.setTimeout),setInterval:u(r.setInterval)})}]),"undefined"!=typeof module&&module.exports?module.exports=e:"function"==typeof define&&define.amd?define(function(){return e}):t.core=e}(1,1),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t():"function"==typeof define&&define.amd?define(t):t()}(0,function(){"use strict";function e(e,t){for(var n=e.length-1;n>=0;n--)"function"==typeof e[n]&&(e[n]=Zone.current.wrap(e[n],t+"_"+n));return e}function t(e,t){var n=Object.getOwnPropertyDescriptor(e,t)||{enumerable:!0,configurable:!0},r=Object.getOwnPropertyDescriptor(e,"original"+t);!r&&n.get&&Object.defineProperty(e,"original"+t,{enumerable:!1,configurable:!0,get:n.get}),delete n.writable,delete n.value;var i=t.substr(2),o=w("_"+t);n.set=function(e){if(this[o]&&this.removeEventListener(i,this[o]),"function"==typeof e){var t=function(t){var n;void 0==(n=e.apply(this,arguments))||n||t.preventDefault()};this[o]=t,this.addEventListener(i,t,!1)}else this[o]=null},n.get=function(){var e=this[o]||null;return null===e&&r&&r.get&&(e=r.get.apply(this,arguments))&&(n.set.apply(this,[e]),"function"==typeof this.removeAttribute&&this.removeAttribute(t)),this[o]||null},Object.defineProperty(e,t,n)}function n(e,n){var r=[];for(var i in e)"on"==i.substr(0,2)&&r.push(i);for(var o=0;o<r.length;o++)t(e,r[o]);if(n)for(var a=0;a<n.length;a++)t(e,"on"+n[a])}function r(e,t,n,r,i){var o=e[T];if(o)for(var a=0;a<o.length;a++){var s=o[a],u=s.data,c=u.handler;if((u.handler===t||c.listener===t)&&u.useCapturing===r&&u.eventName===n)return i&&o.splice(a,1),s}return null}function i(e,t,n){var r=e[T];r||(r=e[T]=[]),n?r.unshift(t):r.push(t)}function o(e,t,n,o,a,s){function u(e){var t=e.data;return i(t.target,e,a),t.invokeAddFunc(l,e)}function c(e){var t=e.data;return r(t.target,e.invoke,t.eventName,t.useCapturing,!0),t.invokeRemoveFunc(p,e)}void 0===n&&(n=!0),void 0===o&&(o=!1),void 0===a&&(a=!1),void 0===s&&(s=M);var l=w(e),p=w(t),d=!n&&void 0;return function(t,n){var i=s(t,n);i.useCapturing=i.useCapturing||d;var a=null;"function"==typeof i.handler?a=i.handler:i.handler&&i.handler.handleEvent&&(a=function(e){return i.handler.handleEvent(e)});var p=!1;try{p=i.handler&&"[object FunctionWrapper]"===i.handler.toString()}catch(e){return}if(!a||p)return i.invokeAddFunc(l,i.handler);if(!o){var h=r(i.target,i.handler,i.eventName,i.useCapturing,!1);if(h)return i.invokeAddFunc(l,h)}var f=Zone.current,m=i.target.constructor.name+"."+e+":"+i.eventName;f.scheduleEventTask(m,a,i,u,c)}}function a(e,t,n){void 0===t&&(t=!0),void 0===n&&(n=M);var i=w(e),o=!t&&void 0;return function(e,t){var a=n(e,t);a.useCapturing=a.useCapturing||o;var s=r(a.target,a.handler,a.eventName,a.useCapturing,!0);s?s.zone.cancelTask(s):a.invokeRemoveFunc(i,a.handler)}}function s(e,t,n,r){return void 0===t&&(t=O),void 0===n&&(n=P),void 0===r&&(r=M),!(!e||!e[t]||(l(e,t,function(){return o(t,n,!0,!1,!1,r)}),l(e,n,function(){return a(n,!0,r)}),0))}function u(t){var n=k[t];if(n){k[t]=function(){var r=e(arguments,t);switch(r.length){case 0:this[A]=new n;break;case 1:this[A]=new n(r[0]);break;case 2:this[A]=new n(r[0],r[1]);break;case 3:this[A]=new n(r[0],r[1],r[2]);break;case 4:this[A]=new n(r[0],r[1],r[2],r[3]);break;default:throw new Error("Arg list too long.")}};var r,i=new n(function(){});for(r in i)"XMLHttpRequest"===t&&"responseBlob"===r||function(e){"function"==typeof i[e]?k[t].prototype[e]=function(){return this[A][e].apply(this[A],arguments)}:Object.defineProperty(k[t].prototype,e,{set:function(n){this[A][e]="function"==typeof n?Zone.current.wrap(n,t+"."+e):n},get:function(){return this[A][e]}})}(r);for(r in n)"prototype"!==r&&n.hasOwnProperty(r)&&(k[t][r]=n[r])}}function c(e,t){try{return Function("f","return function "+e+"(){return f(this, arguments)}")(t)}catch(e){return function(){return t(this,arguments)}}}function l(e,t,n){for(var r=e;r&&-1===Object.getOwnPropertyNames(r).indexOf(t);)r=Object.getPrototypeOf(r);!r&&e[t]&&(r=e);var i,o=w(t);return r&&!(i=r[o])&&(i=r[o]=r[t],r[t]=c(t,n(i,o,t))),i}function p(e,t){var n=e[w("eventTasks")],r=[];if(n)for(var i=0;i<n.length;i++){var o=n[i],a=o.data;(a&&a.eventName)===t&&r.push(o)}return r}function d(e,t,n,r){function i(t){var n=t.data;return n.args[0]=function(){try{t.invoke.apply(this,arguments)}finally{delete u[n.handleId]}},n.handleId=a.apply(e,n.args),u[n.handleId]=t,t}function o(e){return delete u[e.data.handleId],s(e.data.handleId)}var a=null,s=null;n+=r;var u={};a=l(e,t+=r,function(n){return function(a,s){if("function"==typeof s[0]){var u=Zone.current,c={handleId:null,isPeriodic:"Interval"===r,delay:"Timeout"===r||"Interval"===r?s[1]||0:null,args:s},l=u.scheduleMacroTask(t,s[0],c,i,o);if(!l)return l;var p=l.data.handleId;return p&&p.ref&&p.unref&&"function"==typeof p.ref&&"function"==typeof p.unref&&(l.ref=p.ref.bind(p),l.unref=p.unref.bind(p)),l}return n.apply(e,s)}}),s=l(e,n,function(t){return function(n,r){var i="number"==typeof r[0]?u[r[0]]:r[0];i&&"string"==typeof i.type?"notScheduled"!==i.state&&(i.cancelFn&&i.data.isPeriodic||0===i.runCount)&&i.zone.cancelTask(i):t.apply(e,r)}})}function h(e,t,n){var r=n.configurable;return n=m(e,t,n),v(e,t,n,r)}function f(e,t){return e&&e[j]&&e[j][t]}function m(e,t,n){return n.configurable=!0,n.configurable||(e[j]||D(e,j,{writable:!0,value:{}}),e[j][t]=!0),n}function v(e,t,n,r){try{return D(e,t,n)}catch(o){if(!n.configurable)throw o;void 0===r?delete n.configurable:n.configurable=r;try{return D(e,t,n)}catch(r){var i=null;try{i=JSON.stringify(n)}catch(e){i=i.toString()}console.log("Attempting to configure '"+t+"' with descriptor '"+i+"' on object '"+e+"' and got error, giving up: "+r)}}}function y(e){var t=e.WebSocket;e.EventTarget||s(t.prototype),e.WebSocket=function(e,r){var i,o=arguments.length>1?new t(e,r):new t(e),a=Object.getOwnPropertyDescriptor(o,"onmessage");return a&&!1===a.configurable?(i=Object.create(o),["addEventListener","removeEventListener","send","close"].forEach(function(e){i[e]=function(){return o[e].apply(o,arguments)}})):i=o,n(i,["close","error","message","open"]),i};for(var r in t)e.WebSocket[r]=t[r]}function g(){if((S||E)&&!Object.getOwnPropertyDescriptor(HTMLElement.prototype,"onclick")&&"undefined"!=typeof Element){var e=Object.getOwnPropertyDescriptor(Element.prototype,"onclick");if(e&&!e.configurable)return!1}var t=Object.getOwnPropertyDescriptor(XMLHttpRequest.prototype,"onreadystatechange");Object.defineProperty(XMLHttpRequest.prototype,"onreadystatechange",{enumerable:!0,configurable:!0,get:function(){return!0}});var n=!!(new XMLHttpRequest).onreadystatechange;return Object.defineProperty(XMLHttpRequest.prototype,"onreadystatechange",t||{}),n}function _(){for(var e=0;e<V.length;e++)!function(e){var t=V[e],n="on"+t;self.addEventListener(t,function(e){var t,r,i=e.target;for(r=i?i.constructor.name+"."+n:"unknown."+n;i;)i[n]&&!i[n][z]&&(t=Zone.current.wrap(i[n],r),t[z]=i[n],i[n]=t),i=i.parentElement},!0)}(e)}function b(e){return function(t){p(q,e).forEach(function(n){var r=q.PromiseRejectionEvent;if(r){var i=new r(e,{promise:t.promise,reason:t.rejection});n.invoke(i)}})}}var w=(function(e){function t(e){return"__zone_symbol__"+e}function n(){0===F&&0===j.length&&(e[A]?e[A].resolve(0)[D](a):e[M](a,0))}function r(e){n(),j.push(e)}function i(e){if(!S[t("ignoreConsoleErrorUncaughtError")]){var n=e&&e.rejection;n&&console.error("Unhandled Promise rejection:",n instanceof Error?n.message:n,"; Zone:",e.zone.name,"; Task:",e.task&&e.task.source,"; Value:",n,n instanceof Error?n.stack:void 0),console.error(e)}}function o(e){i(e);try{var n=S[t("unhandledPromiseRejectionHandler")];n&&"function"==typeof n&&n.apply(this,[e])}catch(e){}}function a(){if(!N){for(N=!0;j.length;){var e=j;j=[];for(var t=0;t<e.length;t++){var n=e[t];try{n.zone.runTask(n,null,null)}catch(e){i(e)}}}for(;L.length;)for(;L.length;)!function(){var e=L.shift();try{e.zone.runGuarded(function(){throw e})}catch(e){o(e)}}();N=!1}}function s(e){return e&&e.then}function u(e){return e}function c(e){return Y.reject(e)}function l(e,t){return function(n){try{p(e,t,n)}catch(t){p(e,!1,t)}}}function p(e,r,i){var o=G();if(e===i)throw new TypeError("Promise resolved with itself");if(e[V]===B){var a=null;try{"object"!=typeof i&&"function"!=typeof i||(a=i&&i.then)}catch(t){return o(function(){p(e,!1,t)})(),e}if(r!==q&&i instanceof Y&&i.hasOwnProperty(V)&&i.hasOwnProperty(z)&&i[V]!==B)d(i),p(e,i[V],i[z]);else if(r!==q&&"function"==typeof a)try{a.apply(i,[o(l(e,r)),o(l(e,!1))])}catch(t){o(function(){p(e,!1,t)})()}else{e[V]=r;var s=e[z];e[z]=i,r===q&&i instanceof Error&&(i[t("currentTask")]=S.currentTask);for(var u=0;u<s.length;)h(e,s[u++],s[u++],s[u++],s[u++]);if(0==s.length&&r==q){e[V]=W;try{throw new Error("Uncaught (in promise): "+i+(i&&i.stack?"\n"+i.stack:""))}catch(t){var c=t;c.rejection=i,c.promise=e,c.zone=S.current,c.task=S.currentTask,L.push(c),n()}}}}return e}function d(e){if(e[V]===W){try{var n=S[t("rejectionHandledHandler")];n&&"function"==typeof n&&n.apply(this,[{rejection:e[z],promise:e}])}catch(e){}e[V]=q;for(var r=0;r<L.length;r++)e===L[r].promise&&L.splice(r,1)}}function h(e,t,n,r,i){d(e);var o=e[V]?"function"==typeof r?r:u:"function"==typeof i?i:c;t.scheduleMicroTask(U,function(){try{p(n,!0,t.run(o,void 0,[e[z]]))}catch(e){p(n,!1,e)}})}function f(e){var t=e.prototype,n=t.then;t[D]=n,e.prototype.then=function(e,t){var r=this;return new Y(function(e,t){n.call(r,e,t)}).then(e,t)},e[K]=!0}function m(){if(!(this instanceof m))return m.apply(Object.create(m.prototype),arguments);var e=$.apply(this,arguments);if(this[t("error")]=e,e.originalStack=e.stack,m[te]&&e.originalStack){for(var n=e.originalStack.split("\n"),r=I,i=0;n[i]!==Q&&i<n.length;)i++;for(;i<n.length&&r;i++){var o=n[i];if(o.trim()){var a=ee.hasOwnProperty(o)&&ee[o];a===J.blackList?(n.splice(i,1),i--):a===J.transition?r.parent?(n[i]+=" ["+r.parent.zone.name+" => "+r.zone.name+"]",r=r.parent):r=null:n[i]+=" ["+r.zone.name+"]"}}e.stack=e.zoneAwareStack=n.join("\n")}return Object.defineProperties(this,oe(Object.getPrototypeOf(this))),this}if(e.Zone)throw new Error("Zone already loaded.");var v={name:"NO ZONE"},y="notScheduled",g="scheduling",_="scheduled",b="running",w="canceling",k="microTask",x="macroTask",C="eventTask",S=function(){function n(e,t){this._properties=null,this._parent=e,this._name=t?t.name||"unnamed":"<root>",this._properties=t&&t.properties||{},this._zoneDelegate=new T(this,this._parent&&this._parent._zoneDelegate,t)}return n.assertZonePatched=function(){if(e.Promise!==Y)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")},Object.defineProperty(n,"root",{get:function(){for(var e=n.current;e.parent;)e=e.parent;return e},enumerable:!0,configurable:!0}),Object.defineProperty(n,"current",{get:function(){return I.zone},enumerable:!0,configurable:!0}),Object.defineProperty(n,"currentTask",{get:function(){return R},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"name",{get:function(){return this._name},enumerable:!0,configurable:!0}),n.prototype.get=function(e){var t=this.getZoneWith(e);if(t)return t._properties[e]},n.prototype.getZoneWith=function(e){for(var t=this;t;){if(t._properties.hasOwnProperty(e))return t;t=t._parent}return null},n.prototype.fork=function(e){if(!e)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,e)},n.prototype.wrap=function(e,t){if("function"!=typeof e)throw new Error("Expecting function got: "+e);var n=this._zoneDelegate.intercept(this,e,t),r=this;return function(){return r.runGuarded(n,this,arguments,t)}},n.prototype.run=function(e,t,n,r){void 0===t&&(t=void 0),void 0===n&&(n=null),void 0===r&&(r=null),I=new P(I,this);try{return this._zoneDelegate.invoke(this,e,t,n,r)}finally{I=I.parent}},n.prototype.runGuarded=function(e,t,n,r){void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),I=new P(I,this);try{try{return this._zoneDelegate.invoke(this,e,t,n,r)}catch(e){if(this._zoneDelegate.handleError(this,e))throw e}}finally{I=I.parent}},n.prototype.runTask=function(e,t,n){if(e.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(e.zone||v).name+"; Execution: "+this.name+")");var r=e.state!=b;r&&e._transitionTo(b,_),e.runCount++;var i=R;R=e,I=new P(I,this);try{e.type==x&&e.data&&!e.data.isPeriodic&&(e.cancelFn=null);try{return this._zoneDelegate.invokeTask(this,e,t,n)}catch(e){if(this._zoneDelegate.handleError(this,e))throw e}}finally{e.type==C||e.data&&e.data.isPeriodic?e.state!==y&&r&&e._transitionTo(_,b):(e.runCount=0,this._updateTaskCount(e,-1),r&&e._transitionTo(y,b,y)),I=I.parent,R=i}},n.prototype.scheduleTask=function(e){e._transitionTo(g,y);var t=[];return e._zoneDelegates=t,e.zone=this,(e=this._zoneDelegate.scheduleTask(this,e))._zoneDelegates===t&&this._updateTaskCount(e,1),e.state==g&&e._transitionTo(_,g),e},n.prototype.scheduleMicroTask=function(e,t,n,r){return this.scheduleTask(new O(k,e,t,n,r,null))},n.prototype.scheduleMacroTask=function(e,t,n,r,i){return this.scheduleTask(new O(x,e,t,n,r,i))},n.prototype.scheduleEventTask=function(e,t,n,r,i){return this.scheduleTask(new O(C,e,t,n,r,i))},n.prototype.cancelTask=function(e){return e._transitionTo(w,_,b),this._zoneDelegate.cancelTask(this,e),this._updateTaskCount(e,-1),e._transitionTo(y,w),e.runCount=0,e},n.prototype._updateTaskCount=function(e,t){var n=e._zoneDelegates;-1==t&&(e._zoneDelegates=null);for(var r=0;r<n.length;r++)n[r]._updateTaskCount(e.type,t)},n.__symbol__=t,n}(),E={name:"",onHasTask:function(e,t,n,r){return e.hasTask(n,r)},onScheduleTask:function(e,t,n,r){return e.scheduleTask(n,r)},onInvokeTask:function(e,t,n,r,i,o){return e.invokeTask(n,r,i,o)},onCancelTask:function(e,t,n,r){return e.cancelTask(n,r)}},T=function(){function e(e,t,n){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=e,this._parentDelegate=t,this._forkZS=n&&(n&&n.onFork?n:t._forkZS),this._forkDlgt=n&&(n.onFork?t:t._forkDlgt),this._forkCurrZone=n&&(n.onFork?this.zone:t.zone),this._interceptZS=n&&(n.onIntercept?n:t._interceptZS),this._interceptDlgt=n&&(n.onIntercept?t:t._interceptDlgt),this._interceptCurrZone=n&&(n.onIntercept?this.zone:t.zone),this._invokeZS=n&&(n.onInvoke?n:t._invokeZS),this._invokeDlgt=n&&(n.onInvoke?t:t._invokeDlgt),this._invokeCurrZone=n&&(n.onInvoke?this.zone:t.zone),this._handleErrorZS=n&&(n.onHandleError?n:t._handleErrorZS),this._handleErrorDlgt=n&&(n.onHandleError?t:t._handleErrorDlgt),this._handleErrorCurrZone=n&&(n.onHandleError?this.zone:t.zone),this._scheduleTaskZS=n&&(n.onScheduleTask?n:t._scheduleTaskZS),this._scheduleTaskDlgt=n&&(n.onScheduleTask?t:t._scheduleTaskDlgt),this._scheduleTaskCurrZone=n&&(n.onScheduleTask?this.zone:t.zone),this._invokeTaskZS=n&&(n.onInvokeTask?n:t._invokeTaskZS),this._invokeTaskDlgt=n&&(n.onInvokeTask?t:t._invokeTaskDlgt),this._invokeTaskCurrZone=n&&(n.onInvokeTask?this.zone:t.zone),this._cancelTaskZS=n&&(n.onCancelTask?n:t._cancelTaskZS),this._cancelTaskDlgt=n&&(n.onCancelTask?t:t._cancelTaskDlgt),this._cancelTaskCurrZone=n&&(n.onCancelTask?this.zone:t.zone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;var r=n&&n.onHasTask,i=t&&t._hasTaskZS;(r||i)&&(this._hasTaskZS=r?n:E,this._hasTaskDlgt=t,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=e,n.onScheduleTask||(this._scheduleTaskZS=E,this._scheduleTaskDlgt=t,this._scheduleTaskCurrZone=this.zone),n.onInvokeTask||(this._invokeTaskZS=E,this._invokeTaskDlgt=t,this._invokeTaskCurrZone=this.zone),n.onCancelTask||(this._cancelTaskZS=E,this._cancelTaskDlgt=t,this._cancelTaskCurrZone=this.zone))}return e.prototype.fork=function(e,t){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,e,t):new S(e,t)},e.prototype.intercept=function(e,t,n){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,e,t,n):t},e.prototype.invoke=function(e,t,n,r,i){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,e,t,n,r,i):t.apply(n,r)},e.prototype.handleError=function(e,t){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,e,t)},e.prototype.scheduleTask=function(e,t){var n=t;if(this._scheduleTaskZS)this._hasTaskZS&&n._zoneDelegates.push(this._hasTaskDlgtOwner),(n=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,e,t))||(n=t);else if(t.scheduleFn)t.scheduleFn(t);else{if(t.type!=k)throw new Error("Task is missing scheduleFn.");r(t)}return n},e.prototype.invokeTask=function(e,t,n,r){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,e,t,n,r):t.callback.apply(n,r)},e.prototype.cancelTask=function(e,t){return this._cancelTaskZS?this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,e,t):t.cancelFn(t)},e.prototype.hasTask=function(e,t){return this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,e,t)},e.prototype._updateTaskCount=function(e,t){var n=this._taskCounts,r=n[e],i=n[e]=r+t;if(i<0)throw new Error("More tasks executed then were scheduled.");if(0==r||0==i){var o={microTask:n.microTask>0,macroTask:n.macroTask>0,eventTask:n.eventTask>0,change:e};this.hasTask(this.zone,o)}},e}(),O=function(){function e(e,t,n,r,i,o){this.zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=e,this.source=t,this.data=r,this.scheduleFn=i,this.cancelFn=o,this.callback=n;var s=this;this.invoke=function(){F++;try{return s.runCount++,s.zone.runTask(s,this,arguments)}finally{1==F&&a(),F--}}}return Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:!0,configurable:!0}),e.prototype.cancelScheduleRequest=function(){this._transitionTo(y,g)},e.prototype._transitionTo=function(e,t,n){if(this._state!==t&&this._state!==n)throw new Error(this.type+" '"+this.source+"': can not transition to '"+e+"', expecting state '"+t+"'"+(n?" or '"+n+"'":"")+", was '"+this._state+"'.");this._state=e,e==y&&(this._zoneDelegates=null)},e.prototype.toString=function(){return this.data&&void 0!==this.data.handleId?this.data.handleId:Object.prototype.toString.call(this)},e.prototype.toJSON=function(){return{type:this.type,state:this.state,source:this.source,data:this.data,zone:this.zone.name,invoke:this.invoke,scheduleFn:this.scheduleFn,cancelFn:this.cancelFn,runCount:this.runCount,callback:this.callback}},e}(),P=function(){return function(e,t){this.parent=e,this.zone=t}}(),M=t("setTimeout"),A=t("Promise"),D=t("then"),I=new P(null,new S(null,null)),R=null,j=[],N=!1,L=[],F=0,V=t("state"),z=t("value"),U="Promise.then",B=null,H=!0,q=!1,W=0,G=function(){var e=!1;return function(t){return function(){e||(e=!0,t.apply(null,arguments))}}},Y=function(){function e(t){var n=this;if(!(n instanceof e))throw new Error("Must be an instanceof Promise.");n[V]=B,n[z]=[];try{t&&t(l(n,H),l(n,q))}catch(e){p(n,!1,e)}}return e.toString=function(){return"function ZoneAwarePromise() { [native code] }"},e.resolve=function(e){return p(new this(null),H,e)},e.reject=function(e){return p(new this(null),q,e)},e.race=function(e){for(var t,n,r=new this(function(e,r){t=(i=[e,r])[0],n=i[1];var i}),i=0,o=e;i<o.length;i++){var a=o[i];s(a)||(a=this.resolve(a)),a.then(function(e){r&&(r=t(e))},function(e){r&&(r=n(e))})}return r},e.all=function(e){for(var t,n,r=new this(function(e,r){t=e,n=r}),i=0,o=[],a=0,u=e;a<u.length;a++){var c=u[a];s(c)||(c=this.resolve(c)),c.then(function(e){return function(n){o[e]=n,--i||t(o)}}(i),n),i++}return i||t(o),r},e.prototype.then=function(e,t){var n=new this.constructor(null),r=S.current;return this[V]==B?this[z].push(r,n,e,t):h(this,r,n,e,t),n},e.prototype.catch=function(e){return this.then(null,e)},e}();Y.resolve=Y.resolve,Y.reject=Y.reject,Y.race=Y.race,Y.all=Y.all;var Z=e[A]=e.Promise;e.Promise=Y;var K=t("thenPatched");if(Z){f(Z);var X=e.fetch;"function"==typeof X&&(e.fetch=function(e){return function(){var t=e.apply(this,arguments);if(t instanceof Y)return t;var n=t.constructor;return n[K]||f(n),t}}(X))}Promise[S.__symbol__("uncaughtPromiseErrors")]=L;var J;!function(e){e[e.blackList=0]="blackList",e[e.transition=1]="transition"}(J||(J={}));var Q,$=e[t("Error")]=e.Error,ee={};e.Error=m;var te="stackRewrite",ne=function(e,n){if(!e[n]){var r=t(n);e[n]={configurable:!0,enumerable:!0,get:function(){if(!this[r]){var e=this[t("error")];e&&(this[r]=e[n])}return this[r]},set:function(e){this[r]=e}}}},re=function(e,n){e[n]||(e[n]={configurable:!0,enumerable:!0,writable:!0,value:function(){var e=this[t("error")],r=e&&e[n]||this[n];if(r)return r.apply(e,arguments)}})},ie=function(){for(var e=Object.create(null),t=new $,n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var i=n[r];Object.prototype.hasOwnProperty.call(t,i)&&ne(e,i)}var o=$.prototype;if(o)for(var a=Object.getOwnPropertyNames(o),r=0;r<a.length;r++)"constructor"!==(i=a[r])&&"toString"!==i&&"toSource"!==i&&ne(e,i);return ne(e,"originalStack"),ne(e,"zoneAwareStack"),re(e,"toString"),re(e,"toSource"),e}(),oe=function(e){if(e===m.prototype)return ie;var t=Object.create(null),n=Object.getOwnPropertyNames(ie),r=Object.getOwnPropertyNames(e);return n.forEach(function(e){0===r.filter(function(t){return t===e}).length&&(t[e]=ie[e])}),t};m.prototype=$.prototype,m[S.__symbol__("blacklistedStackFrames")]=ee,m[te]=!1;var ae=["stackTraceLimit","captureStackTrace","prepareStackTrace"],se=Object.keys($);se&&se.forEach(function(e){0===ae.filter(function(t){return t===e}).length&&Object.defineProperty(m,e,{get:function(){return $[e]},set:function(t){$[e]=t}})}),$.hasOwnProperty("stackTraceLimit")&&($.stackTraceLimit=Math.max($.stackTraceLimit,15),Object.defineProperty(m,"stackTraceLimit",{get:function(){return $.stackTraceLimit},set:function(e){return $.stackTraceLimit=e}})),$.hasOwnProperty("captureStackTrace")&&Object.defineProperty(m,"captureStackTrace",{value:function(e,t){$.captureStackTrace(e,t)}}),Object.defineProperty(m,"prepareStackTrace",{get:function(){return $.prepareStackTrace},set:function(e){return $.prepareStackTrace=e&&"function"==typeof e?function(t,n){if(n)for(var r=0;r<n.length;r++)if("zoneCaptureStackTrace"===n[r].getFunctionName()){n.splice(r,1);break}return e.apply(this,[t,n])}:e}});var ue=S.current.fork({name:"detect",onInvoke:function(e,t,n,r,i,o,a){return e.invoke(n,r,i,o,a)},onHandleError:function(e,t,n,r){if(r.originalStack&&Error===m)for(var i=r.originalStack.split(/\n/),o=!1,a=!1,s=!1;i.length;){var u=i.shift();if(/:\d+:\d+/.test(u)){var c=u.split("(")[0].split("@")[0],l=J.transition;if(-1!==c.indexOf("ZoneAwareError")&&(Q=u),-1!==c.indexOf("runGuarded")?a=!0:-1!==c.indexOf("runTask")?s=!0:-1!==c.indexOf("run")?o=!0:l=J.blackList,ee[u]=l,o&&a&&s){m[te]=!0;break}}}return!1}});ue.runTask(ue.scheduleMacroTask("detect",function(){ue.run(function(){ue.runGuarded(function(){throw new Error("blacklistStackFrames")})})},null,function(){return null},null)),e.Zone=S}("object"==typeof window&&window||"object"==typeof self&&self||global),function(e){return"__zone_symbol__"+e}),k="object"==typeof window&&window||"object"==typeof self&&self||global,x="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,C=!("nw"in k)&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),S=!C&&!x&&!("undefined"==typeof window||!window.HTMLElement),E="undefined"!=typeof process&&"[object process]"==={}.toString.call(process)&&!x&&!("undefined"==typeof window||!window.HTMLElement),T=w("eventTasks"),O="addEventListener",P="removeEventListener",M=function(e,t){return{useCapturing:t[2],eventName:t[0],handler:t[1],target:e||k,name:t[0],invokeAddFunc:function(e,t){return t&&t.invoke?this.target[e](this.eventName,t.invoke,this.useCapturing):this.target[e](this.eventName,t,this.useCapturing)},invokeRemoveFunc:function(e,t){return t&&t.invoke?this.target[e](this.eventName,t.invoke,this.useCapturing):this.target[e](this.eventName,t,this.useCapturing)}}},A=(o(O,P),a(P),w("originalInstance"));Zone[w("patchEventTargetMethods")]=s,Zone[w("patchOnProperties")]=n;var D=Object[w("defineProperty")]=Object.defineProperty,I=Object[w("getOwnPropertyDescriptor")]=Object.getOwnPropertyDescriptor,R=Object.create,j=w("unconfigurables"),N="Anchor,Area,Audio,BR,Base,BaseFont,Body,Button,Canvas,Content,DList,Directory,Div,Embed,FieldSet,Font,Form,Frame,FrameSet,HR,Head,Heading,Html,IFrame,Image,Input,Keygen,LI,Label,Legend,Link,Map,Marquee,Media,Menu,Meta,Meter,Mod,OList,Object,OptGroup,Option,Output,Paragraph,Pre,Progress,Quote,Script,Select,Source,Span,Style,TableCaption,TableCell,TableCol,Table,TableRow,TableSection,TextArea,Title,Track,UList,Unknown,Video",L="ApplicationCache,EventSource,FileReader,InputMethodContext,MediaController,MessagePort,Node,Performance,SVGElementInstance,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebKitNamedFlow,Window,Worker,WorkerGlobalScope,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload,IDBRequest,IDBOpenDBRequest,IDBDatabase,IDBTransaction,IDBCursor,DBIndex,WebSocket".split(","),F="EventTarget",V="copy cut paste abort blur focus canplay canplaythrough change click contextmenu dblclick drag dragend dragenter dragleave dragover dragstart drop durationchange emptied ended input invalid keydown keypress keyup load loadeddata loadedmetadata loadstart message mousedown mouseenter mouseleave mousemove mouseout mouseover mouseup pause play playing progress ratechange reset scroll seeked seeking select show stalled submit suspend timeupdate volumechange waiting mozfullscreenchange mozfullscreenerror mozpointerlockchange mozpointerlockerror error webglcontextrestored webglcontextlost webglcontextcreationerror".split(" "),z=w("unbound"),U="set",B="clear",H=["alert","prompt","confirm"],q="object"==typeof window&&window||"object"==typeof self&&self||global;d(q,U,B,"Timeout"),d(q,U,B,"Interval"),d(q,U,B,"Immediate"),d(q,"request","cancel","AnimationFrame"),d(q,"mozRequest","mozCancel","AnimationFrame"),d(q,"webkitRequest","webkitCancel","AnimationFrame");for(var W=0;W<H.length;W++)l(q,H[W],function(e,t,n){return function(t,r){return Zone.current.run(e,q,r,n)}});(function(e){var t=[];e.wtf?t=N.split(",").map(function(e){return"HTML"+e+"Element"}).concat(L):e[F]?t.push(F):t=L;for(var n=0;n<t.length;n++){var r=e[t[n]];s(r&&r.prototype)}})(q),function(e){if(!C||E){var t="undefined"!=typeof WebSocket;g()?(S&&n(HTMLElement.prototype,V),n(XMLHttpRequest.prototype,null),"undefined"!=typeof IDBIndex&&(n(IDBIndex.prototype,null),n(IDBRequest.prototype,null),n(IDBOpenDBRequest.prototype,null),n(IDBDatabase.prototype,null),n(IDBTransaction.prototype,null),n(IDBCursor.prototype,null)),t&&n(WebSocket.prototype,null)):(_(),u("XMLHttpRequest"),t&&y(e))}}(q),u("MutationObserver"),u("WebKitMutationObserver"),u("FileReader"),Object.defineProperty=function(e,t,n){if(f(e,t))throw new TypeError("Cannot assign to read only property '"+t+"' of "+e);var r=n.configurable;return"prototype"!==t&&(n=m(e,t,n)),v(e,t,n,r)},Object.defineProperties=function(e,t){return Object.keys(t).forEach(function(n){Object.defineProperty(e,n,t[n])}),e},Object.create=function(e,t){return"object"!=typeof t||Object.isFrozen(t)||Object.keys(t).forEach(function(n){t[n]=m(e,n,t[n])}),R(e,t)},Object.getOwnPropertyDescriptor=function(e,t){var n=I(e,t);return f(e,t)&&(n.configurable=!1),n},function(e){if((S||E)&&"registerElement"in e.document){var t=document.registerElement,n=["createdCallback","attachedCallback","detachedCallback","attributeChangedCallback"];document.registerElement=function(e,r){return r&&r.prototype&&n.forEach(function(e){var t="Document.registerElement::"+e;if(r.prototype.hasOwnProperty(e)){var n=Object.getOwnPropertyDescriptor(r.prototype,e);n&&n.value?(n.value=Zone.current.wrap(n.value,t),h(r.prototype,e,n)):r.prototype[e]=Zone.current.wrap(r.prototype[e],t)}else r.prototype[e]&&(r.prototype[e]=Zone.current.wrap(r.prototype[e],t))}),t.apply(document,[e,r])}}}(q),function(e){function t(e){return e[G]}function n(e){self[K]=!1;var t=e.data,n=t.target[Z];n&&t.target.removeEventListener("readystatechange",n);var r=t.target[Z]=function(){t.target.readyState===t.target.DONE&&!t.aborted&&self[K]&&"scheduled"===e.state&&e.invoke()};return t.target.addEventListener("readystatechange",r),t.target[G]||(t.target[G]=e),a.apply(t.target,t.args),self[K]=!0,e}function r(){}function i(e){var t=e.data;return t.aborted=!0,s.apply(t.target,t.args)}var o=l(e.XMLHttpRequest.prototype,"open",function(){return function(e,t){return e[Y]=0==t[2],o.apply(e,t)}}),a=l(e.XMLHttpRequest.prototype,"send",function(){return function(e,t){var o=Zone.current;if(e[Y])return a.apply(e,t);var s={target:e,isPeriodic:!1,delay:null,args:t,aborted:!1};return o.scheduleMacroTask("XMLHttpRequest.send",r,s,n,i)}}),s=l(e.XMLHttpRequest.prototype,"abort",function(e){return function(e,n){var r=t(e);if(r&&"string"==typeof r.type){if(null==r.cancelFn||r.data&&r.data.aborted)return;r.zone.cancelTask(r)}}})}(q);var G=w("xhrTask"),Y=w("xhrSync"),Z=w("xhrListener"),K=w("xhrScheduled");q.navigator&&q.navigator.geolocation&&function(t,n){for(var r=t.constructor.name,i=0;i<n.length;i++)!function(i){var o=n[i],a=t[o];a&&(t[o]=function(t){return function(){return t.apply(this,e(arguments,r+"."+o))}}(a))}(i)}(q.navigator.geolocation,["getCurrentPosition","watchPosition"]),q.PromiseRejectionEvent&&(Zone[w("unhandledPromiseRejectionHandler")]=b("unhandledrejection"),Zone[w("rejectionHandledHandler")]=b("rejectionhandled"))});var Reflect;!function(e){"use strict";function t(e,t){for(var n=e.length-1;n>=0;--n){var r=(0,e[n])(t);if(!d(r)&&!h(r)){if(!x(r))throw new TypeError;t=r}}return t}function n(e,t,n,r){for(var i=e.length-1;i>=0;--i){var o=(0,e[i])(t,n,r);if(!d(o)&&!h(o)){if(!m(o))throw new TypeError;r=o}}return r}function r(e,t,n){var r=U.get(e);if(d(r)){if(!n)return;r=new V,U.set(e,r)}var i=r.get(t);if(d(i)){if(!n)return;i=new V,r.set(t,i)}return i}function i(e,t,n){if(o(e,t,n))return!0;var r=M(t);return!h(r)&&i(e,r,n)}function o(e,t,n){var i=r(t,n,!1);return!d(i)&&g(i.has(e))}function a(e,t,n){if(o(e,t,n))return s(e,t,n);var r=M(t);return h(r)?void 0:a(e,r,n)}function s(e,t,n){var i=r(t,n,!1);if(!d(i))return i.get(e)}function u(e,t,n,i){r(n,i,!0).set(e,t)}function c(e,t){var n=l(e,t),r=M(e);if(null===r)return n;var i=c(r,t);if(i.length<=0)return n;if(n.length<=0)return i;for(var o=new z,a=[],s=0,u=n;s<u.length;s++){h=u[s];(f=o.has(h))||(o.add(h),a.push(h))}for(var p=0,d=i;p<d.length;p++){var h=d[p],f=o.has(h);f||(o.add(h),a.push(h))}return a}function l(e,t){var n=[],i=r(e,t,!1);if(d(i))return n;for(var o=E(i.keys()),a=0;;){var s=O(o);if(!s)return n.length=a,n;var u=T(s);try{n[a]=u}catch(e){try{P(o)}finally{throw e}}a++}}function p(e){if(null===e)return 1;switch(typeof e){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===e?1:6;default:return 6}}function d(e){return void 0===e}function h(e){return null===e}function f(e){return"symbol"==typeof e}function m(e){return"object"==typeof e?null!==e:"function"==typeof e}function v(e,t){switch(p(e)){case 0:case 1:case 2:case 3:case 4:case 5:return e}var n=3===t?"string":5===t?"number":"default",r=S(e,j);if(void 0!==r){var i=r.call(e,n);if(m(i))throw new TypeError;return i}return y(e,"default"===n?"number":n)}function y(e,t){if("string"===t){var n=e.toString;if(k(n)&&!m(o=n.call(e)))return o;if(k(r=e.valueOf)&&!m(o=r.call(e)))return o}else{var r=e.valueOf;if(k(r)&&!m(o=r.call(e)))return o;var i=e.toString;if(k(i)){var o=i.call(e);if(!m(o))return o}}throw new TypeError}function g(e){return!!e}function _(e){return""+e}function b(e){var t=v(e,3);return f(t)?t:_(t)}function w(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:"[object Array]"===Object.prototype.toString.call(e)}function k(e){return"function"==typeof e}function x(e){return"function"==typeof e}function C(e){switch(p(e)){case 3:case 4:return!0;default:return!1}}function S(e,t){var n=e[t];if(void 0!==n&&null!==n){if(!k(n))throw new TypeError;return n}}function E(e){var t=S(e,N);if(!k(t))throw new TypeError;var n=t.call(e);if(!m(n))throw new TypeError;return n}function T(e){return e.value}function O(e){var t=e.next();return!t.done&&t}function P(e){var t=e.return;t&&t.call(e)}function M(e){var t=Object.getPrototypeOf(e);if("function"!=typeof e||e===L)return t;if(t!==L)return t;var n=e.prototype,r=n&&Object.getPrototypeOf(n);if(null==r||r===Object.prototype)return t;var i=r.constructor;return"function"!=typeof i?t:i===e?t:i}function A(e){return e.__=void 0,delete e.__,e}var D,I=Object.prototype.hasOwnProperty,R="function"==typeof Symbol,j=R&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",N=R&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator";!function(e){var t="function"==typeof Object.create,n={__proto__:[]}instanceof Array,r=!t&&!n;e.create=t?function(){return A(Object.create(null))}:n?function(){return A({__proto__:null})}:function(){return A({})},e.has=r?function(e,t){return I.call(e,t)}:function(e,t){return t in e},e.get=r?function(e,t){return I.call(e,t)?e[t]:void 0}:function(e,t){return e[t]}}(D||(D={}));var L=Object.getPrototypeOf(Function),F="object"==typeof process&&process.env&&"true"===process.env.REFLECT_METADATA_USE_MAP_POLYFILL,V=F||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){function e(e,t){return e}function t(e,t){return t}function n(e,t){return[e,t]}var r={},i=[],o=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[N]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e<this._keys.length){var t=this._selector(this._keys[e],this._values[e]);return e+1>=this._keys.length?(this._index=-1,this._keys=i,this._values=i):this._index++,{value:t,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=i,this._values=i),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=i,this._values=i),{value:e,done:!0}},e}();return function(){function i(){this._keys=[],this._values=[],this._cacheKey=r,this._cacheIndex=-2}return Object.defineProperty(i.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),i.prototype.has=function(e){return this._find(e,!1)>=0},i.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},i.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},i.prototype.delete=function(e){var t=this._find(e,!1);if(t>=0){for(var n=this._keys.length,i=t+1;i<n;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,e===this._cacheKey&&(this._cacheKey=r,this._cacheIndex=-2),!0}return!1},i.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=r,this._cacheIndex=-2},i.prototype.keys=function(){return new o(this._keys,this._values,e)},i.prototype.values=function(){return new o(this._keys,this._values,t)},i.prototype.entries=function(){return new o(this._keys,this._values,n)},i.prototype["@@iterator"]=function(){return this.entries()},i.prototype[N]=function(){return this.entries()},i.prototype._find=function(e,t){return this._cacheKey!==e&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=e)),this._cacheIndex<0&&t&&(this._cacheIndex=this._keys.length,this._keys.push(e),this._values.push(void 0)),this._cacheIndex},i}()}():Map,z=F||"function"!=typeof Set||"function"!=typeof Set.prototype.entries?function(){function e(){this._map=new V}return Object.defineProperty(e.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.add=function(e){return this._map.set(e,e),this},e.prototype.delete=function(e){return this._map.delete(e)},e.prototype.clear=function(){this._map.clear()},e.prototype.keys=function(){return this._map.keys()},e.prototype.values=function(){return this._map.values()},e.prototype.entries=function(){return this._map.entries()},e.prototype["@@iterator"]=function(){return this.keys()},e.prototype[N]=function(){return this.keys()},e}():Set,U=new(F||"function"!=typeof WeakMap?function(){function e(){var e;do{e="@@WeakMap@@"+i()}while(D.has(a,e));return a[e]=!0,e}function t(e,t){if(!I.call(e,s)){if(!t)return;Object.defineProperty(e,s,{value:D.create()})}return e[s]}function n(e,t){for(var n=0;n<t;++n)e[n]=255*Math.random()|0;return e}function r(e){return"function"==typeof Uint8Array?"undefined"!=typeof crypto?crypto.getRandomValues(new Uint8Array(e)):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(new Uint8Array(e)):n(new Uint8Array(e),e):n(new Array(e),e)}function i(){var e=r(o);e[6]=79&e[6]|64,e[8]=191&e[8]|128;for(var t="",n=0;n<o;++n){var i=e[n];4!==n&&6!==n&&8!==n||(t+="-"),i<16&&(t+="0"),t+=i.toString(16).toLowerCase()}return t}var o=16,a=D.create(),s=e();return function(){function n(){this._key=e()}return n.prototype.has=function(e){var n=t(e,!1);return void 0!==n&&D.has(n,this._key)},n.prototype.get=function(e){var n=t(e,!1);return void 0!==n?D.get(n,this._key):void 0},n.prototype.set=function(e,n){return t(e,!0)[this._key]=n,this},n.prototype.delete=function(e){var n=t(e,!1);return void 0!==n&&delete n[this._key]},n.prototype.clear=function(){this._key=e()},n}()}():WeakMap);e.decorate=function(e,r,i,o){if(d(i)){if(!w(e))throw new TypeError;if(!x(r))throw new TypeError;return t(e,r)}if(!w(e))throw new TypeError;if(!m(r))throw new TypeError;if(!m(o)&&!d(o)&&!h(o))throw new TypeError;return h(o)&&(o=void 0),i=b(i),n(e,r,i,o)},e.metadata=function(e,t){return function(n,r){if(!m(n))throw new TypeError;if(!d(r)&&!C(r))throw new TypeError;u(e,t,n,r)}},e.defineMetadata=function(e,t,n,r){if(!m(n))throw new TypeError;return d(r)||(r=b(r)),u(e,t,n,r)},e.hasMetadata=function(e,t,n){if(!m(t))throw new TypeError;return d(n)||(n=b(n)),i(e,t,n)},e.hasOwnMetadata=function(e,t,n){if(!m(t))throw new TypeError;return d(n)||(n=b(n)),o(e,t,n)},e.getMetadata=function(e,t,n){if(!m(t))throw new TypeError;return d(n)||(n=b(n)),a(e,t,n)},e.getOwnMetadata=function(e,t,n){if(!m(t))throw new TypeError;return d(n)||(n=b(n)),s(e,t,n)},e.getMetadataKeys=function(e,t){if(!m(e))throw new TypeError;return d(t)||(t=b(t)),c(e,t)},e.getOwnMetadataKeys=function(e,t){if(!m(e))throw new TypeError;return d(t)||(t=b(t)),l(e,t)},e.deleteMetadata=function(e,t,n){if(!m(t))throw new TypeError;d(n)||(n=b(n));var i=r(t,n,!1);if(d(i))return!1;if(!i.delete(e))return!1;if(i.size>0)return!0;var o=U.get(t);return o.delete(n),o.size>0||(U.delete(t),!0)},function(t){if(void 0!==t.Reflect){if(t.Reflect!==e)for(var n in e)I.call(e,n)&&(t.Reflect[n]=e[n])}else t.Reflect=e}("undefined"!=typeof global?global:"undefined"!=typeof self?self:Function("return this;")())}(Reflect||(Reflect={})),function(e){function t(e){Object.defineProperty(this,e,{enumerable:!0,get:function(){return this[f][e]}})}function n(e){if("undefined"!=typeof System&&System.isModule?System.isModule(e):"[object Module]"===Object.prototype.toString.call(e))return e;var t={default:e,__useDefault:e};if(e&&e.__esModule)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return new r(t)}function r(e){Object.defineProperty(this,f,{value:e}),Object.keys(e).forEach(t,this)}function i(e){return"@node/"===e.substr(0,6)?d(e,n(m(e.substr(6)))):h[e]}function o(e){var t=i(e);if(!t)throw new Error('Module "'+e+'" expected, but not contained in build.');if(t.module)return t.module;var n=t.linkRecord;return a(t,n),p(t,n,[]),t.module}function a(e,t){if(!t.depLoads){t.declare&&s(e,t),t.depLoads=[];for(var n=0;n<t.deps.length;n++){var r=i(t.deps[n]);t.depLoads.push(r),r.linkRecord&&a(r,r.linkRecord);var o=t.setters&&t.setters[n];o&&(o(r.module||r.linkRecord.moduleObj),r.importerSetters.push(o))}return e}}function s(t,n){var r=n.moduleObj,i=t.importerSetters,o=!1,a=n.declare.call(e,function(e,t){if(!o){if("object"==typeof e)for(var n in e)"__useDefault"!==n&&(r[n]=e[n]);else r[e]=t;o=!0;for(var a=0;a<i.length;a++)i[a](r);return o=!1,t}},{id:t.key});"function"!=typeof a?(n.setters=a.setters,n.execute=a.execute):(n.setters=[],n.execute=a)}function u(e,t,n){return h[e]={key:e,module:void 0,importerSetters:[],linkRecord:{deps:t,depLoads:void 0,declare:n,setters:void 0,execute:void 0,moduleObj:{}}}}function c(e,t,n,r){var i={};return h[e]={key:e,module:void 0,importerSetters:[],linkRecord:{deps:t,depLoads:void 0,declare:void 0,execute:r,executingRequire:n,moduleObj:{default:i,__useDefault:i},setters:void 0}}}function l(e,t,n){return function(r){for(var i=0;i<e.length;i++)if(e[i]===r){var o,a=t[i],s=a.linkRecord;return"__useDefault"in(o=s?-1===n.indexOf(a)?p(a,s,n):s.moduleObj:a.module)?o.__useDefault:o}}}function p(t,n,i){if(i.push(t),t.module)return t.module;if(n.setters){for(m=0;m<n.deps.length;m++){var o=n.depLoads[m],a=o.linkRecord;a&&-1===i.indexOf(o)&&p(o,a,a.setters?i:[])}n.execute.call(v)}else{var s={id:t.key},u=n.moduleObj;Object.defineProperty(s,"exports",{configurable:!0,set:function(e){u.default=u.__useDefault=e},get:function(){return u.__useDefault}});var c=l(n.deps,n.depLoads,i);if(!n.executingRequire)for(m=0;m<n.deps.length;m++)c(n.deps[m]);var d=n.execute.call(e,c,u.__useDefault,s);void 0!==d&&(u.default=u.__useDefault=d),s.exports!==u.__useDefault&&(u.default=u.__useDefault=s.exports);var h=u.default;if(h&&h.__esModule)for(var f in h)Object.hasOwnProperty.call(h,f)&&(u[f]=h[f])}s=t.module=new r(n.moduleObj);if(!n.setters)for(var m=0;m<t.importerSetters.length;m++)t.importerSetters[m](s);return s}function d(e,t){return h[e]={key:e,module:t,importerSetters:[],linkRecord:void 0}}var h={},f="undefined"!=typeof Symbol?Symbol():"@@baseObject";r.prototype=Object.create(null),"undefined"!=typeof Symbol&&Symbol.toStringTag&&(r.prototype[Symbol.toStringTag]="Module");var m="undefined"!=typeof System&&System._nodeRequire||"undefined"!=typeof require&&void 0!==require.resolve&&"undefined"!=typeof process&&process.platform&&require,v={};return Object.freeze&&Object.freeze(v),function(e,t,i,a){return function(s){s(function(s){var l={_nodeRequire:m,register:u,registerDynamic:c,registry:{get:function(e){return h[e].module},set:d},newModule:function(e){return new r(e)}};d("@empty",new r({}));for(f=0;f<t.length;f++)d(t[f],n(arguments[f],{}));a(l);var p=o(e[0]);if(e.length>1)for(var f=1;f<e.length;f++)o(e[f]);return i?p.__useDefault:(p instanceof r&&Object.defineProperty(p,"__esModule",{value:!0}),p)})}}}("undefined"!=typeof self?self:"undefined"!=typeof global?global:this)(["a"],[],!0,function(e){var t=this.require,n=this.exports,r=this.module;!function(i,o){"object"==typeof n&&void 0!==r?o(n,t("@angular/core")):e.registerDynamic("b",["c"],!1,function(e,t,n){return"function"==typeof o?o.call(t,t,e("c")):o})}(0,function(e,t){"use strict";function n(e,t,n){void 0===n&&(n=null);var r=[],i=e.visit?function(t){return e.visit(t,n)||t.visit(e,n)}:function(t){return t.visit(e,n)};return t.forEach(function(e){var t=i(e);t&&r.push(t)}),r}function r(e){return null!=e}function i(e){return null==e}function o(e){return"object"==typeof e&&null!==e&&Object.getPrototypeOf(e)===Ji}function a(e){if("string"==typeof e)return e;if(null==e)return""+e;if(e.overriddenName)return""+e.overriddenName;if(e.name)return""+e.name;var t=e.toString(),n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function s(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function u(e){return!s(e)}function c(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function l(e){if(":"!=e[0])return[null,e];var t=e.indexOf(":",1);if(-1==t)throw new Error('Unsupported format "'+e+'" expecting ":namespace:name"');return[e.slice(1,t),e.slice(t+1)]}function p(e){return null===e?null:l(e)[0]}function d(e,t){return e?":"+e+":"+t:t}function h(e){return Wo[e.toLowerCase()]||Go}function f(e){return e.replace(na,function(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return e[1].toUpperCase()})}function m(e,t){return y(e,":",t)}function v(e,t){return y(e,".",t)}function y(e,t,n){var r=e.indexOf(t);return-1==r?n:[e.slice(0,r).trim(),e.slice(r+1).trim()]}function g(e,t,n){return Array.isArray(e)?t.visitArray(e,n):o(e)?t.visitStringMap(e,n):null==e||u(e)?t.visitPrimitive(e,n):t.visitOther(e,n)}function _(e){return e.replace(/\W/g,"_")}function b(e){if(!e||!e.reference)return null;var t=e.reference;if(t instanceof Ki)return t.name;if(t.__anonymousType)return t.__anonymousType;var n=a(t);return n.indexOf("(")>=0?(n="anonymous_"+_a++,t.__anonymousType=n):n=_(n),n}function w(e){var t=e.reference;return t instanceof Ki?t.filePath:xo.importUri(t)}function k(e){return r(e.value)?_(e.value):b(e.identifier)}function x(e){return r(e.identifier)?e.identifier.reference:e.value}function C(e,n){var r=Zo.parse(n.selector)[0].getMatchingElementTemplate();return xa.create({isHost:!0,type:{reference:e,diDeps:[],lifecycleHooks:[]},template:new ka({encapsulation:t.ViewEncapsulation.None,template:r,templateUrl:"",styles:[],styleUrls:[],ngContentSelectors:[],animations:[]}),changeDetection:t.ChangeDetectionStrategy.Default,inputs:[],outputs:[],host:{},isComponent:!0,selector:"*",providers:[],viewProviders:[],queries:[],viewQueries:[]})}function S(e){return e||[]}function E(e){return e>=Pa&&e<=Ra||e==as}function T(e){return qa<=e&&e<=Wa}function O(e){return e>=Ja&&e<=is||e>=Ga&&e<=Ka}function P(e){return e>=Ja&&e<=$a||e>=Ga&&e<=Za||T(e)}function M(){return function(e){return e}}function A(e,n){if(t.isDevMode()&&!i(n)){if(!Array.isArray(n))throw new Error("Expected '"+e+"' to be an array of strings.");for(var r=0;r<n.length;r+=1)if("string"!=typeof n[r])throw new Error("Expected '"+e+"' to be an array of strings.")}}function D(e,n){if(r(n)&&(!Array.isArray(n)||2!=n.length))throw new Error("Expected '"+e+"' to be an array, [start, end].");if(t.isDevMode()&&!i(n)){var o=n[0],a=n[1];us.forEach(function(e){if(e.test(o)||e.test(a))throw new Error("['"+o+"', '"+a+"'] contains unusable interpolation symbol.")})}}function I(e,t){return new Hs(e,zs.Character,t,String.fromCharCode(t))}function R(e,t){return new Hs(e,zs.Identifier,0,t)}function j(e,t){return new Hs(e,zs.Keyword,0,t)}function N(e,t){return new Hs(e,zs.Operator,0,t)}function L(e,t){return new Hs(e,zs.String,0,t)}function F(e,t){return new Hs(e,zs.Number,t,"")}function V(e,t){return new Hs(e,zs.Error,0,t)}function z(e){return Ja<=e&&e<=is||Ga<=e&&e<=Ka||e==Xa||e==Na}function U(e){if(0==e.length)return!1;var t=new Ws(e);if(!z(t.peek))return!1;for(t.advance();t.peek!==Oa;){if(!B(t.peek))return!1;t.advance()}return!0}function B(e){return O(e)||T(e)||e==Xa||e==Na}function H(e){return e==Qa||e==Ya}function q(e){return e==Va||e==Fa}function W(e){return e===La||e===ja||e===ss}function G(e){switch(e){case es:return Ma;case $a:return Da;case ts:return Ia;case ns:return Pa;case rs:return Aa;default:return e}}function Y(e){var t=c(e.start)+"([\\s\\S]*?)"+c(e.end);return new RegExp(t,"g")}function Z(e,t,n){void 0===n&&(n=null);var r=[],i=e.visit?function(t){return e.visit(t,n)||t.visit(e,n)}:function(t){return t.visit(e,n)};return t.forEach(function(e){var t=i(e);t&&r.push(t)}),r}function K(e,t,n,r,i){return void 0===r&&(r=!1),void 0===i&&(i=ls),new yu(new eu(e,t),n,r,i).tokenize()}function X(e){return'Unexpected character "'+(e===Oa?"EOF":String.fromCharCode(e))+'"'}function J(e){return'Unknown entity "'+e+'" - use the "&#<decimal>;" or  "&#x<hex>;" syntax'}function Q(e){return!E(e)||e===Oa}function $(e){return E(e)||e===Ha||e===za||e===La||e===ja||e===Ba}function ee(e){return(e<Ja||is<e)&&(e<Ga||Ka<e)&&(e<qa||e>Wa)}function te(e){return e==Ua||e==Oa||!P(e)}function ne(e){return e==Ua||e==Oa||!O(e)}function re(e,t,n){var r=!!n&&e.indexOf(n.start,t)==t;return e.charCodeAt(t)==os&&!r}function ie(e){return e===Ba||O(e)}function oe(e,t){return ae(e)==ae(t)}function ae(e){return e>=Ja&&e<=is?e-Ja+Ga:e}function se(e){for(var t,n=[],r=0;r<e.length;r++){var i=e[r];t&&t.type==pu.TEXT&&i.type==pu.TEXT?(t.parts[0]+=i.parts[0],t.sourceSpan.end=i.sourceSpan.end):(t=i,n.push(t))}return n}function ue(e,t){return e.length>0&&e[e.length-1]===t}function ce(e){var t=new Iu(Du,e);return function(e,n,r){return t.toI18nMessage(e,n,r)}}function le(e){return e.split(Ru)[1]}function pe(e,t,n,r){return new Uu(n,r).extract(e,t)}function de(e,t,n,r,i){return new Uu(r,i).merge(e,t,n)}function he(e){return e instanceof cu&&e.value&&e.value.startsWith("i18n")}function fe(e){return e instanceof cu&&e.value&&"/i18n"===e.value}function me(e){return e.attrs.find(function(e){return e.name===Lu})||null}function ve(e){if(!e)return["",""];var t=e.indexOf("|");return-1==t?["",e]:[e.slice(0,t),e.slice(t+1)]}function ye(e){return Bu}function ge(e){return we(be(e.nodes).join("")+"["+e.meaning+"]")}function _e(e){var t=new Zu;return Ce(e.nodes.map(function(e){return e.visit(t,null)}).join(""),e.meaning)}function be(e){return e.map(function(e){return e.visit(Yu,null)})}function we(e){var t=Te(e),n=Re(t,Ku.Big),r=8*t.length,i=new Array(80),o=[1732584193,4023233417,2562383102,271733878,3285377520],a=o[0],s=o[1],u=o[2],c=o[3],l=o[4];n[r>>5]|=128<<24-r%32,n[15+(r+64>>9<<4)]=r;for(var p=0;p<n.length;p+=16){for(var d=[a,s,u,c,l],h=d[0],f=d[1],m=d[2],v=d[3],y=d[4],g=0;g<80;g++){i[g]=g<16?n[p+g]:De(i[g-3]^i[g-8]^i[g-14]^i[g-16],1);var _=ke(g,s,u,c),b=_[0],w=_[1],k=[De(a,5),b,l,w,i[g]].reduce(Oe);l=(x=[c,u,De(s,30),a,k])[0],c=x[1],u=x[2],s=x[3],a=x[4]}a=(C=[Oe(a,h),Oe(s,f),Oe(u,m),Oe(c,v),Oe(l,y)])[0],s=C[1],u=C[2],c=C[3],l=C[4]}return Ve(Le([a,s,u,c,l]));var x,C}function ke(e,t,n,r){return e<20?[t&n|~t&r,1518500249]:e<40?[t^n^r,1859775393]:e<60?[t&n|t&r|n&r,2400959708]:[t^n^r,3395469782]}function xe(e){var t=Te(e),n=[Se(t,0),Se(t,102072)],r=n[0],i=n[1];return 0!=r||0!=i&&1!=i||(r^=319790063,i^=-1801410264),[r,i]}function Ce(e,t){var n=xe(e),r=n[0],i=n[1];if(t){var o=xe(t),a=o[0],s=o[1];r=(u=Me(Ie([r,i],1),[a,s]))[0],i=u[1]}return ze(Le([2147483647&r,i]));var u}function Se(e,t){var n,r=[2654435769,2654435769],i=r[0],o=r[1],a=e.length;for(n=0;n+12<=a;n+=12)i=(s=Ee([i=Oe(i,Ne(e,n,Ku.Little)),o=Oe(o,Ne(e,n+4,Ku.Little)),t=Oe(t,Ne(e,n+8,Ku.Little))]))[0],o=s[1],t=s[2];return i=Oe(i,Ne(e,n,Ku.Little)),o=Oe(o,Ne(e,n+4,Ku.Little)),t=Oe(t,a),t=Oe(t,Ne(e,n+8,Ku.Little)<<8),Ee([i,o,t])[2];var s}function Ee(e){var t=e[0],n=e[1],r=e[2];return t=Ae(t,n),t=Ae(t,r),t^=r>>>13,n=Ae(n,r),n=Ae(n,t),n^=t<<8,r=Ae(r,t),r=Ae(r,n),r^=n>>>13,t=Ae(t,n),t=Ae(t,r),t^=r>>>12,n=Ae(n,r),n=Ae(n,t),n^=t<<16,r=Ae(r,t),r=Ae(r,n),r^=n>>>5,t=Ae(t,n),t=Ae(t,r),t^=r>>>3,n=Ae(n,r),n=Ae(n,t),n^=t<<10,r=Ae(r,t),r=Ae(r,n),r^=n>>>15,[t,n,r]}function Te(e){for(var t="",n=0;n<e.length;n++){var r=e.charCodeAt(n);if(r>=55296&&r<=56319&&e.length>n+1){var i=e.charCodeAt(n+1);i>=56320&&i<=57343&&(n++,r=(r-55296<<10)+i-56320+65536)}r<=127?t+=String.fromCharCode(r):r<=2047?t+=String.fromCharCode(r>>6&31|192,63&r|128):r<=65535?t+=String.fromCharCode(r>>12|224,r>>6&63|128,63&r|128):r<=2097151&&(t+=String.fromCharCode(r>>18&7|240,r>>12&63|128,r>>6&63|128,63&r|128))}return t}function Oe(e,t){return Pe(e,t)[1]}function Pe(e,t){var n=(65535&e)+(65535&t),r=(e>>>16)+(t>>>16)+(n>>>16);return[r>>>16,r<<16|65535&n]}function Me(e,t){var n=e[0],r=e[1],i=t[0],o=Pe(r,t[1]),a=o[0],s=o[1];return[Oe(Oe(n,i),a),s]}function Ae(e,t){var n=(65535&e)-(65535&t);return(e>>16)-(t>>16)+(n>>16)<<16|65535&n}function De(e,t){return e<<t|e>>>32-t}function Ie(e,t){var n=e[0],r=e[1];return[n<<t|r>>>32-t,r<<t|n>>>32-t]}function Re(e,t){for(var n=Array(e.length+3>>>2),r=0;r<n.length;r++)n[r]=Ne(e,4*r,t);return n}function je(e,t){return t>=e.length?0:255&e.charCodeAt(t)}function Ne(e,t,n){var r=0;if(n===Ku.Big)for(i=0;i<4;i++)r+=je(e,t+i)<<24-8*i;else for(var i=0;i<4;i++)r+=je(e,t+i)<<8*i;return r}function Le(e){return e.reduce(function(e,t){return e+Fe(t)},"")}function Fe(e){for(var t="",n=0;n<4;n++)t+=String.fromCharCode(e>>>8*(3-n)&255);return t}function Ve(e){for(var t="",n=0;n<e.length;n++){var r=je(e,n);t+=(r>>>4).toString(16)+(15&r).toString(16)}return t.toLowerCase()}function ze(e){for(var t="",n="1",r=e.length-1;r>=0;r--)t=Ue(t,Be(je(e,r),n)),n=Be(256,n);return t.split("").reverse().join("")}function Ue(e,t){for(var n="",r=Math.max(e.length,t.length),i=0,o=0;i<r||o;i++){var a=o+ +(e[i]||0)+ +(t[i]||0);a>=10?(o=1,n+=a-10):(o=0,n+=a)}return n}function Be(e,t){for(var n="",r=t;0!==e;e>>>=1)1&e&&(n=Ue(n,r)),r=Ue(r,r);return n}function He(e){return e.map(function(e){return e.visit(Qu)}).join("")}function qe(e){return ic.reduce(function(e,t){return e.replace(t[0],t[1])},e)}function We(e){switch(e.toLowerCase()){case"br":return"lb";case"img":return"image";default:return"x-"+e}}function Ge(e){return _e(e)}function Ye(e,t,n){return void 0===t&&(t=null),void 0===n&&(n="src"),null==t?"@angular/"+e+"/index":"@angular/"+e+"/"+n+"/"+t}function Ze(e){return xo.resolveIdentifier(e.name,e.moduleUrl,e.runtime)}function Ke(e){return{reference:xo.resolveIdentifier(e.name,e.moduleUrl,e.runtime)}}function Xe(e){return{identifier:e}}function Je(e){return Xe(Ke(e))}function Qe(e,t){return{reference:xo.resolveEnum(Ze(e),t)}}function $e(e){var t=new jc;return new Ic(Z(t,e),t.isExpanded,t.errors)}function et(e,t){var n=e.cases.map(function(e){-1!=Dc.indexOf(e.value)||e.value.match(/^=\d+$/)||t.push(new Rc(e.valueSourceSpan,'Plural cases should be "=<number>" or one of '+Dc.join(", ")));var n=$e(e.expression);return t.push.apply(t,n.errors),new uu("template",[new su("ngPluralCase",""+e.value,e.valueSourceSpan)],n.nodes,e.sourceSpan,e.sourceSpan,e.sourceSpan)}),r=new su("[ngPlural]",e.switchValue,e.switchValueSourceSpan);return new uu("ng-container",[r],n,e.sourceSpan,e.sourceSpan,e.sourceSpan)}function tt(e,t){var n=e.cases.map(function(e){var n=$e(e.expression);return t.push.apply(t,n.errors),"other"===e.value?new uu("template",[new su("ngSwitchDefault","",e.valueSourceSpan)],n.nodes,e.sourceSpan,e.sourceSpan,e.sourceSpan):new uu("template",[new su("ngSwitchCase",""+e.value,e.valueSourceSpan)],n.nodes,e.sourceSpan,e.sourceSpan,e.sourceSpan)}),r=new su("[ngSwitch]",e.switchValue,e.switchValueSourceSpan);return new uu("ng-container",[r],n,e.sourceSpan,e.sourceSpan,e.sourceSpan)}function nt(e,t){var n=t.useExisting,r=t.useValue,i=t.deps;return{token:e.token,useClass:e.useClass,useExisting:n,useFactory:e.useFactory,useValue:r,deps:i,multi:e.multi}}function rt(e,t){var n=t.eager,r=t.providers;return new Wi(e.token,e.multiProvider,e.eager||n,r,e.providerType,e.lifecycleHooks,e.sourceSpan)}function it(e,t,n){var r=new Map;return e.forEach(function(e){ot([{token:{identifier:e.type},useClass:e.type}],e.isComponent?Gi.Component:Gi.Directive,!0,t,n,r)}),e.filter(function(e){return e.isComponent}).concat(e.filter(function(e){return!e.isComponent})).forEach(function(e){ot(e.providers,Gi.PublicService,!1,t,n,r),ot(e.viewProviders,Gi.PrivateService,!1,t,n,r)}),r}function ot(e,t,n,i,o,a){e.forEach(function(e){var s=a.get(x(e.token));if(r(s)&&!!s.multiProvider!=!!e.multi&&o.push(new Lc("Mixing multi and non multi provider is not possible for token "+k(s.token),i)),s)e.multi||(s.providers.length=0),s.providers.push(e);else{var u=e.token.identifier&&e.token.identifier.lifecycleHooks?e.token.identifier.lifecycleHooks:[];s=new Wi(e.token,e.multi,n||u.length>0,[e],t,u,i),a.set(x(e.token),s)}})}function at(e){var t=new Map;return e.viewQueries&&e.viewQueries.forEach(function(e){return ut(t,e)}),t}function st(e){var t=new Map;return e.forEach(function(e){e.queries&&e.queries.forEach(function(e){return ut(t,e)})}),t}function ut(e,t){t.selectors.forEach(function(n){var r=e.get(x(n));r||(r=[],e.set(x(n),r)),r.push(t)})}function ct(e){if(null==e||0===e.length||"/"==e[0])return!1;var t=e.match(Wc);return null===t||"package"==t[1]||"asset"==t[1]}function lt(e,t,n){var r=[],i=n.replace(qc,"").replace(Hc,function(){for(var n=[],i=0;i<arguments.length;i++)n[i-0]=arguments[i];var o=n[1]||n[2];return ct(o)?(r.push(e.resolve(t,o)),""):n[0]});return new Bc(i,r)}function pt(e){return"@"==e[0]}function dt(e,n,r,i){var o=[];return Zo.parse(n).forEach(function(t){var n=t.element?[t.element]:e.allKnownElementNames(),a=new Set(t.notSelectors.filter(function(e){return e.isElementSelector()}).map(function(e){return e.element})),s=n.filter(function(e){return!a.has(e)});o.push.apply(o,s.map(function(t){return e.securityContext(t,r,i)}))}),0===o.length?[t.SecurityContext.NONE]:Array.from(new Set(o)).sort()}function ht(e){var t=null,n=null,r=null,i=!1,o=null;e.attrs.forEach(function(e){var a=e.name.toLowerCase();a==Jc?t=e.value:a==tl?n=e.value:a==el?r=e.value:e.name==ol?i=!0:e.name==al&&e.value.length>0&&(o=e.value)}),t=ft(t);var a=e.name.toLowerCase(),s=sl.OTHER;return l(a)[1]==Qc?s=sl.NG_CONTENT:a==rl?s=sl.STYLE:a==il?s=sl.SCRIPT:a==$c&&r==nl&&(s=sl.STYLESHEET),new ul(s,t,n,i,o)}function ft(e){return null===e||0===e.length?"*":e}function mt(e){return e.trim().split(/\s+/g)}function vt(e,t){var n=new Zo,r=l(e)[1];n.setElement(r);for(var i=0;i<t.length;i++){var o=t[i][0],a=l(o)[1],s=t[i][1];n.addAttribute(a,s),o.toLowerCase()==hl&&mt(s).forEach(function(e){return n.addClassName(e)})}return n}function yt(e){return e instanceof iu&&0==e.value.trim().length}function gt(e){var t=new Map;return e.forEach(function(e){t.get(e.type.reference)||t.set(e.type.reference,e)}),Array.from(t.values())}function _t(e,t,n){var r=Ct(e.styles,{},t,n,!1),i=new Nl(r);return e.stateNameExpr.split(/\s*,\s*/).map(function(e){return new Dl(e,i)})}function bt(e,t,n,r){var i=new Bl,o=[];e.stateChangeExpr.split(/\s*,\s*/).forEach(function(e){o.push.apply(o,kt(e,r))});var a=Mt(St(xt(e.steps),t,n,r),0,i,t,r);0==r.length&&At(a,i,r);var s=a instanceof Fl?a:new zl([a]);return new Rl(o,s)}function wt(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";default:return t.push(new Kl('the transition alias value "'+e+'" is not supported')),"* => *"}}function kt(e,t){var n=[];":"==e[0]&&(e=wt(e,t));var i=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(!r(i)||i.length<4)return t.push(new Kl("the provided "+e+" is not of a supported format")),n;var o=i[1],a=i[2],s=i[3];n.push(new Il(o,s));var u=o==Ao&&s==Ao;return"<"!=a[0]||u||n.push(new Il(s,o)),n}function xt(e){return Array.isArray(e)?new ya(e):e}function Ct(e,t,n,r,i){var o=e.offset;(o>1||o<0)&&r.push(new Kl("Offset values for animations must be between 0 and 1"));var a=[];return e.styles.forEach(function(e){if("string"==typeof e)i?a.push.apply(a,Ot(e,t,r)):r.push(new Kl("State based animations cannot contain references to other states"));else{var o=e,s={};Object.keys(o).forEach(function(e){var t=n.normalizeAnimationStyleProperty(e),i=n.normalizeAnimationStyleValue(t,e,o[e]),a=i.error;a&&r.push(new Kl(a)),s[t]=i.value}),a.push(s)}}),a}function St(e,t,n,r){var i=Tt(e,t,n,r);return e instanceof ga?new ga(i):new ya(i)}function Et(e,t){if("object"==typeof t&&null!==t&&e.length>0){var n=e.length-1,r=e[n];if("object"==typeof r&&null!==r)return void(e[n]=$i.merge(r,t))}e.push(t)}function Tt(e,t,n,i){if(!(e instanceof va))return[e];var o,a=[];return e.steps.forEach(function(e){if(e instanceof fa)r(o)||(o=[]),Ct(e,t,n,i,!0).forEach(function(e){Et(o,e)});else{if(r(o)&&(a.push(new fa(0,o)),o=null),e instanceof ma){var s=e.styles;s instanceof fa?s.styles=Ct(s,t,n,i,!0):s instanceof ha&&s.steps.forEach(function(e){e.styles=Ct(e,t,n,i,!0)})}else if(e instanceof va){var u=Tt(e,t,n,i);e=e instanceof ga?new ga(u):new ya(u)}a.push(e)}}),r(o)&&a.push(new fa(0,o)),a}function Ot(e,t,n){var i=[];if(":"!=e[0])n.push(new Kl('Animation states via styles must be prefixed with a ":"'));else{var o=e.substring(1),a=t[o];r(a)?a.styles.forEach(function(e){"object"==typeof e&&null!==e&&i.push(e)}):n.push(new Kl('Unable to apply styles due to missing a state: "'+o+'"'))}return i}function Pt(e,t,n,i,o){var a=e.steps.length,s=0;e.steps.forEach(function(e){return s+=r(e.offset)?1:0}),s>0&&s<a&&(o.push(new Kl("Not all style() entries contain an offset for the provided keyframe()")),s=a);var u=a-1,c=0==s?1/u:0,l=[],p=0,d=!1,h=0;e.steps.forEach(function(e){var t=e.offset,n={};e.styles.forEach(function(e){Object.keys(e).forEach(function(t){"offset"!=t&&(n[t]=e[t])})}),r(t)?d=d||t<h:t=p==u?Yl:c*p,l.push([t,n]),h=t,p++}),d&&l.sort(function(e,t){return e[0]<=t[0]?-1:1});var f=l[0];f[0]!=Gl&&l.splice(0,0,f=[Gl,{}]);var m=f[1];u=l.length-1;var v=l[u];v[0]!=Yl&&(l.push(v=[Yl,{}]),u++);for(var y=v[1],g=1;g<=u;g++){var _=l[g][1];Object.keys(_).forEach(function(e){r(m[e])||(m[e]=Ro)})}for(g=u-1;g>=0;g--)!function(e){var t=l[e][1];Object.keys(t).forEach(function(e){r(y[e])||(y[e]=t[e])})}(g);return l.map(function(e){return new Ll(e[0],new Nl([e[1]]))})}function Mt(e,t,n,i,o){var a,s=0,u=t;if(e instanceof va){var c,l=0,p=[],d=e instanceof ga;if(e.steps.forEach(function(e){var a=d?u:t;if(e instanceof fa)return e.styles.forEach(function(e){var t=e;Object.keys(t).forEach(function(e){n.insertAtTime(e,a,t[e])})}),void(c=e.styles);var h=Mt(e,a,n,i,o);if(r(c)){if(e instanceof va){var f=new Nl(c);p.push(new jl(f,[],0,0,""))}else(v=h.startingStyles.styles).push.apply(v,c);c=null}var m=h.playTime;t+=m,s+=m,l=Math.max(m,l),p.push(h);var v}),r(c)){var h=new Nl(c);p.push(new jl(h,[],0,0,""))}d?(a=new Vl(p),t=u+(s=l)):a=new zl(p)}else if(e instanceof ma){var f=Dt(e.timings,o),m=e.styles,v=void 0;if(m instanceof ha)v=Pt(m,t,n,i,o);else{var y=Yl,g=new Nl(m.styles);v=[new Ll(y,g)]}a=new jl(new Nl([]),v,f.duration,f.delay,f.easing),s=f.duration+f.delay,t+=s,v.forEach(function(e){return e.styles.styles.forEach(function(e){return Object.keys(e).forEach(function(r){n.insertAtTime(r,t,e[r])})})})}else a=new jl(null,[],0,0,"");return a.playTime=s,a.startTime=u,a}function At(e,t,n){if(e instanceof jl&&e.keyframes.length>0){var r=e.keyframes;if(1==r.length){var i=r[0],o=It(i,e.startTime,e.playTime,t,n);e.keyframes=[o,i]}}else e instanceof Fl&&e.steps.forEach(function(e){return At(e,t,n)})}function Dt(e,t){var n,o=/^([\.\d]+)(m?s)(?:\s+([\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?/i,a=0,s=null;if("string"==typeof e){var u=e.match(o);if(null===u)return t.push(new Kl('The provided timing value "'+e+'" is invalid.')),new Ql(0,0,null);var c=parseFloat(u[1]);"s"==u[2]&&(c*=Zl),n=Math.floor(c);var l=u[3],p=u[4];if(r(l)){var d=parseFloat(l);r(p)&&"s"==p&&(d*=Zl),a=Math.floor(d)}var h=u[5];i(h)||(s=h)}else n=e;return new Ql(n,a,s)}function It(e,t,n,i,o){var a={},s=t+n;return e.styles.styles.forEach(function(e){Object.keys(e).forEach(function(n){var u=e[n];if("offset"!=n){var c,l,p,d=i.indexOfAtOrBeforeTime(n,t);r(d)?(p=(c=i.getByIndex(n,d)).value,l=i.getByIndex(n,d+1)):p=Ro,r(l)&&!l.matches(s,u)&&o.push(new Kl('The animated CSS property "'+n+'" unexpectedly changes between steps "'+c.time+'ms" and "'+s+'ms" at "'+l.time+'ms"')),a[n]=p}})}),new Ll(Gl,new Nl([a]))}function Rt(){return new rp(".")}function jt(e){var t=Lt(e);return t&&t[op.Scheme]||""}function Nt(e,t,n,i,o,a,s){var u=[];return r(e)&&u.push(e+":"),r(n)&&(u.push("//"),r(t)&&u.push(t+"@"),u.push(n),r(i)&&u.push(":"+i)),r(o)&&u.push(o),r(a)&&u.push("?"+a),r(s)&&u.push("#"+s),u.join("")}function Lt(e){return e.match(ip)}function Ft(e){if("/"==e)return"/";for(var t="/"==e[0]?"/":"",n="/"===e[e.length-1]?"/":"",r=e.split("/"),i=[],o=0,a=0;a<r.length;a++){var s=r[a];switch(s){case"":case".":break;case"..":i.length>0?i.pop():o++;break;default:i.push(s)}}if(""==t){for(;o-- >0;)i.unshift("..");0===i.length&&i.push(".")}return t+i.join("/")+n}function Vt(e){var t=e[op.Path];return t=i(t)?"":Ft(t),e[op.Path]=t,Nt(e[op.Scheme],e[op.UserInfo],e[op.Domain],e[op.Port],t,e[op.QueryData],e[op.Fragment])}function zt(e,t){var n=Lt(encodeURI(t)),o=Lt(e);if(r(n[op.Scheme]))return Vt(n);n[op.Scheme]=o[op.Scheme];for(var a=op.Scheme;a<=op.Port;a++)i(n[a])&&(n[a]=o[a]);if("/"==n[op.Path][0])return Vt(n);var s=o[op.Path];i(s)&&(s="/");var u=s.lastIndexOf("/");return s=s.substring(0,u+1)+n[op.Path],n[op.Path]=s,Vt(n)}function Ut(e){return e instanceof t.Directive}function Bt(e,t,n){var r=new yd(e,t);return n.visitExpression(r,null)}function Ht(e){var t=new gd;return t.visitAllStatements(e,null),t.varNames}function qt(e,t){return void 0===t&&(t=null),new Mp(e,t)}function Wt(e,t){return void 0===t&&(t=null),new Vp(e,null,t)}function Gt(e,t,n){return void 0===t&&(t=null),void 0===n&&(n=null),r(e)?Yt(Wt(e),t,n):null}function Yt(e,t,n){return void 0===t&&(t=null),void 0===n&&(n=null),r(e)?new gp(e,t,n):null}function Zt(e,t){return void 0===t&&(t=null),new Zp(e,t)}function Kt(e,t,n){return void 0===t&&(t=null),void 0===n&&(n=!1),new Xp(e.map(function(e){return new Kp(e[0],e[1],n)}),t)}function Xt(e){return new Up(e)}function Jt(e,t,n){return void 0===n&&(n=null),new qp(e,t,n)}function Qt(e,t){return void 0===t&&(t=null),new Fp(e,t)}function $t(e){var t=""+e.fields.length,n=tn(t);return e.fields.push(new ud(n.name,null,[td.Private])),e.ctorStmts.push(Jp.prop(n.name).set(Wt(Ke(Mc.UNINITIALIZED))).toStmt()),new _d(n,t)}function en(e,t,n,r){var i=Wt(Ke(Mc.checkBinding)).callFn([n,t,e.currValExpr]);return e.forceUpdate&&(i=e.forceUpdate.or(i)),e.stmts.concat([new dd(i,r.concat([Jp.prop(t.name).set(e.currValExpr).toStmt()]))])}function tn(e){return Jp.prop("_expr_"+e)}function nn(e){return r(e.value)?Qt(e.value):Wt(e.identifier)}function rn(e){if(0===e.length)return Wt(Ke(Mc.EMPTY_INLINE_ARRAY));var t=Math.log(e.length)/Math.log(2),n=Math.ceil(t);return Wt(Ke(n<Mc.inlineArrays.length?Mc.inlineArrays[n]:Mc.InlineArrayDynamic)).instantiate([Qt(e.length)].concat(e))}function on(e,t,n,r){r.fields.push(new ud(n.name,null));var i=t<Mc.pureProxies.length?Mc.pureProxies[t]:null;if(!i)throw new Error("Unsupported number of argument for pure functions: "+t);r.ctorStmts.push(Jp.prop(n.name).set(Wt(Ke(i)).callFn([e])).toStmt())}function an(e,t){var n=Object.keys(e.runtime).find(function(n){return e.runtime[n]===t});if(!n)throw new Error("Unknown enum value "+t+" in "+e.name);return Wt(Qe(e,n))}function sn(e,t,n,r,i){var o=_n(i),a=[];t||(t=new Ed);var s=new Sd(e,t,n,bd,i,!1),u=r.visit(s,Cd.Expression);if(!u)return null;if(s.temporaryCount)for(var c=0;c<s.temporaryCount;c++)a.push(pn(i,c));if(s.needsValueUnwrapper){var l=bd.callMethod("reset",[]).toStmt();a.push(l)}return a.push(o.set(u).toDeclStmt(null,[td.Final])),s.needsValueUnwrapper?new kd(a,o,bd.prop("hasWrappedValue")):new kd(a,o,null)}function un(e,t,n,r,i){t||(t=new Ed);var o=new Sd(e,t,n,null,i,!0),a=[];vn(r.visit(o,Cd.Statement),a),dn(o.temporaryCount,i,a);var s=a.length-1,u=null;if(s>=0){var c=wn(a[s]);c&&(u=bn(i),a[s]=u.set(c.cast(wp).notIdentical(Qt(!1))).toDeclStmt(null,[td.Final]))}return new xd(a,u)}function cn(e){var t=[];return Ht(e).has(bd.name)&&t.push(bd.set(Wt(Ke(Mc.ValueUnwrapper)).instantiate([])).toDeclStmt(null,[td.Final])),t}function ln(e,t){return"tmp_"+e+"_"+t}function pn(e,t){return new rd(ln(e,t),$p)}function dn(e,t,n){for(var r=e-1;r>=0;r--)n.unshift(pn(t,r))}function hn(e,t){if(e!==Cd.Statement)throw new Error("Expected a statement, but saw "+t)}function fn(e,t){if(e!==Cd.Expression)throw new Error("Expected an expression, but saw "+t)}function mn(e,t){return e===Cd.Statement?t.toStmt():t}function vn(e,t){Array.isArray(e)?e.forEach(function(e){return vn(e,t)}):t.push(e)}function yn(e,t){if(0===t.length)return Wt(Ke(Mc.EMPTY_ARRAY));for(var n=Jp.prop("_arr_"+e.fields.length),r=[],i=[],o=0;o<t.length;o++){var a="p"+o;r.push(new Hp(a)),i.push(qt(a))}return on(Jt(r,[new ad(Zt(i))],new _p(wp)),t.length,n,e),n.callFn(t)}function gn(e,t){if(0===t.length)return Wt(Ke(Mc.EMPTY_MAP));for(var n=Jp.prop("_map_"+e.fields.length),r=[],i=[],o=[],a=0;a<t.length;a++){var s="p"+a;r.push(new Hp(s)),i.push([t[a][0],qt(s)]),o.push(t[a][1])}return on(Jt(r,[new ad(Kt(i))],new bp(wp)),t.length,n,e),n.callFn(o)}function _n(e){return qt("currVal_"+e)}function bn(e){return qt("pd_"+e)}function wn(e){return e instanceof od?e.expr:e instanceof ad?e.value:null}function kn(e,t,n,i,o,a){var s=[],u=e.prop("renderer");switch(i=xn(e,t,i,a),t.type){case Zi.Property:o&&s.push(Wt(Ke(Mc.setBindingDebugInfo)).callFn([u,n,Qt(t.name),i]).toStmt()),s.push(u.callMethod("setElementProperty",[n,Qt(t.name),i]).toStmt());break;case Zi.Attribute:i=i.isBlank().conditional($p,i.callMethod("toString",[])),s.push(u.callMethod("setElementAttribute",[n,Qt(t.name),i]).toStmt());break;case Zi.Class:s.push(u.callMethod("setElementClass",[n,Qt(t.name),i]).toStmt());break;case Zi.Style:var c=i.callMethod("toString",[]);r(t.unit)&&(c=c.plus(Qt(t.unit))),i=i.isBlank().conditional($p,c),s.push(u.callMethod("setElementStyle",[n,Qt(t.name),i]).toStmt());break;case Zi.Animation:throw new Error("Illegal state: Should not come here!")}return s}function xn(e,n,r,i){if(n.securityContext===t.SecurityContext.NONE)return r;if(n.needsRuntimeSecurityContext||(i=an(Mc.SecurityContext,n.securityContext)),!i)throw new Error("internal error, no SecurityContext given "+n.name);var o=[i,r];return e.prop("viewUtils").prop("sanitizer").callMethod("sanitize",o)}function Cn(e,t,n,r,i,o,a,s){var u=[],c=[],l=n.name,p=t.prop("componentType").prop("animations").key(Qt(l)),d=Qt(Io),h=Wt(Ke(Mc.UNINITIALIZED)),f=qt("animationTransition_"+l);c.push(f.set(p.callFn([e,o,s.equals(h).conditional(d,s),a.equals(h).conditional(d,a)])).toDeclStmt()),u.push(f.set(p.callFn([e,o,s,d])).toDeclStmt());var m=[];return r.find(function(e){return e.isAnimation&&e.name==l&&"start"==e.phase})&&m.push(f.callMethod("onStart",[i.callMethod(Rp.Bind,[e,Qt(Fi.calcFullName(l,null,"start"))])]).toStmt()),r.find(function(e){return e.isAnimation&&e.name==l&&"done"==e.phase})&&m.push(f.callMethod("onDone",[i.callMethod(Rp.Bind,[e,Qt(Fi.calcFullName(l,null,"done"))])]).toStmt()),c.push.apply(c,m),u.push.apply(u,m),{updateStmts:c,detachStmts:u}}function Sn(e){var t=e.parentArgs||[],n=e.parent?[Qp.callFn(t).toStmt()]:[],r=En(Array.isArray(e.builders)?e.builders:[e.builders]),i=new cd(null,e.ctorParams||[],n.concat(r.ctorStmts));return new pd(e.name,e.parent,r.fields,r.getters,i,r.methods,e.modifiers||[])}function En(e){return{fields:(t=[]).concat.apply(t,e.map(function(e){return e.fields||[]})),methods:(n=[]).concat.apply(n,e.map(function(e){return e.methods||[]})),getters:(r=[]).concat.apply(r,e.map(function(e){return e.getters||[]})),ctorStmts:(i=[]).concat.apply(i,e.map(function(e){return e.ctorStmts||[]}))};var t,n,r,i}function Tn(e){var t=qt("changed"),n=[t.set(Jp.prop(Dd)).toDeclStmt(),Jp.prop(Dd).set(Qt(!1)).toStmt()],r=[];if(e.genChanges){var i=[];e.ngOnChanges&&i.push(Jp.prop(Md).callMethod("ngOnChanges",[Jp.prop(Ad)]).toStmt()),e.compilerConfig.logBindingUpdate&&i.push(Wt(Ke(Mc.setBindingDebugInfoForChanges)).callFn([Ld.prop("renderer"),Vd,Jp.prop(Ad)]).toStmt()),i.push(Ud),r.push(new dd(t,i))}e.ngOnInit&&r.push(new dd(Ld.prop("numberOfChecks").identical(new Fp(0)),[Jp.prop(Md).callMethod("ngOnInit",[]).toStmt()])),e.ngDoCheck&&r.push(Jp.prop(Md).callMethod("ngDoCheck",[]).toStmt()),r.length>0&&n.push(new dd(Xt(jd),r)),n.push(new ad(t)),e.methods.push(new cd("ngDoCheck",[new Hp(Ld.name,Gt(Ke(Mc.AppView),[wp])),new Hp(Vd.name,wp),new Hp(jd.name,kp)],n,kp))}function On(e,t){var n=$t(t),r=[Jp.prop(Dd).set(Qt(!0)).toStmt(),Jp.prop(Md).prop(e).set(Rd).toStmt()];t.genChanges&&r.push(Jp.prop(Ad).key(Qt(e)).set(Wt(Ke(Mc.SimpleChange)).instantiate([n.expression,Rd])).toStmt());var i=en({currValExpr:Rd,forceUpdate:Nd,stmts:[]},n.expression,jd,r);t.methods.push(new cd("check_"+e,[new Hp(Rd.name,wp),new Hp(jd.name,kp),new Hp(Nd.name,kp)],i))}function Pn(e,t,n){var r=[],i=[new Hp(Ld.name,Gt(Ke(Mc.AppView),[wp])),new Hp(Fd.name,Gt(Ke(Mc.AppView),[wp])),new Hp(Vd.name,wp),new Hp(jd.name,kp)];e.forEach(function(e,o){var a=$t(n),s=sn(n,null,Jp.prop(Md),e.value,a.bindingId);if(s){var u;e.needsRuntimeSecurityContext&&(u=qt("secCtx_"+i.length),i.push(new Hp(u.name,Gt(Ke(Mc.SecurityContext)))));var c;if(e.isAnimation){var l=Cn(Ld,Fd,e,t,Jp.prop(Id).or(Wt(Ke(Mc.noop))),Vd,s.currValExpr,a.expression),p=l.updateStmts,d=l.detachStmts;c=p,(h=n.detachStmts).push.apply(h,d)}else c=kn(Ld,e,Vd,s.currValExpr,n.compilerConfig.logBindingUpdate,u);r.push.apply(r,en(s,a.expression,jd,c));var h}}),n.methods.push(new cd("checkHost",i,r))}function Mn(e,t){var n=qt("result"),r=[n.set(Qt(!0)).toDeclStmt(kp)];e.forEach(function(e,i){var o=un(t,null,Jp.prop(Md),e.handler,"sub_"+i),a=o.stmts;o.preventDefault&&a.push(n.set(o.preventDefault.and(n)).toStmt()),r.push(new dd(zd.equals(Qt(e.fullName)),a))}),r.push(new ad(n)),t.methods.push(new cd("handleEvent",[new Hp(zd.name,Cp),new Hp(wd.event.name,wp)],r,kp))}function An(e,t){var n=[new Hp(Ld.name,Gt(Ke(Mc.AppView),[wp])),new Hp(Id,wp)],r=[Jp.prop(Id).set(qt(Id)).toStmt()];Object.keys(e.outputs).forEach(function(i,o){var a=e.outputs[i],s="emit"+o;n.push(new Hp(s,kp));var u="subscription"+o;t.fields.push(new ud(u,wp)),r.push(new dd(qt(s),[Jp.prop(u).set(Jp.prop(Md).prop(i).callMethod(Rp.SubscribeObservable,[qt(Id).callMethod(Rp.Bind,[Ld,Qt(a)])])).toStmt()])),t.destroyStmts.push(Jp.prop(u).and(Jp.prop(u).callMethod("unsubscribe",[])).toStmt())}),t.methods.push(new cd("subscribe",n,r))}function Dn(e,t,n){var r=[],i=new Kc(t,ls,n,[],r),o=w(e.type),a=o?"in Directive "+b(e.type)+" in "+o:"in Directive "+b(e.type),s=new eu("",a),u=new tu(new $s(s,null,null,null),new $s(s,null,null,null)),c=i.createDirectiveHostPropertyAsts(e.toSummary(),u),l=i.createDirectiveHostEventAsts(e.toSummary(),u);return new qd(c,l,r)}function In(e,t){var n=e.filter(function(e){return e.level===nu.WARNING}),r=e.filter(function(e){return e.level===nu.FATAL});if(n.length>0&&this._console.warn("Directive parse warnings:\n"+n.join("\n")),r.length>0)throw new Error("Directive parse errors:\n"+r.join("\n"))}function Rn(e,t){return xo.hasLifecycleHook(t,jn(e))}function jn(e){switch(e){case ro.OnInit:return"ngOnInit";case ro.OnDestroy:return"ngOnDestroy";case ro.DoCheck:return"ngDoCheck";case ro.OnChanges:return"ngOnChanges";case ro.AfterContentInit:return"ngAfterContentInit";case ro.AfterContentChecked:return"ngAfterContentChecked";case ro.AfterViewInit:return"ngAfterViewInit";case ro.AfterViewChecked:return"ngAfterViewChecked"}}function Nn(e){return e instanceof t.NgModule}function Ln(e){return e instanceof t.Pipe}function Fn(e,n){if(void 0===n&&(n=[]),e)for(var r=0;r<e.length;r++){var i=t.resolveForwardRef(e[r]);Array.isArray(i)?Fn(i,n):n.push(i)}return n}function Vn(e){return e?Array.from(new Set(e)):[]}function zn(e){return Vn(Fn(e))}function Un(e){return e instanceof Ki||e instanceof t.Type}function Bn(e,t,n){if(t instanceof Ki)return t.filePath;var r=n.moduleId;if("string"==typeof r)return jt(r)?r:"package:"+r+ta;if(null!==r&&void 0!==r)throw new oa('moduleId should be a string in "'+qn(t)+"\". See https://goo.gl/wIDDiL for more information.\nIf you're using Webpack you should inline the template and the styles, see https://goo.gl/X2J8zc.");return e.importUri(t)}function Hn(e,t){g(e,new ah,t)}function qn(e){return e instanceof Ki?e.name+" in "+e.filePath:a(e)}function Wn(e,t){return void 0===t&&(t=null),g(e,new sh,t)}function Gn(e,t,n){if(void 0===n&&(n=!0),i(e))return null;var r=e.replace(vh,function(){for(var e=[],n=0;n<arguments.length;n++)e[n-0]=arguments[n];return"$"==e[0]?t?"\\$":"$":"\n"==e[0]?"\\n":"\r"==e[0]?"\\r":"\\"+e[0]});return n||!yh.test(r)?"'"+r+"'":r}function Yn(e){for(var t="",n=0;n<e;n++)t+="  ";return t}function Zn(e){var t=new Eh(Ch),n=wh.createRoot([]);return(Array.isArray(e)?e:[e]).forEach(function(e){if(e instanceof nd)e.visitStatement(t,n);else if(e instanceof Op)e.visitExpression(t,n);else{if(!(e instanceof mp))throw new Error("Don't know how to print debug info for "+e);e.visitType(t,n)}}),n.toSource()}function Kn(e,t){for(var n=0,r=t;n<r.length;n++){var i=r[n];Th[i.toLowerCase()]=e}}function Xn(e){switch(e){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}function Jn(e){return e.replace(nf,"")}function Qn(e){var t=e.match(rf);return t?t[0]:""}function $n(e,t){var n=er(e),r=0;return n.escapedString.replace(of,function(){for(var e=[],i=0;i<arguments.length;i++)e[i-0]=arguments[i];var o=e[2],a="",s=e[4],u="";s&&s.startsWith("{"+cf)&&(a=n.blocks[r++],s=s.substring(cf.length+1),u="{");var c=t(new lf(o,a));return""+e[1]+c.selector+e[3]+u+c.content+s})}function er(e){for(var t=e.split(af),n=[],r=[],i=0,o=[],a=0;a<t.length;a++){var s=t[a];s==uf&&i--,i>0?o.push(s):(o.length>0&&(r.push(o.join("")),n.push(cf),o=[]),n.push(s)),s==sf&&i++}return o.length>0&&(r.push(o.join("")),n.push(cf)),new pf(n.join(""),r)}function tr(e){var t="styles";return e&&(t+="_"+b(e.type)),t}function nr(e,t,n){if(t===n)return e;for(var r=Jp,i=t;i!==n&&i.declarationElement.view;)i=i.declarationElement.view,r=r.prop("parentView");if(i!==n)throw new Error("Internal error: Could not calculate a property in a parent view: "+e);return e.visitExpression(new kf(r,n),null)}function rr(e,t,n){var r;r=e.viewType===fo.HOST?Jp:Jp.prop("parentView");var i=[nn(t),Jp.prop("parentIndex")];return n&&i.push($p),r.callMethod("injectorGet",i)}function ir(e,t){return"View_"+b(e.type)+t}function or(e){return"handleEvent_"+e}function ar(e){return eo.flatten(e.values.map(function(e){return e instanceof xf?sr(e.view.declarationElement.viewContainer,e.view,ar(e)):e}))}function sr(e,t,n){var r=n.map(function(e){return Bt(Jp.name,qt("nestedView"),e)});return e.callMethod("mapNestedViews",[qt(t.className),Jt([new Hp("nestedView",t.classType)],[new ad(Zt(r))],wp)])}function ur(e,t){t.fields.push(new ud(e,Gt(Ke(Mc.QueryList),[wp])));var n=Jp.prop(e);return t.createMethod.addStmt(Jp.prop(e).set(Wt(Ke(Mc.QueryList),[wp]).instantiate([])).toStmt()),n}function cr(e,t){t.meta.selectors.forEach(function(n){var r=e.get(x(n));r||(r=[],e.set(x(n),r)),r.push(t)})}function lr(e,t,n,r){var i;return i=t>0?Qt(e).lowerEquals(Mf.requestNodeIndex).and(Mf.requestNodeIndex.lowerEquals(Qt(e+t))):Qt(e).identical(Mf.requestNodeIndex),new dd(Mf.token.identical(nn(n.token)).and(i),[new ad(r)])}function pr(e,t,n,r,i){var o,a,s=i.view;if(n?(o=Zt(t),a=new _p(wp)):(o=t[0],a=t[0].type),a||(a=wp),r)s.fields.push(new ud(e,a)),s.createMethod.addStmt(Jp.prop(e).set(o).toStmt());else{var u="_"+e;s.fields.push(new ud(u,a));var c=new bf(s);c.resetDebugInfo(i.nodeIndex,i.sourceAst),c.addStmt(new dd(Jp.prop(u).isBlank(),[Jp.prop(u).set(o).toStmt()])),c.addStmt(new ad(Jp.prop(u))),s.getters.push(new ld(e,c.finish(),a))}return Jp.prop(e)}function dr(e,t){for(var n=null,r=e.pipeMetas.length-1;r>=0;r--){var i=e.pipeMetas[r];if(i.name==t){n=i;break}}if(!n)throw new Error("Illegal state: Could not find pipe "+t+" although the parser should have detected this error!");return n}function hr(e,t){return t>0?fo.EMBEDDED:e.isHost?fo.HOST:fo.COMPONENT}function fr(e,t,n,r){var i=mr(e,t);return!!i.size&&(r&&vr(i,n),yr(i,t,n),gr(e,t,n),!0)}function mr(e,t){var n=new Map;return e.forEach(function(e){n.set(e.fullName,e)}),t.forEach(function(e){e.hostEvents.forEach(function(e){n.set(e.fullName,e)})}),n}function vr(e,t){var n=[];if(e.forEach(function(e){e.phase||n.push(Qt(e.name),Qt(e.target))}),n.length){var r=qt("disposable_"+t.view.disposables.length);t.view.disposables.push(r),t.view.createMethod.addStmt(r.set(Wt(Ke(Mc.subscribeToRenderElement)).callFn([Jp,t.renderNode,rn(n),_r(t)])).toDeclStmt(Sp,[td.Private]))}}function yr(e,t,n){var r=Array.from(e.keys());t.forEach(function(e){var t=n.directiveWrapperInstance.get(e.directive.type.reference);n.view.createMethod.addStmts(Wd.subscribe(e.directive,e.hostProperties,r,t,Jp,_r(n)))})}function gr(e,t,n){var r=t.some(function(e){return e.hostEvents.some(function(t){return e.directive.isComponent})})?n.compViewExpr:Jp,i=new bf(n.view);i.resetDebugInfo(n.nodeIndex,n.sourceAst),i.push(r.callMethod("markPathToRootAsCheckOnce",[]).toStmt());var o=qt("eventName"),a=qt("result");i.push(a.set(Qt(!0)).toDeclStmt(kp)),t.forEach(function(e,t){var r=n.directiveWrapperInstance.get(e.directive.type.reference);e.hostEvents.length>0&&i.push(a.set(Wd.handleEvent(e.hostEvents,r,o,wd.event).and(a)).toStmt())}),e.forEach(function(e,t){var r=un(n.view,n.view,n.view.componentContext,e.handler,"sub_"+t),s=r.stmts;r.preventDefault&&s.push(a.set(r.preventDefault.and(a)).toStmt()),i.push(new dd(o.equals(Qt(e.fullName)),s))}),i.push(new ad(a)),n.view.methods.push(new cd(or(n.nodeIndex),[new Hp(o.name,Cp),new Hp(wd.event.name,wp)],i.finish(),kp))}function _r(e){var t=or(e.nodeIndex);return Jp.callMethod("eventHandler",[Jp.prop(t)])}function br(e,t,n){var r=n.view,i=e.type.lifecycleHooks,o=r.afterContentLifecycleCallbacksMethod;o.resetDebugInfo(n.nodeIndex,n.sourceAst),-1!==i.indexOf(ro.AfterContentInit)&&o.addStmt(new dd(Bf,[t.callMethod("ngAfterContentInit",[]).toStmt()])),-1!==i.indexOf(ro.AfterContentChecked)&&o.addStmt(t.callMethod("ngAfterContentChecked",[]).toStmt())}function wr(e,t,n){var r=n.view,i=e.type.lifecycleHooks,o=r.afterViewLifecycleCallbacksMethod;o.resetDebugInfo(n.nodeIndex,n.sourceAst),-1!==i.indexOf(ro.AfterViewInit)&&o.addStmt(new dd(Bf,[t.callMethod("ngAfterViewInit",[]).toStmt()])),-1!==i.indexOf(ro.AfterViewChecked)&&o.addStmt(t.callMethod("ngAfterViewChecked",[]).toStmt())}function kr(e,t,n){n.view.destroyMethod.addStmts(Wd.ngOnDestroy(e.directive,t)),n.view.detachMethod.addStmts(Wd.ngOnDetach(e.hostProperties,t,Jp,n.compViewExpr||Jp,n.renderNode))}function xr(e,t,n){var r=n.view.destroyMethod;r.resetDebugInfo(n.nodeIndex,n.sourceAst),e.providerType!==Gi.Directive&&e.providerType!==Gi.Component&&-1!==e.lifecycleHooks.indexOf(ro.OnDestroy)&&r.addStmt(t.callMethod("ngOnDestroy",[]).toStmt())}function Cr(e,t,n){var r=n.destroyMethod;-1!==e.type.lifecycleHooks.indexOf(ro.OnDestroy)&&r.addStmt(t.callMethod("ngOnDestroy",[]).toStmt())}function Sr(e,t,n){var r=$t(n),i=sn(n,n,n.componentContext,e.value,r.bindingId);if(!i)return null;n.detectChangesRenderPropertiesMethod.resetDebugInfo(t.nodeIndex,e),n.detectChangesRenderPropertiesMethod.addStmts(en(i,r.expression,Af.throwOnChange,[Jp.prop("renderer").callMethod("setText",[t.renderNode,i.currValExpr]).toStmt()]))}function Er(e,t,n,r){var i=r.view,o=r.renderNode;e.forEach(function(e){var a=$t(i);i.detectChangesRenderPropertiesMethod.resetDebugInfo(r.nodeIndex,e);var s=sn(i,i,r.view.componentContext,e.value,a.bindingId);if(s){var u=[],c=i.detectChangesRenderPropertiesMethod;switch(e.type){case Zi.Property:case Zi.Attribute:case Zi.Class:case Zi.Style:u.push.apply(u,kn(Jp,e,o,s.currValExpr,i.genConfig.logBindingUpdate));break;case Zi.Animation:c=i.animationBindingsMethod;var l=Cn(Jp,Jp,e,t,(n?Jp.prop(or(r.nodeIndex)):Wt(Ke(Mc.noop))).callMethod(Rp.Bind,[Jp]),r.renderNode,s.currValExpr,a.expression),p=l.updateStmts,d=l.detachStmts;u.push.apply(u,p),i.detachMethod.addStmts(d)}c.addStmts(en(s,a.expression,Af.throwOnChange,u))}})}function Tr(e,t,n,r,i){var o=e.hostProperties.filter(function(e){return e.needsRuntimeSecurityContext}).map(function(e){var t;switch(e.type){case Zi.Property:t=i.securityContext(r,e.name,!1);break;case Zi.Attribute:t=i.securityContext(r,e.name,!0);break;default:throw new Error("Illegal state: Only property / attribute bindings can have an unknown security context! Binding "+e.name)}return an(Mc.SecurityContext,t)});n.view.detectChangesRenderPropertiesMethod.addStmts(Wd.checkHost(e.hostProperties,t,Jp,n.compViewExpr||Jp,n.renderNode,Af.throwOnChange,o))}function Or(e,t,n,r){var i=r.view,o=i.detectChangesInInputsMethod;o.resetDebugInfo(r.nodeIndex,r.sourceAst),e.inputs.forEach(function(e,a){var s=r.nodeIndex+"_"+n+"_"+a;o.resetDebugInfo(r.nodeIndex,e);var u=sn(i,i,i.componentContext,e.value,s);u&&(o.addStmts(u.stmts),o.addStmt(t.callMethod("check_"+e.directiveName,[u.currValExpr,Af.throwOnChange,u.forceUpdate||Qt(!1)]).toStmt()))});var a=e.directive.isComponent&&!to(e.directive.changeDetection),s=Wd.ngDoCheck(t,Jp,r.renderNode,Af.throwOnChange),u=a?new dd(s,[r.compViewExpr.callMethod("markAsCheckOnce",[]).toStmt()]):s.toStmt();o.addStmt(u)}function Pr(e){var t=[];e.getProviderTokens().forEach(function(n){var r=e.getQueriesFor(n);t.push.apply(t,r.map(function(e){return new Hf(e,n)}))}),Object.keys(e.referenceTokens).forEach(function(n){var r={value:n};t.push.apply(t,e.getQueriesFor(r).map(function(e){return new Hf(e,r)}))}),t.forEach(function(t){var n;if(t.read.identifier)n=e.instances.get(x(t.read));else{var r=e.referenceTokens[t.read.value];n=r?e.instances.get(x(r)):e.elementRef}n&&t.query.addValue(n,e.view)})}function Mr(e,t,r){n(new qf(e,r),t),e.pipes.forEach(function(e){Cr(e.meta,e.instance,e.view)})}function Ar(e,t,r){var i=new Xf(e,r);return n(i,t,e.declarationElement.isNull()?e.declarationElement:e.declarationElement.parent),e.viewType!==fo.EMBEDDED&&e.viewType!==fo.HOST||(e.lastRenderNode=i.getOrCreateLastRenderNode()),i.nestedViewCount}function Dr(e,t){e.nodes.forEach(function(e){e instanceof Lf&&(e.finish(),e.hasEmbeddedView&&Dr(e.embeddedView,t))}),e.finish(),Vr(e,t)}function Ir(e){for(var t=e.view;jr(e.parent,t);)e=e.parent;return e}function Rr(e){for(var t=e.view;jr(e,t);)e=e.parent;return e}function jr(e,t){return!e.isNull()&&e.sourceAst.name===Yf&&e.view===t}function Nr(e,t){var n={};Object.keys(e).forEach(function(t){n[t]=e[t]}),t.forEach(function(e){Object.keys(e.hostAttributes).forEach(function(t){var i=e.hostAttributes[t],o=n[t];n[t]=r(o)?Fr(t,o,i):i})});var i=[];return Object.keys(n).sort().forEach(function(e){i.push(e,n[e])}),i}function Lr(e){var t={};return e.forEach(function(e){t[e.name]=e.value}),t}function Fr(e,t,n){return e==Wf||e==Gf?t+" "+n:n}function Vr(e,t){var n=$p;e.genConfig.genDebugInfo&&(n=qt("nodeDebugInfos_"+b(e.component.type)+e.viewIndex),t.push(n.set(Zt(e.nodes.map(zr),new _p(Gt(Ke(Mc.StaticNodeDebugInfo)),[fp.Const]))).toDeclStmt(null,[td.Final])));var r=qt("renderType_"+b(e.component.type));if(0===e.viewIndex){var i=void 0;i=e.component.template.templateUrl==w(e.component.type)?w(e.component.type)+" class "+b(e.component.type)+" - inline template":e.component.template.templateUrl,t.push(r.set(Wt(Ke(Mc.createRenderComponentType)).callFn([Qt(e.genConfig.genDebugInfo?i:""),Qt(e.component.template.ngContentSelectors.length),Ef.fromValue(e.component.template.encapsulation),e.styles,Kt(e.animations.map(function(e){return[e.name,e.fnExp]}),null,!0)])).toDeclStmt(Gt(Ke(Mc.RenderComponentType))))}var o=Ur(e,r,n);t.push(o)}function zr(e){var t=e instanceof Lf?e:null,n=[],i=$p,o=[];return r(t)&&(n=t.getProviderTokens().map(function(e){return nn(e)}),r(t.component)&&(i=nn(Xe(t.component.type))),Object.keys(t.referenceTokens).forEach(function(e){var n=t.referenceTokens[e];o.push([e,r(n)?nn(n):$p])})),Wt(Ke(Mc.StaticNodeDebugInfo)).instantiate([Zt(n,new _p(wp,[fp.Const])),i,Kt(o,new bp(wp,[fp.Const]))],Gt(Ke(Mc.StaticNodeDebugInfo),null,[fp.Const]))}function Ur(e,t,n){var r=[new Hp(Of.viewUtils.name,Gt(Ke(Mc.ViewUtils))),new Hp(Of.parentView.name,Gt(Ke(Mc.AppView),[wp])),new Hp(Of.parentIndex.name,xp),new Hp(Of.parentElement.name,wp)],i=[qt(e.className),t,Sf.fromValue(e.viewType),Of.viewUtils,Of.parentView,Of.parentIndex,Of.parentElement,Tf.fromValue(Yr(e))];e.genConfig.genDebugInfo&&i.push(n),e.viewType===fo.EMBEDDED&&(r.push(new Hp("declaredViewContainer",Gt(Ke(Mc.ViewContainer)))),i.push(qt("declaredViewContainer")));var o=[new cd("createInternal",[new Hp(Kf.name,Cp)],Hr(e),Gt(Ke(Mc.ComponentRef),[wp])),new cd("injectorGetInternal",[new Hp(Mf.token.name,wp),new Hp(Mf.requestNodeIndex.name,xp),new Hp(Mf.notFoundResult.name,wp)],Wr(e.injectorGetMethod.finish(),Mf.notFoundResult),wp),new cd("detectChangesInternal",[new Hp(Af.throwOnChange.name,kp)],qr(e)),new cd("dirtyParentQueriesInternal",[],e.dirtyParentQueriesMethod.finish()),new cd("destroyInternal",[],Br(e)),new cd("detachInternal",[],e.detachMethod.finish()),Zr(e),Kr(e),Jr(e)].filter(function(e){return e.body.length>0}),a=e.genConfig.genDebugInfo?Mc.DebugAppView:Mc.AppView;return Sn({name:e.className,parent:Wt(Ke(a),[Gr(e)]),parentArgs:i,ctorParams:r,builders:[{methods:o},e]})}function Br(e){var t=[];return e.viewContainers.forEach(function(e){t.push(e.callMethod("destroyNestedViews",[]).toStmt())}),e.viewChildren.forEach(function(e){t.push(e.callMethod("destroy",[]).toStmt())}),t.push.apply(t,e.destroyMethod.finish()),t}function Hr(e){var t=$p,n=[];e.viewType===fo.COMPONENT&&(t=Pf.renderer.callMethod("createViewRoot",[Jp.prop("parentElement")]),n=[Zf.set(t).toDeclStmt(Gt(e.genConfig.renderTypes.renderNode),[td.Final])]);var r;if(e.viewType===fo.HOST){var i=e.nodes[0];r=Wt(Ke(Mc.ComponentRef_),[wp]).instantiate([Qt(i.nodeIndex),Jp,i.renderNode,i.getComponent()])}else r=$p;var o=Pf.renderer.cast(wp).prop("directRenderer").conditional($p,Zt(e.nodes.map(function(e){return e.renderNode})));return n.concat(e.createMethod.finish(),[Jp.callMethod("init",[e.lastRenderNode,o,e.disposables.length?Zt(e.disposables):$p]).toStmt(),new ad(r)])}function qr(e){var t=[];if(e.animationBindingsMethod.isEmpty()&&e.detectChangesInInputsMethod.isEmpty()&&e.updateContentQueriesMethod.isEmpty()&&e.afterContentLifecycleCallbacksMethod.isEmpty()&&e.detectChangesRenderPropertiesMethod.isEmpty()&&e.updateViewQueriesMethod.isEmpty()&&e.afterViewLifecycleCallbacksMethod.isEmpty()&&0===e.viewContainers.length&&0===e.viewChildren.length)return t;t.push.apply(t,e.animationBindingsMethod.finish()),t.push.apply(t,e.detectChangesInInputsMethod.finish()),e.viewContainers.forEach(function(e){t.push(e.callMethod("detectChangesInNestedViews",[Af.throwOnChange]).toStmt())});var n=e.updateContentQueriesMethod.finish().concat(e.afterContentLifecycleCallbacksMethod.finish());n.length>0&&t.push(new dd(Xt(Af.throwOnChange),n)),t.push.apply(t,e.detectChangesRenderPropertiesMethod.finish()),e.viewChildren.forEach(function(e){t.push(e.callMethod("internalDetectChanges",[Af.throwOnChange]).toStmt())});var r=e.updateViewQueriesMethod.finish().concat(e.afterViewLifecycleCallbacksMethod.finish());r.length>0&&t.push(new dd(Xt(Af.throwOnChange),r));var i=[],o=Ht(t);return o.has(Af.changed.name)&&i.push(Af.changed.set(Qt(!0)).toDeclStmt(kp)),o.has(Af.changes.name)&&i.push(Af.changes.set($p).toDeclStmt(new bp(Gt(Ke(Mc.SimpleChange))))),i.push.apply(i,cn(t)),i.concat(t)}function Wr(e,t){return e.length>0?e.concat([new ad(t)]):e}function Gr(e){return e.viewType===fo.COMPONENT?Gt(e.component.type):wp}function Yr(e){return e.viewType===fo.COMPONENT?to(e.component.changeDetection)?no.CheckAlways:no.CheckOnce:no.CheckAlways}function Zr(e){var t=qt("cb"),n=qt("ctx"),r=Xr(e.rootNodes,t,n);return new cd("visitRootNodesInternal",[new Hp(t.name,wp),new Hp(n.name,wp)],r)}function Kr(e){var t=qt("nodeIndex"),n=qt("ngContentIndex"),r=qt("cb"),i=qt("ctx"),o=[];return e.nodes.forEach(function(e){e instanceof Lf&&e.component&&e.contentNodesByNgContentIndex.forEach(function(a,s){o.push(new dd(t.equals(Qt(e.nodeIndex)).and(n.equals(Qt(s))),Xr(a,r,i)))})}),new cd("visitProjectableNodesInternal",[new Hp(t.name,xp),new Hp(n.name,xp),new Hp(r.name,wp),new Hp(i.name,wp)],o)}function Xr(e,t,n){var r=[];return e.forEach(function(e){switch(e.type){case Vf.Node:r.push(t.callFn([e.expr,n]).toStmt());break;case Vf.ViewContainer:r.push(t.callFn([e.expr.prop("nativeElement"),n]).toStmt()),r.push(e.expr.callMethod("visitNestedViewRootNodes",[t,n]).toStmt());break;case Vf.NgContent:r.push(Jp.callMethod("visitProjectedNodes",[Qt(e.ngContentIndex),t,n]).toStmt())}}),r}function Jr(e){var t=qt("nodeIndex"),n=[];return e.nodes.forEach(function(e){e instanceof Lf&&e.embeddedView&&n.push(new dd(t.equals(Qt(e.nodeIndex)),[new ad(e.embeddedView.classExpr.instantiate([Pf.viewUtils,Jp,Qt(e.nodeIndex),e.renderNode,e.viewContainer]))]))}),n.length>0&&n.push(new ad($p)),new cd("createEmbeddedViewInternal",[new Hp(t.name,xp)],n,Gt(Ke(Mc.AppView),[wp]))}function Qr(e,t){var n=Qt(Io);switch(t){case Io:return e.equals(n);case Ao:return Qt(!0);default:return e.equals(Qt(t))}}function $r(e){if(e instanceof jl&&e.duration>0&&2==e.keyframes.length){var t=ei(e.keyframes[0])[0],n=ei(e.keyframes[1])[0];return 0===Object.keys(t).length&&0===Object.keys(n).length}return!1}function ei(e){return e.styles.styles}function ti(e,t,n,r,i){var o=new Cm(e);r.forEach(function(e){return o.addOrMergeSummary({symbol:e.symbol,metadata:e.metadata})});for(var a=0;a<o.symbols.length;a++){var s=o.symbols[a];if(!e.isSourceFile(s.filePath)){var u=t.resolveSummary(s);if(!u){var c=n.resolveSymbol(s);c&&(u={symbol:c.symbol,metadata:c.metadata})}u&&o.addOrMergeSummary(u)}}return i.forEach(function(n){if(o.addOrMergeSummary({symbol:n.type.reference,metadata:{__symbolic:"class"},type:n}),n.summaryKind===ba.NgModule){var r=n;r.exportedDirectives.concat(r.exportedPipes).forEach(function(n){var r=n.reference;e.isSourceFile(r.filePath)||o.addOrMergeSummary(t.resolveSummary(r))})}}),o.serialize()}function ni(e,t){return new Sm(e).deserialize(t)}function ri(e){return e.replace(xm,"")+".ngsummary.json"}function ii(e,t){return t.dependencies.forEach(function(t){if(t instanceof Df){var n=t;n.placeholder.reference=e.getStaticSymbol(ai(w(n.comp)),t.name)}else if(t instanceof If){var r=t;r.placeholder.reference=e.getStaticSymbol(ai(w(r.comp)),si(r.comp))}else if(t instanceof Rf){var i=t;i.placeholder.reference=e.getStaticSymbol(ai(w(i.dir)),i.name)}}),t.statements}function oi(e,t,n){return t.dependencies.forEach(function(t){t.valuePlaceholder.reference=e.getStaticSymbol(ui(t.moduleUrl,t.isShimmed,n),t.name)}),t.statements}function ai(e){var t=li(e);return t[0]+".ngfactory"+t[1]}function si(e){return b(e)+"NgFactory"}function ui(e,t,n){return e+(t?".shim":"")+".ngstyle"+n}function ci(e){if(!e.isComponent)throw new Error("Could not compile '"+b(e.type)+"' because it is not a component.")}function li(e){if(e.endsWith(".d.ts"))return[e.slice(0,-5),".ts"];var t=e.lastIndexOf(".");return-1!==t?[e.substring(0,t),e.substring(t)]:[e,""]}function pi(e,t,n){var r=mi(e,t,n);return hi(e,r.ngModules,r.symbolsMissingModule,n)}function di(e,t,n){var r=pi(e,t,n);if(r.symbolsMissingModule&&r.symbolsMissingModule.length){var i=r.symbolsMissingModule.map(function(e){return"Cannot determine the module for class "+e.name+" in "+e.filePath+"!"});throw new Error(i.join("\n"))}return r}function hi(e,t,n,r){var i=new Map;t.forEach(function(e){return i.set(e.type.reference,e)});var o=new Map,a=new Map,s=new Map,u=new Map,c=new Map,l=new Set;e.forEach(function(e){var t=e.filePath;l.add(t),r.isInjectable(e)&&c.set(t,(c.get(t)||[]).concat(e))}),t.forEach(function(e){var t=e.type.reference.filePath;l.add(t),a.set(t,(a.get(t)||[]).concat(e.type.reference)),e.declaredDirectives.forEach(function(t){var n=t.reference.filePath;l.add(n),s.set(n,(s.get(n)||[]).concat(t.reference)),o.set(t.reference,e)}),e.declaredPipes.forEach(function(t){var n=t.reference.filePath;l.add(n),u.set(n,(u.get(n)||[]).concat(t.reference)),o.set(t.reference,e)})});var p=[];return l.forEach(function(e){var t=s.get(e)||[],n=u.get(e)||[],r=a.get(e)||[],i=c.get(e)||[];p.push({srcUrl:e,directives:t,pipes:n,ngModules:r,injectables:i})}),{ngModuleByPipeOrDirective:o,files:p,ngModules:t,symbolsMissingModule:n}}function fi(e,t,n){var r=[];return t.filter(function(e){return n.isSourceFile(e)}).forEach(function(t){e.getSymbolsOf(t).forEach(function(t){var n=e.resolveSymbol(t),i=n.metadata;i&&"error"!=i.__symbolic&&r.push(n.symbol)})}),r}function mi(e,t,n){var r=new Map,i=[],o=new Set,a=function(e){if(r.has(e)||!t.isSourceFile(e.filePath))return!1;var i=n.getNgModuleMetadata(e,!1);return i&&(r.set(i.type.reference,i),i.declaredDirectives.forEach(function(e){return o.add(e.reference)}),i.declaredPipes.forEach(function(e){return o.add(e.reference)}),i.transitiveModule.modules.forEach(function(e){return a(e.reference)})),!!i};e.forEach(function(e){a(e)||!n.isDirective(e)&&!n.isPipe(e)||i.push(e)});var s=i.filter(function(e){return!o.has(e)});return{ngModules:Array.from(r.values()),symbolsMissingModule:s}}function vi(e){return"object"==typeof e&&e.name&&e.filePath}function yi(e){switch(e.message){case"Reference to non-exported class":if(e.context&&e.context.className)return"Reference to a non-exported class "+e.context.className+". Consider exporting the class";break;case"Variable not initialized":return"Only initialized variables and constants can be referenced because the value of this variable is needed by the template compiler";case"Destructuring not supported":return"Referencing an exported destructured variable or constant is not supported by the template compiler. Consider simplifying this to avoid destructuring";case"Could not resolve type":if(e.context&&e.context.typeName)return"Could not resolve type "+e.context.typeName;break;case"Function call not supported":return(e.context&&e.context.name?"Calling function '"+e.context.name+"', f":"F")+"unction calls are not supported. Consider replacing the function or lambda with a reference to an exported function";case"Reference to a local symbol":if(e.context&&e.context.name)return"Reference to a local (non-exported) symbol '"+e.context.name+"'. Consider exporting the symbol"}return e.message}function gi(e){return"Error encountered resolving symbol values statically. "+yi(e)}function _i(e,t){if(!e)return{};var n={};return Object.keys(e).forEach(function(r){var i=t(e[r],r);wi(i)||(Mm.test(r)?Object.defineProperty(n,r,{enumerable:!1,configurable:!0,value:i}):n[r]=i)}),n}function bi(e){return null===e||"function"!=typeof e&&"object"!=typeof e}function wi(e){return e&&"ignore"==e.__symbolic}function ki(e,t,n,r){var i=new Error(e);return i.fileName=t,i.line=n,i.column=r,i}function xi(e,t){var n=e.concat([new ad(qt(t))]),i=new Fm(null,null,null,new Map),o=(new zm).visitAllStatements(n,i);return r(o)?o.value:null}function Ci(e,t,n,i,o){for(var a=i.createChildWihtLocalVars(),s=0;s<e.length;s++)a.vars.set(e[s],t[s]);var u=o.visitAllStatements(n,a);return r(u)?u.value:null}function Si(e,t,n){var r={};e.getters.forEach(function(i){r[i.name]={configurable:!1,get:function(){var r=new Fm(t,this,e.name,t.vars);return Ci([],[],i.body,r,n)}}}),e.methods.forEach(function(i){var o=i.params.map(function(e){return e.name});r[i.name]={writable:!1,configurable:!1,value:function(){for(var r=[],a=0;a<arguments.length;a++)r[a-0]=arguments[a];var s=new Fm(t,this,e.name,t.vars);return Ci(o,r,i.body,s,n)}}});var i=e.constructorMethod.params.map(function(e){return e.name}),o=function(){for(var r=this,o=[],a=0;a<arguments.length;a++)o[a-0]=arguments[a];var s=new Fm(t,this,e.name,t.vars);e.fields.forEach(function(e){r[e.name]=void 0}),Ci(i,o,e.constructorMethod.body,s,n)},a=e.parent?e.parent.visitExpression(n,t):Object;return o.prototype=Object.create(a.prototype,r),o}function Ei(e,t,n,r){return function(){for(var i=[],o=0;o<arguments.length;o++)i[o-0]=arguments[o];return Ci(e,i,t,n,r)}}function Ti(e,t,n,r){var i=n+"\nreturn "+t+"\n//# sourceURL="+e,o=[],a=[];for(var s in r)o.push(s),a.push(r[s]);return(new(Function.bind.apply(Function,[void 0].concat(o.concat(i))))).apply(void 0,a)}function Oi(e,t,n){var r=new Gm,i=wh.createRoot([n]);return r.visitAllStatements(t,i),Ti(e,n,i.toSource(),r.getArgs())}function Pi(e){if(!e.isComponent)throw new Error("Could not compile '"+b(e.type)+"' because it is not a component.")}function Mi(e){return{useDebug:Ai(e.map(function(e){return e.useDebug})),useJit:Ai(e.map(function(e){return e.useJit})),defaultEncapsulation:Ai(e.map(function(e){return e.defaultEncapsulation})),providers:Di(e.map(function(e){return e.providers}))}}function Ai(e){for(var t=e.length-1;t>=0;t--)if(void 0!==e[t])return e[t]}function Di(e){var t=[];return e.forEach(function(e){return e&&t.push.apply(t,e)}),t}var Ii=new t.Version("2.4.10"),Ri=function(){function e(e,t,n){this.value=e,this.ngContentIndex=t,this.sourceSpan=n}return e.prototype.visit=function(e,t){return e.visitText(this,t)},e}(),ji=function(){function e(e,t,n){this.value=e,this.ngContentIndex=t,this.sourceSpan=n}return e.prototype.visit=function(e,t){return e.visitBoundText(this,t)},e}(),Ni=function(){function e(e,t,n){this.name=e,this.value=t,this.sourceSpan=n}return e.prototype.visit=function(e,t){return e.visitAttr(this,t)},e}(),Li=function(){function e(e,t,n,r,i,o,a){this.name=e,this.type=t,this.securityContext=n,this.needsRuntimeSecurityContext=r,this.value=i,this.unit=o,this.sourceSpan=a}return e.prototype.visit=function(e,t){return e.visitElementProperty(this,t)},Object.defineProperty(e.prototype,"isAnimation",{get:function(){return this.type===Zi.Animation},enumerable:!0,configurable:!0}),e}(),Fi=function(){function e(e,t,n,r,i){this.name=e,this.target=t,this.phase=n,this.handler=r,this.sourceSpan=i}return e.calcFullName=function(e,t,n){return t?t+":"+e:n?"@"+e+"."+n:e},e.prototype.visit=function(e,t){return e.visitEvent(this,t)},Object.defineProperty(e.prototype,"fullName",{get:function(){return e.calcFullName(this.name,this.target,this.phase)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isAnimation",{get:function(){return!!this.phase},enumerable:!0,configurable:!0}),e}(),Vi=function(){function e(e,t,n){this.name=e,this.value=t,this.sourceSpan=n}return e.prototype.visit=function(e,t){return e.visitReference(this,t)},e}(),zi=function(){function e(e,t,n){this.name=e,this.value=t,this.sourceSpan=n}return e.prototype.visit=function(e,t){return e.visitVariable(this,t)},e}(),Ui=function(){function e(e,t,n,r,i,o,a,s,u,c,l,p){this.name=e,this.attrs=t,this.inputs=n,this.outputs=r,this.references=i,this.directives=o,this.providers=a,this.hasViewContainer=s,this.children=u,this.ngContentIndex=c,this.sourceSpan=l,this.endSourceSpan=p}return e.prototype.visit=function(e,t){return e.visitElement(this,t)},e}(),Bi=function(){function e(e,t,n,r,i,o,a,s,u,c){this.attrs=e,this.outputs=t,this.references=n,this.variables=r,this.directives=i,this.providers=o,this.hasViewContainer=a,this.children=s,this.ngContentIndex=u,this.sourceSpan=c}return e.prototype.visit=function(e,t){return e.visitEmbeddedTemplate(this,t)},e}(),Hi=function(){function e(e,t,n,r){this.directiveName=e,this.templateName=t,this.value=n,this.sourceSpan=r}return e.prototype.visit=function(e,t){return e.visitDirectiveProperty(this,t)},e}(),qi=function(){function e(e,t,n,r,i){this.directive=e,this.inputs=t,this.hostProperties=n,this.hostEvents=r,this.sourceSpan=i}return e.prototype.visit=function(e,t){return e.visitDirective(this,t)},e}(),Wi=function(){function e(e,t,n,r,i,o,a){this.token=e,this.multiProvider=t,this.eager=n,this.providers=r,this.providerType=i,this.lifecycleHooks=o,this.sourceSpan=a}return e.prototype.visit=function(e,t){return null},e}(),Gi={};Gi.PublicService=0,Gi.PrivateService=1,Gi.Component=2,Gi.Directive=3,Gi.Builtin=4,Gi[Gi.PublicService]="PublicService",Gi[Gi.PrivateService]="PrivateService",Gi[Gi.Component]="Component",Gi[Gi.Directive]="Directive",Gi[Gi.Builtin]="Builtin";var Yi=function(){function e(e,t,n){this.index=e,this.ngContentIndex=t,this.sourceSpan=n}return e.prototype.visit=function(e,t){return e.visitNgContent(this,t)},e}(),Zi={};Zi.Property=0,Zi.Attribute=1,Zi.Class=2,Zi.Style=3,Zi.Animation=4,Zi[Zi.Property]="Property",Zi[Zi.Attribute]="Attribute",Zi[Zi.Class]="Class",Zi[Zi.Style]="Style",Zi[Zi.Animation]="Animation";var Ki=function(){return function(e,t,n){this.filePath=e,this.name=t,this.members=n}}(),Xi=function(){function e(){this.cache=new Map}return e.prototype.get=function(e,t,n){var r='"'+e+'".'+t+((n=n||[]).length?"."+n.join("."):""),i=this.cache.get(r);return i||(i=new Ki(e,t,n),this.cache.set(r,i)),i},e}(),Ji=Object.getPrototypeOf({}),Qi=function(){function e(){}return e.parseIntAutoRadix=function(e){var t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t},e.isNumeric=function(e){return!isNaN(e-parseFloat(e))},e}(),$i=function(){function e(){}return e.merge=function(e,t){for(var n={},r=0,i=Object.keys(e);r<i.length;r++)n[s=i[r]]=e[s];for(var o=0,a=Object.keys(t);o<a.length;o++){var s=a[o];n[s]=t[s]}return n},e.equals=function(e,t){var n=Object.keys(e),r=Object.keys(t);if(n.length!=r.length)return!1;for(var i=0;i<n.length;i++){var o=n[i];if(e[o]!==t[o])return!1}return!0},e}(),eo=function(){function e(){}return e.findLast=function(e,t){for(var n=e.length-1;n>=0;n--)if(t(e[n]))return e[n];return null},e.removeAll=function(e,t){for(var n=0;n<t.length;++n){var r=e.indexOf(t[n]);r>-1&&e.splice(r,1)}},e.remove=function(e,t){var n=e.indexOf(t);return n>-1&&(e.splice(n,1),!0)},e.equals=function(e,t){if(e.length!=t.length)return!1;for(var n=0;n<e.length;++n)if(e[n]!==t[n])return!1;return!0},e.flatten=function(t){return t.reduce(function(t,n){var r=Array.isArray(n)?e.flatten(n):n;return t.concat(r)},[])},e}(),to=t.__core_private__.isDefaultChangeDetectionStrategy,no=t.__core_private__.ChangeDetectorStatus,ro=t.__core_private__.LifecycleHooks,io=t.__core_private__.LIFECYCLE_HOOKS_VALUES,oo=t.__core_private__.ReflectorReader,ao=t.__core_private__.ViewContainer,so=t.__core_private__.CodegenComponentFactoryResolver,uo=t.__core_private__.ComponentRef_,co=t.__core_private__.AppView,lo=t.__core_private__.DebugAppView,po=t.__core_private__.NgModuleInjector,ho=t.__core_private__.registerModuleFactory,fo=t.__core_private__.ViewType,mo=t.__core_private__.view_utils,vo=t.__core_private__.DebugContext,yo=t.__core_private__.StaticNodeDebugInfo,go=t.__core_private__.devModeEqual,_o=t.__core_private__.UNINITIALIZED,bo=t.__core_private__.ValueUnwrapper,wo=t.__core_private__.TemplateRef_,ko=t.__core_private__.Console,xo=t.__core_private__.reflector,Co=t.__core_private__.Reflector,So=t.__core_private__.ReflectionCapabilities,Eo=t.__core_private__.NoOpAnimationPlayer,To=t.__core_private__.AnimationSequencePlayer,Oo=t.__core_private__.AnimationGroupPlayer,Po=t.__core_private__.AnimationKeyframe,Mo=t.__core_private__.AnimationStyles,Ao=t.__core_private__.ANY_STATE,Do=t.__core_private__.DEFAULT_STATE,Io=t.__core_private__.EMPTY_STATE,Ro=t.__core_private__.FILL_STYLE_FLAG,jo=t.__core_private__.prepareFinalAnimationStyles,No=t.__core_private__.balanceAnimationKeyframes,Lo=t.__core_private__.clearStyles,Fo=t.__core_private__.collectAndResolveStyles,Vo=t.__core_private__.renderStyles,zo=t.__core_private__.ComponentStillLoadingError,Uo=t.__core_private__.AnimationTransition,Bo={};Bo.RAW_TEXT=0,Bo.ESCAPABLE_RAW_TEXT=1,Bo.PARSABLE_DATA=2,Bo[Bo.RAW_TEXT]="RAW_TEXT",Bo[Bo.ESCAPABLE_RAW_TEXT]="ESCAPABLE_RAW_TEXT",Bo[Bo.PARSABLE_DATA]="PARSABLE_DATA";var Ho={Aacute:"Á",aacute:"á",Acirc:"Â",acirc:"â",acute:"´",AElig:"Æ",aelig:"æ",Agrave:"À",agrave:"à",alefsym:"ℵ",Alpha:"Α",alpha:"α",amp:"&",and:"∧",ang:"∠",apos:"'",Aring:"Å",aring:"å",asymp:"≈",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",bdquo:"„",Beta:"Β",beta:"β",brvbar:"¦",bull:"•",cap:"∩",Ccedil:"Ç",ccedil:"ç",cedil:"¸",cent:"¢",Chi:"Χ",chi:"χ",circ:"ˆ",clubs:"♣",cong:"≅",copy:"©",crarr:"↵",cup:"∪",curren:"¤",dagger:"†",Dagger:"‡",darr:"↓",dArr:"⇓",deg:"°",Delta:"Δ",delta:"δ",diams:"♦",divide:"÷",Eacute:"É",eacute:"é",Ecirc:"Ê",ecirc:"ê",Egrave:"È",egrave:"è",empty:"∅",emsp:" ",ensp:" ",Epsilon:"Ε",epsilon:"ε",equiv:"≡",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",exist:"∃",fnof:"ƒ",forall:"∀",frac12:"½",frac14:"¼",frac34:"¾",frasl:"⁄",Gamma:"Γ",gamma:"γ",ge:"≥",gt:">",harr:"↔",hArr:"⇔",hearts:"♥",hellip:"…",Iacute:"Í",iacute:"í",Icirc:"Î",icirc:"î",iexcl:"¡",Igrave:"Ì",igrave:"ì",image:"ℑ",infin:"∞",int:"∫",Iota:"Ι",iota:"ι",iquest:"¿",isin:"∈",Iuml:"Ï",iuml:"ï",Kappa:"Κ",kappa:"κ",Lambda:"Λ",lambda:"λ",lang:"⟨",laquo:"«",larr:"←",lArr:"⇐",lceil:"⌈",ldquo:"“",le:"≤",lfloor:"⌊",lowast:"∗",loz:"◊",lrm:"‎",lsaquo:"‹",lsquo:"‘",lt:"<",macr:"¯",mdash:"—",micro:"µ",middot:"·",minus:"−",Mu:"Μ",mu:"μ",nabla:"∇",nbsp:" ",ndash:"–",ne:"≠",ni:"∋",not:"¬",notin:"∉",nsub:"⊄",Ntilde:"Ñ",ntilde:"ñ",Nu:"Ν",nu:"ν",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",OElig:"Œ",oelig:"œ",Ograve:"Ò",ograve:"ò",oline:"‾",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",oplus:"⊕",or:"∨",ordf:"ª",ordm:"º",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ",otimes:"⊗",Ouml:"Ö",ouml:"ö",para:"¶",permil:"‰",perp:"⊥",Phi:"Φ",phi:"φ",Pi:"Π",pi:"π",piv:"ϖ",plusmn:"±",pound:"£",prime:"′",Prime:"″",prod:"∏",prop:"∝",Psi:"Ψ",psi:"ψ",quot:'"',radic:"√",rang:"⟩",raquo:"»",rarr:"→",rArr:"⇒",rceil:"⌉",rdquo:"”",real:"ℜ",reg:"®",rfloor:"⌋",Rho:"Ρ",rho:"ρ",rlm:"‏",rsaquo:"›",rsquo:"’",sbquo:"‚",Scaron:"Š",scaron:"š",sdot:"⋅",sect:"§",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sim:"∼",spades:"♠",sub:"⊂",sube:"⊆",sum:"∑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supe:"⊇",szlig:"ß",Tau:"Τ",tau:"τ",there4:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thinsp:" ",THORN:"Þ",thorn:"þ",tilde:"˜",times:"×",trade:"™",Uacute:"Ú",uacute:"ú",uarr:"↑",uArr:"⇑",Ucirc:"Û",ucirc:"û",Ugrave:"Ù",ugrave:"ù",uml:"¨",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",Uuml:"Ü",uuml:"ü",weierp:"℘",Xi:"Ξ",xi:"ξ",Yacute:"Ý",yacute:"ý",yen:"¥",yuml:"ÿ",Yuml:"Ÿ",Zeta:"Ζ",zeta:"ζ",zwj:"‍",zwnj:"‌"},qo=function(){function e(e){var t=this,n=void 0===e?{}:e,r=n.closedByChildren,i=n.requiredParents,o=n.implicitNamespacePrefix,a=n.contentType,s=void 0===a?Bo.PARSABLE_DATA:a,u=n.closedByParent,c=void 0!==u&&u,l=n.isVoid,p=void 0!==l&&l,d=n.ignoreFirstLf,h=void 0!==d&&d;this.closedByChildren={},this.closedByParent=!1,this.canSelfClose=!1,r&&r.length>0&&r.forEach(function(e){return t.closedByChildren[e]=!0}),this.isVoid=p,this.closedByParent=c||p,i&&i.length>0&&(this.requiredParents={},this.parentToAdd=i[0],i.forEach(function(e){return t.requiredParents[e]=!0})),this.implicitNamespacePrefix=o,this.contentType=s,this.ignoreFirstLf=h}return e.prototype.requireExtraParent=function(e){if(!this.requiredParents)return!1;if(!e)return!0;var t=e.toLowerCase();return 1!=this.requiredParents[t]&&"template"!=t},e.prototype.isClosedByChild=function(e){return this.isVoid||e.toLowerCase()in this.closedByChildren},e}(),Wo={base:new qo({isVoid:!0}),meta:new qo({isVoid:!0}),area:new qo({isVoid:!0}),embed:new qo({isVoid:!0}),link:new qo({isVoid:!0}),img:new qo({isVoid:!0}),input:new qo({isVoid:!0}),param:new qo({isVoid:!0}),hr:new qo({isVoid:!0}),br:new qo({isVoid:!0}),source:new qo({isVoid:!0}),track:new qo({isVoid:!0}),wbr:new qo({isVoid:!0}),p:new qo({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new qo({closedByChildren:["tbody","tfoot"]}),tbody:new qo({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new qo({closedByChildren:["tbody"],closedByParent:!0}),tr:new qo({closedByChildren:["tr"],requiredParents:["tbody","tfoot","thead"],closedByParent:!0}),td:new qo({closedByChildren:["td","th"],closedByParent:!0}),th:new qo({closedByChildren:["td","th"],closedByParent:!0}),col:new qo({requiredParents:["colgroup"],isVoid:!0}),svg:new qo({implicitNamespacePrefix:"svg"}),math:new qo({implicitNamespacePrefix:"math"}),li:new qo({closedByChildren:["li"],closedByParent:!0}),dt:new qo({closedByChildren:["dt","dd"]}),dd:new qo({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new qo({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new qo({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new qo({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new qo({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new qo({closedByChildren:["optgroup"],closedByParent:!0}),option:new qo({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new qo({ignoreFirstLf:!0}),listing:new qo({ignoreFirstLf:!0}),style:new qo({contentType:Bo.RAW_TEXT}),script:new qo({contentType:Bo.RAW_TEXT}),title:new qo({contentType:Bo.ESCAPABLE_RAW_TEXT}),textarea:new qo({contentType:Bo.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})},Go=new qo,Yo=new RegExp("(\\:not\\()|([-\\w]+)|(?:\\.([-\\w]+))|(?:\\[([-.\\w*]+)(?:=([^\\]]*))?\\])|(\\))|(\\s*,\\s*)","g"),Zo=function(){function e(){this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}return e.parse=function(t){var n,r=[],i=function(e,t){t.notSelectors.length>0&&!t.element&&0==t.classNames.length&&0==t.attrs.length&&(t.element="*"),e.push(t)},o=new e,a=o,s=!1;for(Yo.lastIndex=0;n=Yo.exec(t);){if(n[1]){if(s)throw new Error("Nesting :not is not allowed in a selector");s=!0,a=new e,o.notSelectors.push(a)}if(n[2]&&a.setElement(n[2]),n[3]&&a.addClassName(n[3]),n[4]&&a.addAttribute(n[4],n[5]),n[6]&&(s=!1,a=o),n[7]){if(s)throw new Error("Multiple selectors in :not are not supported");i(r,o),o=a=new e}}return i(r,o),r},e.prototype.isElementSelector=function(){return this.hasElementSelector()&&0==this.classNames.length&&0==this.attrs.length&&0===this.notSelectors.length},e.prototype.hasElementSelector=function(){return!!this.element},e.prototype.setElement=function(e){void 0===e&&(e=null),this.element=e},e.prototype.getMatchingElementTemplate=function(){for(var e=this.element||"div",t=this.classNames.length>0?' class="'+this.classNames.join(" ")+'"':"",n="",r=0;r<this.attrs.length;r+=2)n+=" "+this.attrs[r]+(""!==this.attrs[r+1]?'="'+this.attrs[r+1]+'"':"");return h(e).isVoid?"<"+e+t+n+"/>":"<"+e+t+n+"></"+e+">"},e.prototype.addAttribute=function(e,t){void 0===t&&(t=""),this.attrs.push(e,t&&t.toLowerCase()||"")},e.prototype.addClassName=function(e){this.classNames.push(e.toLowerCase())},e.prototype.toString=function(){var e=this.element||"";if(this.classNames&&this.classNames.forEach(function(t){return e+="."+t}),this.attrs)for(var t=0;t<this.attrs.length;t+=2){var n=this.attrs[t],r=this.attrs[t+1];e+="["+n+(r?"="+r:"")+"]"}return this.notSelectors.forEach(function(t){return e+=":not("+t+")"}),e},e}(),Ko=function(){function e(){this._elementMap=new Map,this._elementPartialMap=new Map,this._classMap=new Map,this._classPartialMap=new Map,this._attrValueMap=new Map,this._attrValuePartialMap=new Map,this._listContexts=[]}return e.createNotMatcher=function(t){var n=new e;return n.addSelectables(t,null),n},e.prototype.addSelectables=function(e,t){var n=null;e.length>1&&(n=new Xo(e),this._listContexts.push(n));for(var r=0;r<e.length;r++)this._addSelectable(e[r],t,n)},e.prototype._addSelectable=function(e,t,n){var r=this,i=e.element,o=e.classNames,a=e.attrs,s=new Jo(e,t,n);if(i&&((u=0===a.length&&0===o.length)?this._addTerminal(r._elementMap,i,s):r=this._addPartial(r._elementPartialMap,i)),o)for(l=0;l<o.length;l++){var u=0===a.length&&l===o.length-1,c=o[l];u?this._addTerminal(r._classMap,c,s):r=this._addPartial(r._classPartialMap,c)}if(a)for(var l=0;l<a.length;l+=2){var u=l===a.length-2,p=a[l],d=a[l+1];if(u){var h=r._attrValueMap,f=h.get(p);f||(f=new Map,h.set(p,f)),this._addTerminal(f,d,s)}else{var m=r._attrValuePartialMap,v=m.get(p);v||(v=new Map,m.set(p,v)),r=this._addPartial(v,d)}}},e.prototype._addTerminal=function(e,t,n){var r=e.get(t);r||(r=[],e.set(t,r)),r.push(n)},e.prototype._addPartial=function(t,n){var r=t.get(n);return r||(r=new e,t.set(n,r)),r},e.prototype.match=function(e,t){for(var n=!1,r=e.element,i=e.classNames,o=e.attrs,a=0;a<this._listContexts.length;a++)this._listContexts[a].alreadyMatched=!1;if(n=this._matchTerminal(this._elementMap,r,e,t)||n,n=this._matchPartial(this._elementPartialMap,r,e,t)||n,i)for(a=0;a<i.length;a++){var s=i[a];n=this._matchTerminal(this._classMap,s,e,t)||n,n=this._matchPartial(this._classPartialMap,s,e,t)||n}if(o)for(a=0;a<o.length;a+=2){var u=o[a],c=o[a+1],l=this._attrValueMap.get(u);c&&(n=this._matchTerminal(l,"",e,t)||n),n=this._matchTerminal(l,c,e,t)||n;var p=this._attrValuePartialMap.get(u);c&&(n=this._matchPartial(p,"",e,t)||n),n=this._matchPartial(p,c,e,t)||n}return n},e.prototype._matchTerminal=function(e,t,n,r){if(!e||"string"!=typeof t)return!1;var i=e.get(t)||[],o=e.get("*");if(o&&(i=i.concat(o)),0===i.length)return!1;for(var a=!1,s=0;s<i.length;s++)a=i[s].finalize(n,r)||a;return a},e.prototype._matchPartial=function(e,t,n,r){if(!e||"string"!=typeof t)return!1;var i=e.get(t);return!!i&&i.match(n,r)},e}(),Xo=function(){return function(e){this.selectors=e,this.alreadyMatched=!1}}(),Jo=function(){function e(e,t,n){this.selector=e,this.cbContext=t,this.listContext=n,this.notSelectors=e.notSelectors}return e.prototype.finalize=function(e,t){var n=!0;return!(this.notSelectors.length>0)||this.listContext&&this.listContext.alreadyMatched||(n=!Ko.createNotMatcher(this.notSelectors).match(e,null)),!n||!t||this.listContext&&this.listContext.alreadyMatched||(this.listContext&&(this.listContext.alreadyMatched=!0),t(this.selector,this.cbContext)),n},e}(),Qo=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},$o=function(e){function t(t){e.call(this,t);var n=new Error(t);this._nativeError=n}return Qo(t,e),Object.defineProperty(t.prototype,"message",{get:function(){return this._nativeError.message},set:function(e){this._nativeError.message=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this._nativeError.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"stack",{get:function(){return this._nativeError.stack},set:function(e){this._nativeError.stack=e},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this._nativeError.toString()},t}(Error),ea=(function(e){function t(t,n){e.call(this,t+" caused by: "+(n instanceof Error?n.message:n)),this.originalError=n}Qo(t,e),Object.defineProperty(t.prototype,"stack",{get:function(){return(this.originalError instanceof Error?this.originalError:this._nativeError).stack},enumerable:!0,configurable:!0})}($o),this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),ta="",na=/-+([a-z0-9])/g,ra=function(){function e(){}return e.prototype.visitArray=function(e,t){var n=this;return e.map(function(e){return g(e,n,t)})},e.prototype.visitStringMap=function(e,t){var n=this,r={};return Object.keys(e).forEach(function(i){r[i]=g(e[i],n,t)}),r},e.prototype.visitPrimitive=function(e,t){return e},e.prototype.visitOther=function(e,t){return e},e}(),ia=function(){return function(e,t){void 0===t&&(t=null),this.syncResult=e,this.asyncResult=t,t||(this.asyncResult=Promise.resolve(e))}}(),oa=function(e){function t(){e.apply(this,arguments)}return ea(t,e),t}($o),aa=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},sa=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/,ua=function(){return function(e,t){void 0===e&&(e=null),void 0===t&&(t=null),this.name=e,this.definitions=t}}(),ca=function(){return function(){}}(),la=function(e){function t(t,n){e.call(this),this.stateNameExpr=t,this.styles=n}return aa(t,e),t}(ca),pa=function(e){function t(t,n){e.call(this),this.stateChangeExpr=t,this.steps=n}return aa(t,e),t}(ca),da=function(){return function(){}}(),ha=function(e){function t(t){void 0===t&&(t=[]),e.call(this),this.steps=t}return aa(t,e),t}(da),fa=function(e){function t(t,n){void 0===n&&(n=null),e.call(this),this.offset=t,this.styles=n}return aa(t,e),t}(da),ma=function(e){function t(t,n){void 0===t&&(t=0),void 0===n&&(n=null),e.call(this),this.timings=t,this.styles=n}return aa(t,e),t}(da),va=function(e){function t(t){void 0===t&&(t=null),e.call(this),this.steps=t}return aa(t,e),t}(da),ya=function(e){function t(t){void 0===t&&(t=null),e.call(this,t)}return aa(t,e),t}(va),ga=function(e){function t(t){void 0===t&&(t=null),e.call(this,t)}return aa(t,e),t}(va),_a=0,ba={};ba.Pipe=0,ba.Directive=1,ba.NgModule=2,ba.Injectable=3,ba[ba.Pipe]="Pipe",ba[ba.Directive]="Directive",ba[ba.NgModule]="NgModule",ba[ba.Injectable]="Injectable";var wa=function(){return function(e){var t=void 0===e?{}:e,n=t.moduleUrl,r=t.styles,i=t.styleUrls;this.moduleUrl=n,this.styles=S(r),this.styleUrls=S(i)}}(),ka=function(){function e(e){var t=void 0===e?{}:e,n=t.encapsulation,r=t.template,i=t.templateUrl,o=t.styles,a=t.styleUrls,s=t.externalStylesheets,u=t.animations,c=t.ngContentSelectors,l=t.interpolation;if(this.encapsulation=n,this.template=r,this.templateUrl=i,this.styles=S(o),this.styleUrls=S(a),this.externalStylesheets=S(s),this.animations=u?eo.flatten(u):[],this.ngContentSelectors=c||[],l&&2!=l.length)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=l}return e.prototype.toSummary=function(){return{animations:this.animations.map(function(e){return e.name}),ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation}},e}(),xa=function(){function e(e){var t=void 0===e?{}:e,n=t.isHost,r=t.type,i=t.isComponent,o=t.selector,a=t.exportAs,s=t.changeDetection,u=t.inputs,c=t.outputs,l=t.hostListeners,p=t.hostProperties,d=t.hostAttributes,h=t.providers,f=t.viewProviders,m=t.queries,v=t.viewQueries,y=t.entryComponents,g=t.template;this.isHost=!!n,this.type=r,this.isComponent=i,this.selector=o,this.exportAs=a,this.changeDetection=s,this.inputs=u,this.outputs=c,this.hostListeners=l,this.hostProperties=p,this.hostAttributes=d,this.providers=S(h),this.viewProviders=S(f),this.queries=S(m),this.viewQueries=S(v),this.entryComponents=S(y),this.template=g}return e.create=function(t){var n=void 0===t?{}:t,i=n.isHost,o=n.type,a=n.isComponent,s=n.selector,u=n.exportAs,c=n.changeDetection,l=n.inputs,p=n.outputs,d=n.host,h=n.providers,f=n.viewProviders,v=n.queries,y=n.viewQueries,g=n.entryComponents,_=n.template,b={},w={},k={};r(d)&&Object.keys(d).forEach(function(e){var t=d[e],n=e.match(sa);null===n?k[e]=t:r(n[1])?w[n[1]]=t:r(n[2])&&(b[n[2]]=t)});var x={};r(l)&&l.forEach(function(e){var t=m(e,[e,e]);x[t[0]]=t[1]});var C={};return r(p)&&p.forEach(function(e){var t=m(e,[e,e]);C[t[0]]=t[1]}),new e({isHost:i,type:o,isComponent:!!a,selector:s,exportAs:u,changeDetection:c,inputs:x,outputs:C,hostListeners:b,hostProperties:w,hostAttributes:k,providers:h,viewProviders:f,queries:v,viewQueries:y,entryComponents:g,template:_})},e.prototype.toSummary=function(){return{summaryKind:ba.Directive,type:this.type,isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,providers:this.providers,viewProviders:this.viewProviders,queries:this.queries,entryComponents:this.entryComponents,changeDetection:this.changeDetection,template:this.template&&this.template.toSummary()}},e}(),Ca=function(){function e(e){var t=void 0===e?{}:e,n=t.type,r=t.name,i=t.pure;this.type=n,this.name=r,this.pure=!!i}return e.prototype.toSummary=function(){return{summaryKind:ba.Pipe,type:this.type,name:this.name,pure:this.pure}},e}(),Sa=function(){function e(e){var t=void 0===e?{}:e,n=t.type,r=t.providers,i=t.declaredDirectives,o=t.exportedDirectives,a=t.declaredPipes,s=t.exportedPipes,u=t.entryComponents,c=t.bootstrapComponents,l=t.importedModules,p=t.exportedModules,d=t.schemas,h=t.transitiveModule,f=t.id;this.type=n,this.declaredDirectives=S(i),this.exportedDirectives=S(o),this.declaredPipes=S(a),this.exportedPipes=S(s),this.providers=S(r),this.entryComponents=S(u),this.bootstrapComponents=S(c),this.importedModules=S(l),this.exportedModules=S(p),this.schemas=S(d),this.id=f,this.transitiveModule=h}return e.prototype.toSummary=function(){return{summaryKind:ba.NgModule,type:this.type,entryComponents:this.transitiveModule.entryComponents,providers:this.transitiveModule.providers,modules:this.transitiveModule.modules,exportedDirectives:this.transitiveModule.exportedDirectives,exportedPipes:this.transitiveModule.exportedPipes}},e}(),Ea=function(){function e(){this.directivesSet=new Set,this.directives=[],this.exportedDirectivesSet=new Set,this.exportedDirectives=[],this.pipesSet=new Set,this.pipes=[],this.exportedPipesSet=new Set,this.exportedPipes=[],this.modulesSet=new Set,this.modules=[],this.entryComponentsSet=new Set,this.entryComponents=[],this.providers=[]}return e.prototype.addProvider=function(e,t){this.providers.push({provider:e,module:t})},e.prototype.addDirective=function(e){this.directivesSet.has(e.reference)||(this.directivesSet.add(e.reference),this.directives.push(e))},e.prototype.addExportedDirective=function(e){this.exportedDirectivesSet.has(e.reference)||(this.exportedDirectivesSet.add(e.reference),this.exportedDirectives.push(e))},e.prototype.addPipe=function(e){this.pipesSet.has(e.reference)||(this.pipesSet.add(e.reference),this.pipes.push(e))},e.prototype.addExportedPipe=function(e){this.exportedPipesSet.has(e.reference)||(this.exportedPipesSet.add(e.reference),this.exportedPipes.push(e))},e.prototype.addModule=function(e){this.modulesSet.has(e.reference)||(this.modulesSet.add(e.reference),this.modules.push(e))},e.prototype.addEntryComponent=function(e){this.entryComponentsSet.has(e.reference)||(this.entryComponentsSet.add(e.reference),this.entryComponents.push(e))},e}(),Ta=function(){return function(e,t){var n=t.useClass,r=t.useValue,i=t.useExisting,o=t.useFactory,a=t.deps,s=t.multi;this.token=e,this.useClass=n,this.useValue=r,this.useExisting=i,this.useFactory=o,this.dependencies=a,this.multi=!!s}}(),Oa=0,Pa=9,Ma=10,Aa=11,Da=12,Ia=13,Ra=32,ja=34,Na=36,La=39,Fa=43,Va=45,za=47,Ua=59,Ba=61,Ha=62,qa=48,Wa=57,Ga=65,Ya=69,Za=70,Ka=90,Xa=95,Ja=97,Qa=101,$a=102,es=110,ts=114,ns=116,rs=118,is=122,os=123,as=160,ss=96,us=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//],cs=function(){function e(e,t){this.start=e,this.end=t}return e.fromArray=function(t){return t?(D("interpolation",t),new e(t[0],t[1])):ls},e}(),ls=new cs("{{","}}"),ps=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},ds=function(){return function(e,t,n,r){this.input=t,this.errLocation=n,this.ctxLocation=r,this.message="Parser Error: "+e+" "+n+" ["+t+"] in "+r}}(),hs=function(){return function(e,t){this.start=e,this.end=t}}(),fs=function(){function e(e){this.span=e}return e.prototype.visit=function(e,t){return void 0===t&&(t=null),null},e.prototype.toString=function(){return"AST"},e}(),ms=function(e){function t(t,n,r,i){e.call(this,t),this.prefix=n,this.uninterpretedExpression=r,this.location=i}return ps(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitQuote(this,t)},t.prototype.toString=function(){return"Quote"},t}(fs),vs=function(e){function t(){e.apply(this,arguments)}return ps(t,e),t.prototype.visit=function(e,t){void 0===t&&(t=null)},t}(fs),ys=function(e){function t(){e.apply(this,arguments)}return ps(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitImplicitReceiver(this,t)},t}(fs),gs=function(e){function t(t,n){e.call(this,t),this.expressions=n}return ps(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitChain(this,t)},t}(fs),_s=function(e){function t(t,n,r,i){e.call(this,t),this.condition=n,this.trueExp=r,this.falseExp=i}return ps(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitConditional(this,t)},t}(fs),bs=function(e){function t(t,n,r){e.call(this,t),this.receiver=n,this.name=r}return ps(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitPropertyRead(this,t)},t}(fs),ws=function(e){function t(t,n,r,i){e.call(this,t),this.receiver=n,this.name=r,this.value=i}return ps(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitPropertyWrite(this,t)},t}(fs),ks=function(e){function t(t,n,r){e.call(this,t),this.receiver=n,this.name=r}return ps(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitSafePropertyRead(this,t)},t}(fs),xs=function(e){function t(t,n,r){e.call(this,t),this.obj=n,this.key=r}return ps(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitKeyedRead(this,t)},t}(fs),Cs=function(e){function t(t,n,r,i){e.call(this,t),this.obj=n,this.key=r,this.value=i}return ps(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitKeyedWrite(this,t)},t}(fs),Ss=function(e){function t(t,n,r,i){e.call(this,t),this.exp=n,this.name=r,this.args=i}return ps(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitPipe(this,t)},t}(fs),Es=function(e){function t(t,n){e.call(this,t),this.value=n}return ps(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitLiteralPrimitive(this,t)},t}(fs),Ts=function(e){function t(t,n){e.call(this,t),this.expressions=n}return ps(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitLiteralArray(this,t)},t}(fs),Os=function(e){function t(t,n,r){e.call(this,t),this.keys=n,this.values=r}return ps(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitLiteralMap(this,t)},t}(fs),Ps=function(e){function t(t,n,r){e.call(this,t),this.strings=n,this.expressions=r}return ps(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitInterpolation(this,t)},t}(fs),Ms=function(e){function t(t,n,r,i){e.call(this,t),this.operation=n,this.left=r,this.right=i}return ps(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitBinary(this,t)},t}(fs),As=function(e){function t(t,n){e.call(this,t),this.expression=n}return ps(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitPrefixNot(this,t)},t}(fs),Ds=function(e){function t(t,n,r,i){e.call(this,t),this.receiver=n,this.name=r,this.args=i}return ps(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitMethodCall(this,t)},t}(fs),Is=function(e){function t(t,n,r,i){e.call(this,t),this.receiver=n,this.name=r,this.args=i}return ps(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitSafeMethodCall(this,t)},t}(fs),Rs=function(e){function t(t,n,r){e.call(this,t),this.target=n,this.args=r}return ps(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitFunctionCall(this,t)},t}(fs),js=function(e){function t(t,n,r,o){e.call(this,new hs(0,i(n)?0:n.length)),this.ast=t,this.source=n,this.location=r,this.errors=o}return ps(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),this.ast.visit(e,t)},t.prototype.toString=function(){return this.source+" in "+this.location},t}(fs),Ns=function(){return function(e,t,n,r,i){this.span=e,this.key=t,this.keyIsVar=n,this.name=r,this.expression=i}}(),Ls=function(){function e(){}return e.prototype.visitBinary=function(e,t){return e.left.visit(this),e.right.visit(this),null},e.prototype.visitChain=function(e,t){return this.visitAll(e.expressions,t)},e.prototype.visitConditional=function(e,t){return e.condition.visit(this),e.trueExp.visit(this),e.falseExp.visit(this),null},e.prototype.visitPipe=function(e,t){return e.exp.visit(this),this.visitAll(e.args,t),null},e.prototype.visitFunctionCall=function(e,t){return e.target.visit(this),this.visitAll(e.args,t),null},e.prototype.visitImplicitReceiver=function(e,t){return null},e.prototype.visitInterpolation=function(e,t){return this.visitAll(e.expressions,t)},e.prototype.visitKeyedRead=function(e,t){return e.obj.visit(this),e.key.visit(this),null},e.prototype.visitKeyedWrite=function(e,t){return e.obj.visit(this),e.key.visit(this),e.value.visit(this),null},e.prototype.visitLiteralArray=function(e,t){return this.visitAll(e.expressions,t)},e.prototype.visitLiteralMap=function(e,t){return this.visitAll(e.values,t)},e.prototype.visitLiteralPrimitive=function(e,t){return null},e.prototype.visitMethodCall=function(e,t){return e.receiver.visit(this),this.visitAll(e.args,t)},e.prototype.visitPrefixNot=function(e,t){return e.expression.visit(this),null},e.prototype.visitPropertyRead=function(e,t){return e.receiver.visit(this),null},e.prototype.visitPropertyWrite=function(e,t){return e.receiver.visit(this),e.value.visit(this),null},e.prototype.visitSafePropertyRead=function(e,t){return e.receiver.visit(this),null},e.prototype.visitSafeMethodCall=function(e,t){return e.receiver.visit(this),this.visitAll(e.args,t)},e.prototype.visitAll=function(e,t){var n=this;return e.forEach(function(e){return e.visit(n,t)}),null},e.prototype.visitQuote=function(e,t){return null},e}(),Fs=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},Vs=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},zs={};zs.Character=0,zs.Identifier=1,zs.Keyword=2,zs.String=3,zs.Operator=4,zs.Number=5,zs.Error=6,zs[zs.Character]="Character",zs[zs.Identifier]="Identifier",zs[zs.Keyword]="Keyword",zs[zs.String]="String",zs[zs.Operator]="Operator",zs[zs.Number]="Number",zs[zs.Error]="Error";var Us=["var","let","null","undefined","true","false","if","else","this"],Bs=function(){function e(){}return e.prototype.tokenize=function(e){for(var t=new Ws(e),n=[],r=t.scanToken();null!=r;)n.push(r),r=t.scanToken();return n},e=Fs([M(),Vs("design:paramtypes",[])],e)}(),Hs=function(){function e(e,t,n,r){this.index=e,this.type=t,this.numValue=n,this.strValue=r}return e.prototype.isCharacter=function(e){return this.type==zs.Character&&this.numValue==e},e.prototype.isNumber=function(){return this.type==zs.Number},e.prototype.isString=function(){return this.type==zs.String},e.prototype.isOperator=function(e){return this.type==zs.Operator&&this.strValue==e},e.prototype.isIdentifier=function(){return this.type==zs.Identifier},e.prototype.isKeyword=function(){return this.type==zs.Keyword},e.prototype.isKeywordLet=function(){return this.type==zs.Keyword&&"let"==this.strValue},e.prototype.isKeywordNull=function(){return this.type==zs.Keyword&&"null"==this.strValue},e.prototype.isKeywordUndefined=function(){return this.type==zs.Keyword&&"undefined"==this.strValue},e.prototype.isKeywordTrue=function(){return this.type==zs.Keyword&&"true"==this.strValue},e.prototype.isKeywordFalse=function(){return this.type==zs.Keyword&&"false"==this.strValue},e.prototype.isKeywordThis=function(){return this.type==zs.Keyword&&"this"==this.strValue},e.prototype.isError=function(){return this.type==zs.Error},e.prototype.toNumber=function(){return this.type==zs.Number?this.numValue:-1},e.prototype.toString=function(){switch(this.type){case zs.Character:case zs.Identifier:case zs.Keyword:case zs.Operator:case zs.String:case zs.Error:return this.strValue;case zs.Number:return this.numValue.toString();default:return null}},e}(),qs=new Hs(-1,zs.Character,0,""),Ws=function(){function e(e){this.input=e,this.peek=0,this.index=-1,this.length=e.length,this.advance()}return e.prototype.advance=function(){this.peek=++this.index>=this.length?Oa:this.input.charCodeAt(this.index)},e.prototype.scanToken=function(){for(var e=this.input,t=this.length,n=this.peek,r=this.index;n<=Ra;){if(++r>=t){n=Oa;break}n=e.charCodeAt(r)}if(this.peek=n,this.index=r,r>=t)return null;if(z(n))return this.scanIdentifier();if(T(n))return this.scanNumber(r);var i=r;switch(n){case 46:return this.advance(),T(this.peek)?this.scanNumber(i):I(i,46);case 40:case 41:case os:case 125:case 91:case 93:case 44:case 58:case Ua:return this.scanCharacter(i,n);case La:case ja:return this.scanString();case 35:case Fa:case Va:case 42:case za:case 37:case 94:return this.scanOperator(i,String.fromCharCode(n));case 63:return this.scanComplexOperator(i,"?",46,".");case 60:case Ha:return this.scanComplexOperator(i,String.fromCharCode(n),Ba,"=");case 33:case Ba:return this.scanComplexOperator(i,String.fromCharCode(n),Ba,"=",Ba,"=");case 38:return this.scanComplexOperator(i,"&",38,"&");case 124:return this.scanComplexOperator(i,"|",124,"|");case as:for(;E(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error("Unexpected character ["+String.fromCharCode(n)+"]",0)},e.prototype.scanCharacter=function(e,t){return this.advance(),I(e,t)},e.prototype.scanOperator=function(e,t){return this.advance(),N(e,t)},e.prototype.scanComplexOperator=function(e,t,n,r,i,o){this.advance();var a=t;return this.peek==n&&(this.advance(),a+=r),null!=i&&this.peek==i&&(this.advance(),a+=o),N(e,a)},e.prototype.scanIdentifier=function(){var e=this.index;for(this.advance();B(this.peek);)this.advance();var t=this.input.substring(e,this.index);return Us.indexOf(t)>-1?j(e,t):R(e,t)},e.prototype.scanNumber=function(e){var t=this.index===e;for(this.advance();;){if(T(this.peek));else if(46==this.peek)t=!1;else{if(!H(this.peek))break;if(this.advance(),q(this.peek)&&this.advance(),!T(this.peek))return this.error("Invalid exponent",-1);t=!1}this.advance()}var n=this.input.substring(e,this.index);return F(e,t?Qi.parseIntAutoRadix(n):parseFloat(n))},e.prototype.scanString=function(){var e=this.index,t=this.peek;this.advance();for(var n="",r=this.index,i=this.input;this.peek!=t;)if(92==this.peek){n+=i.substring(r,this.index),this.advance();var o=void 0;if(117==this.peek){var a=i.substring(this.index+1,this.index+5);if(!/^[0-9a-f]+$/i.test(a))return this.error("Invalid unicode escape [\\u"+a+"]",0);o=parseInt(a,16);for(var s=0;s<5;s++)this.advance()}else o=G(this.peek),this.advance();n+=String.fromCharCode(o),r=this.index}else{if(this.peek==Oa)return this.error("Unterminated quote",0);this.advance()}var u=i.substring(r,this.index);return this.advance(),L(e,n+u)},e.prototype.error=function(e,t){var n=this.index+t;return V(n,"Lexer Error: "+e+" at column "+n+" in expression ["+this.input+"]")},e}(),Gs=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},Ys=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Zs=function(){return function(e,t,n){this.strings=e,this.expressions=t,this.offsets=n}}(),Ks=function(){return function(e,t,n){this.templateBindings=e,this.warnings=t,this.errors=n}}(),Xs=function(){function e(e){this._lexer=e,this.errors=[]}return e.prototype.parseAction=function(e,t,n){void 0===n&&(n=ls),this._checkNoInterpolation(e,t,n);var r=this._stripComments(e),i=this._lexer.tokenize(this._stripComments(e)),o=new Js(e,t,i,r.length,!0,this.errors,e.length-r.length).parseChain();return new js(o,e,t,this.errors)},e.prototype.parseBinding=function(e,t,n){void 0===n&&(n=ls);var r=this._parseBindingAst(e,t,n);return new js(r,e,t,this.errors)},e.prototype.parseSimpleBinding=function(e,t,n){void 0===n&&(n=ls);var r=this._parseBindingAst(e,t,n),i=Qs.check(r);return i.length>0&&this._reportError("Host binding expression cannot contain "+i.join(" "),e,t),new js(r,e,t,this.errors)},e.prototype._reportError=function(e,t,n,r){this.errors.push(new ds(e,t,n,r))},e.prototype._parseBindingAst=function(e,t,n){var i=this._parseQuote(e,t);if(r(i))return i;this._checkNoInterpolation(e,t,n);var o=this._stripComments(e),a=this._lexer.tokenize(o);return new Js(e,t,a,o.length,!1,this.errors,e.length-o.length).parseChain()},e.prototype._parseQuote=function(e,t){if(i(e))return null;var n=e.indexOf(":");if(-1==n)return null;var r=e.substring(0,n).trim();if(!U(r))return null;var o=e.substring(n+1);return new ms(new hs(0,e.length),r,o,t)},e.prototype.parseTemplateBindings=function(e,t,n){var r=this._lexer.tokenize(t);if(e){var i=this._lexer.tokenize(e).map(function(e){return e.index=0,e});r.unshift.apply(r,i)}return new Js(t,n,r,t.length,!1,this.errors,0).parseTemplateBindings()},e.prototype.parseInterpolation=function(e,t,n){void 0===n&&(n=ls);var r=this.splitInterpolation(e,t,n);if(null==r)return null;for(var o=[],a=0;a<r.expressions.length;++a){var s=r.expressions[a],u=this._stripComments(s),c=this._lexer.tokenize(this._stripComments(r.expressions[a])),l=new Js(e,t,c,u.length,!1,this.errors,r.offsets[a]+(s.length-u.length)).parseChain();o.push(l)}return new js(new Ps(new hs(0,i(e)?0:e.length),r.strings,o),e,t,this.errors)},e.prototype.splitInterpolation=function(e,t,n){void 0===n&&(n=ls);var r=Y(n),i=e.split(r);if(i.length<=1)return null;for(var o=[],a=[],s=[],u=0,c=0;c<i.length;c++){var l=i[c];c%2==0?(o.push(l),u+=l.length):l.trim().length>0?(u+=n.start.length,a.push(l),s.push(u),u+=l.length+n.end.length):(this._reportError("Blank expressions are not allowed in interpolated strings",e,"at column "+this._findInterpolationErrorColumn(i,c,n)+" in",t),a.push("$implict"),s.push(u))}return new Zs(o,a,s)},e.prototype.wrapLiteralPrimitive=function(e,t){return new js(new Es(new hs(0,i(e)?0:e.length),e),e,t,this.errors)},e.prototype._stripComments=function(e){var t=this._commentStart(e);return r(t)?e.substring(0,t).trim():e},e.prototype._commentStart=function(e){for(var t=null,n=0;n<e.length-1;n++){var r=e.charCodeAt(n),o=e.charCodeAt(n+1);if(r===za&&o==za&&i(t))return n;t===r?t=null:i(t)&&W(r)&&(t=r)}return null},e.prototype._checkNoInterpolation=function(e,t,n){var r=Y(n),i=e.split(r);i.length>1&&this._reportError("Got interpolation ("+n.start+n.end+") where expression was expected",e,"at column "+this._findInterpolationErrorColumn(i,1,n)+" in",t)},e.prototype._findInterpolationErrorColumn=function(e,t,n){for(var r="",i=0;i<t;i++)r+=i%2==0?e[i]:""+n.start+e[i]+n.end;return r.length},e=Gs([M(),Ys("design:paramtypes",[Bs])],e)}(),Js=function(){function e(e,t,n,r,i,o,a){this.input=e,this.location=t,this.tokens=n,this.inputLength=r,this.parseAction=i,this.errors=o,this.offset=a,this.rparensExpected=0,this.rbracketsExpected=0,this.rbracesExpected=0,this.index=0}return e.prototype.peek=function(e){var t=this.index+e;return t<this.tokens.length?this.tokens[t]:qs},Object.defineProperty(e.prototype,"next",{get:function(){return this.peek(0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputIndex",{get:function(){return this.index<this.tokens.length?this.next.index+this.offset:this.inputLength+this.offset},enumerable:!0,configurable:!0}),e.prototype.span=function(e){return new hs(e,this.inputIndex)},e.prototype.advance=function(){this.index++},e.prototype.optionalCharacter=function(e){return!!this.next.isCharacter(e)&&(this.advance(),!0)},e.prototype.peekKeywordLet=function(){return this.next.isKeywordLet()},e.prototype.expectCharacter=function(e){this.optionalCharacter(e)||this.error("Missing expected "+String.fromCharCode(e))},e.prototype.optionalOperator=function(e){return!!this.next.isOperator(e)&&(this.advance(),!0)},e.prototype.expectOperator=function(e){this.optionalOperator(e)||this.error("Missing expected operator "+e)},e.prototype.expectIdentifierOrKeyword=function(){var e=this.next;return e.isIdentifier()||e.isKeyword()?(this.advance(),e.toString()):(this.error("Unexpected token "+e+", expected identifier or keyword"),"")},e.prototype.expectIdentifierOrKeywordOrString=function(){var e=this.next;return e.isIdentifier()||e.isKeyword()||e.isString()?(this.advance(),e.toString()):(this.error("Unexpected token "+e+", expected identifier, keyword, or string"),"")},e.prototype.parseChain=function(){for(var e=[],t=this.inputIndex;this.index<this.tokens.length;){var n=this.parsePipe();if(e.push(n),this.optionalCharacter(Ua))for(this.parseAction||this.error("Binding expression cannot contain chained expression");this.optionalCharacter(Ua););else this.index<this.tokens.length&&this.error("Unexpected token '"+this.next+"'")}return 0==e.length?new vs(this.span(t)):1==e.length?e[0]:new gs(this.span(t),e)},e.prototype.parsePipe=function(){var e=this.parseExpression();if(this.optionalOperator("|")){this.parseAction&&this.error("Cannot have a pipe in an action expression");do{for(var t=this.expectIdentifierOrKeyword(),n=[];this.optionalCharacter(58);)n.push(this.parseExpression());e=new Ss(this.span(e.span.start),e,t,n)}while(this.optionalOperator("|"))}return e},e.prototype.parseExpression=function(){return this.parseConditional()},e.prototype.parseConditional=function(){var e=this.inputIndex,t=this.parseLogicalOr();if(this.optionalOperator("?")){var n=this.parsePipe(),r=void 0;if(this.optionalCharacter(58))r=this.parsePipe();else{var i=this.inputIndex,o=this.input.substring(e,i);this.error("Conditional expression "+o+" requires all 3 expressions"),r=new vs(this.span(e))}return new _s(this.span(e),t,n,r)}return t},e.prototype.parseLogicalOr=function(){for(var e=this.parseLogicalAnd();this.optionalOperator("||");){var t=this.parseLogicalAnd();e=new Ms(this.span(e.span.start),"||",e,t)}return e},e.prototype.parseLogicalAnd=function(){for(var e=this.parseEquality();this.optionalOperator("&&");){var t=this.parseEquality();e=new Ms(this.span(e.span.start),"&&",e,t)}return e},e.prototype.parseEquality=function(){for(var e=this.parseRelational();this.next.type==zs.Operator;){var t=this.next.strValue;switch(t){case"==":case"===":case"!=":case"!==":this.advance();var n=this.parseRelational();e=new Ms(this.span(e.span.start),t,e,n);continue}break}return e},e.prototype.parseRelational=function(){for(var e=this.parseAdditive();this.next.type==zs.Operator;){var t=this.next.strValue;switch(t){case"<":case">":case"<=":case">=":this.advance();var n=this.parseAdditive();e=new Ms(this.span(e.span.start),t,e,n);continue}break}return e},e.prototype.parseAdditive=function(){for(var e=this.parseMultiplicative();this.next.type==zs.Operator;){var t=this.next.strValue;switch(t){case"+":case"-":this.advance();var n=this.parseMultiplicative();e=new Ms(this.span(e.span.start),t,e,n);continue}break}return e},e.prototype.parseMultiplicative=function(){for(var e=this.parsePrefix();this.next.type==zs.Operator;){var t=this.next.strValue;switch(t){case"*":case"%":case"/":this.advance();var n=this.parsePrefix();e=new Ms(this.span(e.span.start),t,e,n);continue}break}return e},e.prototype.parsePrefix=function(){if(this.next.type==zs.Operator){var e=this.inputIndex,t=this.next.strValue,n=void 0;switch(t){case"+":return this.advance(),this.parsePrefix();case"-":return this.advance(),n=this.parsePrefix(),new Ms(this.span(e),t,new Es(new hs(e,e),0),n);case"!":return this.advance(),n=this.parsePrefix(),new As(this.span(e),n)}}return this.parseCallChain()},e.prototype.parseCallChain=function(){for(var e=this.parsePrimary();;)if(this.optionalCharacter(46))e=this.parseAccessMemberOrMethodCall(e,!1);else if(this.optionalOperator("?."))e=this.parseAccessMemberOrMethodCall(e,!0);else if(this.optionalCharacter(91)){this.rbracketsExpected++;var t=this.parsePipe();if(this.rbracketsExpected--,this.expectCharacter(93),this.optionalOperator("=")){var n=this.parseConditional();e=new Cs(this.span(e.span.start),e,t,n)}else e=new xs(this.span(e.span.start),e,t)}else{if(!this.optionalCharacter(40))return e;this.rparensExpected++;var r=this.parseCallArguments();this.rparensExpected--,this.expectCharacter(41),e=new Rs(this.span(e.span.start),e,r)}},e.prototype.parsePrimary=function(){var e=this.inputIndex;if(this.optionalCharacter(40)){this.rparensExpected++;var t=this.parsePipe();return this.rparensExpected--,this.expectCharacter(41),t}if(this.next.isKeywordNull())return this.advance(),new Es(this.span(e),null);if(this.next.isKeywordUndefined())return this.advance(),new Es(this.span(e),void 0);if(this.next.isKeywordTrue())return this.advance(),new Es(this.span(e),!0);if(this.next.isKeywordFalse())return this.advance(),new Es(this.span(e),!1);if(this.next.isKeywordThis())return this.advance(),new ys(this.span(e));if(this.optionalCharacter(91)){this.rbracketsExpected++;var n=this.parseExpressionList(93);return this.rbracketsExpected--,this.expectCharacter(93),new Ts(this.span(e),n)}if(this.next.isCharacter(os))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMemberOrMethodCall(new ys(this.span(e)),!1);if(this.next.isNumber()){var r=this.next.toNumber();return this.advance(),new Es(this.span(e),r)}if(this.next.isString()){var i=this.next.toString();return this.advance(),new Es(this.span(e),i)}return this.index>=this.tokens.length?(this.error("Unexpected end of expression: "+this.input),new vs(this.span(e))):(this.error("Unexpected token "+this.next),new vs(this.span(e)))},e.prototype.parseExpressionList=function(e){var t=[];if(!this.next.isCharacter(e))do{t.push(this.parsePipe())}while(this.optionalCharacter(44));return t},e.prototype.parseLiteralMap=function(){var e=[],t=[],n=this.inputIndex;if(this.expectCharacter(os),!this.optionalCharacter(125)){this.rbracesExpected++;do{var r=this.expectIdentifierOrKeywordOrString();e.push(r),this.expectCharacter(58),t.push(this.parsePipe())}while(this.optionalCharacter(44));this.rbracesExpected--,this.expectCharacter(125)}return new Os(this.span(n),e,t)},e.prototype.parseAccessMemberOrMethodCall=function(e,t){void 0===t&&(t=!1);var n=e.span.start,r=this.expectIdentifierOrKeyword();if(this.optionalCharacter(40)){this.rparensExpected++;var i=this.parseCallArguments();this.expectCharacter(41),this.rparensExpected--;var o=this.span(n);return t?new Is(o,e,r,i):new Ds(o,e,r,i)}if(t)return this.optionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),new vs(this.span(n))):new ks(this.span(n),e,r);if(this.optionalOperator("=")){if(!this.parseAction)return this.error("Bindings cannot contain assignments"),new vs(this.span(n));var a=this.parseConditional();return new ws(this.span(n),e,r,a)}return new bs(this.span(n),e,r)},e.prototype.parseCallArguments=function(){if(this.next.isCharacter(41))return[];var e=[];do{e.push(this.parsePipe())}while(this.optionalCharacter(44));return e},e.prototype.expectTemplateBindingKey=function(){var e="",t=!1;do{e+=this.expectIdentifierOrKeywordOrString(),(t=this.optionalOperator("-"))&&(e+="-")}while(t);return e.toString()},e.prototype.parseTemplateBindings=function(){for(var e=[],t=null,n=[];this.index<this.tokens.length;){var r=this.inputIndex,i=this.peekKeywordLet();i&&this.advance();var o=this.expectTemplateBindingKey();i||(null==t?t=o:o=t+o[0].toUpperCase()+o.substring(1)),this.optionalCharacter(58);var a=null,s=null;if(i)a=this.optionalOperator("=")?this.expectTemplateBindingKey():"$implicit";else if(this.next!==qs&&!this.peekKeywordLet()){var u=this.inputIndex,c=this.parsePipe(),l=this.input.substring(u-this.offset,this.inputIndex-this.offset);s=new js(c,l,this.location,this.errors)}e.push(new Ns(this.span(r),o,i,a,s)),this.optionalCharacter(Ua)||this.optionalCharacter(44)}return new Ks(e,n,this.errors)},e.prototype.error=function(e,t){void 0===t&&(t=null),this.errors.push(new ds(e,this.input,this.locationText(t),this.location)),this.skip()},e.prototype.locationText=function(e){return void 0===e&&(e=null),i(e)&&(e=this.index),e<this.tokens.length?"at column "+(this.tokens[e].index+1)+" in":"at the end of the expression"},e.prototype.skip=function(){for(var e=this.next;this.index<this.tokens.length&&!e.isCharacter(Ua)&&(this.rparensExpected<=0||!e.isCharacter(41))&&(this.rbracesExpected<=0||!e.isCharacter(125))&&(this.rbracketsExpected<=0||!e.isCharacter(93));)this.next.isError()&&this.errors.push(new ds(this.next.toString(),this.input,this.locationText(),this.location)),this.advance(),e=this.next},e}(),Qs=function(){function e(){this.errors=[]}return e.check=function(t){var n=new e;return t.visit(n),n.errors},e.prototype.visitImplicitReceiver=function(e,t){},e.prototype.visitInterpolation=function(e,t){},e.prototype.visitLiteralPrimitive=function(e,t){},e.prototype.visitPropertyRead=function(e,t){},e.prototype.visitPropertyWrite=function(e,t){},e.prototype.visitSafePropertyRead=function(e,t){},e.prototype.visitMethodCall=function(e,t){},e.prototype.visitSafeMethodCall=function(e,t){},e.prototype.visitFunctionCall=function(e,t){},e.prototype.visitLiteralArray=function(e,t){this.visitAll(e.expressions)},e.prototype.visitLiteralMap=function(e,t){this.visitAll(e.values)},e.prototype.visitBinary=function(e,t){},e.prototype.visitPrefixNot=function(e,t){},e.prototype.visitConditional=function(e,t){},e.prototype.visitPipe=function(e,t){this.errors.push("pipes")},e.prototype.visitKeyedRead=function(e,t){},e.prototype.visitKeyedWrite=function(e,t){},e.prototype.visitAll=function(e){var t=this;return e.map(function(e){return e.visit(t)})},e.prototype.visitChain=function(e,t){},e.prototype.visitQuote=function(e,t){},e}(),$s=function(){function e(e,t,n,r){this.file=e,this.offset=t,this.line=n,this.col=r}return e.prototype.toString=function(){return r(this.offset)?this.file.url+"@"+this.line+":"+this.col:this.file.url},e.prototype.moveBy=function(t){for(var n=this.file.content,r=n.length,i=this.offset,o=this.line,a=this.col;i>0&&t<0;)if(i--,t++,(u=n.charCodeAt(i))==Ma){o--;var s=n.substr(0,i-1).lastIndexOf(String.fromCharCode(Ma));a=s>0?i-s:i}else a--;for(;i<r&&t>0;){var u=n.charCodeAt(i);i++,t--,u==Ma?(o++,a=0):a++}return new e(this.file,i,o,a)},e.prototype.getContext=function(e,t){var n=this.file.content,i=this.offset;if(r(i)){i>n.length-1&&(i=n.length-1);for(var o=i,a=0,s=0;a<e&&i>0&&(i--,a++,"\n"!=n[i]||++s!=t););for(a=0,s=0;a<e&&o<n.length-1&&(o++,a++,"\n"!=n[o]||++s!=t););return{before:n.substring(i,this.offset),after:n.substring(this.offset,o+1)}}return null},e}(),eu=function(){return function(e,t){this.content=e,this.url=t}}(),tu=function(){function e(e,t,n){void 0===n&&(n=null),this.start=e,this.end=t,this.details=n}return e.prototype.toString=function(){return this.start.file.content.substring(this.start.offset,this.end.offset)},e}(),nu={};nu.WARNING=0,nu.FATAL=1,nu[nu.WARNING]="WARNING",nu[nu.FATAL]="FATAL";var ru=function(){function e(e,t,n){void 0===n&&(n=nu.FATAL),this.span=e,this.msg=t,this.level=n}return e.prototype.toString=function(){var e=this.span.start.getContext(100,3),t=e?' ("'+e.before+"[ERROR ->]"+e.after+'")':"",n=this.span.details?", "+this.span.details:"";return""+this.msg+t+": "+this.span.start+n},e}(),iu=function(){function e(e,t){this.value=e,this.sourceSpan=t}return e.prototype.visit=function(e,t){return e.visitText(this,t)},e}(),ou=function(){function e(e,t,n,r,i){this.switchValue=e,this.type=t,this.cases=n,this.sourceSpan=r,this.switchValueSourceSpan=i}return e.prototype.visit=function(e,t){return e.visitExpansion(this,t)},e}(),au=function(){function e(e,t,n,r,i){this.value=e,this.expression=t,this.sourceSpan=n,this.valueSourceSpan=r,this.expSourceSpan=i}return e.prototype.visit=function(e,t){return e.visitExpansionCase(this,t)},e}(),su=function(){function e(e,t,n,r){this.name=e,this.value=t,this.sourceSpan=n,this.valueSpan=r}return e.prototype.visit=function(e,t){return e.visitAttribute(this,t)},e}(),uu=function(){function e(e,t,n,r,i,o){this.name=e,this.attrs=t,this.children=n,this.sourceSpan=r,this.startSourceSpan=i,this.endSourceSpan=o}return e.prototype.visit=function(e,t){return e.visitElement(this,t)},e}(),cu=function(){function e(e,t){this.value=e,this.sourceSpan=t}return e.prototype.visit=function(e,t){return e.visitComment(this,t)},e}(),lu=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},pu={};pu.TAG_OPEN_START=0,pu.TAG_OPEN_END=1,pu.TAG_OPEN_END_VOID=2,pu.TAG_CLOSE=3,pu.TEXT=4,pu.ESCAPABLE_RAW_TEXT=5,pu.RAW_TEXT=6,pu.COMMENT_START=7,pu.COMMENT_END=8,pu.CDATA_START=9,pu.CDATA_END=10,pu.ATTR_NAME=11,pu.ATTR_VALUE=12,pu.DOC_TYPE=13,pu.EXPANSION_FORM_START=14,pu.EXPANSION_CASE_VALUE=15,pu.EXPANSION_CASE_EXP_START=16,pu.EXPANSION_CASE_EXP_END=17,pu.EXPANSION_FORM_END=18,pu.EOF=19,pu[pu.TAG_OPEN_START]="TAG_OPEN_START",pu[pu.TAG_OPEN_END]="TAG_OPEN_END",pu[pu.TAG_OPEN_END_VOID]="TAG_OPEN_END_VOID",pu[pu.TAG_CLOSE]="TAG_CLOSE",pu[pu.TEXT]="TEXT",pu[pu.ESCAPABLE_RAW_TEXT]="ESCAPABLE_RAW_TEXT",pu[pu.RAW_TEXT]="RAW_TEXT",pu[pu.COMMENT_START]="COMMENT_START",pu[pu.COMMENT_END]="COMMENT_END",pu[pu.CDATA_START]="CDATA_START",pu[pu.CDATA_END]="CDATA_END",pu[pu.ATTR_NAME]="ATTR_NAME",pu[pu.ATTR_VALUE]="ATTR_VALUE",pu[pu.DOC_TYPE]="DOC_TYPE",pu[pu.EXPANSION_FORM_START]="EXPANSION_FORM_START",pu[pu.EXPANSION_CASE_VALUE]="EXPANSION_CASE_VALUE",pu[pu.EXPANSION_CASE_EXP_START]="EXPANSION_CASE_EXP_START",pu[pu.EXPANSION_CASE_EXP_END]="EXPANSION_CASE_EXP_END",pu[pu.EXPANSION_FORM_END]="EXPANSION_FORM_END",pu[pu.EOF]="EOF";var du=function(){return function(e,t,n){this.type=e,this.parts=t,this.sourceSpan=n}}(),hu=function(e){function t(t,n,r){e.call(this,r,t),this.tokenType=n}return lu(t,e),t}(ru),fu=function(){return function(e,t){this.tokens=e,this.errors=t}}(),mu=/\r\n?/g,vu=function(){return function(e){this.error=e}}(),yu=function(){function e(e,t,n,r){void 0===r&&(r=ls),this._file=e,this._getTagDefinition=t,this._tokenizeIcu=n,this._interpolationConfig=r,this._peek=-1,this._nextPeek=-1,this._index=-1,this._line=0,this._column=-1,this._expansionCaseStack=[],this._inInterpolation=!1,this.tokens=[],this.errors=[],this._input=e.content,this._length=e.content.length,this._advance()}return e.prototype._processCarriageReturns=function(e){return e.replace(mu,"\n")},e.prototype.tokenize=function(){for(;this._peek!==Oa;){var e=this._getLocation();try{this._attemptCharCode(60)?this._attemptCharCode(33)?this._attemptCharCode(91)?this._consumeCdata(e):this._attemptCharCode(Va)?this._consumeComment(e):this._consumeDocType(e):this._attemptCharCode(za)?this._consumeTagClose(e):this._consumeTagOpen(e):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeText()}catch(e){if(!(e instanceof vu))throw e;this.errors.push(e.error)}}return this._beginToken(pu.EOF),this._endToken([]),new fu(se(this.tokens),this.errors)},e.prototype._tokenizeExpansionForm=function(){if(re(this._input,this._index,this._interpolationConfig))return this._consumeExpansionFormStart(),!0;if(ie(this._peek)&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(125===this._peek){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1},e.prototype._getLocation=function(){return new $s(this._file,this._index,this._line,this._column)},e.prototype._getSpan=function(e,t){return void 0===e&&(e=this._getLocation()),void 0===t&&(t=this._getLocation()),new tu(e,t)},e.prototype._beginToken=function(e,t){void 0===t&&(t=this._getLocation()),this._currentTokenStart=t,this._currentTokenType=e},e.prototype._endToken=function(e,t){void 0===t&&(t=this._getLocation());var n=new du(this._currentTokenType,e,new tu(this._currentTokenStart,t));return this.tokens.push(n),this._currentTokenStart=null,this._currentTokenType=null,n},e.prototype._createError=function(e,t){this._isInExpansionForm()&&(e+=' (Do you have an unescaped "{" in your template? Use "{{ \'{\' }}") to escape it.)');var n=new hu(e,this._currentTokenType,t);return this._currentTokenStart=null,this._currentTokenType=null,new vu(n)},e.prototype._advance=function(){if(this._index>=this._length)throw this._createError(X(Oa),this._getSpan());this._peek===Ma?(this._line++,this._column=0):this._peek!==Ma&&this._peek!==Ia&&this._column++,this._index++,this._peek=this._index>=this._length?Oa:this._input.charCodeAt(this._index),this._nextPeek=this._index+1>=this._length?Oa:this._input.charCodeAt(this._index+1)},e.prototype._attemptCharCode=function(e){return this._peek===e&&(this._advance(),!0)},e.prototype._attemptCharCodeCaseInsensitive=function(e){return!!oe(this._peek,e)&&(this._advance(),!0)},e.prototype._requireCharCode=function(e){var t=this._getLocation();if(!this._attemptCharCode(e))throw this._createError(X(this._peek),this._getSpan(t,t))},e.prototype._attemptStr=function(e){var t=e.length;if(this._index+t>this._length)return!1;for(var n=this._savePosition(),r=0;r<t;r++)if(!this._attemptCharCode(e.charCodeAt(r)))return this._restorePosition(n),!1;return!0},e.prototype._attemptStrCaseInsensitive=function(e){for(var t=0;t<e.length;t++)if(!this._attemptCharCodeCaseInsensitive(e.charCodeAt(t)))return!1;return!0},e.prototype._requireStr=function(e){var t=this._getLocation();if(!this._attemptStr(e))throw this._createError(X(this._peek),this._getSpan(t))},e.prototype._attemptCharCodeUntilFn=function(e){for(;!e(this._peek);)this._advance()},e.prototype._requireCharCodeUntilFn=function(e,t){var n=this._getLocation();if(this._attemptCharCodeUntilFn(e),this._index-n.offset<t)throw this._createError(X(this._peek),this._getSpan(n,n))},e.prototype._attemptUntilChar=function(e){for(;this._peek!==e;)this._advance()},e.prototype._readChar=function(e){if(e&&38===this._peek)return this._decodeEntity();var t=this._index;return this._advance(),this._input[t]},e.prototype._decodeEntity=function(){var e=this._getLocation();if(this._advance(),!this._attemptCharCode(35)){var t=this._savePosition();if(this._attemptCharCodeUntilFn(ne),this._peek!=Ua)return this._restorePosition(t),"&";this._advance();var n=this._input.substring(e.offset+1,this._index-1),r=Ho[n];if(!r)throw this._createError(J(n),this._getSpan(e));return r}var i=this._attemptCharCode(120)||this._attemptCharCode(88),o=this._getLocation().offset;if(this._attemptCharCodeUntilFn(te),this._peek!=Ua)throw this._createError(X(this._peek),this._getSpan());this._advance();var a=this._input.substring(o,this._index-1);try{var s=parseInt(a,i?16:10);return String.fromCharCode(s)}catch(t){var u=this._input.substring(e.offset+1,this._index-1);throw this._createError(J(u),this._getSpan(e))}},e.prototype._consumeRawText=function(e,t,n){var r,i=this._getLocation();this._beginToken(e?pu.ESCAPABLE_RAW_TEXT:pu.RAW_TEXT,i);for(var o=[];;){if(r=this._getLocation(),this._attemptCharCode(t)&&n())break;for(this._index>r.offset&&o.push(this._input.substring(r.offset,this._index));this._peek!==t;)o.push(this._readChar(e))}return this._endToken([this._processCarriageReturns(o.join(""))],r)},e.prototype._consumeComment=function(e){var t=this;this._beginToken(pu.COMMENT_START,e),this._requireCharCode(Va),this._endToken([]);var n=this._consumeRawText(!1,Va,function(){return t._attemptStr("->")});this._beginToken(pu.COMMENT_END,n.sourceSpan.end),this._endToken([])},e.prototype._consumeCdata=function(e){var t=this;this._beginToken(pu.CDATA_START,e),this._requireStr("CDATA["),this._endToken([]);var n=this._consumeRawText(!1,93,function(){return t._attemptStr("]>")});this._beginToken(pu.CDATA_END,n.sourceSpan.end),this._endToken([])},e.prototype._consumeDocType=function(e){this._beginToken(pu.DOC_TYPE,e),this._attemptUntilChar(Ha),this._advance(),this._endToken([this._input.substring(e.offset+2,this._index-1)])},e.prototype._consumePrefixAndName=function(){for(var e=this._index,t=null;58!==this._peek&&!ee(this._peek);)this._advance();var n;return 58===this._peek?(this._advance(),t=this._input.substring(e,this._index-1),n=this._index):n=e,this._requireCharCodeUntilFn($,this._index===n?1:0),[t,this._input.substring(n,this._index)]},e.prototype._consumeTagOpen=function(e){var t,n,r=this._savePosition();try{if(!O(this._peek))throw this._createError(X(this._peek),this._getSpan());var i=this._index;for(this._consumeTagOpenStart(e),n=(t=this._input.substring(i,this._index)).toLowerCase(),this._attemptCharCodeUntilFn(Q);this._peek!==za&&this._peek!==Ha;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(Q),this._attemptCharCode(Ba)&&(this._attemptCharCodeUntilFn(Q),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(Q);this._consumeTagOpenEnd()}catch(t){if(t instanceof vu)return this._restorePosition(r),this._beginToken(pu.TEXT,e),void this._endToken(["<"]);throw t}var o=this._getTagDefinition(t).contentType;o===Bo.RAW_TEXT?this._consumeRawTextWithTagClose(n,!1):o===Bo.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(n,!0)},e.prototype._consumeRawTextWithTagClose=function(e,t){var n=this,r=this._consumeRawText(t,60,function(){return!!n._attemptCharCode(za)&&(n._attemptCharCodeUntilFn(Q),!!n._attemptStrCaseInsensitive(e)&&(n._attemptCharCodeUntilFn(Q),n._attemptCharCode(Ha)))});this._beginToken(pu.TAG_CLOSE,r.sourceSpan.end),this._endToken([null,e])},e.prototype._consumeTagOpenStart=function(e){this._beginToken(pu.TAG_OPEN_START,e);var t=this._consumePrefixAndName();this._endToken(t)},e.prototype._consumeAttributeName=function(){this._beginToken(pu.ATTR_NAME);var e=this._consumePrefixAndName();this._endToken(e)},e.prototype._consumeAttributeValue=function(){this._beginToken(pu.ATTR_VALUE);var e;if(this._peek===La||this._peek===ja){var t=this._peek;this._advance();for(var n=[];this._peek!==t;)n.push(this._readChar(!0));e=n.join(""),this._advance()}else{var r=this._index;this._requireCharCodeUntilFn($,1),e=this._input.substring(r,this._index)}this._endToken([this._processCarriageReturns(e)])},e.prototype._consumeTagOpenEnd=function(){var e=this._attemptCharCode(za)?pu.TAG_OPEN_END_VOID:pu.TAG_OPEN_END;this._beginToken(e),this._requireCharCode(Ha),this._endToken([])},e.prototype._consumeTagClose=function(e){this._beginToken(pu.TAG_CLOSE,e),this._attemptCharCodeUntilFn(Q);var t=this._consumePrefixAndName();this._attemptCharCodeUntilFn(Q),this._requireCharCode(Ha),this._endToken(t)},e.prototype._consumeExpansionFormStart=function(){this._beginToken(pu.EXPANSION_FORM_START,this._getLocation()),this._requireCharCode(os),this._endToken([]),this._expansionCaseStack.push(pu.EXPANSION_FORM_START),this._beginToken(pu.RAW_TEXT,this._getLocation());var e=this._readUntil(44);this._endToken([e],this._getLocation()),this._requireCharCode(44),this._attemptCharCodeUntilFn(Q),this._beginToken(pu.RAW_TEXT,this._getLocation());var t=this._readUntil(44);this._endToken([t],this._getLocation()),this._requireCharCode(44),this._attemptCharCodeUntilFn(Q)},e.prototype._consumeExpansionCaseStart=function(){this._beginToken(pu.EXPANSION_CASE_VALUE,this._getLocation());var e=this._readUntil(os).trim();this._endToken([e],this._getLocation()),this._attemptCharCodeUntilFn(Q),this._beginToken(pu.EXPANSION_CASE_EXP_START,this._getLocation()),this._requireCharCode(os),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(Q),this._expansionCaseStack.push(pu.EXPANSION_CASE_EXP_START)},e.prototype._consumeExpansionCaseEnd=function(){this._beginToken(pu.EXPANSION_CASE_EXP_END,this._getLocation()),this._requireCharCode(125),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(Q),this._expansionCaseStack.pop()},e.prototype._consumeExpansionFormEnd=function(){this._beginToken(pu.EXPANSION_FORM_END,this._getLocation()),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()},e.prototype._consumeText=function(){var e=this._getLocation();this._beginToken(pu.TEXT,e);var t=[];do{this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(t.push(this._interpolationConfig.start),this._inInterpolation=!0):this._interpolationConfig&&this._inInterpolation&&this._attemptStr(this._interpolationConfig.end)?(t.push(this._interpolationConfig.end),this._inInterpolation=!1):t.push(this._readChar(!0))}while(!this._isTextEnd());this._endToken([this._processCarriageReturns(t.join(""))])},e.prototype._isTextEnd=function(){if(60===this._peek||this._peek===Oa)return!0;if(this._tokenizeIcu&&!this._inInterpolation){if(re(this._input,this._index,this._interpolationConfig))return!0;if(125===this._peek&&this._isInExpansionCase())return!0}return!1},e.prototype._savePosition=function(){return[this._peek,this._index,this._column,this._line,this.tokens.length]},e.prototype._readUntil=function(e){var t=this._index;return this._attemptUntilChar(e),this._input.substring(t,this._index)},e.prototype._restorePosition=function(e){this._peek=e[0],this._index=e[1],this._column=e[2],this._line=e[3];var t=e[4];t<this.tokens.length&&(this.tokens=this.tokens.slice(0,t))},e.prototype._isInExpansionCase=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===pu.EXPANSION_CASE_EXP_START},e.prototype._isInExpansionForm=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===pu.EXPANSION_FORM_START},e}(),gu=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},_u=function(e){function t(t,n,r){e.call(this,n,r),this.elementName=t}return gu(t,e),t.create=function(e,n,r){return new t(e,n,r)},t}(ru),bu=function(){return function(e,t){this.rootNodes=e,this.errors=t}}(),wu=function(){function e(e){this.getTagDefinition=e}return e.prototype.parse=function(e,t,n,r){void 0===n&&(n=!1),void 0===r&&(r=ls);var i=K(e,t,this.getTagDefinition,n,r),o=new ku(i.tokens,this.getTagDefinition).build();return new bu(o.rootNodes,i.errors.concat(o.errors))},e}(),ku=function(){function e(e,t){this.tokens=e,this.getTagDefinition=t,this._index=-1,this._rootNodes=[],this._errors=[],this._elementStack=[],this._advance()}return e.prototype.build=function(){for(;this._peek.type!==pu.EOF;)this._peek.type===pu.TAG_OPEN_START?this._consumeStartTag(this._advance()):this._peek.type===pu.TAG_CLOSE?this._consumeEndTag(this._advance()):this._peek.type===pu.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===pu.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===pu.TEXT||this._peek.type===pu.RAW_TEXT||this._peek.type===pu.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===pu.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._advance();return new bu(this._rootNodes,this._errors)},e.prototype._advance=function(){var e=this._peek;return this._index<this.tokens.length-1&&this._index++,this._peek=this.tokens[this._index],e},e.prototype._advanceIf=function(e){return this._peek.type===e?this._advance():null},e.prototype._consumeCdata=function(e){this._consumeText(this._advance()),this._advanceIf(pu.CDATA_END)},e.prototype._consumeComment=function(e){var t=this._advanceIf(pu.RAW_TEXT);this._advanceIf(pu.COMMENT_END);var n=r(t)?t.parts[0].trim():null;this._addToParent(new cu(n,e.sourceSpan))},e.prototype._consumeExpansion=function(e){for(var t=this._advance(),n=this._advance(),r=[];this._peek.type===pu.EXPANSION_CASE_VALUE;){var i=this._parseExpansionCase();if(!i)return;r.push(i)}if(this._peek.type===pu.EXPANSION_FORM_END){var o=new tu(e.sourceSpan.start,this._peek.sourceSpan.end);this._addToParent(new ou(t.parts[0],n.parts[0],r,o,t.sourceSpan)),this._advance()}else this._errors.push(_u.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."))},e.prototype._parseExpansionCase=function(){var t=this._advance();if(this._peek.type!==pu.EXPANSION_CASE_EXP_START)return this._errors.push(_u.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;var n=this._advance(),r=this._collectExpansionExpTokens(n);if(!r)return null;var i=this._advance();r.push(new du(pu.EOF,[],i.sourceSpan));var o=new e(r,this.getTagDefinition).build();if(o.errors.length>0)return this._errors=this._errors.concat(o.errors),null;var a=new tu(t.sourceSpan.start,i.sourceSpan.end),s=new tu(n.sourceSpan.start,i.sourceSpan.end);return new au(t.parts[0],o.rootNodes,a,t.sourceSpan,s)},e.prototype._collectExpansionExpTokens=function(e){for(var t=[],n=[pu.EXPANSION_CASE_EXP_START];;){if(this._peek.type!==pu.EXPANSION_FORM_START&&this._peek.type!==pu.EXPANSION_CASE_EXP_START||n.push(this._peek.type),this._peek.type===pu.EXPANSION_CASE_EXP_END){if(!ue(n,pu.EXPANSION_CASE_EXP_START))return this._errors.push(_u.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(n.pop(),0==n.length)return t}if(this._peek.type===pu.EXPANSION_FORM_END){if(!ue(n,pu.EXPANSION_FORM_START))return this._errors.push(_u.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;n.pop()}if(this._peek.type===pu.EOF)return this._errors.push(_u.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;t.push(this._advance())}},e.prototype._consumeText=function(e){var t=e.parts[0];if(t.length>0&&"\n"==t[0]){var n=this._getParentElement();r(n)&&0==n.children.length&&this.getTagDefinition(n.name).ignoreFirstLf&&(t=t.substring(1))}t.length>0&&this._addToParent(new iu(t,e.sourceSpan))},e.prototype._closeVoidElement=function(){if(this._elementStack.length>0){var e=this._elementStack[this._elementStack.length-1];this.getTagDefinition(e.name).isVoid&&this._elementStack.pop()}},e.prototype._consumeStartTag=function(e){for(var t=e.parts[0],n=e.parts[1],r=[];this._peek.type===pu.ATTR_NAME;)r.push(this._consumeAttr(this._advance()));var i=this._getElementFullName(t,n,this._getParentElement()),o=!1;if(this._peek.type===pu.TAG_OPEN_END_VOID){this._advance(),o=!0;var a=this.getTagDefinition(i);a.canSelfClose||null!==p(i)||a.isVoid||this._errors.push(_u.create(i,e.sourceSpan,'Only void and foreign elements can be self closed "'+e.parts[1]+'"'))}else this._peek.type===pu.TAG_OPEN_END&&(this._advance(),o=!1);var s=this._peek.sourceSpan.start,u=new tu(e.sourceSpan.start,s),c=new uu(i,r,[],u,u,null);this._pushElement(c),o&&(this._popElement(i),c.endSourceSpan=u)},e.prototype._pushElement=function(e){if(this._elementStack.length>0){var t=this._elementStack[this._elementStack.length-1];this.getTagDefinition(t.name).isClosedByChild(e.name)&&this._elementStack.pop()}var n=this.getTagDefinition(e.name),r=this._getParentElementSkippingContainers(),i=r.parent,o=r.container;if(i&&n.requireExtraParent(i.name)){var a=new uu(n.parentToAdd,[],[],e.sourceSpan,e.startSourceSpan,e.endSourceSpan);this._insertBeforeContainer(i,o,a)}this._addToParent(e),this._elementStack.push(e)},e.prototype._consumeEndTag=function(e){var t=this._getElementFullName(e.parts[0],e.parts[1],this._getParentElement());this._getParentElement()&&(this._getParentElement().endSourceSpan=e.sourceSpan),this.getTagDefinition(t).isVoid?this._errors.push(_u.create(t,e.sourceSpan,'Void elements do not have end tags "'+e.parts[1]+'"')):this._popElement(t)||this._errors.push(_u.create(t,e.sourceSpan,'Unexpected closing tag "'+e.parts[1]+'"'))},e.prototype._popElement=function(e){for(var t=this._elementStack.length-1;t>=0;t--){var n=this._elementStack[t];if(n.name==e)return this._elementStack.splice(t,this._elementStack.length-t),!0;if(!this.getTagDefinition(n.name).closedByParent)return!1}return!1},e.prototype._consumeAttr=function(e){var t,n=d(e.parts[0],e.parts[1]),r=e.sourceSpan.end,i="";if(this._peek.type===pu.ATTR_VALUE){var o=this._advance();i=o.parts[0],r=o.sourceSpan.end,t=o.sourceSpan}return new su(n,i,new tu(e.sourceSpan.start,r),t)},e.prototype._getParentElement=function(){return this._elementStack.length>0?this._elementStack[this._elementStack.length-1]:null},e.prototype._getParentElementSkippingContainers=function(){for(var e=null,t=this._elementStack.length-1;t>=0;t--){if("ng-container"!==this._elementStack[t].name)return{parent:this._elementStack[t],container:e};e=this._elementStack[t]}return{parent:this._elementStack[this._elementStack.length-1],container:e}},e.prototype._addToParent=function(e){var t=this._getParentElement();r(t)?t.children.push(e):this._rootNodes.push(e)},e.prototype._insertBeforeContainer=function(e,t,n){if(t){if(e){var r=e.children.indexOf(t);e.children[r]=n}else this._rootNodes.push(n);n.children.push(t),this._elementStack.splice(this._elementStack.indexOf(t),0,n)}else this._addToParent(n),this._elementStack.push(n)},e.prototype._getElementFullName=function(e,t,n){return i(e)&&i(e=this.getTagDefinition(t).implicitNamespacePrefix)&&r(n)&&(e=p(n.name)),d(e,t)},e}(),xu=function(){return function(e,t,n,r,i){this.nodes=e,this.placeholders=t,this.placeholderToMessage=n,this.meaning=r,this.description=i}}(),Cu=function(){function e(e,t){this.value=e,this.sourceSpan=t}return e.prototype.visit=function(e,t){return e.visitText(this,t)},e}(),Su=function(){function e(e,t){this.children=e,this.sourceSpan=t}return e.prototype.visit=function(e,t){return e.visitContainer(this,t)},e}(),Eu=function(){function e(e,t,n,r){this.expression=e,this.type=t,this.cases=n,this.sourceSpan=r}return e.prototype.visit=function(e,t){return e.visitIcu(this,t)},e}(),Tu=function(){function e(e,t,n,r,i,o,a){this.tag=e,this.attrs=t,this.startName=n,this.closeName=r,this.children=i,this.isVoid=o,this.sourceSpan=a}return e.prototype.visit=function(e,t){return e.visitTagPlaceholder(this,t)},e}(),Ou=function(){function e(e,t,n){this.value=e,this.name=t,this.sourceSpan=n}return e.prototype.visit=function(e,t){return e.visitPlaceholder(this,t)},e}(),Pu=function(){function e(e,t,n){this.value=e,this.name=t,this.sourceSpan=n}return e.prototype.visit=function(e,t){return e.visitIcuPlaceholder(this,t)},e}(),Mu={A:"LINK",B:"BOLD_TEXT",BR:"LINE_BREAK",EM:"EMPHASISED_TEXT",H1:"HEADING_LEVEL1",H2:"HEADING_LEVEL2",H3:"HEADING_LEVEL3",H4:"HEADING_LEVEL4",H5:"HEADING_LEVEL5",H6:"HEADING_LEVEL6",HR:"HORIZONTAL_RULE",I:"ITALIC_TEXT",LI:"LIST_ITEM",LINK:"MEDIA_LINK",OL:"ORDERED_LIST",P:"PARAGRAPH",Q:"QUOTATION",S:"STRIKETHROUGH_TEXT",SMALL:"SMALL_TEXT",SUB:"SUBSTRIPT",SUP:"SUPERSCRIPT",TBODY:"TABLE_BODY",TD:"TABLE_CELL",TFOOT:"TABLE_FOOTER",TH:"TABLE_HEADER_CELL",THEAD:"TABLE_HEADER",TR:"TABLE_ROW",TT:"MONOSPACED_TEXT",U:"UNDERLINED_TEXT",UL:"UNORDERED_LIST"},Au=function(){function e(){this._placeHolderNameCounts={},this._signatureToName={}}return e.prototype.getStartTagPlaceholderName=function(e,t,n){var r=this._hashTag(e,t,n);if(this._signatureToName[r])return this._signatureToName[r];var i=e.toUpperCase(),o=Mu[i]||"TAG_"+i,a=this._generateUniqueName(n?o:"START_"+o);return this._signatureToName[r]=a,a},e.prototype.getCloseTagPlaceholderName=function(e){var t=this._hashClosingTag(e);if(this._signatureToName[t])return this._signatureToName[t];var n=e.toUpperCase(),r=Mu[n]||"TAG_"+n,i=this._generateUniqueName("CLOSE_"+r);return this._signatureToName[t]=i,i},e.prototype.getPlaceholderName=function(e,t){var n=e.toUpperCase(),r="PH: "+n+"="+t;if(this._signatureToName[r])return this._signatureToName[r];var i=this._generateUniqueName(n);return this._signatureToName[r]=i,i},e.prototype.getUniquePlaceholder=function(e){return this._generateUniqueName(e.toUpperCase())},e.prototype._hashTag=function(e,t,n){return"<"+e+Object.keys(t).sort().map(function(e){return" "+e+"="+t[e]}).join("")+(n?"/>":"></"+e+">")},e.prototype._hashClosingTag=function(e){return this._hashTag("/"+e,{},!1)},e.prototype._generateUniqueName=function(e){if(!this._placeHolderNameCounts.hasOwnProperty(e))return this._placeHolderNameCounts[e]=1,e;var t=this._placeHolderNameCounts[e];return this._placeHolderNameCounts[e]=t+1,e+"_"+t},e}(),Du=new Xs(new Bs),Iu=function(){function e(e,t){this._expressionParser=e,this._interpolationConfig=t}return e.prototype.toI18nMessage=function(e,t,n){this._isIcu=1==e.length&&e[0]instanceof ou,this._icuDepth=0,this._placeholderRegistry=new Au,this._placeholderToContent={},this._placeholderToMessage={};var r=Z(this,e,{});return new xu(r,this._placeholderToContent,this._placeholderToMessage,t,n)},e.prototype.visitElement=function(e,t){var n=Z(this,e.children),r={};e.attrs.forEach(function(e){r[e.name]=e.value});var i=h(e.name).isVoid,o=this._placeholderRegistry.getStartTagPlaceholderName(e.name,r,i);this._placeholderToContent[o]=e.sourceSpan.toString();var a="";return i||(a=this._placeholderRegistry.getCloseTagPlaceholderName(e.name),this._placeholderToContent[a]="</"+e.name+">"),new Tu(e.name,r,o,a,n,i,e.sourceSpan)},e.prototype.visitAttribute=function(e,t){return this._visitTextWithInterpolation(e.value,e.sourceSpan)},e.prototype.visitText=function(e,t){return this._visitTextWithInterpolation(e.value,e.sourceSpan)},e.prototype.visitComment=function(e,t){return null},e.prototype.visitExpansion=function(t,n){var r=this;this._icuDepth++;var i={},o=new Eu(t.switchValue,t.type,i,t.sourceSpan);if(t.cases.forEach(function(e){i[e.value]=new Su(e.expression.map(function(e){return e.visit(r,{})}),e.expSourceSpan)}),this._icuDepth--,this._isIcu||this._icuDepth>0){var a=this._placeholderRegistry.getUniquePlaceholder("VAR_"+t.type);return o.expressionPlaceholder=a,this._placeholderToContent[a]=t.switchValue,o}var s=this._placeholderRegistry.getPlaceholderName("ICU",t.sourceSpan.toString()),u=new e(this._expressionParser,this._interpolationConfig);return this._placeholderToMessage[s]=u.toI18nMessage([t],"",""),new Pu(o,s,t.sourceSpan)},e.prototype.visitExpansionCase=function(e,t){throw new Error("Unreachable code")},e.prototype._visitTextWithInterpolation=function(e,t){var n=this._expressionParser.splitInterpolation(e,t.start.toString(),this._interpolationConfig);if(!n)return new Cu(e,t);for(var r=[],i=new Su(r,t),o=this._interpolationConfig,a=o.start,s=o.end,u=0;u<n.strings.length-1;u++){var c=n.expressions[u],l=le(c)||"INTERPOLATION",p=this._placeholderRegistry.getPlaceholderName(l,c);n.strings[u].length&&r.push(new Cu(n.strings[u],t)),r.push(new Ou(c,p,t)),this._placeholderToContent[p]=a+c+s}var d=n.strings.length-1;return n.strings[d].length&&r.push(new Cu(n.strings[d],t)),i},e}(),Ru=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*"([\s\S]*?)"[\s\S]*\)/g,ju=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},Nu=function(e){function t(t,n){e.call(this,t,n)}return ju(t,e),t}(ru),Lu="i18n",Fu=/^i18n:?/,Vu=function(){return function(e,t){this.messages=e,this.errors=t}}(),zu={};zu.Extract=0,zu.Merge=1,zu[zu.Extract]="Extract",zu[zu.Merge]="Merge";var Uu=function(){function e(e,t){this._implicitTags=e,this._implicitAttrs=t}return e.prototype.extract=function(e,t){var n=this;return this._init(zu.Extract,t),e.forEach(function(e){return e.visit(n,null)}),this._inI18nBlock&&this._reportError(e[e.length-1],"Unclosed block"),new Vu(this._messages,this._errors)},e.prototype.merge=function(e,t,n){this._init(zu.Merge,n),this._translations=t;var r=new uu("wrapper",[],e,null,null,null).visit(this,null);return this._inI18nBlock&&this._reportError(e[e.length-1],"Unclosed block"),new bu(r.children,this._errors)},e.prototype.visitExpansionCase=function(e,t){var n=Z(this,e.expression,t);if(this._mode===zu.Merge)return new au(e.value,n,e.sourceSpan,e.valueSourceSpan,e.expSourceSpan)},e.prototype.visitExpansion=function(e,t){this._mayBeAddBlockChildren(e);var n=this._inIcu;this._inIcu||(this._isInTranslatableSection&&this._addMessage([e]),this._inIcu=!0);var r=Z(this,e.cases,t);return this._mode===zu.Merge&&(e=new ou(e.switchValue,e.type,r,e.sourceSpan,e.switchValueSourceSpan)),this._inIcu=n,e},e.prototype.visitComment=function(e,t){var n=he(e);if(n&&this._isInTranslatableSection)this._reportError(e,"Could not start a block inside a translatable section");else{var r=fe(e);if(!r||this._inI18nBlock){if(!this._inI18nNode&&!this._inIcu)if(this._inI18nBlock){if(r){if(this._depth==this._blockStartDepth){this._closeTranslatableSection(e,this._blockChildren),this._inI18nBlock=!1;var i=this._addMessage(this._blockChildren,this._blockMeaningAndDesc);return Z(this,this._translateMessage(e,i))}return void this._reportError(e,"I18N blocks should not cross element boundaries")}}else n&&(this._inI18nBlock=!0,this._blockStartDepth=this._depth,this._blockChildren=[],this._blockMeaningAndDesc=e.value.replace(Fu,"").trim(),this._openTranslatableSection(e))}else this._reportError(e,"Trying to close an unopened block")}},e.prototype.visitText=function(e,t){return this._isInTranslatableSection&&this._mayBeAddBlockChildren(e),e},e.prototype.visitElement=function(e,t){var n=this;this._mayBeAddBlockChildren(e),this._depth++;var r,i=this._inI18nNode,o=this._inImplicitNode,a=[],s=me(e),u=s?s.value:"",c=this._implicitTags.some(function(t){return e.name===t})&&!this._inIcu&&!this._isInTranslatableSection,l=!o&&c;if(this._inImplicitNode=o||c,this._isInTranslatableSection||this._inIcu)(s||l)&&this._reportError(e,"Could not mark an element as translatable inside a translatable section"),this._mode==zu.Extract&&Z(this,e.children);else{if(s||l){this._inI18nNode=!0;var p=this._addMessage(e.children,u);r=this._translateMessage(e,p)}if(this._mode==zu.Extract){var d=s||l;d&&this._openTranslatableSection(e),Z(this,e.children),d&&this._closeTranslatableSection(e,e.children)}}if(this._mode===zu.Merge&&(r||e.children).forEach(function(e){var r=e.visit(n,t);r&&!n._isInTranslatableSection&&(a=a.concat(r))}),this._visitAttributesOf(e),this._depth--,this._inI18nNode=i,this._inImplicitNode=o,this._mode===zu.Merge){var h=this._translateAttributes(e);return new uu(e.name,h,a,e.sourceSpan,e.startSourceSpan,e.endSourceSpan)}},e.prototype.visitAttribute=function(e,t){throw new Error("unreachable code")},e.prototype._init=function(e,t){this._mode=e,this._inI18nBlock=!1,this._inI18nNode=!1,this._depth=0,this._inIcu=!1,this._msgCountAtSectionStart=void 0,this._errors=[],this._messages=[],this._inImplicitNode=!1,this._createI18nMessage=ce(t)},e.prototype._visitAttributesOf=function(e){var t=this,n={},r=this._implicitAttrs[e.name]||[];e.attrs.filter(function(e){return e.name.startsWith("i18n-")}).forEach(function(e){return n[e.name.slice("i18n-".length)]=e.value}),e.attrs.forEach(function(e){e.name in n?t._addMessage([e],n[e.name]):r.some(function(t){return e.name===t})&&t._addMessage([e])})},e.prototype._addMessage=function(e,t){if(!(0==e.length||1==e.length&&e[0]instanceof su&&!e[0].value)){var n=ve(t),r=n[0],i=n[1],o=this._createI18nMessage(e,r,i);return this._messages.push(o),o}},e.prototype._translateMessage=function(e,t){if(t&&this._mode===zu.Merge){var n=this._translations.get(t);if(n)return n;this._reportError(e,'Translation unavailable for message id="'+this._translations.digest(t)+'"')}return[]},e.prototype._translateAttributes=function(e){var t=this,n=e.attrs,r={};n.forEach(function(e){e.name.startsWith("i18n-")&&(r[e.name.slice("i18n-".length)]=ve(e.value)[0])});var i=[];return n.forEach(function(n){if(n.name!==Lu&&!n.name.startsWith("i18n-"))if(n.value&&""!=n.value&&r.hasOwnProperty(n.name)){var o=r[n.name],a=t._createI18nMessage([n],o,""),s=t._translations.get(a);if(s)if(0==s.length)i.push(new su(n.name,"",n.sourceSpan));else if(s[0]instanceof iu){var u=s[0].value;i.push(new su(n.name,u,n.sourceSpan))}else t._reportError(e,'Unexpected translation for attribute "'+n.name+'" (id="'+t._translations.digest(a)+'")');else t._reportError(e,'Translation unavailable for attribute "'+n.name+'" (id="'+t._translations.digest(a)+'")')}else i.push(n)}),i},e.prototype._mayBeAddBlockChildren=function(e){this._inI18nBlock&&!this._inIcu&&this._depth==this._blockStartDepth&&this._blockChildren.push(e)},e.prototype._openTranslatableSection=function(e){this._isInTranslatableSection?this._reportError(e,"Unexpected section start"):this._msgCountAtSectionStart=this._messages.length},Object.defineProperty(e.prototype,"_isInTranslatableSection",{get:function(){return void 0!==this._msgCountAtSectionStart},enumerable:!0,configurable:!0}),e.prototype._closeTranslatableSection=function(e,t){if(this._isInTranslatableSection){var n=this._msgCountAtSectionStart;if(1==t.reduce(function(e,t){return e+(t instanceof cu?0:1)},0))for(var r=this._messages.length-1;r>=n;r--){var i=this._messages[r].nodes;if(!(1==i.length&&i[0]instanceof Cu)){this._messages.splice(r,1);break}}this._msgCountAtSectionStart=void 0}else this._reportError(e,"Unexpected section end")},e.prototype._reportError=function(e,t){this._errors.push(new Nu(e.sourceSpan,t))},e}(),Bu=new(function(){function e(){this.closedByParent=!1,this.contentType=Bo.PARSABLE_DATA,this.isVoid=!1,this.ignoreFirstLf=!1,this.canSelfClose=!0}return e.prototype.requireExtraParent=function(e){return!1},e.prototype.isClosedByChild=function(e){return!1},e}()),Hu=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},qu=function(e){function t(){e.call(this,ye)}return Hu(t,e),t.prototype.parse=function(t,n,r){return void 0===r&&(r=!1),e.prototype.parse.call(this,t,n,r,null)},t}(wu),Wu=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},Gu=function(){function e(){}return e.prototype.visitText=function(e,t){return e.value},e.prototype.visitContainer=function(e,t){var n=this;return"["+e.children.map(function(e){return e.visit(n)}).join(", ")+"]"},e.prototype.visitIcu=function(e,t){var n=this,r=Object.keys(e.cases).map(function(t){return t+" {"+e.cases[t].visit(n)+"}"});return"{"+e.expression+", "+e.type+", "+r.join(", ")+"}"},e.prototype.visitTagPlaceholder=function(e,t){var n=this;return e.isVoid?'<ph tag name="'+e.startName+'"/>':'<ph tag name="'+e.startName+'">'+e.children.map(function(e){return e.visit(n)}).join(", ")+'</ph name="'+e.closeName+'">'},e.prototype.visitPlaceholder=function(e,t){return e.value?'<ph name="'+e.name+'">'+e.value+"</ph>":'<ph name="'+e.name+'"/>'},e.prototype.visitIcuPlaceholder=function(e,t){return'<ph icu name="'+e.name+'">'+e.value.visit(this)+"</ph>"},e}(),Yu=new Gu,Zu=function(e){function t(){e.apply(this,arguments)}return Wu(t,e),t.prototype.visitIcu=function(e,t){var n=this,r=Object.keys(e.cases).map(function(t){return t+" {"+e.cases[t].visit(n)+"}"});return"{"+e.type+", "+r.join(", ")+"}"},t}(Gu),Ku={};Ku.Little=0,Ku.Big=1,Ku[Ku.Little]="Little",Ku[Ku.Big]="Big";var Xu=function(){function e(){}return e.prototype.write=function(e){},e.prototype.load=function(e,t){},e.prototype.digest=function(e){},e.prototype.createNameMapper=function(e){return null},e}(),Ju=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},Qu=new(function(){function e(){}return e.prototype.visitTag=function(e){var t=this,n=this._serializeAttributes(e.attrs);if(0==e.children.length)return"<"+e.name+n+"/>";var r=e.children.map(function(e){return e.visit(t)});return"<"+e.name+n+">"+r.join("")+"</"+e.name+">"},e.prototype.visitText=function(e){return e.value},e.prototype.visitDeclaration=function(e){return"<?xml"+this._serializeAttributes(e.attrs)+" ?>"},e.prototype._serializeAttributes=function(e){var t=Object.keys(e).map(function(t){return t+'="'+e[t]+'"'}).join(" ");return t.length>0?" "+t:""},e.prototype.visitDoctype=function(e){return"<!DOCTYPE "+e.rootTag+" [\n"+e.dtd+"\n]>"},e}()),$u=function(){function e(e){var t=this;this.attrs={},Object.keys(e).forEach(function(n){t.attrs[n]=qe(e[n])})}return e.prototype.visit=function(e){return e.visitDeclaration(this)},e}(),ec=function(){function e(e,t){this.rootTag=e,this.dtd=t}return e.prototype.visit=function(e){return e.visitDoctype(this)},e}(),tc=function(){function e(e,t,n){var r=this;void 0===t&&(t={}),void 0===n&&(n=[]),this.name=e,this.children=n,this.attrs={},Object.keys(t).forEach(function(e){r.attrs[e]=qe(t[e])})}return e.prototype.visit=function(e){return e.visitTag(this)},e}(),nc=function(){function e(e){this.value=qe(e)}return e.prototype.visit=function(e){return e.visitText(this)},e}(),rc=function(e){function t(t){void 0===t&&(t=0),e.call(this,"\n"+new Array(t+1).join(" "))}return Ju(t,e),t}(nc),ic=[[/&/g,"&amp;"],[/"/g,"&quot;"],[/'/g,"&apos;"],[/</g,"&lt;"],[/>/g,"&gt;"]],oc=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},ac=function(e){function t(){e.apply(this,arguments)}return oc(t,e),t.prototype.write=function(e){var t=this,n=new sc,r={},i=[];e.forEach(function(e){var o=t.digest(e);if(!r[o]){r[o]=!0;var a=new tc("trans-unit",{id:o,datatype:"html"});a.children.push(new rc(8),new tc("source",{},n.serialize(e.nodes)),new rc(8),new tc("target")),e.description&&a.children.push(new rc(8),new tc("note",{priority:"1",from:"description"},[new nc(e.description)])),e.meaning&&a.children.push(new rc(8),new tc("note",{priority:"1",from:"meaning"},[new nc(e.meaning)])),a.children.push(new rc(6)),i.push(new rc(6),a)}});var o=new tc("body",{},i.concat([new rc(4)])),a=new tc("file",{"source-language":"en",datatype:"plaintext",original:"ng2.template"},[new rc(4),o,new rc(2)]),s=new tc("xliff",{version:"1.2",xmlns:"urn:oasis:names:tc:xliff:document:1.2"},[new rc(2),a,new rc]);return He([new $u({version:"1.0",encoding:"UTF-8"}),new rc,s,new rc])},t.prototype.load=function(e,t){var n=(new uc).parse(e,t),r=n.mlNodesByMsgId,i=n.errors,o={},a=new cc;if(Object.keys(r).forEach(function(e){var t=a.convert(r[e]),n=t.i18nNodes,s=t.errors;i.push.apply(i,s),o[e]=n}),i.length)throw new Error("xliff parse errors:\n"+i.join("\n"));return o},t.prototype.digest=function(e){return ge(e)},t}(Xu),sc=function(){function e(){}return e.prototype.visitText=function(e,t){return[new nc(e.value)]},e.prototype.visitContainer=function(e,t){var n=this,r=[];return e.children.forEach(function(e){return r.push.apply(r,e.visit(n))}),r},e.prototype.visitIcu=function(e,t){if(this._isInIcu)throw new Error("xliff does not support nested ICU messages");this._isInIcu=!0;var n=[];return this._isInIcu=!1,n},e.prototype.visitTagPlaceholder=function(e,t){var n=We(e.tag),r=new tc("x",{id:e.startName,ctype:n});if(e.isVoid)return[r];var i=new tc("x",{id:e.closeName,ctype:n});return[r].concat(this.serialize(e.children),[i])},e.prototype.visitPlaceholder=function(e,t){return[new tc("x",{id:e.name})]},e.prototype.visitIcuPlaceholder=function(e,t){return[new tc("x",{id:e.name})]},e.prototype.serialize=function(e){var t=this;return this._isInIcu=!1,(n=[]).concat.apply(n,e.map(function(e){return e.visit(t)}));var n},e}(),uc=function(){function e(){}return e.prototype.parse=function(e,t){this._unitMlNodes=[],this._mlNodesByMsgId={};var n=(new qu).parse(e,t,!1);return this._errors=n.errors,Z(this,n.rootNodes,null),{mlNodesByMsgId:this._mlNodesByMsgId,errors:this._errors}},e.prototype.visitElement=function(e,t){switch(e.name){case"trans-unit":this._unitMlNodes=null;var n=e.attrs.find(function(e){return"id"===e.name});if(n){var r=n.value;this._mlNodesByMsgId.hasOwnProperty(r)?this._addError(e,"Duplicated translations for msg "+r):(Z(this,e.children,null),this._unitMlNodes?this._mlNodesByMsgId[r]=this._unitMlNodes:this._addError(e,"Message "+r+" misses a translation"))}else this._addError(e,'<trans-unit> misses the "id" attribute');break;case"source":break;case"target":this._unitMlNodes=e.children;break;default:Z(this,e.children,null)}},e.prototype.visitAttribute=function(e,t){},e.prototype.visitText=function(e,t){},e.prototype.visitComment=function(e,t){},e.prototype.visitExpansion=function(e,t){},e.prototype.visitExpansionCase=function(e,t){},e.prototype._addError=function(e,t){this._errors.push(new Nu(e.sourceSpan,t))},e}(),cc=function(){function e(){}return e.prototype.convert=function(e){return this._errors=[],{i18nNodes:Z(this,e),errors:this._errors}},e.prototype.visitText=function(e,t){return new Cu(e.value,e.sourceSpan)},e.prototype.visitElement=function(e,t){if("x"===e.name){var n=e.attrs.find(function(e){return"id"===e.name});if(n)return new Ou("",n.value,e.sourceSpan);this._addError(e,'<x> misses the "id" attribute')}else this._addError(e,"Unexpected tag")},e.prototype.visitExpansion=function(e,t){},e.prototype.visitExpansionCase=function(e,t){},e.prototype.visitComment=function(e,t){},e.prototype.visitAttribute=function(e,t){},e.prototype._addError=function(e,t){this._errors.push(new Nu(e.sourceSpan,t))},e}(),lc=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},pc=function(e){function t(){e.apply(this,arguments)}return lc(t,e),t.prototype.write=function(e){var t=this,n=new hc,r=new dc,i={},o=new tc("messagebundle");return e.forEach(function(e){var n=t.digest(e);if(!i[n]){i[n]=!0;var a=t.createNameMapper(e),s={id:n};e.description&&(s.desc=e.description),e.meaning&&(s.meaning=e.meaning),o.children.push(new rc(2),new tc("msg",s,r.serialize(e.nodes,{mapper:a})))}}),o.children.push(new rc),He([new $u({version:"1.0",encoding:"UTF-8"}),new rc,new ec("messagebundle",'<!ELEMENT messagebundle (msg)*>\n<!ATTLIST messagebundle class CDATA #IMPLIED>\n\n<!ELEMENT msg (#PCDATA|ph|source)*>\n<!ATTLIST msg id CDATA #IMPLIED>\n<!ATTLIST msg seq CDATA #IMPLIED>\n<!ATTLIST msg name CDATA #IMPLIED>\n<!ATTLIST msg desc CDATA #IMPLIED>\n<!ATTLIST msg meaning CDATA #IMPLIED>\n<!ATTLIST msg obsolete (obsolete) #IMPLIED>\n<!ATTLIST msg xml:space (default|preserve) "default">\n<!ATTLIST msg is_hidden CDATA #IMPLIED>\n\n<!ELEMENT source (#PCDATA)>\n\n<!ELEMENT ph (#PCDATA|ex)*>\n<!ATTLIST ph name CDATA #REQUIRED>\n\n<!ELEMENT ex (#PCDATA)>'),new rc,n.addDefaultExamples(o),new rc])},t.prototype.load=function(e,t){throw new Error("Unsupported")},t.prototype.digest=function(e){return Ge(e)},t.prototype.createNameMapper=function(e){return new fc(e)},t}(Xu),dc=function(){function e(){}return e.prototype.visitText=function(e,t){return[new nc(e.value)]},e.prototype.visitContainer=function(e,t){var n=this,r=[];return e.children.forEach(function(e){return r.push.apply(r,e.visit(n,t))}),r},e.prototype.visitIcu=function(e,t){var n=this,r=[new nc("{"+e.expressionPlaceholder+", "+e.type+", ")];return Object.keys(e.cases).forEach(function(i){r.push.apply(r,[new nc(i+" {")].concat(e.cases[i].visit(n,t),[new nc("} ")]))}),r.push(new nc("}")),r},e.prototype.visitTagPlaceholder=function(e,t){var n=new tc("ex",{},[new nc("<"+e.tag+">")]),r=t.mapper.toPublicName(e.startName),i=new tc("ph",{name:r},[n]);if(e.isVoid)return[i];var o=new tc("ex",{},[new nc("</"+e.tag+">")]);r=t.mapper.toPublicName(e.closeName);var a=new tc("ph",{name:r},[o]);return[i].concat(this.serialize(e.children,t),[a])},e.prototype.visitPlaceholder=function(e,t){var n=t.mapper.toPublicName(e.name);return[new tc("ph",{name:n})]},e.prototype.visitIcuPlaceholder=function(e,t){var n=t.mapper.toPublicName(e.name);return[new tc("ph",{name:n})]},e.prototype.serialize=function(e,t){var n=this;return(r=[]).concat.apply(r,e.map(function(e){return e.visit(n,t)}));var r},e}(),hc=function(){function e(){}return e.prototype.addDefaultExamples=function(e){return e.visit(this),e},e.prototype.visitTag=function(e){var t=this;if("ph"===e.name){if(!e.children||0==e.children.length){var n=new nc(e.attrs.name||"...");e.children=[new tc("ex",{},[n])]}}else e.children&&e.children.forEach(function(e){return e.visit(t)})},e.prototype.visitText=function(e){},e.prototype.visitDeclaration=function(e){},e.prototype.visitDoctype=function(e){},e}(),fc=function(){function e(e){var t=this;this.internalToXmb={},this.xmbToNextId={},this.xmbToInternal={},e.nodes.forEach(function(e){return e.visit(t)})}return e.prototype.toPublicName=function(e){return this.internalToXmb.hasOwnProperty(e)?this.internalToXmb[e]:null},e.prototype.toInternalName=function(e){return this.xmbToInternal.hasOwnProperty(e)?this.xmbToInternal[e]:null},e.prototype.visitText=function(e,t){return null},e.prototype.visitContainer=function(e,t){var n=this;e.children.forEach(function(e){return e.visit(n)})},e.prototype.visitIcu=function(e,t){var n=this;Object.keys(e.cases).forEach(function(t){e.cases[t].visit(n)})},e.prototype.visitTagPlaceholder=function(e,t){var n=this;this.addPlaceholder(e.startName),e.children.forEach(function(e){return e.visit(n)}),this.addPlaceholder(e.closeName)},e.prototype.visitPlaceholder=function(e,t){this.addPlaceholder(e.name)},e.prototype.visitIcuPlaceholder=function(e,t){this.addPlaceholder(e.name)},e.prototype.addPlaceholder=function(e){if(e&&!this.internalToXmb.hasOwnProperty(e)){var t=e.toUpperCase().replace(/[^A-Z0-9_]/g,"_");if(this.xmbToInternal.hasOwnProperty(t)){var n=this.xmbToNextId[t];this.xmbToNextId[t]=n+1,t=t+"_"+n}else this.xmbToNextId[t]=1;this.internalToXmb[e]=t,this.xmbToInternal[t]=e}},e}(),mc=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},vc=function(e){function t(){e.apply(this,arguments)}return mc(t,e),t.prototype.write=function(e){throw new Error("Unsupported")},t.prototype.load=function(e,t){var n=(new yc).parse(e,t),r=n.mlNodesByMsgId,i=n.errors,o={},a=new gc;if(Object.keys(r).forEach(function(e){var t=a.convert(r[e]),n=t.i18nNodes,s=t.errors;i.push.apply(i,s),o[e]=n}),i.length)throw new Error("xtb parse errors:\n"+i.join("\n"));return o},t.prototype.digest=function(e){return Ge(e)},t.prototype.createNameMapper=function(e){return new fc(e)},t}(Xu),yc=function(){function e(){}return e.prototype.parse=function(e,t){this._bundleDepth=0,this._mlNodesByMsgId={};var n=(new qu).parse(e,t,!0);return this._errors=n.errors,Z(this,n.rootNodes),{mlNodesByMsgId:this._mlNodesByMsgId,errors:this._errors}},e.prototype.visitElement=function(e,t){switch(e.name){case"translationbundle":++this._bundleDepth>1&&this._addError(e,"<translationbundle> elements can not be nested"),Z(this,e.children,null),this._bundleDepth--;break;case"translation":var n=e.attrs.find(function(e){return"id"===e.name});if(n){var r=n.value;this._mlNodesByMsgId.hasOwnProperty(r)?this._addError(e,"Duplicated translations for msg "+r):this._mlNodesByMsgId[r]=e.children}else this._addError(e,'<translation> misses the "id" attribute');break;default:this._addError(e,"Unexpected tag")}},e.prototype.visitAttribute=function(e,t){},e.prototype.visitText=function(e,t){},e.prototype.visitComment=function(e,t){},e.prototype.visitExpansion=function(e,t){},e.prototype.visitExpansionCase=function(e,t){},e.prototype._addError=function(e,t){this._errors.push(new Nu(e.sourceSpan,t))},e}(),gc=function(){function e(){}return e.prototype.convert=function(e){return this._errors=[],{i18nNodes:Z(this,e),errors:this._errors}},e.prototype.visitText=function(e,t){return new Cu(e.value,e.sourceSpan)},e.prototype.visitExpansion=function(e,t){var n={};return Z(this,e.cases).forEach(function(t){n[t.value]=new Su(t.nodes,e.sourceSpan)}),new Eu(e.switchValue,e.type,n,e.sourceSpan)},e.prototype.visitExpansionCase=function(e,t){return{value:e.value,nodes:Z(this,e.expression)}},e.prototype.visitElement=function(e,t){if("ph"===e.name){var n=e.attrs.find(function(e){return"name"===e.name});if(n)return new Ou("",n.value,e.sourceSpan);this._addError(e,'<ph> misses the "name" attribute')}else this._addError(e,"Unexpected tag")},e.prototype.visitComment=function(e,t){},e.prototype.visitAttribute=function(e,t){},e.prototype._addError=function(e,t){this._errors.push(new Nu(e.sourceSpan,t))},e}(),_c=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},bc=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},wc=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},kc=function(e){function t(){e.call(this,h)}return _c(t,e),t.prototype.parse=function(t,n,r,i){return void 0===r&&(r=!1),void 0===i&&(i=ls),e.prototype.parse.call(this,t,n,r,i)},t=bc([M(),wc("design:paramtypes",[])],t)}(wu),xc=function(){function e(e,t,n){void 0===e&&(e={}),this._i18nNodesByMsgId=e,this.digest=t,this.mapperFactory=n,this._i18nToHtml=new Cc(e,t,n)}return e.load=function(t,n,r){return new e(r.load(t,n),function(e){return r.digest(e)},function(e){return r.createNameMapper(e)})},e.prototype.get=function(e){var t=this._i18nToHtml.convert(e);if(t.errors.length)throw new Error(t.errors.join("\n"));return t.nodes},e.prototype.has=function(e){return this.digest(e)in this._i18nNodesByMsgId},e}(),Cc=function(){function e(e,t,n){void 0===e&&(e={}),this._i18nNodesByMsgId=e,this._digest=t,this._mapperFactory=n,this._contextStack=[],this._errors=[]}return e.prototype.convert=function(e){this._contextStack.length=0,this._errors.length=0;var t=this._convertToText(e),n=e.nodes[0].sourceSpan.start.file.url,r=(new kc).parse(t,n,!0);return{nodes:r.rootNodes,errors:this._errors.concat(r.errors)}},e.prototype.visitText=function(e,t){return e.value},e.prototype.visitContainer=function(e,t){var n=this;return e.children.map(function(e){return e.visit(n)}).join("")},e.prototype.visitIcu=function(e,t){var n=this,r=Object.keys(e.cases).map(function(t){return t+" {"+e.cases[t].visit(n)+"}"});return"{"+(this._srcMsg.placeholders.hasOwnProperty(e.expression)?this._srcMsg.placeholders[e.expression]:e.expression)+", "+e.type+", "+r.join(" ")+"}"},e.prototype.visitPlaceholder=function(e,t){var n=this._mapper(e.name);return this._srcMsg.placeholders.hasOwnProperty(n)?this._srcMsg.placeholders[n]:this._srcMsg.placeholderToMessage.hasOwnProperty(n)?this._convertToText(this._srcMsg.placeholderToMessage[n]):(this._addError(e,"Unknown placeholder"),"")},e.prototype.visitTagPlaceholder=function(e,t){throw"unreachable code"},e.prototype.visitIcuPlaceholder=function(e,t){throw"unreachable code"},e.prototype._convertToText=function(e){var t=this,n=this._digest(e),r=this._mapperFactory?this._mapperFactory(e):null;if(this._i18nNodesByMsgId.hasOwnProperty(n)){this._contextStack.push({msg:this._srcMsg,mapper:this._mapper}),this._srcMsg=e,this._mapper=function(e){return r?r.toInternalName(e):e};var i=this._i18nNodesByMsgId[n].map(function(e){return e.visit(t)}).join(""),o=this._contextStack.pop();return this._srcMsg=o.msg,this._mapper=o.mapper,i}return this._addError(e.nodes[0],"Missing translation for message "+n),""},e.prototype._addError=function(e,t){this._errors.push(new Nu(e.sourceSpan,t))},e}(),Sc=function(){function e(e,t,n){this._htmlParser=e,this._translations=t,this._translationsFormat=n}return e.prototype.parse=function(e,t,n,r){void 0===n&&(n=!1),void 0===r&&(r=ls);var i=this._htmlParser.parse(e,t,n,r);if(!this._translations||""===this._translations)return i;if(i.errors.length)return new bu(i.rootNodes,i.errors);var o=this._createSerializer(),a=xc.load(this._translations,t,o);return de(i.rootNodes,a,r,[],{})},e.prototype._createSerializer=function(){switch((this._translationsFormat||"xlf").toLowerCase()){case"xmb":return new pc;case"xtb":return new vc;case"xliff":case"xlf":default:return new ac}},e}(),Ec=Ye("core","linker/view"),Tc=Ye("core","linker/view_utils"),Oc=Ye("core","change_detection/change_detection"),Pc=Ye("core","animation/animation_style_util"),Mc=function(){function e(){}return e.ANALYZE_FOR_ENTRY_COMPONENTS={name:"ANALYZE_FOR_ENTRY_COMPONENTS",moduleUrl:Ye("core","metadata/di"),runtime:t.ANALYZE_FOR_ENTRY_COMPONENTS},e.ViewUtils={name:"ViewUtils",moduleUrl:Ye("core","linker/view_utils"),runtime:mo.ViewUtils},e.AppView={name:"AppView",moduleUrl:Ec,runtime:co},e.DebugAppView={name:"DebugAppView",moduleUrl:Ec,runtime:lo},e.ViewContainer={name:"ViewContainer",moduleUrl:Ye("core","linker/view_container"),runtime:ao},e.ElementRef={name:"ElementRef",moduleUrl:Ye("core","linker/element_ref"),runtime:t.ElementRef},e.ViewContainerRef={name:"ViewContainerRef",moduleUrl:Ye("core","linker/view_container_ref"),runtime:t.ViewContainerRef},e.ChangeDetectorRef={name:"ChangeDetectorRef",moduleUrl:Ye("core","change_detection/change_detector_ref"),runtime:t.ChangeDetectorRef},e.RenderComponentType={name:"RenderComponentType",moduleUrl:Ye("core","render/api"),runtime:t.RenderComponentType},e.QueryList={name:"QueryList",moduleUrl:Ye("core","linker/query_list"),runtime:t.QueryList},e.TemplateRef={name:"TemplateRef",moduleUrl:Ye("core","linker/template_ref"),runtime:t.TemplateRef},e.TemplateRef_={name:"TemplateRef_",moduleUrl:Ye("core","linker/template_ref"),runtime:wo},e.CodegenComponentFactoryResolver={name:"CodegenComponentFactoryResolver",moduleUrl:Ye("core","linker/component_factory_resolver"),runtime:so},e.ComponentFactoryResolver={name:"ComponentFactoryResolver",moduleUrl:Ye("core","linker/component_factory_resolver"),runtime:t.ComponentFactoryResolver},e.ComponentFactory={name:"ComponentFactory",runtime:t.ComponentFactory,moduleUrl:Ye("core","linker/component_factory")},e.ComponentRef_={name:"ComponentRef_",runtime:uo,moduleUrl:Ye("core","linker/component_factory")},e.ComponentRef={name:"ComponentRef",runtime:t.ComponentRef,moduleUrl:Ye("core","linker/component_factory")},e.NgModuleFactory={name:"NgModuleFactory",runtime:t.NgModuleFactory,moduleUrl:Ye("core","linker/ng_module_factory")},e.NgModuleInjector={name:"NgModuleInjector",runtime:po,moduleUrl:Ye("core","linker/ng_module_factory")},e.RegisterModuleFactoryFn={name:"registerModuleFactory",runtime:ho,moduleUrl:Ye("core","linker/ng_module_factory_loader")},e.ValueUnwrapper={name:"ValueUnwrapper",moduleUrl:Oc,runtime:bo},e.Injector={name:"Injector",moduleUrl:Ye("core","di/injector"),runtime:t.Injector},e.ViewEncapsulation={name:"ViewEncapsulation",moduleUrl:Ye("core","metadata/view"),runtime:t.ViewEncapsulation},e.ViewType={name:"ViewType",moduleUrl:Ye("core","linker/view_type"),runtime:fo},e.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleUrl:Oc,runtime:t.ChangeDetectionStrategy},e.StaticNodeDebugInfo={name:"StaticNodeDebugInfo",moduleUrl:Ye("core","linker/debug_context"),runtime:yo},e.DebugContext={name:"DebugContext",moduleUrl:Ye("core","linker/debug_context"),runtime:vo},e.Renderer={name:"Renderer",moduleUrl:Ye("core","render/api"),runtime:t.Renderer},e.SimpleChange={name:"SimpleChange",moduleUrl:Oc,runtime:t.SimpleChange},e.UNINITIALIZED={name:"UNINITIALIZED",moduleUrl:Oc,runtime:_o},e.ChangeDetectorStatus={name:"ChangeDetectorStatus",moduleUrl:Oc,runtime:no},e.checkBinding={name:"checkBinding",moduleUrl:Tc,runtime:mo.checkBinding},e.devModeEqual={name:"devModeEqual",moduleUrl:Oc,runtime:go},e.inlineInterpolate={name:"inlineInterpolate",moduleUrl:Tc,runtime:mo.inlineInterpolate},e.interpolate={name:"interpolate",moduleUrl:Tc,runtime:mo.interpolate},e.castByValue={name:"castByValue",moduleUrl:Tc,runtime:mo.castByValue},e.EMPTY_ARRAY={name:"EMPTY_ARRAY",moduleUrl:Tc,runtime:mo.EMPTY_ARRAY},e.EMPTY_MAP={name:"EMPTY_MAP",moduleUrl:Tc,runtime:mo.EMPTY_MAP},e.createRenderElement={name:"createRenderElement",moduleUrl:Tc,runtime:mo.createRenderElement},e.selectOrCreateRenderHostElement={name:"selectOrCreateRenderHostElement",moduleUrl:Tc,runtime:mo.selectOrCreateRenderHostElement},e.pureProxies=[null,{name:"pureProxy1",moduleUrl:Tc,runtime:mo.pureProxy1},{name:"pureProxy2",moduleUrl:Tc,runtime:mo.pureProxy2},{name:"pureProxy3",moduleUrl:Tc,runtime:mo.pureProxy3},{name:"pureProxy4",moduleUrl:Tc,runtime:mo.pureProxy4},{name:"pureProxy5",moduleUrl:Tc,runtime:mo.pureProxy5},{name:"pureProxy6",moduleUrl:Tc,runtime:mo.pureProxy6},{name:"pureProxy7",moduleUrl:Tc,runtime:mo.pureProxy7},{name:"pureProxy8",moduleUrl:Tc,runtime:mo.pureProxy8},{name:"pureProxy9",moduleUrl:Tc,runtime:mo.pureProxy9},{name:"pureProxy10",moduleUrl:Tc,runtime:mo.pureProxy10}],e.SecurityContext={name:"SecurityContext",moduleUrl:Ye("core","security"),runtime:t.SecurityContext},e.AnimationKeyframe={name:"AnimationKeyframe",moduleUrl:Ye("core","animation/animation_keyframe"),runtime:Po},e.AnimationStyles={name:"AnimationStyles",moduleUrl:Ye("core","animation/animation_styles"),runtime:Mo},e.NoOpAnimationPlayer={name:"NoOpAnimationPlayer",moduleUrl:Ye("core","animation/animation_player"),runtime:Eo},e.AnimationGroupPlayer={name:"AnimationGroupPlayer",moduleUrl:Ye("core","animation/animation_group_player"),runtime:Oo},e.AnimationSequencePlayer={name:"AnimationSequencePlayer",moduleUrl:Ye("core","animation/animation_sequence_player"),runtime:To},e.prepareFinalAnimationStyles={name:"prepareFinalAnimationStyles",moduleUrl:Pc,runtime:jo},e.balanceAnimationKeyframes={name:"balanceAnimationKeyframes",moduleUrl:Pc,runtime:No},e.clearStyles={name:"clearStyles",moduleUrl:Pc,runtime:Lo},e.renderStyles={name:"renderStyles",moduleUrl:Pc,runtime:Vo},e.collectAndResolveStyles={name:"collectAndResolveStyles",moduleUrl:Pc,runtime:Fo},e.LOCALE_ID={name:"LOCALE_ID",moduleUrl:Ye("core","i18n/tokens"),runtime:t.LOCALE_ID},e.TRANSLATIONS_FORMAT={name:"TRANSLATIONS_FORMAT",moduleUrl:Ye("core","i18n/tokens"),runtime:t.TRANSLATIONS_FORMAT},e.setBindingDebugInfo={name:"setBindingDebugInfo",moduleUrl:Tc,runtime:mo.setBindingDebugInfo},e.setBindingDebugInfoForChanges={name:"setBindingDebugInfoForChanges",moduleUrl:Tc,runtime:mo.setBindingDebugInfoForChanges},e.AnimationTransition={name:"AnimationTransition",moduleUrl:Ye("core","animation/animation_transition"),runtime:Uo},e.InlineArray={name:"InlineArray",moduleUrl:Tc,runtime:null},e.inlineArrays=[{name:"InlineArray2",moduleUrl:Tc,runtime:mo.InlineArray2},{name:"InlineArray2",moduleUrl:Tc,runtime:mo.InlineArray2},{name:"InlineArray4",moduleUrl:Tc,runtime:mo.InlineArray4},{name:"InlineArray8",moduleUrl:Tc,runtime:mo.InlineArray8},{name:"InlineArray16",moduleUrl:Tc,runtime:mo.InlineArray16}],e.EMPTY_INLINE_ARRAY={name:"EMPTY_INLINE_ARRAY",moduleUrl:Tc,runtime:mo.EMPTY_INLINE_ARRAY},e.InlineArrayDynamic={name:"InlineArrayDynamic",moduleUrl:Tc,runtime:mo.InlineArrayDynamic},e.subscribeToRenderElement={name:"subscribeToRenderElement",moduleUrl:Tc,runtime:mo.subscribeToRenderElement},e.createRenderComponentType={name:"createRenderComponentType",moduleUrl:Tc,runtime:mo.createRenderComponentType},e.noop={name:"noop",moduleUrl:Tc,runtime:mo.noop},e}(),Ac=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},Dc=["zero","one","two","few","many","other"],Ic=function(){return function(e,t,n){this.nodes=e,this.expanded=t,this.errors=n}}(),Rc=function(e){function t(t,n){e.call(this,t,n)}return Ac(t,e),t}(ru),jc=function(){function e(){this.isExpanded=!1,this.errors=[]}return e.prototype.visitElement=function(e,t){return new uu(e.name,e.attrs,Z(this,e.children),e.sourceSpan,e.startSourceSpan,e.endSourceSpan)},e.prototype.visitAttribute=function(e,t){return e},e.prototype.visitText=function(e,t){return e},e.prototype.visitComment=function(e,t){return e},e.prototype.visitExpansion=function(e,t){return this.isExpanded=!0,"plural"==e.type?et(e,this.errors):tt(e,this.errors)},e.prototype.visitExpansionCase=function(e,t){throw new Error("Should not be reached")},e}(),Nc=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},Lc=function(e){function t(t,n){e.call(this,n,t)}return Nc(t,e),t}(ru),Fc=function(){return function(e,t){var n=this;this.component=e,this.sourceSpan=t,this.errors=[],this.viewQueries=at(e),this.viewProviders=new Map,e.viewProviders.forEach(function(e){i(n.viewProviders.get(x(e.token)))&&n.viewProviders.set(x(e.token),!0)})}}(),Vc=function(){function e(e,t,n,i,o,a,s){var u=this;this.viewContext=e,this._parent=t,this._isViewRoot=n,this._directiveAsts=i,this._sourceSpan=s,this._transformedProviders=new Map,this._seenProviders=new Map,this._hasViewContainer=!1,this._attrs={},o.forEach(function(e){return u._attrs[e.name]=e.value});var c=i.map(function(e){return e.directive});this._allProviders=it(c,s,e.errors),this._contentQueries=st(c);var l=new Map;Array.from(this._allProviders.values()).forEach(function(e){u._addQueryReadsTo(e.token,l)}),a.forEach(function(e){u._addQueryReadsTo({value:e.name},l)}),r(l.get(Ze(Mc.ViewContainerRef)))&&(this._hasViewContainer=!0),Array.from(this._allProviders.values()).forEach(function(e){(e.eager||r(l.get(x(e.token))))&&u._getOrCreateLocalProvider(e.providerType,e.token,!0)})}return e.prototype.afterElement=function(){var e=this;Array.from(this._allProviders.values()).forEach(function(t){e._getOrCreateLocalProvider(t.providerType,t.token,!1)})},Object.defineProperty(e.prototype,"transformProviders",{get:function(){return Array.from(this._transformedProviders.values())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"transformedDirectiveAsts",{get:function(){var e=this.transformProviders.map(function(e){return e.token.identifier}),t=this._directiveAsts.slice();return t.sort(function(t,n){return e.indexOf(t.directive.type)-e.indexOf(n.directive.type)}),t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"transformedHasViewContainer",{get:function(){return this._hasViewContainer},enumerable:!0,configurable:!0}),e.prototype._addQueryReadsTo=function(e,t){this._getQueriesFor(e).forEach(function(n){var r=n.read||e;i(t.get(x(r)))&&t.set(x(r),!0)})},e.prototype._getQueriesFor=function(e){for(var t,n=[],r=this,i=0;null!==r;)(t=r._contentQueries.get(x(e)))&&n.push.apply(n,t.filter(function(e){return e.descendants||i<=1})),r._directiveAsts.length>0&&i++,r=r._parent;return(t=this.viewContext.viewQueries.get(x(e)))&&n.push.apply(n,t),n},e.prototype._getOrCreateLocalProvider=function(e,t,n){var i=this,o=this._allProviders.get(x(t));if(!o||(e===Gi.Directive||e===Gi.PublicService)&&o.providerType===Gi.PrivateService||(e===Gi.PrivateService||e===Gi.PublicService)&&o.providerType===Gi.Builtin)return null;var a=this._transformedProviders.get(x(t));if(a)return a;if(r(this._seenProviders.get(x(t))))return this.viewContext.errors.push(new Lc("Cannot instantiate cyclic dependency! "+k(t),this._sourceSpan)),null;this._seenProviders.set(x(t),!0);var s=o.providers.map(function(e){var t,a=e.useValue,s=e.useExisting;if(r(e.useExisting)){var u=i._getDependency(o.providerType,{token:e.useExisting},n);r(u.token)?s=u.token:(s=null,a=u.value)}else if(e.useFactory)t=(c=e.deps||e.useFactory.diDeps).map(function(e){return i._getDependency(o.providerType,e,n)});else if(e.useClass){var c=e.deps||e.useClass.diDeps;t=c.map(function(e){return i._getDependency(o.providerType,e,n)})}return nt(e,{useExisting:s,useValue:a,deps:t})});return a=rt(o,{eager:n,providers:s}),this._transformedProviders.set(x(t),a),a},e.prototype._getLocalDependency=function(e,t,n){if(void 0===n&&(n=null),t.isAttribute){var i=this._attrs[t.token.value];return{isValue:!0,value:null==i?null:i}}if(r(t.token)){if(e===Gi.Directive||e===Gi.Component){if(x(t.token)===Ze(Mc.Renderer)||x(t.token)===Ze(Mc.ElementRef)||x(t.token)===Ze(Mc.ChangeDetectorRef)||x(t.token)===Ze(Mc.TemplateRef))return t;x(t.token)===Ze(Mc.ViewContainerRef)&&(this._hasViewContainer=!0)}if(x(t.token)===Ze(Mc.Injector))return t;if(r(this._getOrCreateLocalProvider(e,t.token,n)))return t}return null},e.prototype._getDependency=function(e,t,n){void 0===n&&(n=null);var i=this,o=n,a=null;if(t.isSkipSelf||(a=this._getLocalDependency(e,t,n)),t.isSelf)!a&&t.isOptional&&(a={isValue:!0,value:null});else{for(;!a&&i._parent;){var s=i;i=i._parent,s._isViewRoot&&(o=!1),a=i._getLocalDependency(Gi.PublicService,t,o)}a||(a=!t.isHost||this.viewContext.component.isHost||this.viewContext.component.type.reference===x(t.token)||r(this.viewContext.viewProviders.get(x(t.token)))?t:t.isOptional?a={isValue:!0,value:null}:null)}return a||this.viewContext.errors.push(new Lc("No provider for "+k(t.token),this._sourceSpan)),a},e}(),zc=function(){function e(e,t,n){var r=this;this._transformedProviders=new Map,this._seenProviders=new Map,this._errors=[],this._allProviders=new Map,e.transitiveModule.modules.forEach(function(e){ot([{token:{identifier:e},useClass:e}],Gi.PublicService,!0,n,r._errors,r._allProviders)}),ot(e.transitiveModule.providers.map(function(e){return e.provider}).concat(t),Gi.PublicService,!1,n,this._errors,this._allProviders)}return e.prototype.parse=function(){var e=this;if(Array.from(this._allProviders.values()).forEach(function(t){e._getOrCreateLocalProvider(t.token,t.eager)}),this._errors.length>0){var t=this._errors.join("\n");throw new Error("Provider parse errors:\n"+t)}return Array.from(this._transformedProviders.values())},e.prototype._getOrCreateLocalProvider=function(e,t){var n=this,i=this._allProviders.get(x(e));if(!i)return null;var o=this._transformedProviders.get(x(e));if(o)return o;if(r(this._seenProviders.get(x(e))))return this._errors.push(new Lc("Cannot instantiate cyclic dependency! "+k(e),i.sourceSpan)),null;this._seenProviders.set(x(e),!0);var a=i.providers.map(function(e){var o,a=e.useValue,s=e.useExisting;if(r(e.useExisting)){var u=n._getDependency({token:e.useExisting},t,i.sourceSpan);r(u.token)?s=u.token:(s=null,a=u.value)}else if(e.useFactory)o=(c=e.deps||e.useFactory.diDeps).map(function(e){return n._getDependency(e,t,i.sourceSpan)});else if(e.useClass){var c=e.deps||e.useClass.diDeps;o=c.map(function(e){return n._getDependency(e,t,i.sourceSpan)})}return nt(e,{useExisting:s,useValue:a,deps:o})});return o=rt(i,{eager:t,providers:a}),this._transformedProviders.set(x(e),o),o},e.prototype._getDependency=function(e,t,n){void 0===t&&(t=null);var i=!1;!e.isSkipSelf&&r(e.token)&&(x(e.token)===Ze(Mc.Injector)||x(e.token)===Ze(Mc.ComponentFactoryResolver)?i=!0:r(this._getOrCreateLocalProvider(e.token,t))&&(i=!0));var o=e;return e.isSelf&&!i&&(e.isOptional?o={isValue:!0,value:null}:this._errors.push(new Lc("No provider for "+k(e.token),n))),o},e}(),Uc=function(){function e(){}return e.prototype.hasProperty=function(e,t,n){},e.prototype.hasElement=function(e,t){},e.prototype.securityContext=function(e,t,n){},e.prototype.allKnownElementNames=function(){},e.prototype.getMappedPropName=function(e){},e.prototype.getDefaultComponentElementName=function(){},e.prototype.validateProperty=function(e){},e.prototype.validateAttribute=function(e){},e.prototype.normalizeAnimationStyleProperty=function(e){},e.prototype.normalizeAnimationStyleValue=function(e,t,n){},e}(),Bc=function(){return function(e,t){this.style=e,this.styleUrls=t}}(),Hc=/@import\s+(?:url\()?\s*(?:(?:['"]([^'"]*))|([^;\)\s]*))[^;]*;?/g,qc=/\/\*.+?\*\//g,Wc=/^([^:/?#]+):/,Gc=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},Yc={};Yc.DEFAULT=0,Yc.LITERAL_ATTR=1,Yc.ANIMATION=2,Yc[Yc.DEFAULT]="DEFAULT",Yc[Yc.LITERAL_ATTR]="LITERAL_ATTR",Yc[Yc.ANIMATION]="ANIMATION";var Zc=function(){function e(e,t,n,r){this.name=e,this.expression=t,this.type=n,this.sourceSpan=r}return Object.defineProperty(e.prototype,"isLiteral",{get:function(){return this.type===Yc.LITERAL_ATTR},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isAnimation",{get:function(){return this.type===Yc.ANIMATION},enumerable:!0,configurable:!0}),e}(),Kc=function(){function e(e,t,n,r,i){var o=this;this._exprParser=e,this._interpolationConfig=t,this._schemaRegistry=n,this._targetErrors=i,this.pipesByName=new Map,r.forEach(function(e){return o.pipesByName.set(e.name,e)})}return e.prototype.createDirectiveHostPropertyAsts=function(e,t){var n=this;if(e.hostProperties){var r=[];return Object.keys(e.hostProperties).forEach(function(i){var o=e.hostProperties[i];"string"==typeof o?n.parsePropertyBinding(i,o,!0,t,[],r):n._reportError('Value of the host property binding "'+i+'" needs to be a string representing an expression but got "'+o+'" ('+typeof o+")",t)}),r.map(function(t){return n.createElementPropertyAst(e.selector,t)})}},e.prototype.createDirectiveHostEventAsts=function(e,t){var n=this;if(e.hostListeners){var r=[];return Object.keys(e.hostListeners).forEach(function(i){var o=e.hostListeners[i];"string"==typeof o?n.parseEvent(i,o,t,[],r):n._reportError('Value of the host listener "'+i+'" needs to be a string representing an expression but got "'+o+'" ('+typeof o+")",t)}),r}},e.prototype.parseInterpolation=function(e,t){var n=t.start.toString();try{var r=this._exprParser.parseInterpolation(e,n,this._interpolationConfig);return r&&this._reportExpressionParserErrors(r.errors,t),this._checkPipes(r,t),r}catch(e){return this._reportError(""+e,t),this._exprParser.wrapLiteralPrimitive("ERROR",n)}},e.prototype.parseInlineTemplateBinding=function(e,t,n,r,i,o){for(var a=this._parseTemplateBindings(e,t,n),s=0;s<a.length;s++){var u=a[s];u.keyIsVar?o.push(new zi(u.key,u.name,n)):u.expression?this._parsePropertyAst(u.key,u.expression,n,r,i):(r.push([u.key,""]),this.parseLiteralAttr(u.key,null,n,r,i))}},e.prototype._parseTemplateBindings=function(e,t,n){var r=this,i=n.start.toString();try{var o=this._exprParser.parseTemplateBindings(e,t,i);return this._reportExpressionParserErrors(o.errors,n),o.templateBindings.forEach(function(e){e.expression&&r._checkPipes(e.expression,n)}),o.warnings.forEach(function(e){r._reportError(e,n,nu.WARNING)}),o.templateBindings}catch(e){return this._reportError(""+e,n),[]}},e.prototype.parseLiteralAttr=function(e,t,n,r,i){pt(e)?(e=e.substring(1),t&&this._reportError('Assigning animation triggers via @prop="exp" attributes with an expression is invalid. Use property bindings (e.g. [@prop]="exp") or use an attribute without a value (e.g. @prop) instead.',n,nu.FATAL),this._parseAnimation(e,t,n,r,i)):i.push(new Zc(e,this._exprParser.wrapLiteralPrimitive(t,""),Yc.LITERAL_ATTR,n))},e.prototype.parsePropertyBinding=function(e,t,n,r,i,o){var a=!1;e.startsWith("animate-")?(a=!0,e=e.substring("animate-".length)):pt(e)&&(a=!0,e=e.substring(1)),a?this._parseAnimation(e,t,r,i,o):this._parsePropertyAst(e,this._parseBinding(t,n,r),r,i,o)},e.prototype.parsePropertyInterpolation=function(e,t,n,r,i){var o=this.parseInterpolation(t,n);return!!o&&(this._parsePropertyAst(e,o,n,r,i),!0)},e.prototype._parsePropertyAst=function(e,t,n,r,i){r.push([e,t.source]),i.push(new Zc(e,t,Yc.DEFAULT,n))},e.prototype._parseAnimation=function(e,t,n,r,i){var o=this._parseBinding(t||"null",!1,n);r.push([e,o.source]),i.push(new Zc(e,o,Yc.ANIMATION,n))},e.prototype._parseBinding=function(e,t,n){var r=n.start.toString();try{var i=t?this._exprParser.parseSimpleBinding(e,r,this._interpolationConfig):this._exprParser.parseBinding(e,r,this._interpolationConfig);return i&&this._reportExpressionParserErrors(i.errors,n),this._checkPipes(i,n),i}catch(e){return this._reportError(""+e,n),this._exprParser.wrapLiteralPrimitive("ERROR",r)}},e.prototype.createElementPropertyAst=function(e,n){if(n.isAnimation)return new Li(n.name,Zi.Animation,t.SecurityContext.NONE,!1,n.expression,null,n.sourceSpan);var r,i,o=null,a=null,s=n.name.split(".");if(s.length>1)if("attr"==s[0]){a=s[1],this._validatePropertyOrAttributeName(a,n.sourceSpan,!0),i=dt(this._schemaRegistry,e,a,!0);var u=a.indexOf(":");u>-1&&(a=d(a.substring(0,u),a.substring(u+1))),r=Zi.Attribute}else"class"==s[0]?(a=s[1],r=Zi.Class,i=[t.SecurityContext.NONE]):"style"==s[0]&&(o=s.length>2?s[2]:null,a=s[1],r=Zi.Style,i=[t.SecurityContext.STYLE]);return null===a&&(a=this._schemaRegistry.getMappedPropName(n.name),i=dt(this._schemaRegistry,e,a,!1),r=Zi.Property,this._validatePropertyOrAttributeName(a,n.sourceSpan,!1)),new Li(a,r,1===i.length?i[0]:null,i.length>1,n.expression,o,n.sourceSpan)},e.prototype.parseEvent=function(e,t,n,r,i){pt(e)?(e=e.substr(1),this._parseAnimationEvent(e,t,n,i)):this._parseEvent(e,t,n,r,i)},e.prototype._parseAnimationEvent=function(e,t,n,r){var i=v(e,[e,""]),o=i[0],a=i[1].toLowerCase();if(a)switch(a){case"start":case"done":var s=this._parseAction(t,n);r.push(new Fi(o,null,a,s,n));break;default:this._reportError('The provided animation output phase value "'+a+'" for "@'+o+'" is not supported (use start or done)',n)}else this._reportError("The animation trigger output event (@"+o+") is missing its phase value name (start or done are currently supported)",n)},e.prototype._parseEvent=function(e,t,n,r,i){var o=m(e,[null,e]),a=o[0],s=o[1],u=this._parseAction(t,n);r.push([e,u.source]),i.push(new Fi(s,a,null,u,n))},e.prototype._parseAction=function(e,t){var n=t.start.toString();try{var r=this._exprParser.parseAction(e,n,this._interpolationConfig);return r&&this._reportExpressionParserErrors(r.errors,t),!r||r.ast instanceof vs?(this._reportError("Empty expressions are not allowed",t),this._exprParser.wrapLiteralPrimitive("ERROR",n)):(this._checkPipes(r,t),r)}catch(e){return this._reportError(""+e,t),this._exprParser.wrapLiteralPrimitive("ERROR",n)}},e.prototype._reportError=function(e,t,n){void 0===n&&(n=nu.FATAL),this._targetErrors.push(new ru(t,e,n))},e.prototype._reportExpressionParserErrors=function(e,t){for(var n=0,r=e;n<r.length;n++){var i=r[n];this._reportError(i.message,t)}},e.prototype._checkPipes=function(e,t){var n=this;if(e){var r=new Xc;e.visit(r),r.pipes.forEach(function(e,r){n.pipesByName.has(r)||n._reportError("The pipe '"+r+"' could not be found",new tu(t.start.moveBy(e.span.start),t.start.moveBy(e.span.end)))})}},e.prototype._validatePropertyOrAttributeName=function(e,t,n){var r=n?this._schemaRegistry.validateAttribute(e):this._schemaRegistry.validateProperty(e);r.error&&this._reportError(r.msg,t,nu.FATAL)},e}(),Xc=function(e){function t(){e.apply(this,arguments),this.pipes=new Map}return Gc(t,e),t.prototype.visitPipe=function(e,t){return this.pipes.set(e.name,e),e.exp.visit(this),this.visitAll(e.args,t),null},t}(Ls),Jc="select",Qc="ng-content",$c="link",el="rel",tl="href",nl="stylesheet",rl="style",il="script",ol="ngNonBindable",al="ngProjectAs",sl={};sl.NG_CONTENT=0,sl.STYLE=1,sl.STYLESHEET=2,sl.SCRIPT=3,sl.OTHER=4,sl[sl.NG_CONTENT]="NG_CONTENT",sl[sl.STYLE]="STYLE",sl[sl.STYLESHEET]="STYLESHEET",sl[sl.SCRIPT]="SCRIPT",sl[sl.OTHER]="OTHER";var ul=function(){return function(e,t,n,r,i){this.type=e,this.selectAttr=t,this.hrefAttr=n,this.nonBindable=r,this.projectAs=i}}(),cl=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},ll=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},pl=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},dl=/^(?:(?:(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.+))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/,hl="class",fl=Zo.parse("*")[0],ml=new t.OpaqueToken("TemplateTransforms"),vl=function(e){function t(t,n,r){e.call(this,n,t,r)}return cl(t,e),t}(ru),yl=function(){return function(e,t){this.templateAst=e,this.errors=t}}(),gl=function(){function e(e,t,n,r,i){this._exprParser=e,this._schemaRegistry=t,this._htmlParser=n,this._console=r,this.transforms=i}return e.prototype.parse=function(e,t,n,r,i,o){var a=this.tryParse(e,t,n,r,i,o),s=a.errors.filter(function(e){return e.level===nu.WARNING}),u=a.errors.filter(function(e){return e.level===nu.FATAL});if(s.length>0&&this._console.warn("Template parse warnings:\n"+s.join("\n")),u.length>0){var c=u.join("\n");throw new oa("Template parse errors:\n"+c)}return a.templateAst},e.prototype.tryParse=function(e,t,n,r,i,o){return this.tryParseHtml(this.expandHtml(this._htmlParser.parse(t,o,!0,this.getInterpolationConfig(e))),e,t,n,r,i,o)},e.prototype.tryParseHtml=function(e,t,r,i,o,a,s){var u,c=e.errors;if(e.rootNodes.length>0){var l=gt(i),p=gt(o),d=new Fc(t,e.rootNodes[0].sourceSpan),h=void 0;t.template&&t.template.interpolation&&(h={start:t.template.interpolation[0],end:t.template.interpolation[1]});var f=new Kc(this._exprParser,h,this._schemaRegistry,p,c),m=new _l(d,l,f,this._schemaRegistry,a,c);u=Z(m,e.rootNodes,xl),c.push.apply(c,d.errors)}else u=[];return this._assertNoReferenceDuplicationOnTemplate(u,c),c.length>0?new yl(u,c):(this.transforms&&this.transforms.forEach(function(e){u=n(e,u)}),new yl(u,c))},e.prototype.expandHtml=function(e,t){void 0===t&&(t=!1);var n=e.errors;if(0==n.length||t){var r=$e(e.rootNodes);n.push.apply(n,r.errors),e=new bu(r.nodes,n)}return e},e.prototype.getInterpolationConfig=function(e){if(e.template)return cs.fromArray(e.template.interpolation)},e.prototype._assertNoReferenceDuplicationOnTemplate=function(e,t){var n=[];e.filter(function(e){return!!e.references}).forEach(function(e){return e.references.forEach(function(e){var r=e.name;if(n.indexOf(r)<0)n.push(r);else{var i=new vl('Reference "#'+r+'" is defined several times',e.sourceSpan,nu.FATAL);t.push(i)}})})},e.ctorParameters=function(){return[{type:Xs},{type:Uc},{type:Sc},{type:ko},{type:Array,decorators:[{type:t.Optional},{type:t.Inject,args:[ml]}]}]},e=ll([M(),pl("design:paramtypes",[Xs,Uc,Sc,ko,Array])],e)}(),_l=function(){function e(e,t,n,r,i,o){var a=this;this.providerViewContext=e,this._bindingParser=n,this._schemaRegistry=r,this._schemas=i,this._targetErrors=o,this.selectorMatcher=new Ko,this.directivesIndex=new Map,this.ngContentCount=0,t.forEach(function(e,t){var n=Zo.parse(e.selector);a.selectorMatcher.addSelectables(n,e),a.directivesIndex.set(e,t)})}return e.prototype.visitExpansion=function(e,t){return null},e.prototype.visitExpansionCase=function(e,t){return null},e.prototype.visitText=function(e,t){var n=t.findNgContentIndex(fl),r=this._bindingParser.parseInterpolation(e.value,e.sourceSpan);return r?new ji(r,n,e.sourceSpan):new Ri(e.value,n,e.sourceSpan)},e.prototype.visitAttribute=function(e,t){return new Ni(e.name,e.value,e.sourceSpan)},e.prototype.visitComment=function(e,t){return null},e.prototype.visitElement=function(e,t){var n=this,i=e.name,o=ht(e);if(o.type===sl.SCRIPT||o.type===sl.STYLE)return null;if(o.type===sl.STYLESHEET&&ct(o.hrefAttr))return null;var a=[],s=[],u=[],c=[],p=[],d=[],h=[],f=[],m=!1,v=[],y="template"==l(i.toLowerCase())[1];e.attrs.forEach(function(e){var t,i,o=n._parseAttr(y,e,a,s,p,u,c),l=n._normalizeAttributeName(e.name);"template"==l?t=e.value:l.startsWith("*")&&(t=e.value,i=l.substring("*".length)+":");var g=r(t);g&&(m&&n._reportError("Can't have multiple template bindings on one element. Use only one attribute named 'template' or prefixed with *",e.sourceSpan),m=!0,n._bindingParser.parseInlineTemplateBinding(i,t,e.sourceSpan,h,d,f)),o||g||(v.push(n.visitAttribute(e,null)),a.push([e.name,e.value]))});var g=vt(i,a),_=this._parseDirectives(this.selectorMatcher,g),b=_.directives,w=_.matchElement,k=[],x=this._createDirectiveAsts(y,e.name,b,s,u,e.sourceSpan,k),C=this._createElementPropertyAsts(e.name,s,x),S=t.isTemplateElement||m,E=new Vc(this.providerViewContext,t.providerContext,S,x,v,k,e.sourceSpan),T=Z(o.nonBindable?Cl:this,e.children,kl.create(y,x,y?t.providerContext:E));E.afterElement();var O,P=r(o.projectAs)?Zo.parse(o.projectAs)[0]:g,M=t.findNgContentIndex(P);if(o.type===sl.NG_CONTENT)e.children&&!e.children.every(yt)&&this._reportError("<ng-content> element cannot have content.",e.sourceSpan),O=new Yi(this.ngContentCount++,m?null:M,e.sourceSpan);else if(y)this._assertAllEventsPublishedByDirectives(x,p),this._assertNoComponentsNorElementBindingsOnTemplate(x,C,e.sourceSpan),O=new Bi(v,p,k,c,E.transformedDirectiveAsts,E.transformProviders,E.transformedHasViewContainer,T,m?null:M,e.sourceSpan);else{this._assertElementExists(w,e),this._assertOnlyOneComponent(x,e.sourceSpan);var A=m?null:t.findNgContentIndex(P);O=new Ui(i,v,C,p,k,E.transformedDirectiveAsts,E.transformProviders,E.transformedHasViewContainer,T,m?null:A,e.sourceSpan,e.endSourceSpan),this._findComponentDirectives(x).forEach(function(e){return n._validateElementAnimationInputOutputs(e.hostProperties,e.hostEvents,e.directive.template)});var D=E.viewContext.component.template;this._validateElementAnimationInputOutputs(C,p,D.toSummary())}if(m){var I=vt("template",h),R=this._parseDirectives(this.selectorMatcher,I).directives,j=this._createDirectiveAsts(!0,e.name,R,d,[],e.sourceSpan,[]),N=this._createElementPropertyAsts(e.name,d,j);this._assertNoComponentsNorElementBindingsOnTemplate(j,N,e.sourceSpan);var L=new Vc(this.providerViewContext,t.providerContext,t.isTemplateElement,j,[],[],e.sourceSpan);L.afterElement(),O=new Bi([],[],[],f,L.transformedDirectiveAsts,L.transformProviders,L.transformedHasViewContainer,[O],M,e.sourceSpan)}return O},e.prototype._validateElementAnimationInputOutputs=function(e,t,n){var r=this,i=new Set;n.animations.forEach(function(e){i.add(e)});var o=e.filter(function(e){return e.isAnimation});o.forEach(function(e){var t=e.name;i.has(t)||r._reportError("Couldn't find an animation entry for \""+t+'"',e.sourceSpan)}),t.forEach(function(e){e.isAnimation&&(o.find(function(t){return t.name==e.name})||r._reportError("Unable to listen on (@"+e.name+"."+e.phase+") because the animation trigger [@"+e.name+"] isn't being used on the same element",e.sourceSpan))})},e.prototype._parseAttr=function(e,t,n,i,o,a,s){var u=this._normalizeAttributeName(t.name),c=t.value,l=t.sourceSpan,p=u.match(dl),d=!1;if(null!==p)if(d=!0,r(p[1]))this._bindingParser.parsePropertyBinding(p[7],c,!1,l,n,i);else if(p[2])if(e){h=p[7];this._parseVariable(h,c,l,s)}else this._reportError('"let-" is only supported on template elements.',l);else if(p[3]){var h=p[7];this._parseReference(h,c,l,a)}else p[4]?this._bindingParser.parseEvent(p[7],c,l,n,o):p[5]?(this._bindingParser.parsePropertyBinding(p[7],c,!1,l,n,i),this._parseAssignmentEvent(p[7],c,l,n,o)):p[6]?this._bindingParser.parseLiteralAttr(u,c,l,n,i):p[8]?(this._bindingParser.parsePropertyBinding(p[8],c,!1,l,n,i),this._parseAssignmentEvent(p[8],c,l,n,o)):p[9]?this._bindingParser.parsePropertyBinding(p[9],c,!1,l,n,i):p[10]&&this._bindingParser.parseEvent(p[10],c,l,n,o);else d=this._bindingParser.parsePropertyInterpolation(u,c,l,n,i);return d||this._bindingParser.parseLiteralAttr(u,c,l,n,i),d},e.prototype._normalizeAttributeName=function(e){return/^data-/i.test(e)?e.substring(5):e},e.prototype._parseVariable=function(e,t,n,r){e.indexOf("-")>-1&&this._reportError('"-" is not allowed in variable names',n),r.push(new zi(e,t,n))},e.prototype._parseReference=function(e,t,n,r){e.indexOf("-")>-1&&this._reportError('"-" is not allowed in reference names',n),r.push(new wl(e,t,n))},e.prototype._parseAssignmentEvent=function(e,t,n,r,i){this._bindingParser.parseEvent(e+"Change",t+"=$event",n,r,i)},e.prototype._parseDirectives=function(e,t){var n=this,r=new Array(this.directivesIndex.size),i=!1;return e.match(t,function(e,t){r[n.directivesIndex.get(t)]=t,i=i||e.hasElementSelector()}),{directives:r.filter(function(e){return!!e}),matchElement:i}},e.prototype._createDirectiveAsts=function(e,t,n,r,i,o,a){var s=this,u=new Set,c=null,l=n.map(function(e){var n=new tu(o.start,o.end,"Directive "+b(e.type));e.isComponent&&(c=e);var l=[],p=s._bindingParser.createDirectiveHostPropertyAsts(e,n);s._checkPropertiesInSchema(t,p);var d=s._bindingParser.createDirectiveHostEventAsts(e,n);return s._createDirectivePropertyAsts(e.inputs,r,l),i.forEach(function(t){(0===t.value.length&&e.isComponent||e.exportAs==t.value)&&(a.push(new Vi(t.name,Xe(e.type),t.sourceSpan)),u.add(t.name))}),new qi(e,l,p,d,n)});return i.forEach(function(t){if(t.value.length>0)u.has(t.name)||s._reportError('There is no directive with "exportAs" set to "'+t.value+'"',t.sourceSpan);else if(!c){var n=null;e&&(n=Je(Mc.TemplateRef)),a.push(new Vi(t.name,n,t.sourceSpan))}}),l},e.prototype._createDirectivePropertyAsts=function(e,t,n){if(e){var r=new Map;t.forEach(function(e){var t=r.get(e.name);t&&!t.isLiteral||r.set(e.name,e)}),Object.keys(e).forEach(function(t){var i=e[t],o=r.get(i);o&&n.push(new Hi(t,o.name,o.expression,o.sourceSpan))})}},e.prototype._createElementPropertyAsts=function(e,t,n){var r=this,i=[],o=new Map;return n.forEach(function(e){e.inputs.forEach(function(e){o.set(e.templateName,e)})}),t.forEach(function(t){t.isLiteral||o.get(t.name)||i.push(r._bindingParser.createElementPropertyAst(e,t))}),this._checkPropertiesInSchema(e,i),i},e.prototype._findComponentDirectives=function(e){return e.filter(function(e){return e.directive.isComponent})},e.prototype._findComponentDirectiveNames=function(e){return this._findComponentDirectives(e).map(function(e){return b(e.directive.type)})},e.prototype._assertOnlyOneComponent=function(e,t){var n=this._findComponentDirectiveNames(e);n.length>1&&this._reportError("More than one component matched on this element.\nMake sure that only one component's selector can match a given element.\nConflicting components: "+n.join(","),t)},e.prototype._assertElementExists=function(e,t){var n=t.name.replace(/^:xhtml:/,"");if(!e&&!this._schemaRegistry.hasElement(n,this._schemas)){var r="'"+n+"' is not a known element:\n1. If '"+n+"' is an Angular component, then verify that it is part of this module.\n2. If '"+n+"' is a Web Component then add \"CUSTOM_ELEMENTS_SCHEMA\" to the '@NgModule.schemas' of this component to suppress this message.";this._reportError(r,t.sourceSpan)}},e.prototype._assertNoComponentsNorElementBindingsOnTemplate=function(e,t,n){var r=this,i=this._findComponentDirectiveNames(e);i.length>0&&this._reportError("Components on an embedded template: "+i.join(","),n),t.forEach(function(e){r._reportError("Property binding "+e.name+' not used by any directive on an embedded template. Make sure that the property name is spelled correctly and all directives are listed in the "@NgModule.declarations".',n)})},e.prototype._assertAllEventsPublishedByDirectives=function(e,t){var n=this,i=new Set;e.forEach(function(e){Object.keys(e.directive.outputs).forEach(function(t){var n=e.directive.outputs[t];i.add(n)})}),t.forEach(function(e){!r(e.target)&&i.has(e.name)||n._reportError("Event binding "+e.fullName+' not emitted by any directive on an embedded template. Make sure that the event name is spelled correctly and all directives are listed in the "@NgModule.declarations".',e.sourceSpan)})},e.prototype._checkPropertiesInSchema=function(e,t){var n=this;t.forEach(function(t){if(t.type===Zi.Property&&!n._schemaRegistry.hasProperty(e,t.name,n._schemas)){var r="Can't bind to '"+t.name+"' since it isn't a known property of '"+e+"'.";e.indexOf("-")>-1&&(r+="\n1. If '"+e+"' is an Angular component and it has '"+t.name+"' input, then verify that it is part of this module.\n2. If '"+e+"' is a Web Component then add \"CUSTOM_ELEMENTS_SCHEMA\" to the '@NgModule.schemas' of this component to suppress this message.\n"),n._reportError(r,t.sourceSpan)}})},e.prototype._reportError=function(e,t,n){void 0===n&&(n=nu.FATAL),this._targetErrors.push(new ru(t,e,n))},e}(),bl=function(){function e(){}return e.prototype.visitElement=function(e,t){var n=ht(e);if(n.type===sl.SCRIPT||n.type===sl.STYLE||n.type===sl.STYLESHEET)return null;var r=e.attrs.map(function(e){return[e.name,e.value]}),i=vt(e.name,r),o=t.findNgContentIndex(i),a=Z(this,e.children,xl);return new Ui(e.name,Z(this,e.attrs),[],[],[],[],[],!1,a,o,e.sourceSpan,e.endSourceSpan)},e.prototype.visitComment=function(e,t){return null},e.prototype.visitAttribute=function(e,t){return new Ni(e.name,e.value,e.sourceSpan)},e.prototype.visitText=function(e,t){var n=t.findNgContentIndex(fl);return new Ri(e.value,n,e.sourceSpan)},e.prototype.visitExpansion=function(e,t){return e},e.prototype.visitExpansionCase=function(e,t){return e},e}(),wl=function(){return function(e,t,n){this.name=e,this.value=t,this.sourceSpan=n}}(),kl=function(){function e(e,t,n,r){this.isTemplateElement=e,this._ngContentIndexMatcher=t,this._wildcardNgContentIndex=n,this.providerContext=r}return e.create=function(t,n,r){var i=new Ko,o=null,a=n.find(function(e){return e.directive.isComponent});if(a)for(var s=a.directive.template.ngContentSelectors,u=0;u<s.length;u++)"*"===s[u]?o=u:i.addSelectables(Zo.parse(s[u]),u);return new e(t,i,o,r)},e.prototype.findNgContentIndex=function(e){var t=[];return this._ngContentIndexMatcher.match(e,function(e,n){t.push(n)}),t.sort(),r(this._wildcardNgContentIndex)&&t.push(this._wildcardNgContentIndex),t.length>0?t[0]:null},e}(),xl=new kl(!0,new Ko,null,null),Cl=new bl,Sl=function(){function e(e){var n=void 0===e?{}:e,r=n.renderTypes,i=void 0===r?new Tl:r,o=n.defaultEncapsulation,a=void 0===o?t.ViewEncapsulation.Emulated:o,s=n.genDebugInfo,u=n.logBindingUpdate,c=n.useJit,l=void 0===c||c;this.renderTypes=i,this.defaultEncapsulation=a,this._genDebugInfo=s,this._logBindingUpdate=u,this.useJit=l}return Object.defineProperty(e.prototype,"genDebugInfo",{get:function(){return void 0===this._genDebugInfo?t.isDevMode():this._genDebugInfo},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"logBindingUpdate",{get:function(){return void 0===this._logBindingUpdate?t.isDevMode():this._logBindingUpdate},enumerable:!0,configurable:!0}),e}(),El=function(){function e(){}return e.prototype.renderer=function(){},e.prototype.renderText=function(){},e.prototype.renderElement=function(){},e.prototype.renderComment=function(){},e.prototype.renderNode=function(){},e.prototype.renderEvent=function(){},e}(),Tl=function(){function e(){this.renderText=null,this.renderElement=null,this.renderComment=null,this.renderNode=null,this.renderEvent=null}return Object.defineProperty(e.prototype,"renderer",{get:function(){return Ke(Mc.Renderer)},enumerable:!0,configurable:!0}),e}(),Ol=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},Pl=function(){function e(){this.startTime=0,this.playTime=0}return e.prototype.visit=function(e,t){},e}(),Ml=function(e){function t(){e.apply(this,arguments)}return Ol(t,e),t.prototype.visit=function(e,t){},t}(Pl),Al=function(e){function t(t,n,r){e.call(this),this.name=t,this.stateDeclarations=n,this.stateTransitions=r}return Ol(t,e),t.prototype.visit=function(e,t){return e.visitAnimationEntry(this,t)},t}(Pl),Dl=function(e){function t(t,n){e.call(this),this.stateName=t,this.styles=n}return Ol(t,e),t.prototype.visit=function(e,t){return e.visitAnimationStateDeclaration(this,t)},t}(Ml),Il=function(){return function(e,t){this.fromState=e,this.toState=t}}(),Rl=function(e){function t(t,n){e.call(this),this.stateChanges=t,this.animation=n}return Ol(t,e),t.prototype.visit=function(e,t){return e.visitAnimationStateTransition(this,t)},t}(Ml),jl=function(e){function t(t,n,r,i,o){e.call(this),this.startingStyles=t,this.keyframes=n,this.duration=r,this.delay=i,this.easing=o}return Ol(t,e),t.prototype.visit=function(e,t){return e.visitAnimationStep(this,t)},t}(Pl),Nl=function(e){function t(t){e.call(this),this.styles=t}return Ol(t,e),t.prototype.visit=function(e,t){return e.visitAnimationStyles(this,t)},t}(Pl),Ll=function(e){function t(t,n){e.call(this),this.offset=t,this.styles=n}return Ol(t,e),t.prototype.visit=function(e,t){return e.visitAnimationKeyframe(this,t)},t}(Pl),Fl=function(e){function t(t){e.call(this),this.steps=t}return Ol(t,e),t}(Pl),Vl=function(e){function t(t){e.call(this,t)}return Ol(t,e),t.prototype.visit=function(e,t){return e.visitAnimationGroup(this,t)},t}(Fl),zl=function(e){function t(t){e.call(this,t)}return Ol(t,e),t.prototype.visit=function(e,t){return e.visitAnimationSequence(this,t)},t}(Fl),Ul=function(){function e(e,t){this.time=e,this.value=t}return e.prototype.matches=function(e,t){return e==this.time&&t==this.value},e}(),Bl=function(){function e(){this.styles={}}return e.prototype.insertAtTime=function(e,t,n){var i=new Ul(t,n),o=this.styles[e];r(o)||(o=this.styles[e]=[]);for(var a=0,s=o.length-1;s>=0;s--)if(o[s].time<=t){a=s+1;break}o.splice(a,0,i)},e.prototype.getByIndex=function(e,t){var n=this.styles[e];return r(n)?t>=n.length?null:n[t]:null},e.prototype.indexOfAtOrBeforeTime=function(e,t){var n=this.styles[e];if(r(n))for(var i=n.length-1;i>=0;i--)if(n[i].time<=t)return i;return null},e}(),Hl=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},ql=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},Wl=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Gl=0,Yl=1,Zl=1e3,Kl=function(e){function t(t){e.call(this,null,t)}return Hl(t,e),t.prototype.toString=function(){return""+this.msg},t}(ru),Xl=function(){return function(e,t){this.ast=e,this.errors=t}}(),Jl=function(){function e(e){this._schema=e}return e.prototype.parseComponent=function(e){var t=this,n=[],r=b(e.type),i=new Set,o=e.template.animations.map(function(e){var o=t.parseEntry(e),a=o.ast,s=a.name;if(i.has(s)?o.errors.push(new Kl('The animation trigger "'+s+'" has already been registered for the '+r+" component")):i.add(s),o.errors.length>0){var u='- Unable to parse the animation sequence for "'+s+'" on the '+r+" component due to the following errors:";o.errors.forEach(function(e){u+="\n-- "+e.msg}),n.push(u)}return a});if(n.length>0){var a=n.join("\n");throw new Error("Animation parse errors:\n"+a)}return o},e.prototype.parseEntry=function(e){var t=this,n=[],r={},i=[],o=[];e.definitions.forEach(function(e){e instanceof la?_t(e,t._schema,n).forEach(function(e){o.push(e),r[e.stateName]=e.styles}):i.push(e)});var a=i.map(function(e){return bt(e,r,t._schema,n)}),s=new Al(e.name,o,a);return new Xl(s,n)},e=ql([M(),Wl("design:paramtypes",[Uc])],e)}(),Ql=function(){return function(e,t,n){this.duration=e,this.delay=t,this.easing=n}}(),$l=function(){function e(){}return e.prototype.get=function(e){return null},e}(),ep=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},tp=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},np={provide:t.PACKAGE_ROOT_URL,useValue:"/"},rp=function(){function e(e){void 0===e&&(e=null),this._packagePrefix=e}return e.prototype.resolve=function(e,t){var n=t;r(e)&&e.length>0&&(n=zt(e,n));var i=Lt(n),o=this._packagePrefix;if(r(o)&&r(i)&&"package"==i[op.Scheme]){var a=i[op.Path];return o=o.replace(/\/+$/,""),a=a.replace(/^\/+/,""),o+"/"+a}return n},e.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Inject,args:[t.PACKAGE_ROOT_URL]}]}]},e=ep([M(),tp("design:paramtypes",[String])],e)}(),ip=new RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$"),op={};op.Scheme=1,op.UserInfo=2,op.Domain=3,op.Port=4,op.Path=5,op.QueryData=6,op.Fragment=7,op[op.Scheme]="Scheme",op[op.UserInfo]="UserInfo",op[op.Domain]="Domain",op[op.Port]="Port",op[op.Path]="Path",op[op.QueryData]="QueryData",op[op.Fragment]="Fragment";var ap=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},sp=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},up=function(){function e(e,t,n,r){this._resourceLoader=e,this._urlResolver=t,this._htmlParser=n,this._config=r,this._resourceLoaderCache=new Map}return e.prototype.clearCache=function(){this._resourceLoaderCache.clear()},e.prototype.clearCacheFor=function(e){var t=this;e.isComponent&&(this._resourceLoaderCache.delete(e.template.templateUrl),e.template.externalStylesheets.forEach(function(e){t._resourceLoaderCache.delete(e.moduleUrl)}))},e.prototype._fetch=function(e){var t=this._resourceLoaderCache.get(e);return t||(t=this._resourceLoader.get(e),this._resourceLoaderCache.set(e,t)),t},e.prototype.normalizeTemplate=function(e){var t,n=this,i=null;if(r(e.template))i=this.normalizeTemplateSync(e),t=Promise.resolve(i);else{if(!e.templateUrl)throw new oa("No template specified for component "+a(e.componentType));t=this.normalizeTemplateAsync(e)}return i&&0===i.styleUrls.length?new ia(i):new ia(null,t.then(function(e){return n.normalizeExternalStylesheets(e)}))},e.prototype.normalizeTemplateSync=function(e){return this.normalizeLoadedTemplate(e,e.template,e.moduleUrl)},e.prototype.normalizeTemplateAsync=function(e){var t=this,n=this._urlResolver.resolve(e.moduleUrl,e.templateUrl);return this._fetch(n).then(function(r){return t.normalizeLoadedTemplate(e,r,n)})},e.prototype.normalizeLoadedTemplate=function(e,n,r){var o=cs.fromArray(e.interpolation),s=this._htmlParser.parse(n,a(e.componentType),!0,o);if(s.errors.length>0){var u=s.errors.join("\n");throw new oa("Template parse errors:\n"+u)}var c=this.normalizeStylesheet(new wa({styles:e.styles,styleUrls:e.styleUrls,moduleUrl:e.moduleUrl})),l=new cp;Z(l,s.rootNodes);var p=this.normalizeStylesheet(new wa({styles:l.styles,styleUrls:l.styleUrls,moduleUrl:r})),d=e.encapsulation;i(d)&&(d=this._config.defaultEncapsulation);var h=c.styles.concat(p.styles),f=c.styleUrls.concat(p.styleUrls);return d===t.ViewEncapsulation.Emulated&&0===h.length&&0===f.length&&(d=t.ViewEncapsulation.None),new ka({encapsulation:d,template:n,templateUrl:r,styles:h,styleUrls:f,ngContentSelectors:l.ngContentSelectors,animations:e.animations,interpolation:e.interpolation})},e.prototype.normalizeExternalStylesheets=function(e){return this._loadMissingExternalStylesheets(e.styleUrls).then(function(t){return new ka({encapsulation:e.encapsulation,template:e.template,templateUrl:e.templateUrl,styles:e.styles,styleUrls:e.styleUrls,externalStylesheets:t,ngContentSelectors:e.ngContentSelectors,animations:e.animations,interpolation:e.interpolation})})},e.prototype._loadMissingExternalStylesheets=function(e,t){var n=this;return void 0===t&&(t=new Map),Promise.all(e.filter(function(e){return!t.has(e)}).map(function(e){return n._fetch(e).then(function(r){var i=n.normalizeStylesheet(new wa({styles:[r],moduleUrl:e}));return t.set(e,i),n._loadMissingExternalStylesheets(i.styleUrls,t)})})).then(function(e){return Array.from(t.values())})},e.prototype.normalizeStylesheet=function(e){var t=this,n=e.styleUrls.filter(ct).map(function(n){return t._urlResolver.resolve(e.moduleUrl,n)}),r=e.styles.map(function(r){var i=lt(t._urlResolver,e.moduleUrl,r);return n.push.apply(n,i.styleUrls),i.style});return new wa({styles:r,styleUrls:n,moduleUrl:e.moduleUrl})},e=ap([M(),sp("design:paramtypes",[$l,rp,kc,Sl])],e)}(),cp=function(){function e(){this.ngContentSelectors=[],this.styles=[],this.styleUrls=[],this.ngNonBindableStackCount=0}return e.prototype.visitElement=function(e,t){var n=ht(e);switch(n.type){case sl.NG_CONTENT:0===this.ngNonBindableStackCount&&this.ngContentSelectors.push(n.selectAttr);break;case sl.STYLE:var r="";e.children.forEach(function(e){e instanceof iu&&(r+=e.value)}),this.styles.push(r);break;case sl.STYLESHEET:this.styleUrls.push(n.hrefAttr)}return n.nonBindable&&this.ngNonBindableStackCount++,Z(this,e.children),n.nonBindable&&this.ngNonBindableStackCount--,null},e.prototype.visitExpansion=function(e,t){Z(this,e.cases)},e.prototype.visitExpansionCase=function(e,t){Z(this,e.expression)},e.prototype.visitComment=function(e,t){return null},e.prototype.visitAttribute=function(e,t){return null},e.prototype.visitText=function(e,t){return null},e}(),lp=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},pp=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},dp=function(){function e(e){void 0===e&&(e=xo),this._reflector=e}return e.prototype.isDirective=function(e){var n=this._reflector.annotations(t.resolveForwardRef(e));return n&&n.some(Ut)},e.prototype.resolve=function(e,n){void 0===n&&(n=!0);var r=this._reflector.annotations(t.resolveForwardRef(e));if(r){var i=eo.findLast(r,Ut);if(i){var o=this._reflector.propMetadata(e);return this._mergeWithPropertyMetadata(i,o,e)}}if(n)throw new Error("No Directive annotation found on "+a(e));return null},e.prototype._mergeWithPropertyMetadata=function(e,n,r){var i=[],o=[],a={},s={};return Object.keys(n).forEach(function(e){var r=eo.findLast(n[e],function(e){return e instanceof t.Input});r&&(r.bindingPropertyName?i.push(e+": "+r.bindingPropertyName):i.push(e));var u=eo.findLast(n[e],function(e){return e instanceof t.Output});u&&(u.bindingPropertyName?o.push(e+": "+u.bindingPropertyName):o.push(e)),n[e].filter(function(e){return e&&e instanceof t.HostBinding}).forEach(function(t){if(t.hostPropertyName){var n=t.hostPropertyName[0];if("("===n)throw new Error("@HostBinding can not bind to events. Use @HostListener instead.");if("["===n)throw new Error("@HostBinding parameter should be a property name, 'class.<name>', or 'attr.<name>'.");a["["+t.hostPropertyName+"]"]=e}else a["["+e+"]"]=e}),n[e].filter(function(e){return e&&e instanceof t.HostListener}).forEach(function(t){var n=t.args||[];a["("+t.eventName+")"]=e+"("+n.join(",")+")"});var c=eo.findLast(n[e],function(e){return e instanceof t.Query});c&&(s[e]=c)}),this._merge(e,i,o,a,s,r)},e.prototype._extractPublicName=function(e){return m(e,[null,e])[1].trim()},e.prototype._dedupeBindings=function(e){for(var t=new Set,n=[],r=e.length-1;r>=0;r--){var i=e[r],o=this._extractPublicName(i);t.has(o)||(t.add(o),n.push(i))}return n.reverse()},e.prototype._merge=function(e,n,r,i,o,a){var s=this._dedupeBindings(e.inputs?e.inputs.concat(n):n),u=this._dedupeBindings(e.outputs?e.outputs.concat(r):r),c=e.host?$i.merge(e.host,i):i,l=e.queries?$i.merge(e.queries,o):o;return e instanceof t.Component?new t.Component({selector:e.selector,inputs:s,outputs:u,host:c,exportAs:e.exportAs,moduleId:e.moduleId,queries:l,changeDetection:e.changeDetection,providers:e.providers,viewProviders:e.viewProviders,entryComponents:e.entryComponents,template:e.template,templateUrl:e.templateUrl,styles:e.styles,styleUrls:e.styleUrls,encapsulation:e.encapsulation,animations:e.animations,interpolation:e.interpolation}):new t.Directive({selector:e.selector,inputs:s,outputs:u,host:c,exportAs:e.exportAs,queries:l,providers:e.providers})},e=lp([M(),pp("design:paramtypes",[oo])],e)}(),hp=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},fp={};fp.Const=0,fp[fp.Const]="Const";var mp=function(){function e(e){void 0===e&&(e=null),this.modifiers=e,e||(this.modifiers=[])}return e.prototype.visitType=function(e,t){},e.prototype.hasModifier=function(e){return-1!==this.modifiers.indexOf(e)},e}(),vp={};vp.Dynamic=0,vp.Bool=1,vp.String=2,vp.Int=3,vp.Number=4,vp.Function=5,vp.Null=6,vp[vp.Dynamic]="Dynamic",vp[vp.Bool]="Bool",vp[vp.String]="String",vp[vp.Int]="Int",vp[vp.Number]="Number",vp[vp.Function]="Function",vp[vp.Null]="Null";var yp=function(e){function t(t,n){void 0===n&&(n=null),e.call(this,n),this.name=t}return hp(t,e),t.prototype.visitType=function(e,t){return e.visitBuiltintType(this,t)},t}(mp),gp=function(e){function t(t,n,r){void 0===n&&(n=null),void 0===r&&(r=null),e.call(this,r),this.value=t,this.typeParams=n}return hp(t,e),t.prototype.visitType=function(e,t){return e.visitExpressionType(this,t)},t}(mp),_p=function(e){function t(t,n){void 0===n&&(n=null),e.call(this,n),this.of=t}return hp(t,e),t.prototype.visitType=function(e,t){return e.visitArrayType(this,t)},t}(mp),bp=function(e){function t(t,n){void 0===n&&(n=null),e.call(this,n),this.valueType=t}return hp(t,e),t.prototype.visitType=function(e,t){return e.visitMapType(this,t)},t}(mp),wp=new yp(vp.Dynamic),kp=new yp(vp.Bool),xp=(new yp(vp.Int),new yp(vp.Number)),Cp=new yp(vp.String),Sp=new yp(vp.Function),Ep=new yp(vp.Null),Tp={};Tp.Equals=0,Tp.NotEquals=1,Tp.Identical=2,Tp.NotIdentical=3,Tp.Minus=4,Tp.Plus=5,Tp.Divide=6,Tp.Multiply=7,Tp.Modulo=8,Tp.And=9,Tp.Or=10,Tp.Lower=11,Tp.LowerEquals=12,Tp.Bigger=13,Tp.BiggerEquals=14,Tp[Tp.Equals]="Equals",Tp[Tp.NotEquals]="NotEquals",Tp[Tp.Identical]="Identical",Tp[Tp.NotIdentical]="NotIdentical",Tp[Tp.Minus]="Minus",Tp[Tp.Plus]="Plus",Tp[Tp.Divide]="Divide",Tp[Tp.Multiply]="Multiply",Tp[Tp.Modulo]="Modulo",Tp[Tp.And]="And",Tp[Tp.Or]="Or",Tp[Tp.Lower]="Lower",Tp[Tp.LowerEquals]="LowerEquals",Tp[Tp.Bigger]="Bigger",Tp[Tp.BiggerEquals]="BiggerEquals";var Op=function(){function e(e){this.type=e}return e.prototype.visitExpression=function(e,t){},e.prototype.prop=function(e){return new Gp(this,e)},e.prototype.key=function(e,t){return void 0===t&&(t=null),new Yp(this,e,t)},e.prototype.callMethod=function(e,t){return new jp(this,e,t)},e.prototype.callFn=function(e){return new Np(this,e)},e.prototype.instantiate=function(e,t){return void 0===t&&(t=null),new Lp(this,e,t)},e.prototype.conditional=function(e,t){return void 0===t&&(t=null),new zp(this,e,t)},e.prototype.equals=function(e){return new Wp(Tp.Equals,this,e)},e.prototype.notEquals=function(e){return new Wp(Tp.NotEquals,this,e)},e.prototype.identical=function(e){return new Wp(Tp.Identical,this,e)},e.prototype.notIdentical=function(e){return new Wp(Tp.NotIdentical,this,e)},e.prototype.minus=function(e){return new Wp(Tp.Minus,this,e)},e.prototype.plus=function(e){return new Wp(Tp.Plus,this,e)},e.prototype.divide=function(e){return new Wp(Tp.Divide,this,e)},e.prototype.multiply=function(e){return new Wp(Tp.Multiply,this,e)},e.prototype.modulo=function(e){return new Wp(Tp.Modulo,this,e)},e.prototype.and=function(e){return new Wp(Tp.And,this,e)},e.prototype.or=function(e){return new Wp(Tp.Or,this,e)},e.prototype.lower=function(e){return new Wp(Tp.Lower,this,e)},e.prototype.lowerEquals=function(e){return new Wp(Tp.LowerEquals,this,e)},e.prototype.bigger=function(e){return new Wp(Tp.Bigger,this,e)},e.prototype.biggerEquals=function(e){return new Wp(Tp.BiggerEquals,this,e)},e.prototype.isBlank=function(){return this.equals(ed)},e.prototype.cast=function(e){return new Bp(this,e)},e.prototype.toStmt=function(){return new od(this)},e}(),Pp={};Pp.This=0,Pp.Super=1,Pp.CatchError=2,Pp.CatchStack=3,Pp[Pp.This]="This",Pp[Pp.Super]="Super",Pp[Pp.CatchError]="CatchError",Pp[Pp.CatchStack]="CatchStack";var Mp=function(e){function t(t,n){void 0===n&&(n=null),e.call(this,n),"string"==typeof t?(this.name=t,this.builtin=null):(this.name=null,this.builtin=t)}return hp(t,e),t.prototype.visitExpression=function(e,t){return e.visitReadVarExpr(this,t)},t.prototype.set=function(e){return new Ap(this.name,e)},t}(Op),Ap=function(e){function t(t,n,r){void 0===r&&(r=null),e.call(this,r||n.type),this.name=t,this.value=n}return hp(t,e),t.prototype.visitExpression=function(e,t){return e.visitWriteVarExpr(this,t)},t.prototype.toDeclStmt=function(e,t){return void 0===e&&(e=null),void 0===t&&(t=null),new rd(this.name,this.value,e,t)},t}(Op),Dp=function(e){function t(t,n,r,i){void 0===i&&(i=null),e.call(this,i||r.type),this.receiver=t,this.index=n,this.value=r}return hp(t,e),t.prototype.visitExpression=function(e,t){return e.visitWriteKeyExpr(this,t)},t}(Op),Ip=function(e){function t(t,n,r,i){void 0===i&&(i=null),e.call(this,i||r.type),this.receiver=t,this.name=n,this.value=r}return hp(t,e),t.prototype.visitExpression=function(e,t){return e.visitWritePropExpr(this,t)},t}(Op),Rp={};Rp.ConcatArray=0,Rp.SubscribeObservable=1,Rp.Bind=2,Rp[Rp.ConcatArray]="ConcatArray",Rp[Rp.SubscribeObservable]="SubscribeObservable",Rp[Rp.Bind]="Bind";var jp=function(e){function t(t,n,r,i){void 0===i&&(i=null),e.call(this,i),this.receiver=t,this.args=r,"string"==typeof n?(this.name=n,this.builtin=null):(this.name=null,this.builtin=n)}return hp(t,e),t.prototype.visitExpression=function(e,t){return e.visitInvokeMethodExpr(this,t)},t}(Op),Np=function(e){function t(t,n,r){void 0===r&&(r=null),e.call(this,r),this.fn=t,this.args=n}return hp(t,e),t.prototype.visitExpression=function(e,t){return e.visitInvokeFunctionExpr(this,t)},t}(Op),Lp=function(e){function t(t,n,r){e.call(this,r),this.classExpr=t,this.args=n}return hp(t,e),t.prototype.visitExpression=function(e,t){return e.visitInstantiateExpr(this,t)},t}(Op),Fp=function(e){function t(t,n){void 0===n&&(n=null),e.call(this,n),this.value=t}return hp(t,e),t.prototype.visitExpression=function(e,t){return e.visitLiteralExpr(this,t)},t}(Op),Vp=function(e){function t(t,n,r){void 0===n&&(n=null),void 0===r&&(r=null),e.call(this,n),this.value=t,this.typeParams=r}return hp(t,e),t.prototype.visitExpression=function(e,t){return e.visitExternalExpr(this,t)},t}(Op),zp=function(e){function t(t,n,r,i){void 0===r&&(r=null),void 0===i&&(i=null),e.call(this,i||n.type),this.condition=t,this.falseCase=r,this.trueCase=n}return hp(t,e),t.prototype.visitExpression=function(e,t){return e.visitConditionalExpr(this,t)},t}(Op),Up=function(e){function t(t){e.call(this,kp),this.condition=t}return hp(t,e),t.prototype.visitExpression=function(e,t){return e.visitNotExpr(this,t)},t}(Op),Bp=function(e){function t(t,n){e.call(this,n),this.value=t}return hp(t,e),t.prototype.visitExpression=function(e,t){return e.visitCastExpr(this,t)},t}(Op),Hp=function(){return function(e,t){void 0===t&&(t=null),this.name=e,this.type=t}}(),qp=function(e){function t(t,n,r){void 0===r&&(r=null),e.call(this,r),this.params=t,this.statements=n}return hp(t,e),t.prototype.visitExpression=function(e,t){return e.visitFunctionExpr(this,t)},t.prototype.toDeclStmt=function(e,t){return void 0===t&&(t=null),new id(e,this.params,this.statements,this.type,t)},t}(Op),Wp=function(e){function t(t,n,r,i){void 0===i&&(i=null),e.call(this,i||n.type),this.operator=t,this.rhs=r,this.lhs=n}return hp(t,e),t.prototype.visitExpression=function(e,t){return e.visitBinaryOperatorExpr(this,t)},t}(Op),Gp=function(e){function t(t,n,r){void 0===r&&(r=null),e.call(this,r),this.receiver=t,this.name=n}return hp(t,e),t.prototype.visitExpression=function(e,t){return e.visitReadPropExpr(this,t)},t.prototype.set=function(e){return new Ip(this.receiver,this.name,e)},t}(Op),Yp=function(e){function t(t,n,r){void 0===r&&(r=null),e.call(this,r),this.receiver=t,this.index=n}return hp(t,e),t.prototype.visitExpression=function(e,t){return e.visitReadKeyExpr(this,t)},t.prototype.set=function(e){return new Dp(this.receiver,this.index,e)},t}(Op),Zp=function(e){function t(t,n){void 0===n&&(n=null),e.call(this,n),this.entries=t}return hp(t,e),t.prototype.visitExpression=function(e,t){return e.visitLiteralArrayExpr(this,t)},t}(Op),Kp=function(){return function(e,t,n){void 0===n&&(n=!1),this.key=e,this.value=t,this.quoted=n}}(),Xp=function(e){function t(t,n){void 0===n&&(n=null),e.call(this,n),this.entries=t,this.valueType=null,r(n)&&(this.valueType=n.valueType)}return hp(t,e),t.prototype.visitExpression=function(e,t){return e.visitLiteralMapExpr(this,t)},t}(Op),Jp=new Mp(Pp.This),Qp=new Mp(Pp.Super),$p=(new Mp(Pp.CatchError),new Mp(Pp.CatchStack),new Fp(null,null)),ed=new Fp(null,Ep),td={};td.Final=0,td.Private=1,td[td.Final]="Final",td[td.Private]="Private";var nd=function(){function e(e){void 0===e&&(e=null),this.modifiers=e,e||(this.modifiers=[])}return e.prototype.visitStatement=function(e,t){},e.prototype.hasModifier=function(e){return-1!==this.modifiers.indexOf(e)},e}(),rd=function(e){function t(t,n,r,i){void 0===r&&(r=null),void 0===i&&(i=null),e.call(this,i),this.name=t,this.value=n,this.type=r||n.type}return hp(t,e),t.prototype.visitStatement=function(e,t){return e.visitDeclareVarStmt(this,t)},t}(nd),id=function(e){function t(t,n,r,i,o){void 0===i&&(i=null),void 0===o&&(o=null),e.call(this,o),this.name=t,this.params=n,this.statements=r,this.type=i}return hp(t,e),t.prototype.visitStatement=function(e,t){return e.visitDeclareFunctionStmt(this,t)},t}(nd),od=function(e){function t(t){e.call(this),this.expr=t}return hp(t,e),t.prototype.visitStatement=function(e,t){return e.visitExpressionStmt(this,t)},t}(nd),ad=function(e){function t(t){e.call(this),this.value=t}return hp(t,e),t.prototype.visitStatement=function(e,t){return e.visitReturnStmt(this,t)},t}(nd),sd=function(){function e(e,t){void 0===e&&(e=null),this.type=e,this.modifiers=t,t||(this.modifiers=[])}return e.prototype.hasModifier=function(e){return-1!==this.modifiers.indexOf(e)},e}(),ud=function(e){function t(t,n,r){void 0===n&&(n=null),void 0===r&&(r=null),e.call(this,n,r),this.name=t}return hp(t,e),t}(sd),cd=function(e){function t(t,n,r,i,o){void 0===i&&(i=null),void 0===o&&(o=null),e.call(this,i,o),this.name=t,this.params=n,this.body=r}return hp(t,e),t}(sd),ld=function(e){function t(t,n,r,i){void 0===r&&(r=null),void 0===i&&(i=null),e.call(this,r,i),this.name=t,this.body=n}return hp(t,e),t}(sd),pd=function(e){function t(t,n,r,i,o,a,s){void 0===s&&(s=null),e.call(this,s),this.name=t,this.parent=n,this.fields=r,this.getters=i,this.constructorMethod=o,this.methods=a}return hp(t,e),t.prototype.visitStatement=function(e,t){return e.visitDeclareClassStmt(this,t)},t}(nd),dd=function(e){function t(t,n,r){void 0===r&&(r=[]),e.call(this),this.condition=t,this.trueCase=n,this.falseCase=r}return hp(t,e),t.prototype.visitStatement=function(e,t){return e.visitIfStmt(this,t)},t}(nd),hd=(function(e){function t(t){e.call(this),this.comment=t}hp(t,e),t.prototype.visitStatement=function(e,t){return e.visitCommentStmt(this,t)}}(nd),function(e){function t(t,n){e.call(this),this.bodyStmts=t,this.catchStmts=n}return hp(t,e),t.prototype.visitStatement=function(e,t){return e.visitTryCatchStmt(this,t)},t}(nd)),fd=function(e){function t(t){e.call(this),this.error=t}return hp(t,e),t.prototype.visitStatement=function(e,t){return e.visitThrowStmt(this,t)},t}(nd),md=function(){function e(){}return e.prototype.visitReadVarExpr=function(e,t){return e},e.prototype.visitWriteVarExpr=function(e,t){return new Ap(e.name,e.value.visitExpression(this,t))},e.prototype.visitWriteKeyExpr=function(e,t){return new Dp(e.receiver.visitExpression(this,t),e.index.visitExpression(this,t),e.value.visitExpression(this,t))},e.prototype.visitWritePropExpr=function(e,t){return new Ip(e.receiver.visitExpression(this,t),e.name,e.value.visitExpression(this,t))},e.prototype.visitInvokeMethodExpr=function(e,t){var n=e.builtin||e.name;return new jp(e.receiver.visitExpression(this,t),n,this.visitAllExpressions(e.args,t),e.type)},e.prototype.visitInvokeFunctionExpr=function(e,t){return new Np(e.fn.visitExpression(this,t),this.visitAllExpressions(e.args,t),e.type)},e.prototype.visitInstantiateExpr=function(e,t){return new Lp(e.classExpr.visitExpression(this,t),this.visitAllExpressions(e.args,t),e.type)},e.prototype.visitLiteralExpr=function(e,t){return e},e.prototype.visitExternalExpr=function(e,t){return e},e.prototype.visitConditionalExpr=function(e,t){return new zp(e.condition.visitExpression(this,t),e.trueCase.visitExpression(this,t),e.falseCase.visitExpression(this,t))},e.prototype.visitNotExpr=function(e,t){return new Up(e.condition.visitExpression(this,t))},e.prototype.visitCastExpr=function(e,t){return new Bp(e.value.visitExpression(this,t),t)},e.prototype.visitFunctionExpr=function(e,t){return e},e.prototype.visitBinaryOperatorExpr=function(e,t){return new Wp(e.operator,e.lhs.visitExpression(this,t),e.rhs.visitExpression(this,t),e.type)},e.prototype.visitReadPropExpr=function(e,t){return new Gp(e.receiver.visitExpression(this,t),e.name,e.type)},e.prototype.visitReadKeyExpr=function(e,t){return new Yp(e.receiver.visitExpression(this,t),e.index.visitExpression(this,t),e.type)},e.prototype.visitLiteralArrayExpr=function(e,t){return new Zp(this.visitAllExpressions(e.entries,t))},e.prototype.visitLiteralMapExpr=function(e,t){var n=this,r=e.entries.map(function(e){return new Kp(e.key,e.value.visitExpression(n,t),e.quoted)});return new Xp(r)},e.prototype.visitAllExpressions=function(e,t){var n=this;return e.map(function(e){return e.visitExpression(n,t)})},e.prototype.visitDeclareVarStmt=function(e,t){return new rd(e.name,e.value.visitExpression(this,t),e.type,e.modifiers)},e.prototype.visitDeclareFunctionStmt=function(e,t){return e},e.prototype.visitExpressionStmt=function(e,t){return new od(e.expr.visitExpression(this,t))},e.prototype.visitReturnStmt=function(e,t){return new ad(e.value.visitExpression(this,t))},e.prototype.visitDeclareClassStmt=function(e,t){return e},e.prototype.visitIfStmt=function(e,t){return new dd(e.condition.visitExpression(this,t),this.visitAllStatements(e.trueCase,t),this.visitAllStatements(e.falseCase,t))},e.prototype.visitTryCatchStmt=function(e,t){return new hd(this.visitAllStatements(e.bodyStmts,t),this.visitAllStatements(e.catchStmts,t))},e.prototype.visitThrowStmt=function(e,t){return new fd(e.error.visitExpression(this,t))},e.prototype.visitCommentStmt=function(e,t){return e},e.prototype.visitAllStatements=function(e,t){var n=this;return e.map(function(e){return e.visitStatement(n,t)})},e}(),vd=function(){function e(){}return e.prototype.visitReadVarExpr=function(e,t){return e},e.prototype.visitWriteVarExpr=function(e,t){return e.value.visitExpression(this,t),e},e.prototype.visitWriteKeyExpr=function(e,t){return e.receiver.visitExpression(this,t),e.index.visitExpression(this,t),e.value.visitExpression(this,t),e},e.prototype.visitWritePropExpr=function(e,t){return e.receiver.visitExpression(this,t),e.value.visitExpression(this,t),e},e.prototype.visitInvokeMethodExpr=function(e,t){return e.receiver.visitExpression(this,t),this.visitAllExpressions(e.args,t),e},e.prototype.visitInvokeFunctionExpr=function(e,t){return e.fn.visitExpression(this,t),this.visitAllExpressions(e.args,t),e},e.prototype.visitInstantiateExpr=function(e,t){return e.classExpr.visitExpression(this,t),this.visitAllExpressions(e.args,t),e},e.prototype.visitLiteralExpr=function(e,t){return e},e.prototype.visitExternalExpr=function(e,t){return e},e.prototype.visitConditionalExpr=function(e,t){return e.condition.visitExpression(this,t),e.trueCase.visitExpression(this,t),e.falseCase.visitExpression(this,t),e},e.prototype.visitNotExpr=function(e,t){return e.condition.visitExpression(this,t),e},e.prototype.visitCastExpr=function(e,t){return e.value.visitExpression(this,t),e},e.prototype.visitFunctionExpr=function(e,t){return e},e.prototype.visitBinaryOperatorExpr=function(e,t){return e.lhs.visitExpression(this,t),e.rhs.visitExpression(this,t),e},e.prototype.visitReadPropExpr=function(e,t){return e.receiver.visitExpression(this,t),e},e.prototype.visitReadKeyExpr=function(e,t){return e.receiver.visitExpression(this,t),e.index.visitExpression(this,t),e},e.prototype.visitLiteralArrayExpr=function(e,t){return this.visitAllExpressions(e.entries,t),e},e.prototype.visitLiteralMapExpr=function(e,t){var n=this;return e.entries.forEach(function(e){return e.value.visitExpression(n,t)}),e},e.prototype.visitAllExpressions=function(e,t){var n=this;e.forEach(function(e){return e.visitExpression(n,t)})},e.prototype.visitDeclareVarStmt=function(e,t){return e.value.visitExpression(this,t),e},e.prototype.visitDeclareFunctionStmt=function(e,t){return e},e.prototype.visitExpressionStmt=function(e,t){return e.expr.visitExpression(this,t),e},e.prototype.visitReturnStmt=function(e,t){return e.value.visitExpression(this,t),e},e.prototype.visitDeclareClassStmt=function(e,t){return e},e.prototype.visitIfStmt=function(e,t){return e.condition.visitExpression(this,t),this.visitAllStatements(e.trueCase,t),this.visitAllStatements(e.falseCase,t),e},e.prototype.visitTryCatchStmt=function(e,t){return this.visitAllStatements(e.bodyStmts,t),this.visitAllStatements(e.catchStmts,t),e},e.prototype.visitThrowStmt=function(e,t){return e.error.visitExpression(this,t),e},e.prototype.visitCommentStmt=function(e,t){return e},e.prototype.visitAllStatements=function(e,t){var n=this;e.forEach(function(e){return e.visitStatement(n,t)})},e}(),yd=function(e){function t(t,n){e.call(this),this._varName=t,this._newValue=n}return hp(t,e),t.prototype.visitReadVarExpr=function(e,t){return e.name==this._varName?this._newValue:e},t}(md),gd=function(e){function t(){e.apply(this,arguments),this.varNames=new Set}return hp(t,e),t.prototype.visitReadVarExpr=function(e,t){return this.varNames.add(e.name),null},t}(vd),_d=function(){return function(e,t){this.expression=e,this.bindingId=t}}(),bd=qt("valUnwrapper"),wd=function(){function e(){}return e.event=qt("$event"),e}(),kd=function(){return function(e,t,n){this.stmts=e,this.currValExpr=t,this.forceUpdate=n}}(),xd=function(){return function(e,t){this.stmts=e,this.preventDefault=t}}(),Cd={};Cd.Statement=0,Cd.Expression=1,Cd[Cd.Statement]="Statement",Cd[Cd.Expression]="Expression";var Sd=function(){function e(e,t,n,r,i,o){this._builder=e,this._nameResolver=t,this._implicitReceiver=n,this._valueUnwrapper=r,this.bindingId=i,this.isAction=o,this._nodeMap=new Map,this._resultMap=new Map,this._currentTemporary=0,this.needsValueUnwrapper=!1,this.temporaryCount=0}return e.prototype.visitBinary=function(e,t){var n;switch(e.operation){case"+":n=Tp.Plus;break;case"-":n=Tp.Minus;break;case"*":n=Tp.Multiply;break;case"/":n=Tp.Divide;break;case"%":n=Tp.Modulo;break;case"&&":n=Tp.And;break;case"||":n=Tp.Or;break;case"==":n=Tp.Equals;break;case"!=":n=Tp.NotEquals;break;case"===":n=Tp.Identical;break;case"!==":n=Tp.NotIdentical;break;case"<":n=Tp.Lower;break;case">":n=Tp.Bigger;break;case"<=":n=Tp.LowerEquals;break;case">=":n=Tp.BiggerEquals;break;default:throw new Error("Unsupported operation "+e.operation)}return mn(t,new Wp(n,this.visit(e.left,Cd.Expression),this.visit(e.right,Cd.Expression)))},e.prototype.visitChain=function(e,t){return hn(t,e),this.visitAll(e.expressions,t)},e.prototype.visitConditional=function(e,t){return mn(t,this.visit(e.condition,Cd.Expression).conditional(this.visit(e.trueExp,Cd.Expression),this.visit(e.falseExp,Cd.Expression)))},e.prototype.visitPipe=function(e,t){var n=this.visit(e.exp,Cd.Expression),r=this.visitAll(e.args,Cd.Expression),i=this._nameResolver.callPipe(e.name,n,r);if(!i)throw new Error("Illegal state: Pipe "+e.name+" is not allowed here!");return this.needsValueUnwrapper=!0,mn(t,this._valueUnwrapper.callMethod("unwrap",[i]))},e.prototype.visitFunctionCall=function(e,t){return mn(t,this.visit(e.target,Cd.Expression).callFn(this.visitAll(e.args,Cd.Expression)))},e.prototype.visitImplicitReceiver=function(e,t){return fn(t,e),this._implicitReceiver},e.prototype.visitInterpolation=function(e,t){fn(t,e);for(var n=[Qt(e.expressions.length)],r=0;r<e.strings.length-1;r++)n.push(Qt(e.strings[r])),n.push(this.visit(e.expressions[r],Cd.Expression));return n.push(Qt(e.strings[e.strings.length-1])),e.expressions.length<=9?Wt(Ke(Mc.inlineInterpolate)).callFn(n):Wt(Ke(Mc.interpolate)).callFn([n[0],Zt(n.slice(1))])},e.prototype.visitKeyedRead=function(e,t){var n=this.leftMostSafeNode(e);return n?this.convertSafeAccess(e,n,t):mn(t,this.visit(e.obj,Cd.Expression).key(this.visit(e.key,Cd.Expression)))},e.prototype.visitKeyedWrite=function(e,t){var n=this.visit(e.obj,Cd.Expression),r=this.visit(e.key,Cd.Expression),i=this.visit(e.value,Cd.Expression);return mn(t,n.key(r).set(i))},e.prototype.visitLiteralArray=function(e,t){var n=this.visitAll(e.expressions,t);return mn(t,this.isAction?Zt(n):yn(this._builder,n))},e.prototype.visitLiteralMap=function(e,t){for(var n=[],r=0;r<e.keys.length;r++)n.push([e.keys[r],this.visit(e.values[r],Cd.Expression)]);return mn(t,this.isAction?Kt(n):gn(this._builder,n))},e.prototype.visitLiteralPrimitive=function(e,t){return mn(t,Qt(e.value))},e.prototype._getLocal=function(e){return this.isAction&&e==wd.event.name?wd.event:this._nameResolver.getLocal(e)},e.prototype.visitMethodCall=function(e,t){var n=this.leftMostSafeNode(e);if(n)return this.convertSafeAccess(e,n,t);var r=this.visitAll(e.args,Cd.Expression),o=null,a=this.visit(e.receiver,Cd.Expression);if(a===this._implicitReceiver){var s=this._getLocal(e.name);s&&(o=s.callFn(r))}return i(o)&&(o=a.callMethod(e.name,r)),mn(t,o)},e.prototype.visitPrefixNot=function(e,t){return mn(t,Xt(this.visit(e.expression,Cd.Expression)))},e.prototype.visitPropertyRead=function(e,t){var n=this.leftMostSafeNode(e);if(n)return this.convertSafeAccess(e,n,t);var r=null,o=this.visit(e.receiver,Cd.Expression);return o===this._implicitReceiver&&(r=this._getLocal(e.name)),i(r)&&(r=o.prop(e.name)),mn(t,r)},e.prototype.visitPropertyWrite=function(e,t){var n=this.visit(e.receiver,Cd.Expression);if(n===this._implicitReceiver&&this._getLocal(e.name))throw new Error("Cannot assign to a reference or variable!");return mn(t,n.prop(e.name).set(this.visit(e.value,Cd.Expression)))},e.prototype.visitSafePropertyRead=function(e,t){return this.convertSafeAccess(e,this.leftMostSafeNode(e),t)},e.prototype.visitSafeMethodCall=function(e,t){return this.convertSafeAccess(e,this.leftMostSafeNode(e),t)},e.prototype.visitAll=function(e,t){var n=this;return e.map(function(e){return n.visit(e,t)})},e.prototype.visitQuote=function(e,t){throw new Error("Quotes are not supported for evaluation!")},e.prototype.visit=function(e,t){var n=this._resultMap.get(e);return n||(this._nodeMap.get(e)||e).visit(this,t)},e.prototype.convertSafeAccess=function(e,t,n){var r,i=this.visit(t.receiver,Cd.Expression);this.needsTemporary(t.receiver)&&(i=(r=this.allocateTemporary()).set(i),this._resultMap.set(t.receiver,r));var o=i.isBlank();t instanceof Is?this._nodeMap.set(t,new Ds(t.span,t.receiver,t.name,t.args)):this._nodeMap.set(t,new bs(t.span,t.receiver,t.name));var a=this.visit(e,Cd.Expression);return this._nodeMap.delete(t),r&&this.releaseTemporary(r),mn(n,o.conditional(Qt(null),a))},e.prototype.leftMostSafeNode=function(e){var t=this,n=function(e,n){return(t._nodeMap.get(n)||n).visit(e)};return e.visit({visitBinary:function(e){return null},visitChain:function(e){return null},visitConditional:function(e){return null},visitFunctionCall:function(e){return null},visitImplicitReceiver:function(e){return null},visitInterpolation:function(e){return null},visitKeyedRead:function(e){return n(this,e.obj)},visitKeyedWrite:function(e){return null},visitLiteralArray:function(e){return null},visitLiteralMap:function(e){return null},visitLiteralPrimitive:function(e){return null},visitMethodCall:function(e){return n(this,e.receiver)},visitPipe:function(e){return null},visitPrefixNot:function(e){return null},visitPropertyRead:function(e){return n(this,e.receiver)},visitPropertyWrite:function(e){return null},visitQuote:function(e){return null},visitSafeMethodCall:function(e){return n(this,e.receiver)||e},visitSafePropertyRead:function(e){return n(this,e.receiver)||e}})},e.prototype.needsTemporary=function(e){var t=this,n=function(e,n){return n&&(t._nodeMap.get(n)||n).visit(e)},r=function(e,t){return t.some(function(t){return n(e,t)})};return e.visit({visitBinary:function(e){return n(this,e.left)||n(this,e.right)},visitChain:function(e){return!1},visitConditional:function(e){return n(this,e.condition)||n(this,e.trueExp)||n(this,e.falseExp)},visitFunctionCall:function(e){return!0},visitImplicitReceiver:function(e){return!1},visitInterpolation:function(e){return r(this,e.expressions)},visitKeyedRead:function(e){return!1},visitKeyedWrite:function(e){return!1},visitLiteralArray:function(e){return!0},visitLiteralMap:function(e){return!0},visitLiteralPrimitive:function(e){return!1},visitMethodCall:function(e){return!0},visitPipe:function(e){return!0},visitPrefixNot:function(e){return n(this,e.expression)},visitPropertyRead:function(e){return!1},visitPropertyWrite:function(e){return!1},visitQuote:function(e){return!1},visitSafeMethodCall:function(e){return!0},visitSafePropertyRead:function(e){return!1}})},e.prototype.allocateTemporary=function(){var e=this._currentTemporary++;return this.temporaryCount=Math.max(this._currentTemporary,this.temporaryCount),new Mp(ln(this.bindingId,e))},e.prototype.releaseTemporary=function(e){if(this._currentTemporary--,e.name!=ln(this.bindingId,this._currentTemporary))throw new Error("Temporary "+e.name+" released out of order")},e}(),Ed=function(){function e(){}return e.prototype.callPipe=function(e,t,n){return null},e.prototype.getLocal=function(e){return null},e}(),Td=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},Od=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Pd=function(){return function(e,t){this.statements=e,this.dirWrapperClassVar=t}}(),Md="context",Ad="_changes",Dd="_changed",Id="_eventHandler",Rd=qt("currValue"),jd=qt("throwOnChange"),Nd=qt("forceUpdate"),Ld=qt("view"),Fd=qt("componentView"),Vd=qt("el"),zd=qt("eventName"),Ud=Jp.prop(Ad).set(Kt([])).toStmt(),Bd=function(){function e(e,t,n,r){this.compilerConfig=e,this._exprParser=t,this._schemaRegistry=n,this._console=r}return e.dirWrapperClassName=function(e){return"Wrapper_"+b(e)},e.prototype.compile=function(e){var t=Dn(e,this._exprParser,this._schemaRegistry);In(t.errors,this._console);var n=new Hd(this.compilerConfig,e);Object.keys(e.inputs).forEach(function(e){On(e,n)}),Tn(n),Pn(t.hostProps,t.hostListeners,n),Mn(t.hostListeners,n),An(e,n);var r=n.build();return new Pd([r],r.name)},e=Td([M(),Od("design:paramtypes",[Sl,Xs,Uc,ko])],e)}(),Hd=function(){function e(e,t){this.compilerConfig=e,this.dirMeta=t,this.fields=[],this.getters=[],this.methods=[],this.ctorStmts=[],this.detachStmts=[],this.destroyStmts=[];var n=t.type.lifecycleHooks;this.genChanges=-1!==n.indexOf(ro.OnChanges)||this.compilerConfig.logBindingUpdate,this.ngOnChanges=-1!==n.indexOf(ro.OnChanges),this.ngOnInit=-1!==n.indexOf(ro.OnInit),this.ngDoCheck=-1!==n.indexOf(ro.DoCheck),this.ngOnDestroy=-1!==n.indexOf(ro.OnDestroy),this.ngOnDestroy&&this.destroyStmts.push(Jp.prop(Md).callMethod("ngOnDestroy",[]).toStmt())}return e.prototype.build=function(){for(var e=[],t=0;t<this.dirMeta.type.diDeps.length;t++)e.push("p"+t);var n=[new cd("ngOnDetach",[new Hp(Ld.name,Gt(Ke(Mc.AppView),[wp])),new Hp(Fd.name,Gt(Ke(Mc.AppView),[wp])),new Hp(Vd.name,wp)],this.detachStmts),new cd("ngOnDestroy",[],this.destroyStmts)],r=[new ud(Id,Sp,[td.Private]),new ud(Md,Gt(this.dirMeta.type)),new ud(Dd,kp,[td.Private])],i=[Jp.prop(Dd).set(Qt(!1)).toStmt()];return this.genChanges&&(r.push(new ud(Ad,new bp(wp),[td.Private])),i.push(Ud)),i.push(Jp.prop(Md).set(Wt(this.dirMeta.type).instantiate(e.map(function(e){return qt(e)}))).toStmt()),Sn({name:Bd.dirWrapperClassName(this.dirMeta.type),ctorParams:e.map(function(e){return new Hp(e,wp)}),builders:[{fields:r,ctorStmts:i,methods:n},this]})},e}(),qd=function(){return function(e,t,n){this.hostProps=e,this.hostListeners=t,this.errors=n}}(),Wd=function(){function e(){}return e.create=function(e,t){return Wt(e).instantiate(t,Gt(e))},e.context=function(e){return e.prop(Md)},e.ngDoCheck=function(e,t,n,r){return e.callMethod("ngDoCheck",[t,n,r])},e.checkHost=function(e,t,n,r,i,o,a){return e.length?[t.callMethod("checkHost",[n,r,i,o].concat(a)).toStmt()]:[]},e.ngOnDetach=function(e,t,n,r,i){return e.some(function(e){return e.isAnimation})?[t.callMethod("ngOnDetach",[n,r,i]).toStmt()]:[]},e.ngOnDestroy=function(e,t){return-1!==e.type.lifecycleHooks.indexOf(ro.OnDestroy)||Object.keys(e.outputs).length>0?[t.callMethod("ngOnDestroy",[]).toStmt()]:[]},e.subscribe=function(e,t,n,r,i,o){var a=!1,s=[];return Object.keys(e.outputs).forEach(function(t){var r=e.outputs[t],i=n.indexOf(r)>-1;a=a||i,s.push(Qt(i))}),t.forEach(function(e){e.isAnimation&&n.length>0&&(a=!0)}),a?[r.callMethod("subscribe",[i,o].concat(s)).toStmt()]:[]},e.handleEvent=function(e,t,n,r){return t.callMethod("handleEvent",[n,r])},e}(),Gd=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},Yd=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Zd=function(){function e(e){void 0===e&&(e=xo),this._reflector=e}return e.prototype.isNgModule=function(e){return this._reflector.annotations(e).some(Nn)},e.prototype.resolve=function(e,t){void 0===t&&(t=!0);var n=eo.findLast(this._reflector.annotations(e),Nn);if(n)return n;if(t)throw new Error("No NgModule metadata found for '"+a(e)+"'.");return null},e=Gd([M(),Yd("design:paramtypes",[oo])],e)}(),Kd=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},Xd=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Jd=function(){function e(e){void 0===e&&(e=xo),this._reflector=e}return e.prototype.isPipe=function(e){var n=this._reflector.annotations(t.resolveForwardRef(e));return n&&n.some(Ln)},e.prototype.resolve=function(e,n){void 0===n&&(n=!0);var r=this._reflector.annotations(t.resolveForwardRef(e));if(r){var i=eo.findLast(r,Ln);if(i)return i}if(n)throw new Error("No Pipe decorator found on "+a(e));return null},e=Kd([M(),Xd("design:paramtypes",[oo])],e)}(),Qd=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},$d=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},eh=function(){function e(){}return e.prototype.resolveSummary=function(e){return null},e.prototype.getSymbolsOf=function(e){return[]},e=Qd([M(),$d("design:paramtypes",[])],e)}(),th=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},nh=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},rh=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},ih=new t.OpaqueToken("ErrorCollector"),oh=function(){function e(e,t,n,r,i,o,a,s){void 0===a&&(a=xo),this._ngModuleResolver=e,this._directiveResolver=t,this._pipeResolver=n,this._summaryResolver=r,this._schemaRegistry=i,this._directiveNormalizer=o,this._reflector=a,this._errorCollector=s,this._directiveCache=new Map,this._summaryCache=new Map,this._pipeCache=new Map,this._ngModuleCache=new Map,this._ngModuleOfTypes=new Map}return e.prototype.clearCacheFor=function(e){var t=this._directiveCache.get(e);this._directiveCache.delete(e),this._summaryCache.delete(e),this._pipeCache.delete(e),this._ngModuleOfTypes.delete(e),this._ngModuleCache.clear(),t&&this._directiveNormalizer.clearCacheFor(t)},e.prototype.clearCache=function(){this._directiveCache.clear(),this._summaryCache.clear(),this._pipeCache.clear(),this._ngModuleCache.clear(),this._ngModuleOfTypes.clear(),this._directiveNormalizer.clearCache()},e.prototype.getAnimationEntryMetadata=function(e){var t=this,n=e.definitions.map(function(e){return t._getAnimationStateMetadata(e)});return new ua(e.name,n)},e.prototype._getAnimationStateMetadata=function(e){if(e instanceof t.AnimationStateDeclarationMetadata){var n=this._getAnimationStyleMetadata(e.styles);return new la(e.stateNameExpr,n)}return e instanceof t.AnimationStateTransitionMetadata?new pa(e.stateChangeExpr,this._getAnimationMetadata(e.steps)):null},e.prototype._getAnimationStyleMetadata=function(e){return new fa(e.offset,e.styles)},e.prototype._getAnimationMetadata=function(e){var n=this;if(e instanceof t.AnimationStyleMetadata)return this._getAnimationStyleMetadata(e);if(e instanceof t.AnimationKeyframesSequenceMetadata)return new ha(e.steps.map(function(e){return n._getAnimationStyleMetadata(e)}));if(e instanceof t.AnimationAnimateMetadata){var r=this._getAnimationMetadata(e.styles);return new ma(e.timings,r)}if(e instanceof t.AnimationWithStepsMetadata){var i=e.steps.map(function(e){return n._getAnimationMetadata(e)});return e instanceof t.AnimationGroupMetadata?new ga(i):new ya(i)}return null},e.prototype._loadSummary=function(e,t){var n=this._summaryCache.get(e);if(!n){var r=this._summaryResolver.resolveSummary(e);n=r?r.type:null,this._summaryCache.set(e,n)}return n&&n.summaryKind===t?n:null},e.prototype._loadDirectiveMetadata=function(e,n){var r=this;if(!this._directiveCache.has(e)){e=t.resolveForwardRef(e);var i=this.getNonNormalizedDirectiveMetadata(e),o=i.annotation,a=i.metadata,s=function(t){var n=new xa({type:a.type,isComponent:a.isComponent,selector:a.selector,exportAs:a.exportAs,changeDetection:a.changeDetection,inputs:a.inputs,outputs:a.outputs,hostListeners:a.hostListeners,hostProperties:a.hostProperties,hostAttributes:a.hostAttributes,providers:a.providers,viewProviders:a.viewProviders,queries:a.queries,viewQueries:a.viewQueries,entryComponents:a.entryComponents,template:t});return r._directiveCache.set(e,n),r._summaryCache.set(e,n.toSummary()),n};if(a.isComponent){var u=this._directiveNormalizer.normalizeTemplate({componentType:e,moduleUrl:Bn(this._reflector,e,o),encapsulation:a.template.encapsulation,template:a.template.template,templateUrl:a.template.templateUrl,styles:a.template.styles,styleUrls:a.template.styleUrls,animations:a.template.animations,interpolation:a.template.interpolation});return u.syncResult?(s(u.syncResult),null):n?(this._reportError(new zo(e),e),null):u.asyncResult.then(s)}return s(null),null}},e.prototype.getNonNormalizedDirectiveMetadata=function(e){var n=this;e=t.resolveForwardRef(e);var i=this._directiveResolver.resolve(e);if(!i)return null;var o;if(i instanceof t.Component){A("styles",i.styles),A("styleUrls",i.styleUrls),D("interpolation",i.interpolation);var a=i.animations?i.animations.map(function(e){return n.getAnimationEntryMetadata(e)}):null;o=new ka({encapsulation:i.encapsulation,template:i.template,templateUrl:i.templateUrl,styles:i.styles,styleUrls:i.styleUrls,animations:a,interpolation:i.interpolation})}var s=null,u=[],c=[],l=i.selector;i instanceof t.Component?(s=i.changeDetection,i.viewProviders&&(u=this._getProvidersMetadata(i.viewProviders,c,'viewProviders for "'+qn(e)+'"',[],e)),i.entryComponents&&(c=zn(i.entryComponents).map(function(e){return n._getIdentifierMetadata(e)}).concat(c)),l||(l=this._schemaRegistry.getDefaultComponentElementName())):l||(this._reportError(new oa("Directive "+qn(e)+" has no selector, please add it!"),e),l="error");var p=[];r(i.providers)&&(p=this._getProvidersMetadata(i.providers,c,'providers for "'+qn(e)+'"',[],e));var d=[],h=[];return r(i.queries)&&(d=this._getQueriesMetadata(i.queries,!1,e),h=this._getQueriesMetadata(i.queries,!0,e)),{metadata:xa.create({selector:l,exportAs:i.exportAs,isComponent:!!o,type:this._getTypeMetadata(e),template:o,changeDetection:s,inputs:i.inputs,outputs:i.outputs,host:i.host,providers:p,viewProviders:u,queries:d,viewQueries:h,entryComponents:c}),annotation:i}},e.prototype.getDirectiveMetadata=function(e){var t=this._directiveCache.get(e);return t||this._reportError(new oa("Illegal state: getDirectiveMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Directive "+qn(e)+"."),e),t},e.prototype.getDirectiveSummary=function(e){var t=this._loadSummary(e,ba.Directive);return t||this._reportError(new oa("Illegal state: Could not load the summary for directive "+qn(e)+"."),e),t},e.prototype.isDirective=function(e){return this._directiveResolver.isDirective(e)},e.prototype.isPipe=function(e){return this._pipeResolver.isPipe(e)},e.prototype.getNgModuleSummary=function(e){var t=this._loadSummary(e,ba.NgModule);if(!t){var n=this.getNgModuleMetadata(e,!1);(t=n?n.toSummary():null)&&this._summaryCache.set(e,t)}return t},e.prototype.loadNgModuleDirectiveAndPipeMetadata=function(e,t,n){var r=this;void 0===n&&(n=!0);var i=this.getNgModuleMetadata(e,n),o=[];return i&&(i.declaredDirectives.forEach(function(e){var n=r._loadDirectiveMetadata(e.reference,t);n&&o.push(n)}),i.declaredPipes.forEach(function(e){return r._loadPipeMetadata(e.reference)})),Promise.all(o)},e.prototype.getNgModuleMetadata=function(e,n){var r=this;void 0===n&&(n=!0),e=t.resolveForwardRef(e);var i=this._ngModuleCache.get(e);if(i)return i;var o=this._ngModuleResolver.resolve(e,n);if(!o)return null;var a=[],s=[],u=[],c=[],l=[],p=[],d=[],h=[],f=[];o.imports&&zn(o.imports).forEach(function(t){var n;if(Un(t))n=t;else if(t&&t.ngModule){var i=t;n=i.ngModule,i.providers&&p.push.apply(p,r._getProvidersMetadata(i.providers,d,"provider for the NgModule '"+qn(n)+"'",[],t))}if(n){var o=r.getNgModuleSummary(n);o?c.push(o):r._reportError(new oa("Unexpected "+r._getTypeDescriptor(t)+" '"+qn(t)+"' imported by the module '"+qn(e)+"'"),e)}else r._reportError(new oa("Unexpected value '"+qn(t)+"' imported by the module '"+qn(e)+"'"),e)}),o.exports&&zn(o.exports).forEach(function(t){if(Un(t)){var n=r.getNgModuleSummary(t);n?l.push(n):s.push(r._getIdentifierMetadata(t))}else r._reportError(new oa("Unexpected value '"+qn(t)+"' exported by the module '"+qn(e)+"'"),e)});var m=this._getTransitiveNgModuleMetadata(c,l);o.declarations&&zn(o.declarations).forEach(function(t){if(Un(t)){var n=r._getIdentifierMetadata(t);if(r._directiveResolver.isDirective(t))m.addDirective(n),a.push(n),r._addTypeToModule(t,e);else{if(!r._pipeResolver.isPipe(t))return void r._reportError(new oa("Unexpected "+r._getTypeDescriptor(t)+" '"+qn(t)+"' declared by the module '"+qn(e)+"'"),e);m.addPipe(n),m.pipes.push(n),u.push(n),r._addTypeToModule(t,e)}}else r._reportError(new oa("Unexpected value '"+qn(t)+"' declared by the module '"+qn(e)+"'"),e)});var v=[],y=[];return s.forEach(function(t){m.directivesSet.has(t.reference)?(v.push(t),m.addExportedDirective(t)):m.pipesSet.has(t.reference)?(y.push(t),m.addExportedPipe(t)):r._reportError(new oa("Can't export "+r._getTypeDescriptor(t.reference)+" "+qn(t.reference)+" from "+qn(e)+" as it was neither declared nor imported!"),e)}),o.providers&&p.push.apply(p,this._getProvidersMetadata(o.providers,d,"provider for the NgModule '"+qn(e)+"'",[],e)),o.entryComponents&&d.push.apply(d,zn(o.entryComponents).map(function(e){return r._getIdentifierMetadata(e)})),o.bootstrap&&zn(o.bootstrap).forEach(function(t){Un(t)?h.push(r._getIdentifierMetadata(t)):r._reportError(new oa("Unexpected value '"+qn(t)+"' used in the bootstrap property of module '"+qn(e)+"'"),e)}),d.push.apply(d,h),o.schemas&&f.push.apply(f,zn(o.schemas)),i=new Sa({type:this._getTypeMetadata(e),providers:p,entryComponents:d,bootstrapComponents:h,schemas:f,declaredDirectives:a,exportedDirectives:v,declaredPipes:u,exportedPipes:y,importedModules:c,exportedModules:l,transitiveModule:m,id:o.id}),d.forEach(function(e){return m.addEntryComponent(e)}),p.forEach(function(e){return m.addProvider(e,i.type)}),m.addModule(i.type),this._ngModuleCache.set(e,i),i},e.prototype._getTypeDescriptor=function(e){return this._directiveResolver.isDirective(e)?"directive":this._pipeResolver.isPipe(e)?"pipe":this._ngModuleResolver.isNgModule(e)?"module":e.provide?"provider":"value"},e.prototype._addTypeToModule=function(e,t){var n=this._ngModuleOfTypes.get(e);n&&n!==t&&this._reportError(new oa("Type "+qn(e)+" is part of the declarations of 2 modules: "+qn(n)+" and "+qn(t)+"! Please consider moving "+qn(e)+" to a higher module that imports "+qn(n)+" and "+qn(t)+". You can also create a new NgModule that exports and includes "+qn(e)+" then import that NgModule in "+qn(n)+" and "+qn(t)+"."),t),this._ngModuleOfTypes.set(e,t)},e.prototype._getTransitiveNgModuleMetadata=function(e,t){var n=new Ea,r=new Map;return e.concat(t).forEach(function(e){e.modules.forEach(function(e){return n.addModule(e)}),e.entryComponents.forEach(function(e){return n.addEntryComponent(e)});var t=new Set;e.providers.forEach(function(e){var i=x(e.provider.token),o=r.get(i);o||(o=new Set,r.set(i,o));var a=e.module.reference;!t.has(i)&&o.has(a)||(o.add(a),t.add(i),n.addProvider(e.provider,e.module))})}),t.forEach(function(e){e.exportedDirectives.forEach(function(e){return n.addExportedDirective(e)}),e.exportedPipes.forEach(function(e){return n.addExportedPipe(e)})}),e.forEach(function(e){e.exportedDirectives.forEach(function(e){return n.addDirective(e)}),e.exportedPipes.forEach(function(e){return n.addPipe(e)})}),n},e.prototype._getIdentifierMetadata=function(e){return e=t.resolveForwardRef(e),{reference:e}},e.prototype.isInjectable=function(e){return this._reflector.annotations(e).some(function(e){return e.constructor===t.Injectable})},e.prototype.getInjectableSummary=function(e){return{summaryKind:ba.Injectable,type:this._getTypeMetadata(e)}},e.prototype._getInjectableMetadata=function(e,t){void 0===t&&(t=null);var n=this._loadSummary(e,ba.Injectable);return n?n.type:this._getTypeMetadata(e,t)},e.prototype._getTypeMetadata=function(e,t){void 0===t&&(t=null);var n=this._getIdentifierMetadata(e);return{reference:n.reference,diDeps:this._getDependenciesMetadata(n.reference,t),lifecycleHooks:io.filter(function(e){return Rn(e,n.reference)})}},e.prototype._getFactoryMetadata=function(e,n){return void 0===n&&(n=null),e=t.resolveForwardRef(e),{reference:e,diDeps:this._getDependenciesMetadata(e,n)}},e.prototype.getPipeMetadata=function(e){var t=this._pipeCache.get(e);return t||this._reportError(new oa("Illegal state: getPipeMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Pipe "+qn(e)+"."),e),t},e.prototype.getPipeSummary=function(e){var t=this._loadSummary(e,ba.Pipe);return t||this._reportError(new oa("Illegal state: Could not load the summary for pipe "+qn(e)+"."),e),t},e.prototype.getOrLoadPipeMetadata=function(e){var t=this._pipeCache.get(e);return t||(t=this._loadPipeMetadata(e)),t},e.prototype._loadPipeMetadata=function(e){e=t.resolveForwardRef(e);var n=this._pipeResolver.resolve(e),r=new Ca({type:this._getTypeMetadata(e),name:n.name,pure:n.pure});return this._pipeCache.set(e,r),this._summaryCache.set(e,r.toSummary()),r},e.prototype._getDependenciesMetadata=function(e,n){var r=this,o=!1,a=(n||this._reflector.parameters(e)||[]).map(function(e){var n=!1,a=!1,s=!1,u=!1,c=!1,l=null;return Array.isArray(e)?e.forEach(function(e){e instanceof t.Host?a=!0:e instanceof t.Self?s=!0:e instanceof t.SkipSelf?u=!0:e instanceof t.Optional?c=!0:e instanceof t.Attribute?(n=!0,l=e.attributeName):e instanceof t.Inject?l=e.token:Un(e)&&i(l)&&(l=e)}):l=e,i(l)?(o=!0,null):{isAttribute:n,isHost:a,isSelf:s,isSkipSelf:u,isOptional:c,token:r._getTokenMetadata(l)}});if(o){var s=a.map(function(e){return e?qn(e.token):"?"}).join(", ");this._reportError(new oa("Can't resolve all parameters for "+qn(e)+": ("+s+")."),e)}return a},e.prototype._getTokenMetadata=function(e){return"string"==typeof(e=t.resolveForwardRef(e))?{value:e}:{identifier:{reference:e}}},e.prototype._getProvidersMetadata=function(e,n,r,i,o){var a=this;return void 0===i&&(i=[]),e.forEach(function(s,u){if(Array.isArray(s))a._getProvidersMetadata(s,n,r,i);else{var c=void 0;if((s=t.resolveForwardRef(s))&&"object"==typeof s&&s.hasOwnProperty("provide"))c=new Ta(s.provide,s);else if(Un(s))c=new Ta(s,{useClass:s});else{var l=e.reduce(function(e,t,n){return n<u?e.push(""+qn(t)):n==u?e.push("?"+qn(t)+"?"):n==u+1&&e.push("..."),e},[]).join(", ");a._reportError(new oa("Invalid "+(r||"provider")+" - only instances of Provider and Type are allowed, got: ["+l+"]"),o)}c.token===Ze(Mc.ANALYZE_FOR_ENTRY_COMPONENTS)?n.push.apply(n,a._getEntryComponentsFromProvider(c,o)):i.push(a.getProviderMetadata(c))}}),i},e.prototype._getEntryComponentsFromProvider=function(e,t){var n=this,r=[],i=[];return e.useFactory||e.useExisting||e.useClass?(this._reportError(new oa("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports useValue!"),t),[]):e.multi?(Hn(e.useValue,i),i.forEach(function(e){(n._directiveResolver.isDirective(e.reference)||n._loadSummary(e.reference,ba.Directive))&&r.push(e)}),r):(this._reportError(new oa("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports 'multi = true'!"),t),[])},e.prototype.getProviderMetadata=function(e){var t,n=null,r=null,i=this._getTokenMetadata(e.token);return e.useClass?(t=(n=this._getInjectableMetadata(e.useClass,e.dependencies)).diDeps,e.token===e.useClass&&(i={identifier:n})):e.useFactory&&(t=(r=this._getFactoryMetadata(e.useFactory,e.dependencies)).diDeps),{token:i,useClass:n,useValue:e.useValue,useFactory:r,useExisting:e.useExisting?this._getTokenMetadata(e.useExisting):null,deps:t,multi:e.multi}},e.prototype._getQueriesMetadata=function(e,t,n){var r=this,i=[];return Object.keys(e).forEach(function(o){var a=e[o];a.isViewQuery===t&&i.push(r._getQueryMetadata(a,o,n))}),i},e.prototype._queryVarBindings=function(e){return e.split(/\s*,\s*/)},e.prototype._getQueryMetadata=function(e,t,n){var r,i=this;return"string"==typeof e.selector?r=this._queryVarBindings(e.selector).map(function(e){return i._getTokenMetadata(e)}):(e.selector||this._reportError(new oa("Can't construct a query for the property \""+t+'" of "'+qn(n)+"\" since the query selector wasn't defined."),n),r=[this._getTokenMetadata(e.selector)]),{selectors:r,first:e.first,descendants:e.descendants,propertyName:t,read:e.read?this._getTokenMetadata(e.read):null}},e.prototype._reportError=function(e,t,n){if(!this._errorCollector)throw e;this._errorCollector(e,t),n&&this._errorCollector(e,n)},e.ctorParameters=function(){return[{type:Zd},{type:dp},{type:Jd},{type:eh},{type:Uc},{type:up},{type:oo},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[ih]}]}]},e=nh([M(),rh("design:paramtypes",[Zd,dp,Jd,eh,Uc,up,oo,Function])],e)}(),ah=function(e){function t(){e.apply(this,arguments)}return th(t,e),t.prototype.visitOther=function(e,t){t.push({reference:e})},t}(ra),sh=function(){function e(){}return e.prototype.visitArray=function(e,t){var n=this;return Zt(e.map(function(e){return g(e,n,null)}),t)},e.prototype.visitStringMap=function(e,t){var n=this,r=[],i=new Set(e&&e.$quoted$);return Object.keys(e).forEach(function(t){r.push(new Kp(t,g(e[t],n,null),i.has(t)))}),new Xp(r,t)},e.prototype.visitPrimitive=function(e,t){return Qt(e,t)},e.prototype.visitOther=function(e,t){return e instanceof Op?e:Wt({reference:e})},e}(),uh=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},ch=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},lh=function(){return function(e,t){this.comp=e,this.placeholder=t}}(),ph=function(){return function(e,t,n){this.statements=e,this.ngModuleFactoryVar=t,this.dependencies=n}}(),dh=function(){function e(){}return e.prototype.compile=function(e,t){var n=w(e.type),i=r(n)?"in NgModule "+b(e.type)+" in "+n:"in NgModule "+b(e.type),o=new eu("",i),a=new tu(new $s(o,null,null,null),new $s(o,null,null,null)),s=[],u=[],c=e.transitiveModule.entryComponents.map(function(t){var n={reference:null};return e.bootstrapComponents.some(function(e){return e.reference===t.reference})&&u.push(n),s.push(new lh(t,n)),n}),l=new hh(e,c,u,a);new zc(e,t,a).parse().forEach(function(e){return l.addProvider(e)});var p=l.build(),d=b(e.type)+"NgFactory",h=[p,qt(d).set(Wt(Ke(Mc.NgModuleFactory)).instantiate([qt(p.name),Wt(e.type)],Gt(Ke(Mc.NgModuleFactory),[Gt(e.type)],[fp.Const]))).toDeclStmt(null,[td.Final])];if(e.id){var f=Wt(Ke(Mc.RegisterModuleFactoryFn)).callFn([Qt(e.id),qt(d)]).toStmt();h.push(f)}return new ph(h,d,s)},e=uh([M(),ch("design:paramtypes",[])],e)}(),hh=function(){function e(e,t,n,r){this._ngModuleMeta=e,this._entryComponentFactories=t,this._bootstrapComponentFactories=n,this._sourceSpan=r,this.fields=[],this.getters=[],this.methods=[],this.ctorStmts=[],this._tokens=[],this._instances=new Map,this._createStmts=[],this._destroyStmts=[]}return e.prototype.addProvider=function(e){var t=this,n=e.providers.map(function(e){return t._getProviderValue(e)}),r="_"+k(e.token)+"_"+this._instances.size,i=this._createProviderProperty(r,e,n,e.multiProvider,e.eager);-1!==e.lifecycleHooks.indexOf(ro.OnDestroy)&&this._destroyStmts.push(i.callMethod("ngOnDestroy",[]).toStmt()),this._tokens.push(e.token),this._instances.set(x(e.token),i)},e.prototype.build=function(){var e=this,t=this._tokens.map(function(t){var n=e._instances.get(x(t));return new dd(mh.token.identical(nn(t)),[new ad(n)])}),n=[new cd("createInternal",[],this._createStmts.concat(new ad(this._instances.get(this._ngModuleMeta.type.reference))),Gt(this._ngModuleMeta.type)),new cd("getInternal",[new Hp(mh.token.name,wp),new Hp(mh.notFoundResult.name,wp)],t.concat([new ad(mh.notFoundResult)]),wp),new cd("destroyInternal",[],this._destroyStmts)],r=[qt(fh.parent.name),Zt(this._entryComponentFactories.map(function(e){return Wt(e)})),Zt(this._bootstrapComponentFactories.map(function(e){return Wt(e)}))];return Sn({name:b(this._ngModuleMeta.type)+"Injector",ctorParams:[new Hp(fh.parent.name,Gt(Ke(Mc.Injector)))],parent:Wt(Ke(Mc.NgModuleInjector),[Gt(this._ngModuleMeta.type)]),parentArgs:r,builders:[{methods:n},this]})},e.prototype._getProviderValue=function(e){var t,n=this;if(r(e.useExisting))t=this._getDependency({token:e.useExisting});else if(r(e.useFactory)){o=(i=e.deps||e.useFactory.diDeps).map(function(e){return n._getDependency(e)});t=Wt(e.useFactory).callFn(o)}else if(r(e.useClass)){var i=e.deps||e.useClass.diDeps,o=i.map(function(e){return n._getDependency(e)});t=Wt(e.useClass).instantiate(o,Gt(e.useClass))}else t=Wn(e.useValue);return t},e.prototype._createProviderProperty=function(e,t,n,r,i){var o,a;if(r?(o=Zt(n),a=new _p(wp)):(o=n[0],a=n[0].type),a||(a=wp),i)this.fields.push(new ud(e,a)),this._createStmts.push(Jp.prop(e).set(o).toStmt());else{var s="_"+e;this.fields.push(new ud(s,a));var u=[new dd(Jp.prop(s).isBlank(),[Jp.prop(s).set(o).toStmt()]),new ad(Jp.prop(s))];this.getters.push(new ld(e,u,a))}return Jp.prop(e)},e.prototype._getDependency=function(e){var t=null;if(e.isValue&&(t=Qt(e.value)),e.isSkipSelf||(!e.token||x(e.token)!==Ze(Mc.Injector)&&x(e.token)!==Ze(Mc.ComponentFactoryResolver)||(t=Jp),t||(t=this._instances.get(x(e.token)))),!t){var n=[nn(e.token)];e.isOptional&&n.push($p),t=fh.parent.callMethod("get",n)}return t},e}(),fh=function(){function e(){}return e.parent=Jp.prop("parent"),e}(),mh=function(){function e(){}return e.token=qt("token"),e.notFoundResult=qt("notFoundResult"),e}(),vh=/'|\\|\n|\r|\$/g,yh=/^[$A-Z_][0-9A-Z_$]*$/i,gh=qt("error"),_h=qt("stack"),bh=function(){return function(e){this.indent=e,this.parts=[]}}(),wh=function(){function e(e,t){this._exportedVars=e,this._indent=t,this._classes=[],this._lines=[new bh(t)]}return e.createRoot=function(t){return new e(t,0)},Object.defineProperty(e.prototype,"_currentLine",{get:function(){return this._lines[this._lines.length-1]},enumerable:!0,configurable:!0}),e.prototype.isExportedVar=function(e){return-1!==this._exportedVars.indexOf(e)},e.prototype.println=function(e){void 0===e&&(e=""),this.print(e,!0)},e.prototype.lineIsEmpty=function(){return 0===this._currentLine.parts.length},e.prototype.print=function(e,t){void 0===t&&(t=!1),e.length>0&&this._currentLine.parts.push(e),t&&this._lines.push(new bh(this._indent))},e.prototype.removeEmptyLastLine=function(){this.lineIsEmpty()&&this._lines.pop()},e.prototype.incIndent=function(){this._indent++,this._currentLine.indent=this._indent},e.prototype.decIndent=function(){this._indent--,this._currentLine.indent=this._indent},e.prototype.pushClass=function(e){this._classes.push(e)},e.prototype.popClass=function(){return this._classes.pop()},Object.defineProperty(e.prototype,"currentClass",{get:function(){return this._classes.length>0?this._classes[this._classes.length-1]:null},enumerable:!0,configurable:!0}),e.prototype.toSource=function(){var e=this._lines;return 0===e[e.length-1].parts.length&&(e=e.slice(0,e.length-1)),e.map(function(e){return e.parts.length>0?Yn(e.indent)+e.parts.join(""):""}).join("\n")},e}(),kh=function(){function e(e){this._escapeDollarInStrings=e}return e.prototype.visitExpressionStmt=function(e,t){return e.expr.visitExpression(this,t),t.println(";"),null},e.prototype.visitReturnStmt=function(e,t){return t.print("return "),e.value.visitExpression(this,t),t.println(";"),null},e.prototype.visitCastExpr=function(e,t){},e.prototype.visitDeclareClassStmt=function(e,t){},e.prototype.visitIfStmt=function(e,t){t.print("if ("),e.condition.visitExpression(this,t),t.print(") {");var n=r(e.falseCase)&&e.falseCase.length>0;return e.trueCase.length<=1&&!n?(t.print(" "),this.visitAllStatements(e.trueCase,t),t.removeEmptyLastLine(),t.print(" ")):(t.println(),t.incIndent(),this.visitAllStatements(e.trueCase,t),t.decIndent(),n&&(t.println("} else {"),t.incIndent(),this.visitAllStatements(e.falseCase,t),t.decIndent())),t.println("}"),null},e.prototype.visitTryCatchStmt=function(e,t){},e.prototype.visitThrowStmt=function(e,t){return t.print("throw "),e.error.visitExpression(this,t),t.println(";"),null},e.prototype.visitCommentStmt=function(e,t){return e.comment.split("\n").forEach(function(e){t.println("// "+e)}),null},e.prototype.visitDeclareVarStmt=function(e,t){},e.prototype.visitWriteVarExpr=function(e,t){var n=t.lineIsEmpty();return n||t.print("("),t.print(e.name+" = "),e.value.visitExpression(this,t),n||t.print(")"),null},e.prototype.visitWriteKeyExpr=function(e,t){var n=t.lineIsEmpty();return n||t.print("("),e.receiver.visitExpression(this,t),t.print("["),e.index.visitExpression(this,t),t.print("] = "),e.value.visitExpression(this,t),n||t.print(")"),null},e.prototype.visitWritePropExpr=function(e,t){var n=t.lineIsEmpty();return n||t.print("("),e.receiver.visitExpression(this,t),t.print("."+e.name+" = "),e.value.visitExpression(this,t),n||t.print(")"),null},e.prototype.visitInvokeMethodExpr=function(e,t){e.receiver.visitExpression(this,t);var n=e.name;return r(e.builtin)&&(n=this.getBuiltinMethodName(e.builtin),i(n))?null:(t.print("."+n+"("),this.visitAllExpressions(e.args,t,","),t.print(")"),null)},e.prototype.getBuiltinMethodName=function(e){},e.prototype.visitInvokeFunctionExpr=function(e,t){return e.fn.visitExpression(this,t),t.print("("),this.visitAllExpressions(e.args,t,","),t.print(")"),null},e.prototype.visitReadVarExpr=function(e,t){var n=e.name;if(r(e.builtin))switch(e.builtin){case Pp.Super:n="super";break;case Pp.This:n="this";break;case Pp.CatchError:n=gh.name;break;case Pp.CatchStack:n=_h.name;break;default:throw new Error("Unknown builtin variable "+e.builtin)}return t.print(n),null},e.prototype.visitInstantiateExpr=function(e,t){return t.print("new "),e.classExpr.visitExpression(this,t),t.print("("),this.visitAllExpressions(e.args,t,","),t.print(")"),null},e.prototype.visitLiteralExpr=function(e,t){var n=e.value;return"string"==typeof n?t.print(Gn(n,this._escapeDollarInStrings)):t.print(""+n),null},e.prototype.visitExternalExpr=function(e,t){},e.prototype.visitConditionalExpr=function(e,t){return t.print("("),e.condition.visitExpression(this,t),t.print("? "),e.trueCase.visitExpression(this,t),t.print(": "),e.falseCase.visitExpression(this,t),t.print(")"),null},e.prototype.visitNotExpr=function(e,t){return t.print("!"),e.condition.visitExpression(this,t),null},e.prototype.visitFunctionExpr=function(e,t){},e.prototype.visitDeclareFunctionStmt=function(e,t){},e.prototype.visitBinaryOperatorExpr=function(e,t){var n;switch(e.operator){case Tp.Equals:n="==";break;case Tp.Identical:n="===";break;case Tp.NotEquals:n="!=";break;case Tp.NotIdentical:n="!==";break;case Tp.And:n="&&";break;case Tp.Or:n="||";break;case Tp.Plus:n="+";break;case Tp.Minus:n="-";break;case Tp.Divide:n="/";break;case Tp.Multiply:n="*";break;case Tp.Modulo:n="%";break;case Tp.Lower:n="<";break;case Tp.LowerEquals:n="<=";break;case Tp.Bigger:n=">";break;case Tp.BiggerEquals:n=">=";break;default:throw new Error("Unknown operator "+e.operator)}return t.print("("),e.lhs.visitExpression(this,t),t.print(" "+n+" "),e.rhs.visitExpression(this,t),t.print(")"),null},e.prototype.visitReadPropExpr=function(e,t){return e.receiver.visitExpression(this,t),t.print("."),t.print(e.name),null},e.prototype.visitReadKeyExpr=function(e,t){return e.receiver.visitExpression(this,t),t.print("["),e.index.visitExpression(this,t),t.print("]"),null},e.prototype.visitLiteralArrayExpr=function(e,t){var n=e.entries.length>1;return t.print("[",n),t.incIndent(),this.visitAllExpressions(e.entries,t,",",n),t.decIndent(),t.print("]",n),null},e.prototype.visitLiteralMapExpr=function(e,t){var n=this,r=e.entries.length>1;return t.print("{",r),t.incIndent(),this.visitAllObjects(function(e){t.print(Gn(e.key,n._escapeDollarInStrings,e.quoted)+": "),e.value.visitExpression(n,t)},e.entries,t,",",r),t.decIndent(),t.print("}",r),null},e.prototype.visitAllExpressions=function(e,t,n,r){var i=this;void 0===r&&(r=!1),this.visitAllObjects(function(e){return e.visitExpression(i,t)},e,t,n,r)},e.prototype.visitAllObjects=function(e,t,n,r,i){void 0===i&&(i=!1);for(var o=0;o<t.length;o++)o>0&&n.print(r,i),e(t[o]);i&&n.println()},e.prototype.visitAllStatements=function(e,t){var n=this;e.forEach(function(e){return e.visitStatement(n,t)})},e}(),xh=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},Ch="/debug/lib",Sh=function(){function e(e){this._importGenerator=e}return e.prototype.emitStatements=function(e,t,n){var r=this,i=new Eh(e),o=wh.createRoot(n);i.visitAllStatements(t,o);var a=[];return i.importsWithPrefixes.forEach(function(t,n){a.push("import * as "+t+" from '"+r._importGenerator.fileNameToModuleName(n,e)+"';")}),a.push(o.toSource()),a.join("\n")},e}(),Eh=function(e){function t(t){e.call(this,!1),this._moduleUrl=t,this.importsWithPrefixes=new Map}return xh(t,e),t.prototype.visitType=function(e,t,n){void 0===n&&(n="any"),r(e)?e.visitType(this,t):t.print(n)},t.prototype.visitLiteralExpr=function(t,n){var r=t.value;return i(r)&&t.type!=Ep?(n.print("("+r+" as any)"),null):e.prototype.visitLiteralExpr.call(this,t,n)},t.prototype.visitLiteralArrayExpr=function(t,n){0===t.entries.length&&n.print("(");var r=e.prototype.visitLiteralArrayExpr.call(this,t,n);return 0===t.entries.length&&n.print(" as any[])"),r},t.prototype.visitExternalExpr=function(e,t){return this._visitIdentifier(e.value,e.typeParams,t),null},t.prototype.visitDeclareVarStmt=function(e,t){return t.isExportedVar(e.name)&&t.print("export "),e.hasModifier(td.Final)?t.print("const"):t.print("var"),t.print(" "+e.name+":"),this.visitType(e.type,t),t.print(" = "),e.value.visitExpression(this,t),t.println(";"),null},t.prototype.visitCastExpr=function(e,t){return t.print("(<"),e.type.visitType(this,t),t.print(">"),e.value.visitExpression(this,t),t.print(")"),null},t.prototype.visitDeclareClassStmt=function(e,t){var n=this;return t.pushClass(e),t.isExportedVar(e.name)&&t.print("export "),t.print("class "+e.name),r(e.parent)&&(t.print(" extends "),e.parent.visitExpression(this,t)),t.println(" {"),t.incIndent(),e.fields.forEach(function(e){return n._visitClassField(e,t)}),r(e.constructorMethod)&&this._visitClassConstructor(e,t),e.getters.forEach(function(e){return n._visitClassGetter(e,t)}),e.methods.forEach(function(e){return n._visitClassMethod(e,t)}),t.decIndent(),t.println("}"),t.popClass(),null},t.prototype._visitClassField=function(e,t){e.hasModifier(td.Private)&&t.print("/*private*/ "),t.print(e.name),t.print(":"),this.visitType(e.type,t),t.println(";")},t.prototype._visitClassGetter=function(e,t){e.hasModifier(td.Private)&&t.print("private "),t.print("get "+e.name+"()"),t.print(":"),this.visitType(e.type,t),t.println(" {"),t.incIndent(),this.visitAllStatements(e.body,t),t.decIndent(),t.println("}")},t.prototype._visitClassConstructor=function(e,t){t.print("constructor("),this._visitParams(e.constructorMethod.params,t),t.println(") {"),t.incIndent(),this.visitAllStatements(e.constructorMethod.body,t),t.decIndent(),t.println("}")},t.prototype._visitClassMethod=function(e,t){e.hasModifier(td.Private)&&t.print("private "),t.print(e.name+"("),this._visitParams(e.params,t),t.print("):"),this.visitType(e.type,t,"void"),t.println(" {"),t.incIndent(),this.visitAllStatements(e.body,t),t.decIndent(),t.println("}")},t.prototype.visitFunctionExpr=function(e,t){return t.print("("),this._visitParams(e.params,t),t.print("):"),this.visitType(e.type,t,"void"),t.println(" => {"),t.incIndent(),this.visitAllStatements(e.statements,t),t.decIndent(),t.print("}"),null},t.prototype.visitDeclareFunctionStmt=function(e,t){return t.isExportedVar(e.name)&&t.print("export "),t.print("function "+e.name+"("),this._visitParams(e.params,t),t.print("):"),this.visitType(e.type,t,"void"),t.println(" {"),t.incIndent(),this.visitAllStatements(e.statements,t),t.decIndent(),t.println("}"),null},t.prototype.visitTryCatchStmt=function(e,t){t.println("try {"),t.incIndent(),this.visitAllStatements(e.bodyStmts,t),t.decIndent(),t.println("} catch ("+gh.name+") {"),t.incIndent();var n=[_h.set(gh.prop("stack")).toDeclStmt(null,[td.Final])].concat(e.catchStmts);return this.visitAllStatements(n,t),t.decIndent(),t.println("}"),null},t.prototype.visitBuiltintType=function(e,t){var n;switch(e.name){case vp.Bool:n="boolean";break;case vp.Dynamic:n="any";break;case vp.Function:n="Function";break;case vp.Number:case vp.Int:n="number";break;case vp.String:n="string";break;default:throw new Error("Unsupported builtin type "+e.name)}return t.print(n),null},t.prototype.visitExpressionType=function(e,t){var n=this;return e.value.visitExpression(this,t),r(e.typeParams)&&e.typeParams.length>0&&(t.print("<"),this.visitAllObjects(function(e){return e.visitType(n,t)},e.typeParams,t,","),t.print(">")),null},t.prototype.visitArrayType=function(e,t){return this.visitType(e.of,t),t.print("[]"),null},t.prototype.visitMapType=function(e,t){return t.print("{[key: string]:"),this.visitType(e.valueType,t),t.print("}"),null},t.prototype.getBuiltinMethodName=function(e){var t;switch(e){case Rp.ConcatArray:t="concat";break;case Rp.SubscribeObservable:t="subscribe";break;case Rp.Bind:t="bind";break;default:throw new Error("Unknown builtin method: "+e)}return t},t.prototype._visitParams=function(e,t){var n=this;this.visitAllObjects(function(e){t.print(e.name),t.print(":"),n.visitType(e.type,t)},e,t,",")},t.prototype._visitIdentifier=function(e,t,n){var o=this,a=b(e),s=w(e);if(i(a))throw new Error("Internal error: unknown identifier "+e);if(r(s)&&s!=this._moduleUrl){var u=this.importsWithPrefixes.get(s);i(u)&&(u="import"+this.importsWithPrefixes.size,this.importsWithPrefixes.set(s,u)),n.print(u+".")}e.reference&&e.reference.members&&e.reference.members.length?(n.print(e.reference.name),n.print("."),n.print(e.reference.members.join("."))):n.print(a),r(t)&&t.length>0&&(n.print("<"),this.visitAllObjects(function(e){return e.visitType(o,n)},t,n,","),n.print(">"))},t}(kh),Th={};Kn(t.SecurityContext.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),Kn(t.SecurityContext.STYLE,["*|style"]),Kn(t.SecurityContext.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","img|srcset","input|src","ins|cite","q|cite","source|src","source|srcset","track|src","video|poster","video|src"]),Kn(t.SecurityContext.RESOURCE_URL,["applet|code","applet|codebase","base|href","embed|src","frame|src","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"]);var Oh=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},Ph=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},Mh=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Ah="boolean",Dh="number",Ih="string",Rh="object",jh=["[Element]|textContent,%classList,className,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*copy,*cut,*paste,*search,*selectstart,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerHTML,#scrollLeft,#scrollTop","[HTMLElement]^[Element]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*beforecopy,*beforecut,*beforepaste,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*message,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*paste,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*search,*seeked,*seeking,*select,*selectstart,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate","abbr,address,article,aside,b,bdi,bdo,cite,code,dd,dfn,dt,em,figcaption,figure,footer,header,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*beforecopy,*beforecut,*beforepaste,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*message,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*paste,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*search,*seeked,*seeking,*select,*selectstart,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate","media^[HTMLElement]|!autoplay,!controls,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,#playbackRate,preload,src,%srcObject,#volume",":svg:^[HTMLElement]|*abort,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!autofocus,!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,!allowFullscreen,frameBorder,height,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,#height,#hspace,!isMap,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocapitalize,autocomplete,!autofocus,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","keygen^[HTMLElement]|!autofocus,challenge,!disabled,keytype,name","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,integrity,media,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,src,text,type","select^[HTMLElement]|!autofocus,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","shadow^[HTMLElement]|","source^[HTMLElement]|media,sizes,src,srcset,type","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocapitalize,!autofocus,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|#height,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:cursor^:svg:|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime"],Nh={class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},Lh=function(e){function n(){var t=this;e.call(this),this._schema={},jh.forEach(function(e){var n={},r=e.split("|"),i=r[0],o=r[1].split(","),a=i.split("^"),s=a[0],u=a[1];s.split(",").forEach(function(e){return t._schema[e.toLowerCase()]=n});var c=u&&t._schema[u.toLowerCase()];c&&Object.keys(c).forEach(function(e){n[e]=c[e]}),o.forEach(function(e){if(e.length>0)switch(e[0]){case"*":break;case"!":n[e.substring(1)]=Ah;break;case"#":n[e.substring(1)]=Dh;break;case"%":n[e.substring(1)]=Rh;break;default:n[e]=Ih}})})}return Oh(n,e),n.prototype.hasProperty=function(e,n,r){if(r.some(function(e){return e.name===t.NO_ERRORS_SCHEMA.name}))return!0;if(e.indexOf("-")>-1){if("ng-container"===e||"ng-content"===e)return!1;if(r.some(function(e){return e.name===t.CUSTOM_ELEMENTS_SCHEMA.name}))return!0}return!!(this._schema[e.toLowerCase()]||this._schema.unknown)[n]},n.prototype.hasElement=function(e,n){if(n.some(function(e){return e.name===t.NO_ERRORS_SCHEMA.name}))return!0;if(e.indexOf("-")>-1){if("ng-container"===e||"ng-content"===e)return!0;if(n.some(function(e){return e.name===t.CUSTOM_ELEMENTS_SCHEMA.name}))return!0}return!!this._schema[e.toLowerCase()]},n.prototype.securityContext=function(e,n,r){r&&(n=this.getMappedPropName(n)),e=e.toLowerCase(),n=n.toLowerCase();var i=Th[e+"|"+n];return i||((i=Th["*|"+n])||t.SecurityContext.NONE)},n.prototype.getMappedPropName=function(e){return Nh[e]||e},n.prototype.getDefaultComponentElementName=function(){return"ng-component"},n.prototype.validateProperty=function(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:"Binding to event property '"+e+"' is disallowed for security reasons, please use ("+e.slice(2)+")=...\nIf '"+e+"' is a directive input, make sure the directive is imported by the current module."}:{error:!1}},n.prototype.validateAttribute=function(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:"Binding to event attribute '"+e+"' is disallowed for security reasons, please use ("+e.slice(2)+")=..."}:{error:!1}},n.prototype.allKnownElementNames=function(){return Object.keys(this._schema)},n.prototype.normalizeAnimationStyleProperty=function(e){return f(e)},n.prototype.normalizeAnimationStyleValue=function(e,t,n){var r="",i=n.toString().trim(),o=null;if(Xn(e)&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&(o="Please provide a CSS unit value for "+t+":"+n)}return{error:o,value:i+r}},n=Ph([M(),Mh("design:paramtypes",[])],n)}(Uc),Fh=function(){function e(){this.strictStyling=!0}return e.prototype.shimCssText=function(e,t,n){void 0===n&&(n="");var r=Qn(e);return e=Jn(e),e=this._insertDirectives(e),this._scopeCssText(e,t,n)+r},e.prototype._insertDirectives=function(e){return e=this._insertPolyfillDirectivesInCssText(e),this._insertPolyfillRulesInCssText(e)},e.prototype._insertPolyfillDirectivesInCssText=function(e){return e.replace(zh,function(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return e[2]+"{"})},e.prototype._insertPolyfillRulesInCssText=function(e){return e.replace(Uh,function(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];var n=e[0].replace(e[1],"").replace(e[2],"");return e[4]+n})},e.prototype._scopeCssText=function(e,t,n){var r=this._extractUnscopedRulesFromCssText(e);return e=this._insertPolyfillHostInCssText(e),e=this._convertColonHost(e),e=this._convertColonHostContext(e),e=this._convertShadowDOMSelectors(e),t&&(e=this._scopeSelectors(e,t,n)),(e=e+"\n"+r).trim()},e.prototype._extractUnscopedRulesFromCssText=function(e){var t,n="";for(Bh.lastIndex=0;null!==(t=Bh.exec(e));)n+=t[0].replace(t[2],"").replace(t[1],t[4])+"\n\n";return n},e.prototype._convertColonHost=function(e){return this._convertColonRule(e,Gh,this._colonHostPartReplacer)},e.prototype._convertColonHostContext=function(e){return this._convertColonRule(e,Yh,this._colonHostContextPartReplacer)},e.prototype._convertColonRule=function(e,t,n){return e.replace(t,function(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];if(e[2]){for(var r=e[2].split(","),i=[],o=0;o<r.length;o++){var a=r[o].trim();if(!a)break;i.push(n(Zh,a,e[3]))}return i.join(",")}return Zh+e[3]})},e.prototype._colonHostContextPartReplacer=function(e,t,n){return t.indexOf(Hh)>-1?this._colonHostPartReplacer(e,t,n):e+t+n+", "+t+" "+e+n},e.prototype._colonHostPartReplacer=function(e,t,n){return e+t.replace(Hh,"")+n},e.prototype._convertShadowDOMSelectors=function(e){return Xh.reduce(function(e,t){return e.replace(t," ")},e)},e.prototype._scopeSelectors=function(e,t,n){var r=this;return $n(e,function(e){var i=e.selector,o=e.content;return"@"!=e.selector[0]?i=r._scopeSelector(e.selector,t,n,r.strictStyling):(e.selector.startsWith("@media")||e.selector.startsWith("@supports")||e.selector.startsWith("@page")||e.selector.startsWith("@document"))&&(o=r._scopeSelectors(e.content,t,n)),new lf(i,o)})},e.prototype._scopeSelector=function(e,t,n,r){var i=this;return e.split(",").map(function(e){return e.trim().split(Jh)}).map(function(e){var o=e[0],a=e.slice(1);return[function(e){return i._selectorNeedsScoping(e,t)?r?i._applyStrictSelectorScope(e,t,n):i._applySelectorScope(e,t,n):e}(o)].concat(a).join(" ")}).join(", ")},e.prototype._selectorNeedsScoping=function(e,t){return!this._makeScopeMatcher(t).test(e)},e.prototype._makeScopeMatcher=function(e){var t=/\[/g,n=/\]/g;return e=e.replace(t,"\\[").replace(n,"\\]"),new RegExp("^("+e+")"+Qh,"m")},e.prototype._applySelectorScope=function(e,t,n){return this._applySimpleSelectorScope(e,t,n)},e.prototype._applySimpleSelectorScope=function(e,t,n){if($h.lastIndex=0,$h.test(e)){var r=this.strictStyling?"["+n+"]":t;return e.replace(Kh,function(e,t){return t.replace(/([^:]*)(:*)(.*)/,function(e,t,n,i){return t+r+n+i})}).replace($h,r+" ")}return t+" "+e},e.prototype._applyStrictSelectorScope=function(e,t,n){for(var r,i=this,o=/\[is=([^\]]*)\]/g,a="["+(t=t.replace(o,function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t[0]}))+"]",s=function(e){var r=e.trim();if(!r)return"";if(e.indexOf(Zh)>-1)r=i._applySimpleSelectorScope(e,t,n);else{var o=e.replace($h,"");if(o.length>0){var s=o.match(/([^:]*)(:*)(.*)/);s&&(r=s[1]+a+s[2]+s[3])}}return r},u=new Vh(e),c="",l=0,p=/( |>|\+|~(?!=))\s*/g,d=(e=u.content()).indexOf(Zh);null!==(r=p.exec(e));){var h=r[1],f=e.slice(l,r.index).trim();c+=(l>=d?s(f):f)+" "+h+" ",l=p.lastIndex}return c+=s(e.substring(l)),u.restore(c)},e.prototype._insertPolyfillHostInCssText=function(e){return e.replace(tf,qh).replace(ef,Hh)},e}(),Vh=function(){function e(e){var t=this;this.placeholders=[],this.index=0,e=e.replace(/(\[[^\]]*\])/g,function(e,n){var r="__ph-"+t.index+"__";return t.placeholders.push(n),t.index++,r}),this._content=e.replace(/(:nth-[-\w]+)(\([^)]+\))/g,function(e,n,r){var i="__ph-"+t.index+"__";return t.placeholders.push(r),t.index++,n+i})}return e.prototype.restore=function(e){var t=this;return e.replace(/__ph-(\d+)__/g,function(e,n){return t.placeholders[+n]})},e.prototype.content=function(){return this._content},e}(),zh=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,Uh=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,Bh=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,Hh="-shadowcsshost",qh="-shadowcsscontext",Wh=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",Gh=new RegExp("("+Hh+Wh,"gim"),Yh=new RegExp("("+qh+Wh,"gim"),Zh=Hh+"-no-combinator",Kh=/-shadowcsshost-no-combinator([^\s]*)/,Xh=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],Jh=/(?:>>>)|(?:\/deep\/)/g,Qh="([>\\s~+[.,{:][\\s\\S]*)?$",$h=/-shadowcsshost/gim,ef=/:host/gim,tf=/:host-context/gim,nf=/\/\*\s*[\s\S]*?\*\//g,rf=/\/\*\s*#\s*sourceMappingURL=[\s\S]+?\*\//,of=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,af=/([{}])/g,sf="{",uf="}",cf="%BLOCK%",lf=function(){return function(e,t){this.selector=e,this.content=t}}(),pf=function(){return function(e,t){this.escapedString=e,this.blocks=t}}(),df=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},hf=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},ff=function(){return function(e,t,n,r){this.name=e,this.moduleUrl=t,this.isShimmed=n,this.valuePlaceholder=r}}(),mf=function(){return function(e,t){this.componentStylesheet=e,this.externalStylesheets=t}}(),vf=function(){return function(e,t,n,r,i){this.statements=e,this.stylesVar=t,this.dependencies=n,this.isShimmed=r,this.meta=i}}(),yf=function(){function e(e){this._urlResolver=e,this._shadowCss=new Fh}return e.prototype.compileComponent=function(e){var t=this,n=[],r=this._compileStyles(e,new wa({styles:e.template.styles,styleUrls:e.template.styleUrls,moduleUrl:w(e.type)}),!0);return e.template.externalStylesheets.forEach(function(r){var i=t._compileStyles(e,r,!1);n.push(i)}),new mf(r,n)},e.prototype._compileStyles=function(e,n,r){for(var i=this,o=e.template.encapsulation===t.ViewEncapsulation.Emulated,a=n.styles.map(function(e){return Qt(i._shimIfNeeded(e,o))}),s=[],u=0;u<n.styleUrls.length;u++){var c={reference:null};s.push(new ff(tr(null),n.styleUrls[u],o,c)),a.push(new Vp(c))}var l=tr(r?e:null),p=qt(l).set(Zt(a,new _p(wp,[fp.Const]))).toDeclStmt(null,[td.Final]);return new vf([p],l,s,o,n)},e.prototype._shimIfNeeded=function(e,t){return t?this._shadowCss.shimCssText(e,"_ngcontent-%COMP%","_nghost-%COMP%"):e},e=df([M(),hf("design:paramtypes",[rp])],e)}(),gf=function(){return function(e,t){this.nodeIndex=e,this.sourceAst=t}}(),_f=new gf(null,null),bf=function(){function e(e){this._view=e,this._newState=_f,this._currState=_f,this._bodyStatements=[],this._debugEnabled=this._view.genConfig.genDebugInfo}return e.prototype._updateDebugContextIfNeeded=function(){if(this._newState.nodeIndex!==this._currState.nodeIndex||this._newState.sourceAst!==this._currState.sourceAst){var e=this._updateDebugContext(this._newState);e&&this._bodyStatements.push(e.toStmt())}},e.prototype._updateDebugContext=function(e){if(this._currState=this._newState=e,this._debugEnabled){var t=e.sourceAst?e.sourceAst.sourceSpan.start:null;return Jp.callMethod("debug",[Qt(e.nodeIndex),t?Qt(t.line):$p,t?Qt(t.col):$p])}return null},e.prototype.resetDebugInfoExpr=function(e,t){return this._updateDebugContext(new gf(e,t))||$p},e.prototype.resetDebugInfo=function(e,t){this._newState=new gf(e,t)},e.prototype.push=function(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];this.addStmts(e)},e.prototype.addStmt=function(e){this._updateDebugContextIfNeeded(),this._bodyStatements.push(e)},e.prototype.addStmts=function(e){this._updateDebugContextIfNeeded(),(t=this._bodyStatements).push.apply(t,e);var t},e.prototype.finish=function(){return this._bodyStatements},e.prototype.isEmpty=function(){return 0===this._bodyStatements.length},e}(),wf=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},kf=function(e){function t(t,n){e.call(this),this._viewExpr=t,this._view=n}return wf(t,e),t.prototype._isThis=function(e){return e instanceof Mp&&e.builtin===Pp.This},t.prototype.visitReadVarExpr=function(e,t){return this._isThis(e)?this._viewExpr:e},t.prototype.visitReadPropExpr=function(t,n){return this._isThis(t.receiver)&&(this._view.fields.some(function(e){return e.name==t.name})||this._view.getters.some(function(e){return e.name==t.name}))?this._viewExpr.cast(this._view.classType).prop(t.name):e.prototype.visitReadPropExpr.call(this,t,n)},t}(md),xf=function(){return function(e,t){this.view=e,this.values=t}}(),Cf=function(){function e(e,t,n,r){this.meta=e,this.queryList=t,this.ownerDirectiveExpression=n,this.view=r,this._values=new xf(r,[])}return e.prototype.addValue=function(e,t){for(var n=t,r=[];n&&n!==this.view;){var i=n.declarationElement;r.unshift(i),n=i.view}var o=nr(this.queryList,t,this.view),a=this._values;r.forEach(function(e){var t=a.values.length>0?a.values[a.values.length-1]:null;if(t instanceof xf&&t.view===e.embeddedView)a=t;else{var n=new xf(e.embeddedView,[]);a.values.push(n),a=n}}),a.values.push(e),r.length>0&&t.dirtyParentQueriesMethod.addStmt(o.callMethod("setDirty",[]).toStmt())},e.prototype._isStatic=function(){return!this._values.values.some(function(e){return e instanceof xf})},e.prototype.generateStatements=function(e,t){var n=ar(this._values),r=[this.queryList.callMethod("reset",[Zt(n)]).toStmt()];if(this.ownerDirectiveExpression){var i=this.meta.first?this.queryList.prop("first"):this.queryList;r.push(this.ownerDirectiveExpression.prop(this.meta.propertyName).set(i).toStmt())}this.meta.first||r.push(this.queryList.callMethod("notifyOnChanges",[]).toStmt()),this.meta.first&&this._isStatic()?e.addStmts(r):t.addStmt(new dd(this.queryList.prop("dirty"),r))},e}(),Sf=function(){function e(){}return e.fromValue=function(e){return an(Mc.ViewType,e)},e}(),Ef=function(){function e(){}return e.fromValue=function(e){return an(Mc.ViewEncapsulation,e)},e}(),Tf=function(){function e(){}return e.fromValue=function(e){return an(Mc.ChangeDetectorStatus,e)},e}(),Of=function(){function e(){}return e.viewUtils=qt("viewUtils"),e.parentView=qt("parentView"),e.parentIndex=qt("parentIndex"),e.parentElement=qt("parentElement"),e}(),Pf=function(){function e(){}return e.renderer=Jp.prop("renderer"),e.viewUtils=Jp.prop("viewUtils"),e}(),Mf=function(){function e(){}return e.token=qt("token"),e.requestNodeIndex=qt("requestNodeIndex"),e.notFoundResult=qt("notFoundResult"),e}(),Af=function(){function e(){}return e.throwOnChange=qt("throwOnChange"),e.changes=qt("changes"),e.changed=qt("changed"),e}(),Df=function(){return function(e,t,n){this.comp=e,this.name=t,this.placeholder=n}}(),If=function(){return function(e,t){this.comp=e,this.placeholder=t}}(),Rf=function(){return function(e,t,n){this.dir=e,this.name=t,this.placeholder=n}}(),jf=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},Nf=function(){function e(e,t,n,r,i){this.parent=e,this.view=t,this.nodeIndex=n,this.renderNode=r,this.sourceAst=i}return e.prototype.isNull=function(){return!this.renderNode},e.prototype.isRootElement=function(){return this.view!=this.parent.view},e}(),Lf=function(e){function t(t,n,r,i,o,a,s,u,c,l,p){var d=this;e.call(this,t,n,r,i,o),this.component=a,this._directives=s,this._resolvedProvidersArray=u,this.hasViewContainer=c,this.hasEmbeddedView=l,this.compViewExpr=null,this.instances=new Map,this.directiveWrapperInstance=new Map,this._queryCount=0,this._queries=new Map,this.contentNodesByNgContentIndex=null,this.referenceTokens={},p.forEach(function(e){return d.referenceTokens[e.name]=e.value}),this.elementRef=Wt(Ke(Mc.ElementRef)).instantiate([this.renderNode]),this.instances.set(Ze(Mc.ElementRef),this.elementRef),this.instances.set(Ze(Mc.Injector),Jp.callMethod("injector",[Qt(this.nodeIndex)])),this.instances.set(Ze(Mc.Renderer),Jp.prop("renderer")),(this.hasViewContainer||this.hasEmbeddedView)&&this._createViewContainer(),this.component&&this._createComponentFactoryResolver()}return jf(t,e),t.createNull=function(){return new t(null,null,null,null,null,null,[],[],!1,!1,[])},t.prototype._createViewContainer=function(){var e="_vc_"+this.nodeIndex,t=this.isRootElement()?null:this.parent.nodeIndex;this.view.fields.push(new ud(e,Gt(Ke(Mc.ViewContainer)),[td.Private]));var n=Jp.prop(e).set(Wt(Ke(Mc.ViewContainer)).instantiate([Qt(this.nodeIndex),Qt(t),Jp,this.renderNode])).toStmt();this.view.createMethod.addStmt(n),this.viewContainer=Jp.prop(e),this.instances.set(Ze(Mc.ViewContainer),this.viewContainer),this.view.viewContainers.push(this.viewContainer)},t.prototype._createComponentFactoryResolver=function(){var e=this,t=this.component.entryComponents.map(function(t){var n={reference:null};return e.view.targetDependencies.push(new If(t,n)),n});if(t&&0!==t.length){var n=Wt(Ke(Mc.CodegenComponentFactoryResolver)).instantiate([Zt(t.map(function(e){return Wt(e)})),rr(this.view,Je(Mc.ComponentFactoryResolver),!1)]),r={token:Je(Mc.ComponentFactoryResolver),useValue:n};this._resolvedProvidersArray.unshift(new Wi(r.token,!1,!0,[r],Gi.PrivateService,[],this.sourceAst.sourceSpan))}},t.prototype.setComponentView=function(e){this.compViewExpr=e,this.contentNodesByNgContentIndex=new Array(this.component.template.ngContentSelectors.length);for(var t=0;t<this.contentNodesByNgContentIndex.length;t++)this.contentNodesByNgContentIndex[t]=[]},t.prototype.setEmbeddedView=function(e){if(this.embeddedView=e,r(e)){var t=Wt(Ke(Mc.TemplateRef_)).instantiate([Jp,Qt(this.nodeIndex),this.renderNode]),n={token:Je(Mc.TemplateRef),useValue:t};this._resolvedProvidersArray.unshift(new Wi(n.token,!1,!0,[n],Gi.Builtin,[],this.sourceAst.sourceSpan))}},t.prototype.beforeChildren=function(){var e=this;this.hasViewContainer&&this.instances.set(Ze(Mc.ViewContainerRef),this.viewContainer.prop("vcRef")),this._resolvedProviders=new Map,this._resolvedProvidersArray.forEach(function(t){return e._resolvedProviders.set(x(t.token),t)}),Array.from(this._resolvedProviders.values()).forEach(function(t){var n=t.providerType===Gi.Component||t.providerType===Gi.Directive,r=t.providers.map(function(r){if(r.useExisting)return e._getDependency(t.providerType,{token:r.useExisting});if(r.useFactory){o=(i=r.deps||r.useFactory.diDeps).map(function(n){return e._getDependency(t.providerType,n)});return Wt(r.useFactory).callFn(o)}if(r.useClass){var i=r.deps||r.useClass.diDeps,o=i.map(function(n){return e._getDependency(t.providerType,n)});if(n){var a={reference:null};return e.view.targetDependencies.push(new Rf(r.useClass,Bd.dirWrapperClassName(r.useClass),a)),Wd.create(a,o)}return Wt(r.useClass).instantiate(o,Gt(r.useClass))}return Wn(r.useValue)}),i=pr("_"+k(t.token)+"_"+e.nodeIndex+"_"+e.instances.size,r,t.multiProvider,t.eager,e);n?(e.directiveWrapperInstance.set(x(t.token),i),e.instances.set(x(t.token),Wd.context(i))):e.instances.set(x(t.token),i)});for(var t=this,n=0;n<this._directives.length;n++)!function(n){var r=t._directives[n],i=t.instances.get(x(Xe(r.type)));r.queries.forEach(function(t){e._addQuery(t,i)})}(n);Object.keys(this.referenceTokens).forEach(function(t){var n,r=e.referenceTokens[t];n=r?e.instances.get(x(r)):e.renderNode,e.view.locals.set(t,n)})},t.prototype.afterChildren=function(e){var t=this;Array.from(this._resolvedProviders.values()).forEach(function(n){var r=t.instances.get(x(n.token)),i=n.providerType===Gi.PrivateService?0:e;t.view.injectorGetMethod.addStmt(lr(t.nodeIndex,i,n,r))})},t.prototype.finish=function(){var e=this;Array.from(this._queries.values()).forEach(function(t){return t.forEach(function(t){return t.generateStatements(e.view.createMethod,e.view.updateContentQueriesMethod)})})},t.prototype.addContentNode=function(e,t){this.contentNodesByNgContentIndex[e].push(t)},t.prototype.getComponent=function(){return r(this.component)?this.instances.get(x(Xe(this.component.type))):null},t.prototype.getProviderTokens=function(){return Array.from(this._resolvedProviders.values()).map(function(e){return e.token})},t.prototype.getQueriesFor=function(e){for(var t,n=[],i=this,o=0;!i.isNull();)r(t=i._queries.get(x(e)))&&n.push.apply(n,t.filter(function(e){return e.meta.descendants||o<=1})),i._directives.length>0&&o++,i=i.parent;return t=this.view.componentView.viewQueries.get(x(e)),r(t)&&n.push.apply(n,t),n},t.prototype._addQuery=function(e,t){var n=ur("_query_"+k(e.selectors[0])+"_"+this.nodeIndex+"_"+this._queryCount++,this.view),r=new Cf(e,n,t,this.view);return cr(this._queries,r),r},t.prototype._getLocalDependency=function(e,t){var n=null;if(r(t.token)){if(!n&&x(t.token)===Ze(Mc.ChangeDetectorRef))return e===Gi.Component?this.compViewExpr.prop("ref"):nr(Jp.prop("ref"),this.view,this.view.componentView);if(!n){var i=this._resolvedProviders.get(x(t.token));if(i&&(e===Gi.Directive||e===Gi.PublicService)&&i.providerType===Gi.PrivateService)return null;n=this.instances.get(x(t.token))}}return n},t.prototype._getDependency=function(e,t){var n=this,r=null;for(t.isValue&&(r=Qt(t.value)),r||t.isSkipSelf||(r=this._getLocalDependency(e,t));!r&&!n.parent.isNull();)r=(n=n.parent)._getLocalDependency(Gi.PublicService,{token:t.token});return r||(r=rr(this.view,t.token,t.isOptional)),r||(r=$p),nr(r,this.view,n.view)},t}(Nf),Ff=function(){function e(e,t){var n=this;this.view=e,this.meta=t,this._purePipeProxyCount=0,this.instance=Jp.prop("_pipe_"+t.name+"_"+e.pipeCount++);var r=this.meta.type.diDeps.map(function(t){return x(t.token)===Ze(Mc.ChangeDetectorRef)?nr(Jp.prop("ref"),n.view,n.view.componentView):rr(e,t.token,!1)});this.view.fields.push(new ud(this.instance.name,Gt(this.meta.type))),this.view.createMethod.resetDebugInfo(null,null),this.view.createMethod.addStmt(Jp.prop(this.instance.name).set(Wt(this.meta.type).instantiate(r)).toStmt())}return e.call=function(t,n,r){var i,o=t.componentView,a=dr(o,n);return a.pure?(i=o.purePipes.get(n))||(i=new e(o,a),o.purePipes.set(n,i),o.pipes.push(i)):(i=new e(t,a),t.pipes.push(i)),i._call(t,r)},Object.defineProperty(e.prototype,"pure",{get:function(){return this.meta.pure},enumerable:!0,configurable:!0}),e.prototype._call=function(e,t){if(this.meta.pure){var n=Jp.prop(this.instance.name+"_"+this._purePipeProxyCount++),r=nr(this.instance,e,this.view);return on(r.prop("transform").callMethod(Rp.Bind,[r]),t.length,n,{fields:e.fields,ctorStmts:e.createMethod}),Wt(Ke(Mc.castByValue)).callFn([n,r.prop("transform")]).callFn(t)}return nr(this.instance,e,this.view).callMethod("transform",t)},e}(),Vf={};Vf.Node=0,Vf.ViewContainer=1,Vf.NgContent=2,Vf[Vf.Node]="Node",Vf[Vf.ViewContainer]="ViewContainer",Vf[Vf.NgContent]="NgContent";var zf=function(){return function(e,t,n){this.type=e,this.expr=t,this.ngContentIndex=n}}(),Uf=function(){function e(e,t,n,r,i,o,a,s,u){var c=this;this.component=e,this.genConfig=t,this.pipeMetas=n,this.styles=r,this.animations=i,this.viewIndex=o,this.declarationElement=a,this.templateVariableBindings=s,this.targetDependencies=u,this.viewChildren=[],this.nodes=[],this.rootNodes=[],this.lastRenderNode=$p,this.viewContainers=[],this.methods=[],this.ctorStmts=[],this.fields=[],this.getters=[],this.disposables=[],this.purePipes=new Map,this.pipes=[],this.locals=new Map,this.literalArrayCount=0,this.literalMapCount=0,this.pipeCount=0,this.createMethod=new bf(this),this.animationBindingsMethod=new bf(this),this.injectorGetMethod=new bf(this),this.updateContentQueriesMethod=new bf(this),this.dirtyParentQueriesMethod=new bf(this),this.updateViewQueriesMethod=new bf(this),this.detectChangesInInputsMethod=new bf(this),this.detectChangesRenderPropertiesMethod=new bf(this),this.afterContentLifecycleCallbacksMethod=new bf(this),this.afterViewLifecycleCallbacksMethod=new bf(this),this.destroyMethod=new bf(this),this.detachMethod=new bf(this),this.viewType=hr(e,o),this.className=ir(e,o),this.classType=Yt(qt(this.className)),this.classExpr=qt(this.className),this.viewType===fo.COMPONENT||this.viewType===fo.HOST?this.componentView=this:this.componentView=this.declarationElement.view.componentView,this.componentContext=nr(Jp.prop("context"),this,this.componentView);var l=new Map;if(this.viewType===fo.COMPONENT){var p=Jp.prop("context");this.component.viewQueries.forEach(function(e,t){var n=ur("_viewQuery_"+k(e.selectors[0])+"_"+t,c),r=new Cf(e,n,p,c);cr(l,r)})}this.viewQueries=l,s.forEach(function(e){c.locals.set(e[1],Jp.prop("context").prop(e[0]))}),this.declarationElement.isNull()||this.declarationElement.setEmbeddedView(this)}return e.prototype.callPipe=function(e,t,n){return Ff.call(this,e,[t].concat(n))},e.prototype.getLocal=function(e){if(e==wd.event.name)return wd.event;for(var t=this,n=t.locals.get(e);!n&&r(t.declarationElement.view);)n=(t=t.declarationElement.view).locals.get(e);return r(n)?nr(n,this,t):null},e.prototype.finish=function(){var e=this;Array.from(this.viewQueries.values()).forEach(function(t){return t.forEach(function(t){return t.generateStatements(e.createMethod,e.updateViewQueriesMethod)})})},e}(),Bf=Jp.prop("numberOfChecks").identical(new Fp(0)),Hf=(Xt(Af.throwOnChange),function(){return function(e,t){this.query=e,this.read=e.meta.read||t}}()),qf=function(){function e(e,t){this.view=e,this._schemaRegistry=t,this._nodeIndex=0}return e.prototype.visitBoundText=function(e,t){return Sr(e,this.view.nodes[this._nodeIndex++],this.view),null},e.prototype.visitText=function(e,t){return this._nodeIndex++,null},e.prototype.visitNgContent=function(e,t){return null},e.prototype.visitElement=function(e,t){var r=this,i=this.view.nodes[this._nodeIndex++];Pr(i);var o=fr(e.outputs,e.directives,i,!0);return Er(e.inputs,e.outputs,o,i),e.directives.forEach(function(t,n){var o=i.directiveWrapperInstance.get(t.directive.type.reference);Or(t,o,n,i),Tr(t,o,i,e.name,r._schemaRegistry)}),n(this,e.children,i),e.directives.forEach(function(e){var t=i.instances.get(e.directive.type.reference),n=i.directiveWrapperInstance.get(e.directive.type.reference);br(e.directive,t,i),wr(e.directive,t,i),kr(e,n,i)}),e.providers.forEach(function(e){xr(e,i.instances.get(x(e.token)),i)}),null},e.prototype.visitEmbeddedTemplate=function(e,t){var n=this.view.nodes[this._nodeIndex++];return Pr(n),fr(e.outputs,e.directives,n,!1),e.directives.forEach(function(e,t){var r=n.instances.get(e.directive.type.reference),i=n.directiveWrapperInstance.get(e.directive.type.reference);Or(e,i,t,n),br(e.directive,r,n),wr(e.directive,r,n),kr(e,i,n)}),e.providers.forEach(function(e){xr(e,n.instances.get(x(e.token)),n)}),Mr(n.embeddedView,e.children,this._schemaRegistry),null},e.prototype.visitAttr=function(e,t){return null},e.prototype.visitDirective=function(e,t){return null},e.prototype.visitEvent=function(e,t){return null},e.prototype.visitReference=function(e,t){return null},e.prototype.visitVariable=function(e,t){return null},e.prototype.visitDirectiveProperty=function(e,t){return null},e.prototype.visitElementProperty=function(e,t){return null},e}(),Wf="class",Gf="style",Yf="ng-container",Zf=qt("parentRenderNode"),Kf=qt("rootSelector"),Xf=function(){function e(e,t){this.view=e,this.targetDependencies=t,this.nestedViewCount=0}return e.prototype._isRootNode=function(e){return e.view!==this.view},e.prototype._addRootNodeAndProject=function(e){var t=Ir(e),n=t.parent,i=t.sourceAst.ngContentIndex,o=e instanceof Lf&&e.hasViewContainer?e.viewContainer:null;this._isRootNode(n)?this.view.viewType!==fo.COMPONENT&&this.view.rootNodes.push(new zf(o?Vf.ViewContainer:Vf.Node,o||e.renderNode)):r(n.component)&&r(i)&&n.addContentNode(i,new zf(o?Vf.ViewContainer:Vf.Node,o||e.renderNode))},e.prototype._getParentRenderNode=function(e){return e=Rr(e),this._isRootNode(e)?this.view.viewType===fo.COMPONENT?Zf:$p:r(e.component)&&e.component.template.encapsulation!==t.ViewEncapsulation.Native?$p:e.renderNode},e.prototype.getOrCreateLastRenderNode=function(){var e=this.view;if(0===e.rootNodes.length||e.rootNodes[e.rootNodes.length-1].type!==Vf.Node){var t="_el_"+e.nodes.length;e.fields.push(new ud(t,Gt(e.genConfig.renderTypes.renderElement))),e.createMethod.addStmt(Jp.prop(t).set(Pf.renderer.callMethod("createTemplateAnchor",[$p,$p])).toStmt()),e.rootNodes.push(new zf(Vf.Node,Jp.prop(t)))}return e.rootNodes[e.rootNodes.length-1].expr},e.prototype.visitBoundText=function(e,t){return this._visitText(e,"",t)},e.prototype.visitText=function(e,t){return this._visitText(e,e.value,t)},e.prototype._visitText=function(e,t,n){var r="_text_"+this.view.nodes.length;this.view.fields.push(new ud(r,Gt(this.view.genConfig.renderTypes.renderText)));var i=Jp.prop(r),o=new Nf(n,this.view,this.view.nodes.length,i,e),a=Jp.prop(r).set(Pf.renderer.callMethod("createText",[this._getParentRenderNode(n),Qt(t),this.view.createMethod.resetDebugInfoExpr(this.view.nodes.length,e)])).toStmt();return this.view.nodes.push(o),this.view.createMethod.addStmt(a),this._addRootNodeAndProject(o),i},e.prototype.visitNgContent=function(e,t){this.view.createMethod.resetDebugInfo(null,e);var n=this._getParentRenderNode(t);return n!==$p?this.view.createMethod.addStmt(Jp.callMethod("projectNodes",[n,Qt(e.index)]).toStmt()):this._isRootNode(t)?this.view.viewType!==fo.COMPONENT&&this.view.rootNodes.push(new zf(Vf.NgContent,null,e.index)):r(t.component)&&r(e.ngContentIndex)&&t.addContentNode(e.ngContentIndex,new zf(Vf.NgContent,null,e.index)),null},e.prototype.visitElement=function(e,t){var i,o=this.view.nodes.length,a=this.view.createMethod.resetDebugInfoExpr(o,e),s=e.directives.map(function(e){return e.directive}),u=s.find(function(e){return e.isComponent});if(e.name===Yf)i=Pf.renderer.callMethod("createTemplateAnchor",[this._getParentRenderNode(t),a]);else{var c=rn(Nr(Lr(e.attrs),s).map(function(e){return Qt(e)}));i=0===o&&this.view.viewType===fo.HOST?Wt(Ke(Mc.selectOrCreateRenderHostElement)).callFn([Pf.renderer,Qt(e.name),c,Kf,a]):Wt(Ke(Mc.createRenderElement)).callFn([Pf.renderer,this._getParentRenderNode(t),Qt(e.name),c,a])}var l="_el_"+o;this.view.fields.push(new ud(l,Gt(this.view.genConfig.renderTypes.renderElement))),this.view.createMethod.addStmt(Jp.prop(l).set(i).toStmt());var p=Jp.prop(l),d=new Lf(t,this.view,o,p,e,u,s,e.providers,e.hasViewContainer,!1,e.references);this.view.nodes.push(d);var h=null;if(r(u)){var f={reference:null};this.targetDependencies.push(new Df(u.type,ir(u,0),f)),h=Jp.prop("compView_"+o),this.view.fields.push(new ud(h.name,Gt(Ke(Mc.AppView),[Gt(u.type)]))),this.view.viewChildren.push(h),d.setComponentView(h),this.view.createMethod.addStmt(h.set(Wt(f).instantiate([Pf.viewUtils,Jp,Qt(o),p])).toStmt())}return d.beforeChildren(),this._addRootNodeAndProject(d),n(this,e.children,d),d.afterChildren(this.view.nodes.length-o-1),r(h)&&this.view.createMethod.addStmt(h.callMethod("create",[d.getComponent()]).toStmt()),null},e.prototype.visitEmbeddedTemplate=function(e,t){var n=this.view.nodes.length,r="_anchor_"+n;this.view.fields.push(new ud(r,Gt(this.view.genConfig.renderTypes.renderComment))),this.view.createMethod.addStmt(Jp.prop(r).set(Pf.renderer.callMethod("createTemplateAnchor",[this._getParentRenderNode(t),this.view.createMethod.resetDebugInfoExpr(n,e)])).toStmt());var i=Jp.prop(r),o=e.variables.map(function(e){return[e.value.length>0?e.value:"$implicit",e.name]}),a=e.directives.map(function(e){return e.directive}),s=new Lf(t,this.view,n,i,e,null,a,e.providers,e.hasViewContainer,!0,e.references);this.view.nodes.push(s),this.nestedViewCount++;var u=new Uf(this.view.component,this.view.genConfig,this.view.pipeMetas,$p,this.view.animations,this.view.viewIndex+this.nestedViewCount,s,o,this.targetDependencies);return this.nestedViewCount+=Ar(u,e.children,this.targetDependencies),s.beforeChildren(),this._addRootNodeAndProject(s),s.afterChildren(0),null},e.prototype.visitAttr=function(e,t){return null},e.prototype.visitDirective=function(e,t){return null},e.prototype.visitEvent=function(e,t){return null},e.prototype.visitReference=function(e,t){return null},e.prototype.visitVariable=function(e,t){return null},e.prototype.visitDirectiveProperty=function(e,t){return null},e.prototype.visitElementProperty=function(e,t){return null},e}(),Jf=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},Qf=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},$f=function(){return function(e,t,n){this.statements=e,this.viewClassVar=t,this.dependencies=n}}(),em=function(){function e(e,t){this._genConfig=e,this._schemaRegistry=t}return e.prototype.compileComponent=function(e,t,n,r,i){var o=[],a=new Uf(e,this._genConfig,r,n,i,0,Lf.createNull(),[],o),s=[];return Ar(a,t,o),Mr(a,t,this._schemaRegistry),Dr(a,s),new $f(s,a.classExpr.name,o)},e=Jf([M(),Qf("design:paramtypes",[Sl,Uc])],e)}(),tm=function(){return function(e,t,n){this.name=e,this.statements=t,this.fnExp=n}}(),nm=function(){function e(){}return e.prototype.compile=function(e,t){return t.map(function(t){var n=e+"_"+t.name;return new gm(t.name,n).build(t)})},e}(),rm=qt("element"),im=qt("defaultStateStyles"),om=qt("view"),am=om.prop("animationContext"),sm=om.prop("renderer"),um=qt("currentState"),cm=qt("nextState"),lm=qt("player"),pm=qt("totalTime"),dm=qt("startStateStyles"),hm=qt("endStateStyles"),fm=qt("collectedStyles"),mm=qt("previousPlayers"),vm=Kt([]),ym=Zt([]),gm=function(){function e(e,t){this.animationName=e,this._fnVarName=t+"_factory",this._statesMapVarName=t+"_states",this._statesMapVar=qt(this._statesMapVarName)}return e.prototype.visitAnimationStyles=function(e,t){var n=[];return t.isExpectingFirstStyleStep&&(n.push(dm),t.isExpectingFirstStyleStep=!1),e.styles.forEach(function(e){var t=Object.keys(e).map(function(t){return[t,Qt(e[t])]});n.push(Kt(t,null,!0))}),Wt(Ke(Mc.AnimationStyles)).instantiate([Wt(Ke(Mc.collectAndResolveStyles)).callFn([fm,Zt(n)])])},e.prototype.visitAnimationKeyframe=function(e,t){return Wt(Ke(Mc.AnimationKeyframe)).instantiate([Qt(e.offset),e.styles.visit(this,t)])},e.prototype.visitAnimationStep=function(e,t){var n=this;if(t.endStateAnimateStep===e)return this._visitEndStateAnimation(e,t);var r=e.startingStyles.visit(this,t),i=e.keyframes.map(function(e){return e.visit(n,t)});return this._callAnimateMethod(e,r,Zt(i),t)},e.prototype._visitEndStateAnimation=function(e,t){var n=this,r=e.startingStyles.visit(this,t),i=e.keyframes.map(function(e){return e.visit(n,t)}),o=Wt(Ke(Mc.balanceAnimationKeyframes)).callFn([fm,hm,Zt(i)]);return this._callAnimateMethod(e,r,o,t)},e.prototype._callAnimateMethod=function(e,t,n,r){var i=ym;return r.isExpectingFirstAnimateStep&&(i=mm,r.isExpectingFirstAnimateStep=!1),r.totalTransitionTime+=e.duration+e.delay,sm.callMethod("animate",[rm,t,n,Qt(e.duration),Qt(e.delay),Qt(e.easing),i])},e.prototype.visitAnimationSequence=function(e,t){var n=this,r=e.steps.map(function(e){return e.visit(n,t)});return Wt(Ke(Mc.AnimationSequencePlayer)).instantiate([Zt(r)])},e.prototype.visitAnimationGroup=function(e,t){var n=this,r=e.steps.map(function(e){return e.visit(n,t)});return Wt(Ke(Mc.AnimationGroupPlayer)).instantiate([Zt(r)])},e.prototype.visitAnimationStateDeclaration=function(e,t){var n={};ei(e).forEach(function(e){Object.keys(e).forEach(function(t){n[t]=e[t]})}),t.stateMap.registerState(e.stateName,n)},e.prototype.visitAnimationStateTransition=function(e,t){var n=e.animation.steps,r=n[n.length-1];$r(r)&&(t.endStateAnimateStep=r),t.totalTransitionTime=0,t.isExpectingFirstStyleStep=!0,t.isExpectingFirstAnimateStep=!0;var i=[];e.stateChanges.forEach(function(e){i.push(Qr(um,e.fromState).and(Qr(cm,e.toState))),e.fromState!=Ao&&t.stateMap.registerState(e.fromState),e.toState!=Ao&&t.stateMap.registerState(e.toState)});var o=e.animation.visit(this,t),a=i.reduce(function(e,t){return e.or(t)}),s=lm.equals($p).and(a),u=lm.set(o).toStmt(),c=pm.set(Qt(t.totalTransitionTime)).toStmt();return new dd(s,[u,c])},e.prototype.visitAnimationEntry=function(e,t){var n=this;e.stateDeclarations.forEach(function(e){return e.visit(n,t)}),t.stateMap.registerState(Do,{});var r=[];r.push(mm.set(am.callMethod("getAnimationPlayers",[rm,cm.equals(Qt(Io)).conditional($p,Qt(this.animationName))])).toDeclStmt()),r.push(fm.set(vm).toDeclStmt()),r.push(lm.set($p).toDeclStmt()),r.push(pm.set(Qt(0)).toDeclStmt()),r.push(im.set(this._statesMapVar.key(Qt(Do))).toDeclStmt()),r.push(dm.set(this._statesMapVar.key(um)).toDeclStmt()),r.push(new dd(dm.equals($p),[dm.set(im).toStmt()])),r.push(hm.set(this._statesMapVar.key(cm)).toDeclStmt()),r.push(new dd(hm.equals($p),[hm.set(im).toStmt()]));var i=Wt(Ke(Mc.renderStyles));return e.stateTransitions.forEach(function(e){return r.push(e.visit(n,t))}),r.push(new dd(lm.equals($p),[lm.set(Wt(Ke(Mc.NoOpAnimationPlayer)).instantiate([])).toStmt()])),r.push(lm.callMethod("onDone",[Jt([],[lm.callMethod("destroy",[]).toStmt(),i.callFn([rm,sm,Wt(Ke(Mc.prepareFinalAnimationStyles)).callFn([dm,hm])]).toStmt()])]).toStmt()),r.push(Wt(Ke(Mc.AnimationSequencePlayer)).instantiate([mm]).callMethod("destroy",[]).toStmt()),r.push(i.callFn([rm,sm,Wt(Ke(Mc.clearStyles)).callFn([dm])]).toStmt()),r.push(am.callMethod("queueAnimation",[rm,Qt(this.animationName),lm]).toStmt()),r.push(new ad(Wt(Ke(Mc.AnimationTransition)).instantiate([lm,um,cm,pm]))),Jt([new Hp(om.name,Gt(Ke(Mc.AppView),[wp])),new Hp(rm.name,wp),new Hp(um.name,wp),new Hp(cm.name,wp)],r,Gt(Ke(Mc.AnimationTransition)))},e.prototype.build=function(e){var t=new _m,n=e.visit(this,t).toDeclStmt(this._fnVarName),i=qt(this._fnVarName),o=[];Object.keys(t.stateMap.states).forEach(function(e){var n=t.stateMap.states[e],i=vm;if(r(n)){var a=[];Object.keys(n).forEach(function(e){a.push([e,Qt(n[e])])}),i=Kt(a,null,!0)}o.push([e,i])});var a=[this._statesMapVar.set(Kt(o,null,!0)).toDeclStmt(),n];return new tm(this.animationName,a,i)},e}(),_m=function(){return function(){this.stateMap=new bm,this.endStateAnimateStep=null,this.isExpectingFirstStyleStep=!1,this.isExpectingFirstAnimateStep=!1,this.totalTransitionTime=0}}(),bm=function(){function e(){this._states={}}return Object.defineProperty(e.prototype,"states",{get:function(){return this._states},enumerable:!0,configurable:!0}),e.prototype.registerState=function(e,t){void 0===t&&(t=null),this._states[e]||(this._states[e]=t)},e}(),wm=function(){return function(e,t,n){this.srcFileUrl=e,this.genFileUrl=t,this.source=n}}(),km=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},xm=/(\.ts|\.d\.ts|\.js|\.jsx|\.tsx)$/,Cm=function(e){function t(t){e.call(this),this.host=t,this.symbols=[],this.indexBySymbol=new Map,this.processedSummaryBySymbol=new Map,this.processedSummaries=[]}return km(t,e),t.prototype.addOrMergeSummary=function(e){var t=e.metadata;t&&"class"===t.__symbolic&&(t={__symbolic:"class",statics:t.statics});var n=this.processedSummaryBySymbol.get(e.symbol);n||(n=this.processValue({symbol:e.symbol}),this.processedSummaries.push(n),this.processedSummaryBySymbol.set(e.symbol,n)),null==n.metadata&&null!=t&&(n.metadata=this.processValue(t)),null==n.type&&null!=e.type&&(n.type=this.processValue(e.type))},t.prototype.serialize=function(){var e=this;return JSON.stringify({summaries:this.processedSummaries,symbols:this.symbols.map(function(t,n){return{__symbol:n,name:t.name,filePath:e.host.getOutputFileName(t.filePath)}})})},t.prototype.processValue=function(e){return g(e,this,null)},t.prototype.visitOther=function(e,t){if(e instanceof Ki){var n=this.indexBySymbol.get(e);return null==n&&(n=this.indexBySymbol.size,this.indexBySymbol.set(e,n),this.symbols.push(e)),{__symbol:n}}},t}(ra),Sm=function(e){function t(t){e.call(this),this.symbolCache=t}return km(t,e),t.prototype.deserialize=function(e){var t=this,n=JSON.parse(e);return this.symbols=n.symbols.map(function(e){return t.symbolCache.get(e.filePath,e.name)}),g(n.summaries,this,null)},t.prototype.visitStringMap=function(t,n){return"__symbol"in t?this.symbols[t.__symbol]:e.prototype.visitStringMap.call(this,t,n)},t}(ra),Em=function(){function e(e,t,n,r,i,o,a,s,u,c,l,p,d){this._host=e,this._metadataResolver=t,this._templateParser=n,this._styleCompiler=r,this._viewCompiler=i,this._dirWrapperCompiler=o,this._ngModuleCompiler=a,this._outputEmitter=s,this._summaryResolver=u,this._localeId=c,this._translationFormat=l,this._animationParser=p,this._symbolResolver=d,this._animationCompiler=new nm}return e.prototype.clearCache=function(){this._metadataResolver.clearCache()},e.prototype.compileAll=function(e){var t=this,n=di(fi(this._symbolResolver,e,this._host),this._host,this._metadataResolver),r=n.ngModuleByPipeOrDirective,i=n.files,o=n.ngModules;return Promise.all(o.map(function(e){return t._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(e.type.reference,!1)})).then(function(){var e=i.map(function(e){return t._compileSrcFile(e.srcUrl,r,e.directives,e.pipes,e.ngModules,e.injectables)});return eo.flatten(e)})},e.prototype._compileSrcFile=function(e,t,n,r,i,o){var a=this,s=li(e)[1],u=[],c=[],l=[];if(l.push(this._createSummary(e,n,r,i,o)),c.push.apply(c,i.map(function(e){return a._compileModule(e,u)})),c.push.apply(c,n.map(function(e){return a._compileDirectiveWrapper(e,u)})),n.forEach(function(n){var r=a._metadataResolver.getDirectiveMetadata(n);if(!r.isComponent)return Promise.resolve(null);var i=t.get(n);if(!i)throw new Error("Internal Error: cannot determine the module for component "+b(r.type)+"!");ci(r);var o=a._styleCompiler.compileComponent(r);o.externalStylesheets.forEach(function(t){l.push(a._codgenStyles(e,t,s))}),c.push(a._compileComponentFactory(r,i,s,u),a._compileComponent(r,i,i.transitiveModule.directives,o.componentStylesheet,s,u))}),u.length>0){var p=this._codegenSourceModule(e,ai(e),u,c);l.unshift(p)}return l},e.prototype._createSummary=function(e,t,n,r,i){var o=this,a=this._symbolResolver.getSymbolsOf(e).map(function(e){return o._symbolResolver.resolveSymbol(e)}),s=r.map(function(e){return o._metadataResolver.getNgModuleSummary(e)}).concat(t.map(function(e){return o._metadataResolver.getDirectiveSummary(e)}),n.map(function(e){return o._metadataResolver.getPipeSummary(e)}),i.map(function(e){return o._metadataResolver.getInjectableSummary(e)})),u=ti(this._host,this._summaryResolver,this._symbolResolver,a,s);return new wm(e,ri(e),u)},e.prototype._compileModule=function(e,t){var n=this,r=this._metadataResolver.getNgModuleMetadata(e),i=[];this._localeId&&i.push({token:Je(Mc.LOCALE_ID),useValue:this._localeId}),this._translationFormat&&i.push({token:Je(Mc.TRANSLATIONS_FORMAT),useValue:this._translationFormat});var o=this._ngModuleCompiler.compile(r,i);return o.dependencies.forEach(function(e){e.placeholder.reference=n._symbolResolver.getStaticSymbol(ai(w(e.comp)),si(e.comp))}),t.push.apply(t,o.statements),o.ngModuleFactoryVar},e.prototype._compileDirectiveWrapper=function(e,t){var n=this._metadataResolver.getDirectiveMetadata(e),r=this._dirWrapperCompiler.compile(n);return t.push.apply(t,r.statements),r.dirWrapperClassVar},e.prototype._compileComponentFactory=function(e,t,n,r){var i=C(this._symbolResolver.getStaticSymbol(w(e.type),b(e.type)+"_Host"),e),o=this._compileComponent(i,t,[e.type],null,n,r),a=si(e.type);return r.push(qt(a).set(Wt(Ke(Mc.ComponentFactory),[Gt(e.type)]).instantiate([Qt(e.selector),qt(o),Wt(e.type)],Gt(Ke(Mc.ComponentFactory),[Gt(e.type)],[fp.Const]))).toDeclStmt(null,[td.Final])),a},e.prototype._compileComponent=function(e,t,n,r,i,o){var a=this,s=this._animationParser.parseComponent(e),u=n.map(function(e){return a._metadataResolver.getDirectiveSummary(e.reference)}),c=t.transitiveModule.pipes.map(function(e){return a._metadataResolver.getPipeSummary(e.reference)}),l=this._templateParser.parse(e,e.template.template,u,c,t.schemas,b(e.type)),p=r?qt(r.stylesVar):Zt([]),d=this._animationCompiler.compile(b(e.type),s),h=this._viewCompiler.compileComponent(e,l,p,c,d);return r&&o.push.apply(o,oi(this._symbolResolver,r,i)),d.forEach(function(e){return o.push.apply(o,e.statements)}),o.push.apply(o,ii(this._symbolResolver,h)),h.viewClassVar},e.prototype._codgenStyles=function(e,t,n){return oi(this._symbolResolver,t,n),this._codegenSourceModule(e,ui(t.meta.moduleUrl,t.isShimmed,n),t.statements,[t.stylesVar])},e.prototype._codegenSourceModule=function(e,t,n,r){return new wm(e,t,this._outputEmitter.emitStatements(t,n,r))},e}(),Tm=function(){function e(e){this.staticDelegate=e,this.dynamicDelegate=new So}return e.install=function(t){xo.updateCapabilities(new e(t))},e.prototype.isReflectionEnabled=function(){return!0},e.prototype.factory=function(e){return this.dynamicDelegate.factory(e)},e.prototype.hasLifecycleHook=function(e,t){return vi(e)?this.staticDelegate.hasLifecycleHook(e,t):this.dynamicDelegate.hasLifecycleHook(e,t)},e.prototype.parameters=function(e){return vi(e)?this.staticDelegate.parameters(e):this.dynamicDelegate.parameters(e)},e.prototype.annotations=function(e){return vi(e)?this.staticDelegate.annotations(e):this.dynamicDelegate.annotations(e)},e.prototype.propMetadata=function(e){return vi(e)?this.staticDelegate.propMetadata(e):this.dynamicDelegate.propMetadata(e)},e.prototype.getter=function(e){return this.dynamicDelegate.getter(e)},e.prototype.setter=function(e){return this.dynamicDelegate.setter(e)},e.prototype.method=function(e){return this.dynamicDelegate.method(e)},e.prototype.importUri=function(e){return this.staticDelegate.importUri(e)},e.prototype.resolveIdentifier=function(e,t,n){return this.staticDelegate.resolveIdentifier(e,t)},e.prototype.resolveEnum=function(e,t){return vi(e)?this.staticDelegate.resolveEnum(e,t):null},e}(),Om=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},Pm={coreDecorators:"@angular/core/src/metadata",diDecorators:"@angular/core/src/di/metadata",diMetadata:"@angular/core/src/di/metadata",diOpaqueToken:"@angular/core/src/di/opaque_token",animationMetadata:"@angular/core/src/animation/metadata",provider:"@angular/core/src/di/provider"},Mm=/^\$.*\$$/,Am=function(){function e(e,t,n,r){var i=this;void 0===t&&(t=[]),void 0===n&&(n=[]),this.symbolResolver=e,this.errorRecorder=r,this.annotationCache=new Map,this.propertyCache=new Map,this.parameterCache=new Map,this.methodCache=new Map,this.conversionMap=new Map,this.initializeConversionMap(),t.forEach(function(e){return i._registerDecoratorOrConstructor(i.getStaticSymbol(e.filePath,e.name),e.ctor)}),n.forEach(function(e){return i._registerFunction(i.getStaticSymbol(e.filePath,e.name),e.fn)})}return e.prototype.importUri=function(e){var t=this.findSymbolDeclaration(e);return t?t.filePath:null},e.prototype.resolveIdentifier=function(e,t){return this.findDeclaration(t,e)},e.prototype.findDeclaration=function(e,t,n){return this.findSymbolDeclaration(this.symbolResolver.getSymbolByModule(e,t,n))},e.prototype.findSymbolDeclaration=function(e){var t=this.symbolResolver.resolveSymbol(e);return t&&t.metadata instanceof Ki?this.findSymbolDeclaration(t.metadata):e},e.prototype.resolveEnum=function(e,t){var n=e;return this.getStaticSymbol(n.filePath,n.name,[t])},e.prototype.annotations=function(e){var t=this.annotationCache.get(e);if(!t){t=[];var n=this.getTypeMetadata(e);if(n.extends){var r=this.annotations(this.simplify(e,n.extends));t.push.apply(t,r)}if(n.decorators){var i=this.simplify(e,n.decorators);t.push.apply(t,i)}this.annotationCache.set(e,t.filter(function(e){return!!e}))}return t},e.prototype.propMetadata=function(e){var t=this,n=this.propertyCache.get(e);if(!n){var r=this.getTypeMetadata(e);if(n={},r.extends){var i=this.propMetadata(this.simplify(e,r.extends));Object.keys(i).forEach(function(e){n[e]=i[e]})}var o=r.members||{};Object.keys(o).forEach(function(r){var i=o[r].find(function(e){return"property"==e.__symbolic||"method"==e.__symbolic}),a=[];n[r]&&a.push.apply(a,n[r]),n[r]=a,i&&i.decorators&&a.push.apply(a,t.simplify(e,i.decorators))}),this.propertyCache.set(e,n)}return n},e.prototype.parameters=function(e){if(!(e instanceof Ki))return this.reportError(new Error("parameters received "+JSON.stringify(e)+" which is not a StaticSymbol"),e),[];try{var t=this.parameterCache.get(e);if(!t){var n=this.getTypeMetadata(e),r=n?n.members:null,i=r?r.__ctor__:null;if(i){var o=i.find(function(e){return"constructor"==e.__symbolic}),a=this.simplify(e,o.parameters||[]),s=this.simplify(e,o.parameterDecorators||[]);t=[],a.forEach(function(e,n){var r=[];e&&r.push(e);var i=s?s[n]:null;i&&r.push.apply(r,i),t.push(r)})}else n.extends&&(t=this.parameters(this.simplify(e,n.extends)));t||(t=[]),this.parameterCache.set(e,t)}return t}catch(t){throw console.error("Failed on type "+JSON.stringify(e)+" with error "+t),t}},e.prototype._methodNames=function(e){var t=this.methodCache.get(e);if(!t){var n=this.getTypeMetadata(e);if(t={},n.extends){var r=this._methodNames(this.simplify(e,n.extends));Object.keys(r).forEach(function(e){t[e]=r[e]})}var i=n.members||{};Object.keys(i).forEach(function(e){var n=i[e].some(function(e){return"method"==e.__symbolic});t[e]=t[e]||n}),this.methodCache.set(e,t)}return t},e.prototype.hasLifecycleHook=function(e,t){e instanceof Ki||this.reportError(new Error("hasLifecycleHook received "+JSON.stringify(e)+" which is not a StaticSymbol"),e);try{return!!this._methodNames(e)[t]}catch(t){throw console.error("Failed on type "+JSON.stringify(e)+" with error "+t),t}},e.prototype._registerDecoratorOrConstructor=function(e,t){this.conversionMap.set(e,function(e,n){return new(t.bind.apply(t,[void 0].concat(n)))})},e.prototype._registerFunction=function(e,t){this.conversionMap.set(e,function(e,n){return t.apply(void 0,n)})},e.prototype.initializeConversionMap=function(){var e=Pm.coreDecorators,n=Pm.diDecorators,r=Pm.diMetadata,i=Pm.diOpaqueToken,o=Pm.animationMetadata;this.opaqueToken=this.findDeclaration(i,"OpaqueToken"),this._registerDecoratorOrConstructor(this.findDeclaration(n,"Host"),t.Host),this._registerDecoratorOrConstructor(this.findDeclaration(n,"Injectable"),t.Injectable),this._registerDecoratorOrConstructor(this.findDeclaration(n,"Self"),t.Self),this._registerDecoratorOrConstructor(this.findDeclaration(n,"SkipSelf"),t.SkipSelf),this._registerDecoratorOrConstructor(this.findDeclaration(n,"Inject"),t.Inject),this._registerDecoratorOrConstructor(this.findDeclaration(n,"Optional"),t.Optional),this._registerDecoratorOrConstructor(this.findDeclaration(e,"Attribute"),t.Attribute),this._registerDecoratorOrConstructor(this.findDeclaration(e,"ContentChild"),t.ContentChild),this._registerDecoratorOrConstructor(this.findDeclaration(e,"ContentChildren"),t.ContentChildren),this._registerDecoratorOrConstructor(this.findDeclaration(e,"ViewChild"),t.ViewChild),this._registerDecoratorOrConstructor(this.findDeclaration(e,"ViewChildren"),t.ViewChildren),this._registerDecoratorOrConstructor(this.findDeclaration(e,"Input"),t.Input),this._registerDecoratorOrConstructor(this.findDeclaration(e,"Output"),t.Output),this._registerDecoratorOrConstructor(this.findDeclaration(e,"Pipe"),t.Pipe),this._registerDecoratorOrConstructor(this.findDeclaration(e,"HostBinding"),t.HostBinding),this._registerDecoratorOrConstructor(this.findDeclaration(e,"HostListener"),t.HostListener),this._registerDecoratorOrConstructor(this.findDeclaration(e,"Directive"),t.Directive),this._registerDecoratorOrConstructor(this.findDeclaration(e,"Component"),t.Component),this._registerDecoratorOrConstructor(this.findDeclaration(e,"NgModule"),t.NgModule),this._registerDecoratorOrConstructor(this.findDeclaration(r,"Host"),t.Host),this._registerDecoratorOrConstructor(this.findDeclaration(r,"Self"),t.Self),this._registerDecoratorOrConstructor(this.findDeclaration(r,"SkipSelf"),t.SkipSelf),this._registerDecoratorOrConstructor(this.findDeclaration(r,"Optional"),t.Optional),this._registerFunction(this.findDeclaration(o,"trigger"),t.trigger),this._registerFunction(this.findDeclaration(o,"state"),t.state),this._registerFunction(this.findDeclaration(o,"transition"),t.transition),this._registerFunction(this.findDeclaration(o,"style"),t.style),this._registerFunction(this.findDeclaration(o,"animate"),t.animate),this._registerFunction(this.findDeclaration(o,"keyframes"),t.keyframes),this._registerFunction(this.findDeclaration(o,"sequence"),t.sequence),this._registerFunction(this.findDeclaration(o,"group"),t.group)},e.prototype.getStaticSymbol=function(e,t,n){return this.symbolResolver.getStaticSymbol(e,t,n)},e.prototype.reportError=function(e,t,n){if(!this.errorRecorder)throw e;this.errorRecorder(e,t&&t.filePath||n)},e.prototype.simplify=function(e,t){function n(e,t,r){function s(e){var t=i.symbolResolver.resolveSymbol(e);return t?t.metadata:null}function u(t,i,s){if(i&&"function"==i.__symbolic){if(a.get(t))throw new Error("Recursion not supported");a.set(t,!0);try{var u=i.value;if(u&&(0!=r||"error"!=u.__symbolic)){var l=i.parameters,p=i.defaults;s=s.map(function(t){return n(e,t,r+1)}),p&&p.length>s.length&&s.push.apply(s,p.slice(s.length).map(function(e){return c(e)}));for(var d=Dm.build(),h=0;h<l.length;h++)d.define(l[h],s[h]);var f,m=o;try{o=d.done(),f=n(t,u,r+1)}finally{o=m}return f}}finally{a.delete(t)}}return 0===r?{__symbolic:"ignore"}:c({__symbolic:"error",message:"Function call not supported",context:t})}function c(t){if(bi(t))return t;if(t instanceof Array){for(var a=[],l=0,p=t;l<p.length;l++){var d=p[l];if(d&&"spread"===d.__symbolic){var h=c(d.expression);if(Array.isArray(h)){for(var f=0,m=h;f<m.length;f++){var v=m[f];a.push(v)}continue}}var y=c(d);wi(y)||a.push(y)}return a}if(t instanceof Ki)return t===i.opaqueToken||i.conversionMap.has(t)?t:(O=s(g=t))?n(g,O,r+1):g;if(t){if(t.__symbolic){var g=void 0;switch(t.__symbolic){case"binop":var _=c(t.left);if(wi(_))return _;var b=c(t.right);if(wi(b))return b;switch(t.operator){case"&&":return _&&b;case"||":return _||b;case"|":return _|b;case"^":return _^b;case"&":return _&b;case"==":return _==b;case"!=":return _!=b;case"===":return _===b;case"!==":return _!==b;case"<":return _<b;case">":return _>b;case"<=":return _<=b;case">=":return _>=b;case"<<":return _<<b;case">>":return _>>b;case"+":return _+b;case"-":return _-b;case"*":return _*b;case"/":return _/b;case"%":return _%b}return null;case"if":return c(c(t.condition)?t.thenExpression:t.elseExpression);case"pre":var w=c(t.operand);if(wi(w))return w;switch(t.operator){case"+":return w;case"-":return-w;case"!":return!w;case"~":return~w}return null;case"index":var k=c(t.expression),x=c(t.index);return k&&bi(x)?k[x]:null;case"select":var C=t.member,S=e,E=c(t.expression);if(E instanceof Ki){var T=E.members.concat(C),O=s(S=i.getStaticSymbol(E.filePath,E.name,T));return O?n(S,O,r+1):S}return E&&bi(C)?n(S,E[C],r+1):null;case"reference":var P=t.name,M=o.resolve(P);if(M!=Dm.missing)return M;break;case"class":case"function":return e;case"new":case"call":if((g=n(e,t.expression,r+1))instanceof Ki){if(g===i.opaqueToken)return e;var A=t.arguments||[],D=i.conversionMap.get(g);if(D){var I=A.map(function(t){return n(e,t,r+1)});return D(e,I)}return u(g,s(g),A)}break;case"error":var R=gi(t);if(t.line)throw R=R+" (position "+(t.line+1)+":"+(t.character+1)+" in the original .ts file)",ki(R,e.filePath,t.line,t.character);throw new Error(R)}return null}return _i(t,function(e,t){return c(e)})}return null}try{return c(t)}catch(t){var l=e.members.length?"."+e.members.join("."):"",p=t.message+", resolving symbol "+e.name+l+" in "+e.filePath;if(t.fileName)throw ki(p,t.fileName,t.line,t.column);throw new oa(p)}}var r=this,i=this,o=Dm.empty,a=new Map,s=this.errorRecorder?function(e,t,i){try{return n(e,t,i)}catch(t){r.reportError(t,e)}}(e,t,0):n(e,t,0);if(!wi(s))return s},e.prototype.getTypeMetadata=function(e){var t=this.symbolResolver.resolveSymbol(e);return t&&t.metadata?t.metadata:{__symbolic:"class"}},e}(),Dm=function(){function e(){}return e.prototype.resolve=function(e){},e.build=function(){var t=new Map;return{define:function(e,n){return t.set(e,n),this},done:function(){return t.size>0?new Im(t):e.empty}}},e.missing={},e.empty={resolve:function(t){return e.missing}},e}(),Im=function(e){function t(t){e.call(this),this.bindings=t}return Om(t,e),t.prototype.resolve=function(e){return this.bindings.has(e)?this.bindings.get(e):Dm.missing},t}(Dm),Rm=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},jm=function(){return function(e,t){this.symbol=e,this.metadata=t}}(),Nm=function(){function e(e,t,n,r){this.host=e,this.staticSymbolCache=t,this.summaryResolver=n,this.errorRecorder=r,this.metadataCache=new Map,this.resolvedSymbols=new Map,this.resolvedFilePaths=new Set}return e.prototype.resolveSymbol=function(e){if(e.members.length>0)return this._resolveSymbolMembers(e);var t=this._resolveSymbolFromSummary(e);return t||(this._createSymbolsOf(e.filePath),t=this.resolvedSymbols.get(e)),t},e.prototype._resolveSymbolMembers=function(e){var t=e.members,n=this.resolveSymbol(this.getStaticSymbol(e.filePath,e.name));if(!n)return null;var r=n.metadata;if(r instanceof Ki)return new jm(e,this.getStaticSymbol(r.filePath,r.name,t));if(!r||"class"!==r.__symbolic){for(var i=r,o=0;o<t.length&&i;o++)i=i[t[o]];return new jm(e,i)}return r.statics&&1===t.length?new jm(e,r.statics[t[0]]):null},e.prototype._resolveSymbolFromSummary=function(e){var t=this.summaryResolver.resolveSummary(e);return t?new jm(e,t.metadata):null},e.prototype.getStaticSymbol=function(e,t,n){return this.staticSymbolCache.get(e,t,n)},e.prototype.getSymbolsOf=function(e){var t=new Set(this.summaryResolver.getSymbolsOf(e));return this._createSymbolsOf(e),this.resolvedSymbols.forEach(function(n){n.symbol.filePath===e&&t.add(n.symbol)}),Array.from(t)},e.prototype._createSymbolsOf=function(e){var t=this;if(!this.resolvedFilePaths.has(e)){this.resolvedFilePaths.add(e);var n=[],r=this.getModuleMetadata(e);if(r.metadata&&Object.keys(r.metadata).forEach(function(i){var o=r.metadata[i];n.push(t.createResolvedSymbol(t.getStaticSymbol(e,i),o))}),r.exports)for(var i=this,o=0,a=r.exports;o<a.length;o++)!function(r){if(r.export)r.export.forEach(function(i){var o,a=o="string"==typeof i?i:i.as;"string"!=typeof i&&(a=i.name);var s=t.resolveModule(r.from,e);if(s){var u=t.getStaticSymbol(s,a),c=t.getStaticSymbol(e,o);n.push(new jm(c,u))}});else{var o=i.resolveModule(r.from,e);o&&i.getSymbolsOf(o).forEach(function(r){var i=t.getStaticSymbol(e,r.name);n.push(new jm(i,r))})}}(a[o]);n.forEach(function(e){return t.resolvedSymbols.set(e.symbol,e)})}},e.prototype.createResolvedSymbol=function(e,t){var n=this,r=g(t,new(function(t){function r(){t.apply(this,arguments)}return Rm(r,t),r.prototype.visitStringMap=function(r,i){var o=r.__symbolic;if("function"===o){var a=i.length;i.push.apply(i,r.parameters||[]);var s=t.prototype.visitStringMap.call(this,r,i);return i.length=a,s}if("reference"===o){var u=r.module,c=r.name;if(!c)return null;var l=void 0;if(u){if(!(l=n.resolveModule(u,e.filePath)))return{__symbolic:"error",message:"Could not resolve "+u+" relative to "+e.filePath+"."}}else i.indexOf(c)>=0||(l=e.filePath);return l?n.getStaticSymbol(l,c):{__symbolic:"reference",name:c}}return t.prototype.visitStringMap.call(this,r,i)},r}(ra)),[]);return new jm(e,r)},e.prototype.reportError=function(e,t,n){if(!this.errorRecorder)throw e;this.errorRecorder(e,t&&t.filePath||n)},e.prototype.getModuleMetadata=function(e){var t=this.metadataCache.get(e);if(!t){var n=this.host.getMetadataFor(e);if(n){var r=-1;n.forEach(function(e){e.version>r&&(r=e.version,t=e)})}if(t||(t={__symbolic:"module",version:3,module:e,metadata:{}}),3!=t.version){var i=2==t.version?"Unsupported metadata version "+t.version+" for module "+e+". This module should be compiled with a newer version of ngc":"Metadata version mismatch for module "+e+", found version "+t.version+", expected 3";this.reportError(new Error(i),null)}this.metadataCache.set(e,t)}return t},e.prototype.getSymbolByModule=function(e,t,n){var r=this.resolveModule(e,n);return r?this.getStaticSymbol(r,t):(this.reportError(new Error("Could not resolve module "+e+(n?" relative to $ {\n            containingFile\n          } ":"")),null),this.getStaticSymbol("ERROR:"+e,t))},e.prototype.resolveModule=function(e,t){try{return this.host.moduleNameToFileName(e,t)}catch(n){console.error("Could not resolve module '"+e+"' relative to file "+t),this.reportError(new n,null,t)}},e}(),Lm=function(){function e(e,t){this.host=e,this.staticSymbolCache=t,this.summaryCache=new Map,this.loadedFilePaths=new Set}return e.prototype._assertNoMembers=function(e){if(e.members.length)throw new Error("Internal state: StaticSymbols in summaries can't have members! "+JSON.stringify(e))},e.prototype.resolveSummary=function(e){this._assertNoMembers(e);var t=this.summaryCache.get(e);return t||(this._loadSummaryFile(e.filePath),t=this.summaryCache.get(e)),t},e.prototype.getSymbolsOf=function(e){return this._loadSummaryFile(e),Array.from(this.summaryCache.keys()).filter(function(t){return t.filePath===e})},e.prototype._loadSummaryFile=function(e){var t=this;if(!this.loadedFilePaths.has(e)&&(this.loadedFilePaths.add(e),!this.host.isSourceFile(e))){var n=ri(e),r=void 0;try{r=this.host.loadSummary(n)}catch(e){throw console.error("Error loading summary file "+n),e}r&&ni(this.staticSymbolCache,r).forEach(function(e){t.summaryCache.set(e.symbol,e)})}},e}(),Fm=function(){function e(e,t,n,r){this.parent=e,this.instance=t,this.className=n,this.vars=r}return e.prototype.createChildWihtLocalVars=function(){return new e(this,this.instance,this.className,new Map)},e}(),Vm=function(){return function(e){this.value=e}}(),zm=function(){function e(){}return e.prototype.debugAst=function(e){return Zn(e)},e.prototype.visitDeclareVarStmt=function(e,t){return t.vars.set(e.name,e.value.visitExpression(this,t)),null},e.prototype.visitWriteVarExpr=function(e,t){for(var n=e.value.visitExpression(this,t),r=t;null!=r;){if(r.vars.has(e.name))return r.vars.set(e.name,n),n;r=r.parent}throw new Error("Not declared variable "+e.name)},e.prototype.visitReadVarExpr=function(e,t){var n=e.name;if(r(e.builtin))switch(e.builtin){case Pp.Super:return t.instance.__proto__;case Pp.This:return t.instance;case Pp.CatchError:n=Um;break;case Pp.CatchStack:n=Bm;break;default:throw new Error("Unknown builtin variable "+e.builtin)}for(var i=t;null!=i;){if(i.vars.has(n))return i.vars.get(n);i=i.parent}throw new Error("Not declared variable "+n)},e.prototype.visitWriteKeyExpr=function(e,t){var n=e.receiver.visitExpression(this,t),r=e.index.visitExpression(this,t),i=e.value.visitExpression(this,t);return n[r]=i,i},e.prototype.visitWritePropExpr=function(e,t){var n=e.receiver.visitExpression(this,t),r=e.value.visitExpression(this,t);return n[e.name]=r,r},e.prototype.visitInvokeMethodExpr=function(e,t){var n,i=e.receiver.visitExpression(this,t),o=this.visitAllExpressions(e.args,t);if(r(e.builtin))switch(e.builtin){case Rp.ConcatArray:n=i.concat.apply(i,o);break;case Rp.SubscribeObservable:n=i.subscribe({next:o[0]});break;case Rp.Bind:n=i.bind.apply(i,o);break;default:throw new Error("Unknown builtin method "+e.builtin)}else n=i[e.name].apply(i,o);return n},e.prototype.visitInvokeFunctionExpr=function(e,t){var n=this.visitAllExpressions(e.args,t),r=e.fn;return r instanceof Mp&&r.builtin===Pp.Super?(t.instance.constructor.prototype.constructor.apply(t.instance,n),null):e.fn.visitExpression(this,t).apply(null,n)},e.prototype.visitReturnStmt=function(e,t){return new Vm(e.value.visitExpression(this,t))},e.prototype.visitDeclareClassStmt=function(e,t){var n=Si(e,t,this);return t.vars.set(e.name,n),null},e.prototype.visitExpressionStmt=function(e,t){return e.expr.visitExpression(this,t)},e.prototype.visitIfStmt=function(e,t){return e.condition.visitExpression(this,t)?this.visitAllStatements(e.trueCase,t):r(e.falseCase)?this.visitAllStatements(e.falseCase,t):null},e.prototype.visitTryCatchStmt=function(e,t){try{return this.visitAllStatements(e.bodyStmts,t)}catch(r){var n=t.createChildWihtLocalVars();return n.vars.set(Um,r),n.vars.set(Bm,r.stack),this.visitAllStatements(e.catchStmts,n)}},e.prototype.visitThrowStmt=function(e,t){throw e.error.visitExpression(this,t)},e.prototype.visitCommentStmt=function(e,t){return null},e.prototype.visitInstantiateExpr=function(e,t){var n=this.visitAllExpressions(e.args,t),r=e.classExpr.visitExpression(this,t);return new(r.bind.apply(r,[void 0].concat(n)))},e.prototype.visitLiteralExpr=function(e,t){return e.value},e.prototype.visitExternalExpr=function(e,t){return e.value.reference},e.prototype.visitConditionalExpr=function(e,t){return e.condition.visitExpression(this,t)?e.trueCase.visitExpression(this,t):r(e.falseCase)?e.falseCase.visitExpression(this,t):null},e.prototype.visitNotExpr=function(e,t){return!e.condition.visitExpression(this,t)},e.prototype.visitCastExpr=function(e,t){return e.value.visitExpression(this,t)},e.prototype.visitFunctionExpr=function(e,t){return Ei(e.params.map(function(e){return e.name}),e.statements,t,this)},e.prototype.visitDeclareFunctionStmt=function(e,t){var n=e.params.map(function(e){return e.name});return t.vars.set(e.name,Ei(n,e.statements,t,this)),null},e.prototype.visitBinaryOperatorExpr=function(e,t){var n=this,r=function(){return e.lhs.visitExpression(n,t)},i=function(){return e.rhs.visitExpression(n,t)};switch(e.operator){case Tp.Equals:return r()==i();case Tp.Identical:return r()===i();case Tp.NotEquals:return r()!=i();case Tp.NotIdentical:return r()!==i();case Tp.And:return r()&&i();case Tp.Or:return r()||i();case Tp.Plus:return r()+i();case Tp.Minus:return r()-i();case Tp.Divide:return r()/i();case Tp.Multiply:return r()*i();case Tp.Modulo:return r()%i();case Tp.Lower:return r()<i();case Tp.LowerEquals:return r()<=i();case Tp.Bigger:return r()>i();case Tp.BiggerEquals:return r()>=i();default:throw new Error("Unknown operator "+e.operator)}},e.prototype.visitReadPropExpr=function(e,t){return e.receiver.visitExpression(this,t)[e.name]},e.prototype.visitReadKeyExpr=function(e,t){return e.receiver.visitExpression(this,t)[e.index.visitExpression(this,t)]},e.prototype.visitLiteralArrayExpr=function(e,t){return this.visitAllExpressions(e.entries,t)},e.prototype.visitLiteralMapExpr=function(e,t){var n=this,r={};return e.entries.forEach(function(e){return r[e.key]=e.value.visitExpression(n,t)}),r},e.prototype.visitAllExpressions=function(e,t){var n=this;return e.map(function(e){return e.visitExpression(n,t)})},e.prototype.visitAllStatements=function(e,t){for(var n=0;n<e.length;n++){var r=e[n].visitStatement(this,t);if(r instanceof Vm)return r}return null},e}(),Um="error",Bm="stack",Hm=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},qm=function(e){function t(){e.call(this,!1)}return Hm(t,e),t.prototype.visitDeclareClassStmt=function(e,t){var n=this;return t.pushClass(e),this._visitClassConstructor(e,t),r(e.parent)&&(t.print(e.name+".prototype = Object.create("),e.parent.visitExpression(this,t),t.println(".prototype);")),e.getters.forEach(function(r){return n._visitClassGetter(e,r,t)}),e.methods.forEach(function(r){return n._visitClassMethod(e,r,t)}),t.popClass(),null},t.prototype._visitClassConstructor=function(e,t){t.print("function "+e.name+"("),r(e.constructorMethod)&&this._visitParams(e.constructorMethod.params,t),t.println(") {"),t.incIndent(),r(e.constructorMethod)&&e.constructorMethod.body.length>0&&(t.println("var self = this;"),this.visitAllStatements(e.constructorMethod.body,t)),t.decIndent(),t.println("}")},t.prototype._visitClassGetter=function(e,t,n){n.println("Object.defineProperty("+e.name+".prototype, '"+t.name+"', { get: function() {"),n.incIndent(),t.body.length>0&&(n.println("var self = this;"),this.visitAllStatements(t.body,n)),n.decIndent(),n.println("}});")},t.prototype._visitClassMethod=function(e,t,n){n.print(e.name+".prototype."+t.name+" = function("),this._visitParams(t.params,n),n.println(") {"),n.incIndent(),t.body.length>0&&(n.println("var self = this;"),this.visitAllStatements(t.body,n)),n.decIndent(),n.println("};")},t.prototype.visitReadVarExpr=function(t,n){if(t.builtin===Pp.This)n.print("self");else{if(t.builtin===Pp.Super)throw new Error("'super' needs to be handled at a parent ast node, not at the variable level!");e.prototype.visitReadVarExpr.call(this,t,n)}return null},t.prototype.visitDeclareVarStmt=function(e,t){return t.print("var "+e.name+" = "),e.value.visitExpression(this,t),t.println(";"),null},t.prototype.visitCastExpr=function(e,t){return e.value.visitExpression(this,t),null},t.prototype.visitInvokeFunctionExpr=function(t,n){var r=t.fn;return r instanceof Mp&&r.builtin===Pp.Super?(n.currentClass.parent.visitExpression(this,n),n.print(".call(this"),t.args.length>0&&(n.print(", "),this.visitAllExpressions(t.args,n,",")),n.print(")")):e.prototype.visitInvokeFunctionExpr.call(this,t,n),null},t.prototype.visitFunctionExpr=function(e,t){return t.print("function("),this._visitParams(e.params,t),t.println(") {"),t.incIndent(),this.visitAllStatements(e.statements,t),t.decIndent(),t.print("}"),null},t.prototype.visitDeclareFunctionStmt=function(e,t){return t.print("function "+e.name+"("),this._visitParams(e.params,t),t.println(") {"),t.incIndent(),this.visitAllStatements(e.statements,t),t.decIndent(),t.println("}"),null},t.prototype.visitTryCatchStmt=function(e,t){t.println("try {"),t.incIndent(),this.visitAllStatements(e.bodyStmts,t),t.decIndent(),t.println("} catch ("+gh.name+") {"),t.incIndent();var n=[_h.set(gh.prop("stack")).toDeclStmt(null,[td.Final])].concat(e.catchStmts);return this.visitAllStatements(n,t),t.decIndent(),t.println("}"),null},t.prototype._visitParams=function(e,t){this.visitAllObjects(function(e){return t.print(e.name)},e,t,",")},t.prototype.getBuiltinMethodName=function(e){var t;switch(e){case Rp.ConcatArray:t="concat";break;case Rp.SubscribeObservable:t="subscribe";break;case Rp.Bind:t="bind";break;default:throw new Error("Unknown builtin method: "+e)}return t},t}(kh),Wm=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},Gm=function(e){function t(){e.apply(this,arguments),this._evalArgNames=[],this._evalArgValues=[]}return Wm(t,e),t.prototype.getArgs=function(){for(var e={},t=0;t<this._evalArgNames.length;t++)e[this._evalArgNames[t]]=this._evalArgValues[t];return e},t.prototype.visitExternalExpr=function(e,t){var n=e.value.reference,r=this._evalArgValues.indexOf(n);if(-1===r){r=this._evalArgValues.length,this._evalArgValues.push(n);var i=b(e.value)||"val";this._evalArgNames.push("jit_"+i+r)}return t.print(this._evalArgNames[r]),null},t}(qm),Ym=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},Zm=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},Km=function(){function e(e,t,n,r,i,o,a,s,u){this._injector=e,this._metadataResolver=t,this._templateParser=n,this._styleCompiler=r,this._viewCompiler=i,this._ngModuleCompiler=o,this._directiveWrapperCompiler=a,this._compilerConfig=s,this._animationParser=u,this._compiledTemplateCache=new Map,this._compiledHostTemplateCache=new Map,this._compiledDirectiveWrapperCache=new Map,this._compiledNgModuleCache=new Map,this._animationCompiler=new nm}return Object.defineProperty(e.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),e.prototype.compileModuleSync=function(e){return this._compileModuleAndComponents(e,!0).syncResult},e.prototype.compileModuleAsync=function(e){return this._compileModuleAndComponents(e,!1).asyncResult},e.prototype.compileModuleAndAllComponentsSync=function(e){return this._compileModuleAndAllComponents(e,!0).syncResult},e.prototype.compileModuleAndAllComponentsAsync=function(e){return this._compileModuleAndAllComponents(e,!1).asyncResult},e.prototype.getNgContentSelectors=function(e){var t=this._compiledTemplateCache.get(e);if(!t)throw new Error("The component "+a(e)+" is not yet compiled!");return t.compMeta.template.ngContentSelectors},e.prototype._compileModuleAndComponents=function(e,t){var n=this,r=this._loadModules(e,t),i=function(){return n._compileComponents(e,null),n._compileModule(e)};return t?new ia(i()):new ia(null,r.then(i))},e.prototype._compileModuleAndAllComponents=function(e,n){var r=this,i=this._loadModules(e,n),o=function(){var n=[];return r._compileComponents(e,n),new t.ModuleWithComponentFactories(r._compileModule(e),n)};return n?new ia(o()):new ia(null,i.then(o))},e.prototype._loadModules=function(e,t){var n=this,r=[];return this._metadataResolver.getNgModuleMetadata(e).transitiveModule.modules.forEach(function(e){r.push(n._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(e.reference,t))}),Promise.all(r)},e.prototype._compileModule=function(e){var n=this,r=this._compiledNgModuleCache.get(e);if(!r){var i=this._metadataResolver.getNgModuleMetadata(e),o=[this._metadataResolver.getProviderMetadata(new Ta(t.Compiler,{useFactory:function(){return new Jm(n,i.type.reference)}}))],a=this._ngModuleCompiler.compile(i,o);a.dependencies.forEach(function(e){e.placeholder.reference=n._assertComponentKnown(e.comp.reference,!0).proxyComponentFactory}),r=this._compilerConfig.useJit?Oi("/"+b(i.type)+"/module.ngfactory.js",a.statements,a.ngModuleFactoryVar):xi(a.statements,a.ngModuleFactoryVar),this._compiledNgModuleCache.set(i.type.reference,r)}return r},e.prototype._compileComponents=function(e,t){var n=this,r=this._metadataResolver.getNgModuleMetadata(e),i=new Map,o=new Set;r.transitiveModule.modules.forEach(function(e){var r=n._metadataResolver.getNgModuleMetadata(e.reference);r.declaredDirectives.forEach(function(e){i.set(e.reference,r);var a=n._metadataResolver.getDirectiveMetadata(e.reference);if(n._compileDirectiveWrapper(a,r),a.isComponent&&(o.add(n._createCompiledTemplate(a,r)),t)){var s=n._createCompiledHostTemplate(a.type.reference,r);o.add(s),t.push(s.proxyComponentFactory)}})}),r.transitiveModule.modules.forEach(function(e){var t=n._metadataResolver.getNgModuleMetadata(e.reference);t.declaredDirectives.forEach(function(e){var t=n._metadataResolver.getDirectiveMetadata(e.reference);t.isComponent&&t.entryComponents.forEach(function(e){var t=i.get(e.reference);o.add(n._createCompiledHostTemplate(e.reference,t))})}),t.entryComponents.forEach(function(e){var t=i.get(e.reference);o.add(n._createCompiledHostTemplate(e.reference,t))})}),o.forEach(function(e){return n._compileTemplate(e)})},e.prototype.clearCacheFor=function(e){this._compiledNgModuleCache.delete(e),this._metadataResolver.clearCacheFor(e),this._compiledHostTemplateCache.delete(e),this._compiledTemplateCache.get(e)&&this._compiledTemplateCache.delete(e)},e.prototype.clearCache=function(){this._metadataResolver.clearCache(),this._compiledTemplateCache.clear(),this._compiledHostTemplateCache.clear(),this._compiledNgModuleCache.clear()},e.prototype._createCompiledHostTemplate=function(e,t){if(!t)throw new Error("Component "+a(e)+" is not part of any NgModule or the module has not been imported into your module.");var n=this._compiledHostTemplateCache.get(e);if(!n){var r=this._metadataResolver.getDirectiveMetadata(e);Pi(r);var i=function(){};i.overriddenName=b(r.type)+"_Host";var o=C(i,r);n=new Xm(!0,r.selector,r.type,o,t,[r.type]),this._compiledHostTemplateCache.set(e,n)}return n},e.prototype._createCompiledTemplate=function(e,t){var n=this._compiledTemplateCache.get(e.type.reference);return n||(Pi(e),n=new Xm(!1,e.selector,e.type,e,t,t.transitiveModule.directives),this._compiledTemplateCache.set(e.type.reference,n)),n},e.prototype._assertComponentKnown=function(e,t){var n=t?this._compiledHostTemplateCache.get(e):this._compiledTemplateCache.get(e);if(!n)throw new Error("Illegal state: Compiled view for component "+a(e)+" (host: "+t+") does not exist!");return n},e.prototype._assertDirectiveWrapper=function(e){var t=this._compiledDirectiveWrapperCache.get(e);if(!t)throw new Error("Illegal state: Directive wrapper for "+a(e)+" has not been compiled!");return t},e.prototype._compileDirectiveWrapper=function(e,t){var n,r=this._directiveWrapperCompiler.compile(e),i=r.statements;n=this._compilerConfig.useJit?Oi("/"+b(t.type)+"/"+b(e.type)+"/wrapper.ngfactory.js",i,r.dirWrapperClassVar):xi(i,r.dirWrapperClassVar),this._compiledDirectiveWrapperCache.set(e.type.reference,n)},e.prototype._compileTemplate=function(e){var t=this;if(!e.isCompiled){var n=e.compMeta,r=new Map,i=this._styleCompiler.compileComponent(n);i.externalStylesheets.forEach(function(e){r.set(e.meta.moduleUrl,e)}),this._resolveStylesCompileResult(i.componentStylesheet,r);var o=this._animationParser.parseComponent(n),a=e.directives.map(function(e){return t._metadataResolver.getDirectiveSummary(e.reference)}),s=e.ngModule.transitiveModule.pipes.map(function(e){return t._metadataResolver.getPipeSummary(e.reference)}),u=this._templateParser.parse(n,n.template.template,a,s,e.ngModule.schemas,b(n.type)),c=this._animationCompiler.compile(b(n.type),o),l=this._viewCompiler.compileComponent(n,u,qt(i.componentStylesheet.stylesVar),s,c);l.dependencies.forEach(function(e){var n;if(e instanceof Df){var r=e;n=t._assertComponentKnown(r.comp.reference,!1),r.placeholder.reference=n.proxyViewClass}else if(e instanceof If){var i=e;n=t._assertComponentKnown(i.comp.reference,!0),i.placeholder.reference=n.proxyComponentFactory}else if(e instanceof Rf){var o=e;o.placeholder.reference=t._assertDirectiveWrapper(o.dir.reference)}});var p,d=(h=i.componentStylesheet.statements).concat.apply(h,c.map(function(e){return e.statements})).concat(l.statements);p=this._compilerConfig.useJit?Oi("/"+b(e.ngModule.type)+"/"+b(e.compType)+"/"+(e.isHost?"host":"component")+".ngfactory.js",d,l.viewClassVar):xi(d,l.viewClassVar),e.compiled(p);var h}},e.prototype._resolveStylesCompileResult=function(e,t){var n=this;e.dependencies.forEach(function(e,r){var i=t.get(e.moduleUrl),o=n._resolveAndEvalStylesCompileResult(i,t);e.valuePlaceholder.reference=o})},e.prototype._resolveAndEvalStylesCompileResult=function(e,t){return this._resolveStylesCompileResult(e,t),this._compilerConfig.useJit?Oi("/"+e.meta.moduleUrl+".ngstyle.js",e.statements,e.stylesVar):xi(e.statements,e.stylesVar)},e=Ym([M(),Zm("design:paramtypes",[t.Injector,oh,gl,yf,em,dh,Bd,Sl,Jl])],e)}(),Xm=function(){function e(e,n,r,i,o,s){this.isHost=e,this.compType=r,this.compMeta=i,this.ngModule=o,this.directives=s,this._viewClass=null,this.isCompiled=!1;var u=this;this.proxyViewClass=function(){if(!u._viewClass)throw new Error("Illegal state: CompiledTemplate for "+a(u.compType)+" is not compiled yet!");return u._viewClass.apply(this,arguments)},this.proxyComponentFactory=e?new t.ComponentFactory(n,this.proxyViewClass,r.reference):null}return e.prototype.compiled=function(e){this._viewClass=e,this.proxyViewClass.prototype=e.prototype,this.isCompiled=!0},e}(),Jm=function(){function e(e,t){this._delegate=e,this._ngModule=t}return Object.defineProperty(e.prototype,"_injector",{get:function(){return this._delegate.injector},enumerable:!0,configurable:!0}),e.prototype.compileModuleSync=function(e){return this._delegate.compileModuleSync(e)},e.prototype.compileModuleAsync=function(e){return this._delegate.compileModuleAsync(e)},e.prototype.compileModuleAndAllComponentsSync=function(e){return this._delegate.compileModuleAndAllComponentsSync(e)},e.prototype.compileModuleAndAllComponentsAsync=function(e){return this._delegate.compileModuleAndAllComponentsAsync(e)},e.prototype.getNgContentSelectors=function(e){return this._delegate.getNgContentSelectors(e)},e.prototype.clearCache=function(){this._delegate.clearCache()},e.prototype.clearCacheFor=function(e){this._delegate.clearCacheFor(e)},e}(),Qm=function(){function e(e,t,n){this._htmlParser=e,this._implicitTags=t,this._implicitAttrs=n,this._messages=[]}return e.prototype.updateFromTemplate=function(e,t,n){var r=this._htmlParser.parse(e,t,!0,n);if(r.errors.length)return r.errors;var i=pe(r.rootNodes,n,this._implicitTags,this._implicitAttrs);if(i.errors.length)return i.errors;(o=this._messages).push.apply(o,i.messages);var o},e.prototype.getMessages=function(){return this._messages},e.prototype.write=function(e){return e.write(this._messages)},e}(),$m=function(){function e(e,t,n,r){this.host=e,this.staticSymbolResolver=t,this.messageBundle=n,this.metadataResolver=r}return e.prototype.extract=function(e){var t=this,n=di(fi(this.staticSymbolResolver,e,this.host),this.host,this.metadataResolver),r=n.files,i=n.ngModules;return Promise.all(i.map(function(e){return t.metadataResolver.loadNgModuleDirectiveAndPipeMetadata(e.type.reference,!1)})).then(function(){var e=[];if(r.forEach(function(n){var r=[];n.directives.forEach(function(e){var n=t.metadataResolver.getDirectiveMetadata(e);n&&n.isComponent&&r.push(n)}),r.forEach(function(r){var i=r.template.template,o=cs.fromArray(r.template.interpolation);e.push.apply(e,t.messageBundle.updateFromTemplate(i,n.srcUrl,o))})}),e.length)throw new Error(e.map(function(e){return e.toString()}).join("\n"));return t.messageBundle})},e.create=function(n){var r=new Sc(new kc),i=Rt(),o=new Xi,a=new Lm(n,o),s=new Nm(n,o,a),u=new Am(s);Tm.install(u);var c=new Sl({genDebugInfo:!1,defaultEncapsulation:t.ViewEncapsulation.Emulated,logBindingUpdate:!1,useJit:!1}),l=new up({get:function(e){return n.loadResource(e)}},i,r,c),p=new Lh,d=new oh(new Zd(u),new dp(u),new Jd(u),a,p,l,u),h=new Qm(r,[],{});return{extractor:new e(n,s,h,d),staticReflector:u}},e}(),ev=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},tv=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},nv={get:function(e){throw new Error("No ResourceLoader implementation has been provided. Can't read the url \""+e+'"')}},rv=new t.OpaqueToken("HtmlParser"),iv=[{provide:Co,useValue:xo},{provide:oo,useExisting:Co},{provide:$l,useValue:nv},eh,ko,Bs,Xs,{provide:rv,useClass:kc},{provide:Sc,useFactory:function(e,t,n){return new Sc(e,t,n)},deps:[rv,[new t.Optional,new t.Inject(t.TRANSLATIONS)],[new t.Optional,new t.Inject(t.TRANSLATIONS_FORMAT)]]},{provide:kc,useExisting:Sc},gl,up,oh,np,yf,em,dh,Bd,{provide:Sl,useValue:new Sl},Km,{provide:t.Compiler,useExisting:Km},Lh,{provide:Uc,useExisting:Lh},rp,dp,Jd,Zd,Jl],ov=function(){function e(e){this._defaultOptions=[{useDebug:t.isDevMode(),useJit:!0,defaultEncapsulation:t.ViewEncapsulation.Emulated}].concat(e)}return e.prototype.createCompiler=function(e){void 0===e&&(e=[]);var n=Mi(this._defaultOptions.concat(e));return t.ReflectiveInjector.resolveAndCreate([iv,{provide:Sl,useFactory:function(){return new Sl({genDebugInfo:n.useDebug,useJit:n.useJit,defaultEncapsulation:n.defaultEncapsulation,logBindingUpdate:n.useDebug})},deps:[]},n.providers]).get(t.Compiler)},e.ctorParameters=function(){return[{type:Array,decorators:[{type:t.Inject,args:[t.COMPILER_OPTIONS]}]}]},e=ev([M(),tv("design:paramtypes",[Array])],e)}(),av=t.createPlatformFactory(t.platformCore,"coreDynamic",[{provide:t.COMPILER_OPTIONS,useValue:{},multi:!0},{provide:t.CompilerFactory,useClass:ov},{provide:t.PLATFORM_INITIALIZER,useValue:function(){xo.reflectionCapabilities=new So},multi:!0}]),sv=function(){function e(){}return e.prototype.fileNameToModuleName=function(e,t){},e}();e.VERSION=Ii,e.TextAst=Ri,e.BoundTextAst=ji,e.AttrAst=Ni,e.BoundElementPropertyAst=Li,e.BoundEventAst=Fi,e.ReferenceAst=Vi,e.VariableAst=zi,e.ElementAst=Ui,e.EmbeddedTemplateAst=Bi,e.BoundDirectivePropertyAst=Hi,e.DirectiveAst=qi,e.ProviderAst=Wi,e.ProviderAstType=Gi,e.NgContentAst=Yi,e.PropertyBindingType=Zi,e.templateVisitAll=n,e.TEMPLATE_TRANSFORMS=ml,e.CompilerConfig=Sl,e.RenderTypes=El,e.CompileAnimationEntryMetadata=ua,e.CompileAnimationStateMetadata=ca,e.CompileAnimationStateDeclarationMetadata=la,e.CompileAnimationStateTransitionMetadata=pa,e.CompileAnimationMetadata=da,e.CompileAnimationKeyframesSequenceMetadata=ha,e.CompileAnimationStyleMetadata=fa,e.CompileAnimationAnimateMetadata=ma,e.CompileAnimationWithStepsMetadata=va,e.CompileAnimationSequenceMetadata=ya,e.CompileAnimationGroupMetadata=ga,e.identifierName=b,e.identifierModuleUrl=w,e.CompileSummaryKind=ba,e.tokenName=k,e.tokenReference=x,e.CompileStylesheetMetadata=wa,e.CompileTemplateMetadata=ka,e.CompileDirectiveMetadata=xa,e.createHostComponentMeta=C,e.CompilePipeMetadata=Ca,e.CompileNgModuleMetadata=Sa,e.TransitiveCompileNgModuleMetadata=Ea,e.ProviderMeta=Ta,e.createAotCompiler=function(e,n){var r=n.translations||"",i=Rt(),o=new Xi,a=new Lm(e,o),s=new Nm(e,o,a),u=new Am(s);Tm.install(u);var c=new Sc(new kc,r,n.i18nFormat),l=new Sl({genDebugInfo:!0===n.debug,defaultEncapsulation:t.ViewEncapsulation.Emulated,logBindingUpdate:!1,useJit:!1}),p=new up({get:function(t){return e.loadResource(t)}},i,c,l),d=new Xs(new Bs),h=new Lh,f=new ko,m=new gl(d,h,c,f,[]),v=new oh(new Zd(u),new dp(u),new Jd(u),a,h,p,u);return{compiler:new Em(e,v,m,new yf(i),new em(l,h),new Bd(l,d,h,f),new dh,new Sh(e),a,n.locale,n.i18nFormat,new Jl(h),s),reflector:u}},e.AotCompiler=Em,e.analyzeNgModules=pi,e.analyzeAndValidateNgModules=di,e.extractProgramSymbols=fi,e.StaticReflector=Am,e.StaticAndDynamicReflectionCapabilities=Tm,e.StaticSymbol=Ki,e.StaticSymbolCache=Xi,e.ResolvedStaticSymbol=jm,e.StaticSymbolResolver=Nm,e.AotSummaryResolver=Lm,e.SummaryResolver=eh,e.JitCompiler=Km,e.COMPILER_PROVIDERS=iv,e.JitCompilerFactory=ov,e.platformCoreDynamic=av,e.createUrlResolverWithoutPackagePrefix=function(){return new rp},e.createOfflineCompileUrlResolver=Rt,e.DEFAULT_PACKAGE_URL_PROVIDER=np,e.UrlResolver=rp,e.getUrlScheme=jt,e.ResourceLoader=$l,e.DirectiveResolver=dp,e.PipeResolver=Jd,e.NgModuleResolver=Zd,e.DEFAULT_INTERPOLATION_CONFIG=ls,e.InterpolationConfig=cs,e.ElementSchemaRegistry=Uc,e.Extractor=$m,e.I18NHtmlParser=Sc,e.MessageBundle=Qm,e.Serializer=Xu,e.Xliff=ac,e.Xmb=pc,e.Xtb=vc,e.DirectiveNormalizer=up,e.TokenType=zs,e.Lexer=Bs,e.Token=Hs,e.EOF=qs,e.isIdentifier=U,e.isQuote=W,e.SplitInterpolation=Zs,e.TemplateBindingParseResult=Ks,e.Parser=Xs,e._ParseAST=Js,e.ERROR_COLLECTOR_TOKEN=ih,e.CompileMetadataResolver=oh,e.componentModuleUrl=Bn,e.ParseTreeResult=bu,e.TreeError=_u,e.HtmlParser=kc,e.NgModuleCompiler=dh,e.DirectiveWrapperCompiler=Bd,e.ImportResolver=sv,e.debugOutputAstAsTypeScript=Zn,e.TypeScriptEmitter=Sh,e.ParseLocation=$s,e.ParseSourceFile=eu,e.ParseSourceSpan=tu,e.ParseErrorLevel=nu,e.ParseError=ru,e.DomElementSchemaRegistry=Lh,e.CssSelector=Zo,e.SelectorMatcher=Ko,e.SelectorListContext=Xo,e.SelectorContext=Jo,e.StylesCompileDependency=ff,e.StylesCompileResult=mf,e.CompiledStylesheet=vf,e.StyleCompiler=yf,e.TemplateParseError=vl,e.TemplateParseResult=yl,e.TemplateParser=gl,e.splitClasses=mt,e.createElementCssSelector=vt,e.removeSummaryDuplicates=gt,e.ViewCompiler=em,e.AnimationParser=Jl,e.SyntaxError=oa}),function(i,o){"object"==typeof n&&void 0!==r?o(n,t("@angular/compiler"),t("@angular/core"),t("@angular/platform-browser")):e.registerDynamic("d",["b","c","e"],!1,function(e,t,n){return"function"==typeof o?o.call(t,t,e("b"),e("c"),e("e")):o})}(0,function(e,t,n,r){"use strict";var i,o=r.__platform_browser_private__.INTERNAL_BROWSER_PLATFORM_PROVIDERS,a=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},s=function(e){function t(){e.apply(this,arguments)}return a(t,e),t.prototype.get=function(e){var t,n,r=new Promise(function(e,r){t=e,n=r}),i=new XMLHttpRequest;return i.open("GET",e,!0),i.responseType="text",i.onload=function(){var r=i.response||i.responseText,o=1223===i.status?204:i.status;0===o&&(o=r?200:0),200<=o&&o<=300?t(r):n("Failed to load "+e)},i.onerror=function(){n("Failed to load "+e)},i.send(),r},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[]},t}(t.ResourceLoader),u=[o,{provide:n.COMPILER_OPTIONS,useValue:{providers:[{provide:t.ResourceLoader,useClass:s}]},multi:!0}],c=i="undefined"==typeof window?"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:global:window;c.assert=function(e){};var l=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},p=function(e){function t(){if(e.call(this),this._cache=c.$templateCache,null==this._cache)throw new Error("CachedResourceLoader: Template cache was not found in $templateCache.")}return l(t,e),t.prototype.get=function(e){return this._cache.hasOwnProperty(e)?Promise.resolve(this._cache[e]):Promise.reject("CachedResourceLoader: Did not find cached template for "+e)},t}(t.ResourceLoader),d={INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS:u,ResourceLoaderImpl:s},h=new n.Version("2.4.10"),f=[{provide:t.ResourceLoader,useClass:p}],m=n.createPlatformFactory(t.platformCoreDynamic,"browserDynamic",u);e.RESOURCE_CACHE_PROVIDER=f,e.platformBrowserDynamic=m,e.VERSION=h,e.__platform_browser_dynamic_private__=d}),e.register("f",[],function(e,t){"use strict";var n;return{setters:[],execute:function(){e("__useDefault",n='@font-face{font-family:\'Calibri\';src:local("Calibri"),url("https://www.iizi.lv/fonts/calibri/Calibri.eot?#iefix") format("embedded-opentype"),url("https://www.iizi.lv/fonts/calibri/Calibri.woff") format("woff"),url("https://www.iizi.lv/fonts/calibri/Calibri.ttf") format("truetype"),url("https://www.iizi.lv/fonts/calibri/Calibri.svg#Calibri") format("svg");font-weight:normal;font-style:normal}.iizi-calc-v3{font-family:\'Calibri\';font-size:14px;color:#55595b;max-width:1200px}.iizi-calc-v3 *{box-sizing:border-box}.iizi-calc-v3 .pink-text{color:#e32585}.iizi-calc-v3 .row{float:none;display:block;overflow:visible;clear:both}.iizi-calc-v3 .row.h-pad{padding:0 3px}.iizi-calc-v3 .row.pad-btm{padding-bottom:5px}.iizi-calc-v3 .cl-12-large,.iizi-calc-v3 .cl-11-large,.iizi-calc-v3 .cl-10-large,.iizi-calc-v3 .cl-9-large,.iizi-calc-v3 .cl-8-large,.iizi-calc-v3 .cl-7-large,.iizi-calc-v3 .cl-6-large,.iizi-calc-v3 .cl-5-large,.iizi-calc-v3 .cl-4-large,.iizi-calc-v3 .cl-3-large,.iizi-calc-v3 .cl-2-large,.iizi-calc-v3 .cl-1-large,.iizi-calc-v3 .cl-12-medium,.iizi-calc-v3 .cl-11-medium,.iizi-calc-v3 .cl-10-medium,.iizi-calc-v3 .cl-9-medium,.iizi-calc-v3 .cl-8-medium,.iizi-calc-v3 .cl-7-medium,.iizi-calc-v3 .cl-6-medium,.iizi-calc-v3 .cl-5-medium,.iizi-calc-v3 .cl-4-medium,.iizi-calc-v3 .cl-3-medium,.iizi-calc-v3 .cl-2-medium,.iizi-calc-v3 .cl-1-medium,.iizi-calc-v3 .cl-12-small,.iizi-calc-v3 .cl-11-small,.iizi-calc-v3 .cl-10-small,.iizi-calc-v3 .cl-9-small,.iizi-calc-v3 .cl-8-small,.iizi-calc-v3 .cl-7-small,.iizi-calc-v3 .cl-6-small,.iizi-calc-v3 .cl-5-small,.iizi-calc-v3 .cl-4-small,.iizi-calc-v3 .cl-3-small,.iizi-calc-v3 .cl-2-small,.iizi-calc-v3 .cl-1-small{float:left;display:block}.iizi-calc-v3 .ch-h-pad>.cl-12-large,.iizi-calc-v3 .ch-h-pad>.cl-11-large,.iizi-calc-v3 .ch-h-pad>.cl-10-large,.iizi-calc-v3 .ch-h-pad>.cl-9-large,.iizi-calc-v3 .ch-h-pad>.cl-8-large,.iizi-calc-v3 .ch-h-pad>.cl-7-large,.iizi-calc-v3 .ch-h-pad>.cl-6-large,.iizi-calc-v3 .ch-h-pad>.cl-5-large,.iizi-calc-v3 .ch-h-pad>.cl-4-large,.iizi-calc-v3 .ch-h-pad>.cl-3-large,.iizi-calc-v3 .ch-h-pad>.cl-2-large,.iizi-calc-v3 .ch-h-pad>.cl-1-large,.iizi-calc-v3 .ch-h-pad>.cl-12-medium,.iizi-calc-v3 .ch-h-pad>.cl-11-medium,.iizi-calc-v3 .ch-h-pad>.cl-10-medium,.iizi-calc-v3 .ch-h-pad>.cl-9-medium,.iizi-calc-v3 .ch-h-pad>.cl-8-medium,.iizi-calc-v3 .ch-h-pad>.cl-7-medium,.iizi-calc-v3 .ch-h-pad>.cl-6-medium,.iizi-calc-v3 .ch-h-pad>.cl-5-medium,.iizi-calc-v3 .ch-h-pad>.cl-4-medium,.iizi-calc-v3 .ch-h-pad>.cl-3-medium,.iizi-calc-v3 .ch-h-pad>.cl-2-medium,.iizi-calc-v3 .ch-h-pad>.cl-1-medium,.iizi-calc-v3 .ch-h-pad>.cl-12-small,.iizi-calc-v3 .ch-h-pad>.cl-11-small,.iizi-calc-v3 .ch-h-pad>.cl-10-small,.iizi-calc-v3 .ch-h-pad>.cl-9-small,.iizi-calc-v3 .ch-h-pad>.cl-8-small,.iizi-calc-v3 .ch-h-pad>.cl-7-small,.iizi-calc-v3 .ch-h-pad>.cl-6-small,.iizi-calc-v3 .ch-h-pad>.cl-5-small,.iizi-calc-v3 .ch-h-pad>.cl-4-small,.iizi-calc-v3 .ch-h-pad>.cl-3-small,.iizi-calc-v3 .ch-h-pad>.cl-2-small,.iizi-calc-v3 .ch-h-pad>.cl-1-small{padding:0 3px}@media screen and (min-width: 0){.iizi-calc-v3 .cl-12-large{width:100%}.iizi-calc-v3 .cl-11-large{width:91.6666666667%}.iizi-calc-v3 .cl-10-large{width:83.3333333333%}.iizi-calc-v3 .cl-9-large{width:75%}.iizi-calc-v3 .cl-8-large{width:66.6666666667%}.iizi-calc-v3 .cl-7-large{width:58.3333333333%}.iizi-calc-v3 .cl-6-large{width:50%}.iizi-calc-v3 .cl-5-large{width:41.6666666667%}.iizi-calc-v3 .cl-4-large{width:33.3333333333%}.iizi-calc-v3 .cl-3-large{width:25%}.iizi-calc-v3 .cl-2-large{width:16.6666666667%}.iizi-calc-v3 .cl-1-large{width:8.3333333333%}}@media screen and (max-width: 720px){.iizi-calc-v3 .cl-12-medium{width:100%}.iizi-calc-v3 .cl-11-medium{width:91.6666666667%}.iizi-calc-v3 .cl-10-medium{width:83.3333333333%}.iizi-calc-v3 .cl-9-medium{width:75%}.iizi-calc-v3 .cl-8-medium{width:66.6666666667%}.iizi-calc-v3 .cl-7-medium{width:58.3333333333%}.iizi-calc-v3 .cl-6-medium{width:50%}.iizi-calc-v3 .cl-5-medium{width:41.6666666667%}.iizi-calc-v3 .cl-4-medium{width:33.3333333333%}.iizi-calc-v3 .cl-3-medium{width:25%}.iizi-calc-v3 .cl-2-medium{width:16.6666666667%}.iizi-calc-v3 .cl-1-medium{width:8.3333333333%}}@media screen and (max-width: 480px){.iizi-calc-v3 .cl-12-small{width:100%}.iizi-calc-v3 .cl-11-small{width:91.6666666667%}.iizi-calc-v3 .cl-10-small{width:83.3333333333%}.iizi-calc-v3 .cl-9-small{width:75%}.iizi-calc-v3 .cl-8-small{width:66.6666666667%}.iizi-calc-v3 .cl-7-small{width:58.3333333333%}.iizi-calc-v3 .cl-6-small{width:50%}.iizi-calc-v3 .cl-5-small{width:41.6666666667%}.iizi-calc-v3 .cl-4-small{width:33.3333333333%}.iizi-calc-v3 .cl-3-small{width:25%}.iizi-calc-v3 .cl-2-small{width:16.6666666667%}.iizi-calc-v3 .cl-1-small{width:8.3333333333%}}.iizi-calc-v3 h4.step-title{font-size:15px;font-weight:700;text-transform:uppercase;margin-top:6px;margin-bottom:20px}.iizi-calc-v3 a{text-decoration:none}.iizi-calc-v3 a:hover{text-decoration:underline}.iizi-calc-v3 button{border:1px solid transparent;border-radius:3px;cursor:pointer;font-weight:700;min-width:90px;padding:10px;text-transform:uppercase;background-color:#e32585;color:white;width:100%;max-width:90px}.iizi-calc-v3 button[disabled]{background-color:#ccc}.iizi-calc-v3 input[type="text"],.iizi-calc-v3 input[type="password"],.iizi-calc-v3 select,.iizi-calc-v3 textarea{background-color:white;border:1px solid #ccc;border-radius:3px;box-shadow:0 1px 1px rgba(0,0,0,0.1) inset;box-sizing:border-box;height:40px;padding:0 0 0 10px;width:100%;cursor:text;font-size:14px;color:inherit}.iizi-calc-v3 input[type="text"]:focus,.iizi-calc-v3 input[type="password"]:focus,.iizi-calc-v3 select:focus,.iizi-calc-v3 textarea:focus{border:1px solid #66afe9;outline:0 none}.iizi-calc-v3 input[type="text"],.iizi-calc-v3 input[type="password"],.iizi-calc-v3 select,.iizi-calc-v3 textarea,.iizi-calc-v3 button{margin:5px 0}.iizi-calc-v3 .submitAttempted input[type="text"].ng-invalid.ng-untouched,.iizi-calc-v3 .submitAttempted input[type="password"].ng-invalid.ng-untouched,.iizi-calc-v3 .submitAttempted select.ng-invalid.ng-untouched,.iizi-calc-v3 .submitAttempted textarea.ng-invalid.ng-untouched{border:1px solid #e32585}.iizi-calc-v3 input[type="text"].ng-invalid.ng-touched,.iizi-calc-v3 input[type="password"].ng-invalid.ng-touched,.iizi-calc-v3 select.ng-invalid.ng-touched,.iizi-calc-v3 textarea.ng-invalid.ng-touched{border:1px solid #e32585}.iizi-calc-v3 .checkbox-group,.iizi-calc-v3 .radio-checkbox-group{height:22px;display:inline-block;margin-top:14px;margin-bottom:6px}.iizi-calc-v3 .checkbox-group label,.iizi-calc-v3 .radio-checkbox-group label{display:inline-block;cursor:pointer;position:relative;padding-left:25px;margin-right:15px;font-size:13px;line-height:22px}.iizi-calc-v3 .checkbox-group label:before,.iizi-calc-v3 .radio-checkbox-group label:before{content:"";display:inline-block;border-radius:3px;width:20px;height:20px;margin-right:10px;position:absolute;left:0;top:0;border:1px solid #ccc;background-color:white;font-weight:bold}.iizi-calc-v3 .checkbox-group input[type=checkbox],.iizi-calc-v3 .checkbox-group input[type=radio],.iizi-calc-v3 .radio-checkbox-group input[type=checkbox],.iizi-calc-v3 .radio-checkbox-group input[type=radio]{display:none}.iizi-calc-v3 .checkbox-group input[type=checkbox]:checked+label:before,.iizi-calc-v3 .checkbox-group input[type=radio].radioChecked+label:before,.iizi-calc-v3 .radio-checkbox-group input[type=checkbox]:checked+label:before,.iizi-calc-v3 .radio-checkbox-group input[type=radio].radioChecked+label:before{content:"\\2714";font-size:20px;color:#1379bc;text-align:center}.iizi-calc-v3 .field-title{font-size:15px;font-weight:400;line-height:24px}.iizi-calc-v3 .trav-tooltip:before{height:24px;width:24px;border-radius:24px;line-height:24px;background-color:white;border:1px solid #ccc;color:#8c9195;cursor:pointer;display:inline-block;text-align:center;content:\'?\'}.iizi-calc-v3 .trav-tooltip,.iizi-calc-v3 .header-tooltip{position:relative}.iizi-calc-v3 .trav-tooltip span,.iizi-calc-v3 .header-tooltip span{display:none;border:1px solid #ccc;box-shadow:5px 5px 5px #ccc;border-radius:3px;padding:10px;position:absolute;background-color:white;bottom:100%;min-width:250px;left:-50px;margin-bottom:15px;z-index:1}.iizi-calc-v3 .trav-tooltip span:before,.iizi-calc-v3 .trav-tooltip span:after,.iizi-calc-v3 .header-tooltip span:before,.iizi-calc-v3 .header-tooltip span:after{width:0;height:0;border-left:10px solid transparent;border-right:10px solid transparent;content:"";position:absolute;left:52px}.iizi-calc-v3 .trav-tooltip span:before,.iizi-calc-v3 .header-tooltip span:before{border-top:10px solid #ccc;bottom:-10px}.iizi-calc-v3 .trav-tooltip span:after,.iizi-calc-v3 .header-tooltip span:after{border-top:10px solid white;bottom:-9px}.iizi-calc-v3 .trav-tooltip:hover span{display:inline-block}.iizi-calc-v3 .error-msg{display:inline-block;border:1px solid #e32585;background-color:#f1cadf;color:#e32585;width:100%;border-radius:3px;padding:10px;margin-top:5px}.iizi-calc-v3 input[type="text"],.iizi-calc-v3 input[type="password"],.iizi-calc-v3 select,.iizi-calc-v3 textarea,.iizi-calc-v3 .error-msg{max-width:400px}.iizi-calc-v3 .long-error{max-width:100%;text-align:center}.iizi-calc-v3 .max-width{max-width:none;width:100%}.iizi-calc-v3 .auto-width{width:initial;max-width:none}.iizi-calc-v3 .status{float:left;border:1px solid #005b92;border-right:none;background:#0077be;height:90px;padding:21px 30px;text-align:center;border-radius:3px 0 0 3px;vertical-align:top;box-sizing:border-box}.iizi-calc-v3 .status.not-ok{border:1px solid #ebb4d1;border-right:none;background:#fee4f2}.iizi-calc-v3 .status:before{content:"\\02713";border:2px solid white;color:white;border-radius:42px;display:block;font-size:30px;height:42px;line-height:37px;margin:auto;text-align:center;width:42px}.iizi-calc-v3 .status.not-ok:before{content:"\\02A2F";border:2px solid #e32585;color:#e32585;font-size:42px}.iizi-calc-v3 .content{padding:0px 20px 0px 20px;border-radius:0 3px 3px;border:1px solid #ccc;background:#FFF;display:block;box-sizing:border-box;overflow:hidden}@media screen and (max-width: 720px){.iizi-calc-v3 .status{border-radius:3px 3px 0 0;border-right:1px solid #005b92;border-bottom:none}.iizi-calc-v3 .status.not-ok{border-right:1px solid #ebb4d1}.iizi-calc-v3 .content{border-radius:0 0 3px 3px}}.ll-skin-latoja{font-size:90%}.ll-skin-latoja .ui-widget{font-family:"Helvetica Neue","Trebuchet MS",Tahoma,Verdana,Arial,sans-serif;background:#fff}.ll-skin-latoja .ui-datepicker{padding:0}.ll-skin-latoja .ui-datepicker-header{border:none;font-size:80%;border-radius:4px 4px 0 0;background-clip:padding-box;background-color:#e0e8ec;box-shadow:0 1px 0 rgba(255,255,255,0.53),inset 0 -1px 0 rgba(0,0,0,0.12);background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEwMCAxMDAiIHByZXNlcnZlQXNwZWN0UmF0aW89Im5vbmUiPjxsaW5lYXJHcmFkaWVudCBpZD0iaGF0MCIgZ3JhZGllbnRVbml0cz0ib2JqZWN0Qm91bmRpbmdCb3giIHgxPSI1MCUiIHkxPSIxMDAlIiB4Mj0iNTAlIiB5Mj0iLTEuNDIxMDg1NDcxNTIwMmUtMTQlIj4KPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzAwMCIgc3RvcC1vcGFjaXR5PSIwLjIxIi8+CjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iI2ZmZiIgc3RvcC1vcGFjaXR5PSIwLjIxIi8+CiAgIDwvbGluZWFyR3JhZGllbnQ+Cgo8cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgZmlsbD0idXJsKCNoYXQwKSIgLz4KPC9zdmc+);background-image:linear-gradient(bottom, rgba(0,0,0,0.21) 0%, rgba(255,255,255,0.21) 100%);padding:5px}.ll-skin-latoja .ui-datepicker-title{color:#515d65;font-size:13px;font-weight:bold;text-shadow:0 1px 1px rgba(255,255,255,0.8)}.ll-skin-latoja .ui-datepicker .ui-datepicker-prev,.ll-skin-latoja .ui-datepicker .ui-datepicker-next{display:none}.ll-skin-latoja .ui-state-default{background:transparent;border:none;color:#2b2b2b;font-family:"Myriad Pro";font-weight:normal;text-align:center}.ll-skin-latoja .ui-datepicker-header .birth-date-title{padding:5px;text-align:center}.ll-skin-latoja .ui-datepicker-header .ui-state-hover{background:#bdc5c9}.ll-skin-latoja .ui-datepicker table{margin:0}.ll-skin-latoja .ui-datepicker th{color:#9da7af;font-size:12px;font-weight:normal;border-radius:216px 0 0 0 / 0 0 0 0;background-clip:padding-box;background-color:rgba(0,0,0,0.08)}.ll-skin-latoja .ui-datepicker td{border-top:1px solid #ddd;border-right:1px solid #ddd;padding:0;box-shadow:inset 0 1px 0 rgba(255,255,255,0.4);background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEwMCAxMDAiIHByZXNlcnZlQXNwZWN0UmF0aW89Im5vbmUiPjxsaW5lYXJHcmFkaWVudCBpZD0iaGF0MCIgZ3JhZGllbnRVbml0cz0ib2JqZWN0Qm91bmRpbmdCb3giIHgxPSI1MCUiIHkxPSIxMDAlIiB4Mj0iNTAlIiB5Mj0iLTEuNDIxMDg1NDcxNTIwMmUtMTQlIj4KPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzAwMCIgc3RvcC1vcGFjaXR5PSIwLjA2Ii8+CjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iI2ZmZiIgc3RvcC1vcGFjaXR5PSIwLjA2Ii8+CiAgIDwvbGluZWFyR3JhZGllbnQ+Cgo8cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgZmlsbD0idXJsKCNoYXQwKSIgLz4KPC9zdmc+);background-image:linear-gradient(bottom, rgba(0,0,0,0.06) 0%, rgba(255,255,255,0.06) 100%)}.ll-skin-latoja .ui-datepicker td:last-child{border-right:none}.ll-skin-latoja .ui-datepicker tbody td a{width:25px;display:inline-block;padding:5px 0}.ll-skin-latoja .ui-datepicker td span,.ll-skin-latoja .ui-datepicker td a{padding:.7em 0;color:#6a747a;font-size:12px;font-weight:bold;font-family:Arial}.ll-skin-latoja td a.ui-state-active,.ll-skin-latoja td a.ui-state-active.ui-state-hover{color:#fff;background-color:#8ab8ed;text-shadow:0 1px 0 rgba(0,0,0,0.26);box-shadow:inset 0 4px 9px rgba(0,0,0,0.24)}\n'),e("__useDefault",n),e("default",n)}}}),e.register("10",[],function(e,t){"use strict";var n;return{setters:[],execute:function(){e("__useDefault",n='<div class="rootComponent">\r\n    \x3c!--<div class="row">\r\n       <ul>\r\n           <li><a [routerLink] = "\'celojuma-dati\'">step 1</a></li>\r\n           <li><a [routerLink] = "\'celojuma-apdrosinasanas-cenas\'">step 2</a></li>\r\n           <li><a [routerLink] = "\'celojuma-apdrosinasanas-iegades-apstiprinajums\'">step 2</a></li>\r\n       </ul> \r\n    </div>--\x3e\r\n    <div class="row header-cmp h-pad">\r\n    </div>\r\n    <div class="row h-pad">\r\n        <router-outlet (stepEvent)="stepEventHandler($event)"></router-outlet>\r\n    </div>\r\n    <div class="row h-pad"></div>    \r\n</div>'),e("__useDefault",n),e("default",n)}}}),e.register("11",[],function(e,t){"use strict";var n;return{setters:[],execute:function(){e("__useDefault",n=""),e("__useDefault",n),e("default",n)}}}),e.registerDynamic("12",["c","13","14","15","f","10","11"],!0,function(e,t,n){"use strict";this||self;var r=t&&t.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=t&&t.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var o=e("c"),a=e("13"),s=e("14"),u=e("15"),c=function(){function t(e,t,n,r){this._translate=t,this._windowContainer=n,this._eventBus=r,this._lg=e.new("RootComponent"),t.setDefaultLang("lv"),t.use("lv"),this.includeGlobalCss()}return t.prototype.includeGlobalCss=function(){var t=this._windowContainer.window.document,n=t.createElement("style");n.appendChild(t.createTextNode(e("f"))),t.head.insertBefore(n,t.head.firstChild)},t=r([o.Component({selector:".iizi-calc-v3",template:e("10"),styles:[e("11")]}),i("design:paramtypes",[s.LoggerService,a.TranslateService,u.WindowContainer,s.EventBusService])],t)}();t.RootComponent=c}),e.register("16",[],function(e,t){"use strict";var n;return{setters:[],execute:function(){e("__useDefault",n='<div class="headerComponent">\r\n    <div class="row titles">\r\n        <h1>{{__(\'title\')}}</h1>\r\n        <span [hidden]="!showLangSwitcher" class="switch"><a [ngClass]="{selected:selectedLang(\'lv\')}" (click)="languageChange(\'lv\')">lv</a> | <a [ngClass]="{selected:selectedLang(\'ru\')}" (click)="languageChange(\'ru\')">ru</a></span>\r\n        <div class="row subtitle">{{__(\'subtitle\')}}</div>\r\n    </div>\r\n    <div class="row steps">\r\n        <div *ngFor="let headerStep of headerSteps" class="cl-{{columnWidth}}-large step" [ngClass]="{active: headerStep.active, completed: headerStep.completed, next: headerStep.next}" >\r\n            <span *ngIf="!headerStep.completed">{{headerStep.id}}</span>\r\n            <span *ngIf="headerStep.completed">&#10004;</span>\r\n        </div>\r\n    </div>\r\n</div>'),e("__useDefault",n),e("default",n)}}}),e.register("17",[],function(e,t){"use strict";var n;return{setters:[],execute:function(){e("__useDefault",n=".headerComponent{padding-bottom:30px}.headerComponent .titles h1{font-size:32px;font-weight:400;margin-bottom:12px;text-transform:uppercase}.headerComponent .titles .switch{float:right}.headerComponent .titles .switch a{cursor:pointer;color:#55595b}.headerComponent .titles .switch a.selected{color:#0077be}.headerComponent .steps{height:40px;padding-top:29px}.headerComponent .steps .step{height:6px;background:#8c9195;overflow:visible}.headerComponent .steps .step span{border-radius:26px;display:block;margin:0 auto;height:26px;width:26px;background:#8c9195;text-align:center;line-height:26px;color:white;margin-top:-11px}.headerComponent .steps .step span:hover{background:#55595b}.headerComponent .steps .step:first-child{border-top-left-radius:6px;border-bottom-left-radius:6px}.headerComponent .steps .step:last-child{border-top-right-radius:6px;border-bottom-right-radius:6px}.headerComponent .steps .step.active span,.headerComponent .steps .step.completed span{background:#e32585}\n"),e("__useDefault",n),e("default",n)}}}),e.registerDynamic("18",["c","13","19","14","16","17"],!0,function(e,t,n){"use strict";this||self;var r=t&&t.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=t&&t.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var o=e("c"),a=e("13"),s=e("19"),u=e("14"),c=function(){function t(e,t,n,r){var i=this;this._ga=t,this._eventBus=n,this._ts=r,this._lg=e.new("HeaderComponent"),s.StaticConfig.lang?(this._ts.use(s.StaticConfig.lang),this.showLangSwitcher=!1):(this._ts.use("lv"),this.showLangSwitcher=!0),this._activeStepSubscription=n.calcStepEmmiter.subscribe(function(e){i._ga.trackEvent("Go to step "+e.step,e.step),i.stepEventHandler(e)}),this.headerSteps=new Array;var o=0;for(this.columnWidth=3;o<4;)o++,this.headerSteps.push({id:o,next:!1,active:!1,completed:!1})}return t.prototype.stepEventHandler=function(e){this.stepTitle=e.title,this.headerSteps.forEach(function(t){t.completed=t.id<e.step,t.active=t.id===e.step,t.next=t.id===e.step+1})},t.prototype.languageChange=function(e){this._ts.use(e)},t.prototype.selectedLang=function(e){return e===this._ts.currentLang},t.prototype.__=function(e,t){return this._ts.instant("headerComponent."+e,t)},t=r([o.Component({selector:".header-cmp",template:e("16"),styles:[e("17")]}),i("design:paramtypes",[u.LoggerService,u.GoogleAnalyticsService,u.EventBusService,a.TranslateService])],t)}();t.HeaderComponent=c}),e.registerDynamic("1a",["c","1b"],!0,function(e,t,n){"use strict";this||self;var r=t&&t.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=t&&t.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0});var o=e("c"),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.transform=function(t){return e.prototype.transform.call(this,t,"€")},t=i([o.Pipe({name:"euroPipe"})],t)}(e("1b").CurrencyPipe);t.EuroPipe=a}),e.registerDynamic("1c",["1a"],!0,function(e,t,n){"use strict";this||self;Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(e("1a"))}),e.registerDynamic("1d",["c","1c"],!0,function(e,t,n){"use strict";this||self;var r=t&&t.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0});var i=e("c"),o=e("1c"),a=function(){function e(){}return t=e,e.forRoot=function(){return{ngModule:t}},e=t=r([i.NgModule({imports:[],declarations:[o.EuroPipe],exports:[o.EuroPipe]})],e);var t}();t.SharedModule=a}),e.register("1e",[],function(e,t){"use strict";var n;return{setters:[],execute:function(){e("__useDefault",n='<div class="date-picker-container">\r\n    <div class="row">\r\n        <table>\r\n            <thead>\r\n                <tr class="controls">\r\n                    <td colspan="7">\r\n                        <button class="auto-width" (click)="prevMonth()">&lt; {{prevMonthName}}</button>\r\n                    </td>\r\n                    <td colspan="7">\r\n                        <button class="auto-width" (click)="nextMonth()">{{nextMonthName}} &gt;</button>\r\n                    </td>\r\n                </tr>\r\n                <tr class="month-year">\r\n                    <td colspan="14">{{month}} {{year}}</td>\r\n                </tr>\r\n            </thead>\r\n            <tbody>\r\n                <tr *ngFor="let week of monthToDisplay">\r\n                    <td colspan="2" *ngFor="let day of week">\r\n                        <div  (click)="setDate(day)" [ngClass]="{notActiveMonth: day.notActiveMonth, disabled: day.disabled,  selected: day.selected}">\r\n                            {{day.monthDay}}\r\n                        </div>\r\n                    </td>\r\n                </tr>\r\n            </tbody>\r\n        </table>\r\n    </div>\r\n    \r\n</div>'),e("__useDefault",n),e("default",n)}}}),e.register("1f",[],function(e,t){"use strict";var n;return{setters:[],execute:function(){e("__useDefault",n=".date-picker-container{position:absolute;background:white;padding:3px;border:1px solid #8c9195;width:200px;z-index:20000}.date-picker-container table{width:100%}.date-picker-container table thead tr.controls td button{padding:2px;font-weight:initial;text-transform:initial;max-width:initial;text-align:center}.date-picker-container table thead tr.controls td:first-child{text-align:left}.date-picker-container table thead tr.controls td:last-child{text-align:right}.date-picker-container table thead tr.month-year td{text-align:center}.date-picker-container table tbody td div{margin:auto;border:1px solid #8c9195;padding:2px;text-align:center;cursor:pointer}.date-picker-container table tbody td div.notActiveMonth{color:#8c9195}.date-picker-container table tbody td div.disabled{cursor:not-allowed;color:#eee}.date-picker-container table tbody td div.selected{border:1px solid #e32585;color:#e32585;font-weight:bold}\n"),e("__useDefault",n),e("default",n)}}}),e.registerDynamic("20",["c","21","1e","1f"],!0,function(e,t,n){"use strict";this||self;var r=t&&t.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=t&&t.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var o=e("c"),a=e("21"),s=function(){function t(){this.hideMe=new o.EventEmitter,this.dateChange=new o.EventEmitter,this._date=a()}return t.prototype.ngOnChanges=function(e){this.currentMonth()},Object.defineProperty(t.prototype,"format",{set:function(e){this._dateFormat=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"date",{set:function(e){e?(this._date=a(e,this._dateFormat),this._selectedDate=!0):(this._date=a(),this._selectedDate=!1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minDate",{set:function(e){this._minDate=a(e,this._dateFormat)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxDate",{set:function(e){this._maxDate=a(e,this._dateFormat)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"year",{get:function(){return this._displayDate.format("YYYY")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"month",{get:function(){return this._displayDate.format("MMMM")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"prevMonthName",{get:function(){return a(this._displayDate).add(-1,"month").format("MMMM")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"nextMonthName",{get:function(){return a(this._displayDate).add(1,"month").format("MMMM")},enumerable:!0,configurable:!0}),t.prototype.setDate=function(e){e.disabled||(this._date=a(e.date,this._dateFormat),this.currentMonth(),this.hideMe.emit(!0),this.dateChange.emit(e.date))},t.prototype.currentMonth=function(){this.produceMonth(),this._displayDate=a(this._date)},t.prototype.nextMonth=function(){this._displayDate.add(1,"month"),this.produceMonth()},t.prototype.prevMonth=function(){this._displayDate.add(-1,"month"),this.produceMonth()},t.prototype.produceMonth=function(){this._date<this._minDate&&(this._date=this._minDate),this._displayDate||(this._displayDate=a(this._date));var e=a(this._displayDate).startOf("month"),t=a(this._displayDate).endOf("month");this.monthToDisplay=new Array;for(var n=e.isoWeekday(),r=t.isoWeekday(),i=n>1?a(e).add(-1*(n-1),"days"):a(e),o=r<7?a(t).add(7-r,"days"):a(t),s=a(i),u=this.makeWeek();s.toDate()<o.toDate();){var c=s.isoWeekday();u[c-1]={disabled:this.checkDateForDisabled(s),notActiveMonth:this.checkDateForNotActiveMonth(s,e,t),selected:s.format("YYYY-MM-DD")===this._date.format("YYYY-MM-DD")&&this._selectedDate,monthDay:s.format("D"),date:s.format(this._dateFormat)},c>=7&&(this.monthToDisplay.push(u),u=this.makeWeek()),s.add(1,"day")}},t.prototype.checkDateForNotActiveMonth=function(e,t,n){return e.toDate()<t.toDate()||e.toDate()>n.toDate()},t.prototype.checkDateForDisabled=function(e){return this._minDate&&e.toDate()<this._minDate.toDate()||this._maxDate&&e.toDate()>this._maxDate.toDate()},t.prototype.makeWeek=function(){return[,,,,,,]},r([o.Output(),i("design:type",Object)],t.prototype,"hideMe",void 0),r([o.Output(),i("design:type",Object)],t.prototype,"dateChange",void 0),r([o.Input(),i("design:type",String),i("design:paramtypes",[String])],t.prototype,"format",null),r([o.Input(),i("design:type",String),i("design:paramtypes",[String])],t.prototype,"date",null),r([o.Input(),i("design:type",String),i("design:paramtypes",[String])],t.prototype,"minDate",null),r([o.Input(),i("design:type",String),i("design:paramtypes",[String])],t.prototype,"maxDate",null),t=r([o.Component({selector:".date-picker",template:e("1e"),styles:[e("1f")]}),i("design:paramtypes",[])],t)}();t.DatepickerComponent=s}),e.registerDynamic("22",["20"],!0,function(e,t,n){"use strict";this||self;Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(e("20"))}),e.registerDynamic("23",["24","25"],!0,function(e,t,n){"use strict";this||self;Object.defineProperty(t,"__esModule",{value:!0});var r=e("24"),i=e("25");t.tripInsuranceRoutes=[{path:"",pathMatch:"full",redirectTo:"celojuma-dati"},{path:"celojuma-dati",component:i.InsuranceDataComponent},{path:"celojuma-apdrosinasanas-cenas",component:i.InsuranceCalculationComponent},{path:"celojuma-apdrosinasanas-iegades-apstiprinajums",component:i.InsuranceBuyerDataComponent},{path:"ipasas-apdrosinasanas-iegades-apstiprinajums",component:i.SpecialInsuranceDataComponent},{path:"celojuma-apdrosinasanas-apmaksa/:partnerPaymentId",component:i.PaymentPageComponent},{path:"maksajuma-parbaude/:partnerPaymentId",component:i.PaymentVerificationComponent}],t.tripInsuranceRouting=r.RouterModule.forChild(t.tripInsuranceRoutes)}),e.register("26",[],function(e,t){"use strict";var n;return{setters:[],execute:function(){e("__useDefault",n='<div class="insuranceDataComponent" [ngClass]="{submitAttempted:submitAttempted}">\r\n    \x3c!--<pre>{{diag}}</pre>--\x3e\r\n    <div class="row">\r\n            <h4 class="step-title">{{__(\'insurance-data\')}}</h4>\r\n    </div>\r\n    <form #form="ngForm" novalidate>\r\n    <div class="row ch-h-pad trip-destination-and-time">\r\n        <div class="cl-6-large cl-12-medium">\r\n                <div class="cl-12-large teritory-info-group">\r\n                    <div class="row pad-btm">\r\n                        <span class="field-title">{{__(\'territory\')}}</span>\r\n                        <span class="trav-tooltip">\r\n                            <span>{{__(\'territory-tooltip\')}}</span>\r\n                        </span>\r\n                    </div>\r\n                    <div class="row">\r\n                        <select name="coverageTerritory"\r\n                        id="coverageTerritory"\r\n                        required\r\n                        [(ngModel)]="insuranceDataModel.cover.territory">\r\n                            <option *ngFor="let territory of territories" [value]="territory.id">{{__(territory.name)}}</option>\r\n                        </select>\r\n                        <button (click)="toggleShowTerritoryDescription()">{{__(\'territory-info\')}}</button>\r\n                    </div>\r\n                </div>\r\n                <div class="row" *ngIf="validateField(form.controls.coverageTerritory)">\r\n                    <span class="error-msg territory-error">\r\n                        {{__(\'check-territory\')}}\r\n                    </span>\r\n                </div>\r\n            </div>\r\n            <div class="cl-6-large cl-12-medium">\r\n                <div class="cl-8-large">\r\n                    <div class="row">\r\n                        <div class="row pad-btm">\r\n                            <span class="field-title">\r\n                                {{__(\'trip-duration\')}}\r\n                            </span>\r\n                            <span class="trav-tooltip">\r\n                                <span>{{__(\'trip-duration-tooltip\')}}</span>\r\n                            </span>\r\n                        </div>\r\n                        <div class="row start-date">\r\n                            <input type="text"\r\n                                placeholder="start-date-value"\r\n                                name="startDate"\r\n                                id="startDate"\r\n                                readonly="readonly"\r\n                                required\r\n                                [(ngModel)]="insuranceDataModel.startDate"\r\n                                (click)="hideAllDatepickers(); datepicker1Hide = !datepicker1Hide">\r\n                            <div *ngIf="!datepicker1Hide" class="date-picker"\r\n                                [(date)]="insuranceDataModel.startDate"\r\n                                [format]="dateFormat"\r\n                                [minDate]="today"\r\n                                (hideMe)="datepicker1Hide = !datepicker1Hide"\r\n                                (dateChange)="clearEndDate()"></div>\r\n                        </div>\r\n                    </div>                   \r\n                    <div class="row">\r\n                        <div class="row"></div>\r\n                        <div class="row"></div>\r\n                        <input type="text"\r\n                            placeholder="DD.MM.YYYY"\r\n                            name="endDate"\r\n                            id="endDate"\r\n                            readonly="readonly"\r\n                            required\r\n                            [(ngModel)]="insuranceDataModel.endDate"\r\n                            [ngClass]="{\'ng-invalid\':tripDuration < 1}"\r\n                            (click)="hideAllDatepickers(); datepicker2Hide = !datepicker2Hide">\r\n                        <div *ngIf="!datepicker2Hide" class="date-picker"\r\n                            [(date)]="insuranceDataModel.endDate"\r\n                            [format]="dateFormat"\r\n                            [minDate]="insuranceDataModel.startDate"\r\n                            (hideMe)="datepicker2Hide = !datepicker2Hide"></div>\r\n                    </div>\r\n                    <div class="row" *ngIf="tripDuration < 1 && form.controls.endDate && (form.controls.endDate.touched || submitAttempted)">\r\n                        <span class="error-msg">{{__(\'check-trip-duration\')}}</span>\r\n                    </div>\r\n                </div>\r\n                <div class="cl-4-large">\r\n                    <div class="row trip-duration-days">\r\n                        <h3>{{tripDuration}} {{__(\'days\')}}</h3>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n    </div>\r\n    <div class="row trip-participants">\r\n        <div class="row">\r\n            <h4 class="step-title">{{__(\'trip-participants\')}}</h4>\r\n        </div>\r\n            <div class="row ch-h-pad traveler" *ngFor="let travelerModel of insuranceDataModel.travelers; let i = index">\r\n                <div class="cl-2-large cl-6-medium cl-12-small">\r\n                    <input type="text"\r\n                            name="name{{i}}"\r\n                            placeholder="{{__(\'placeholder-name\') }}"\r\n                            required\r\n                            [(ngModel)]="travelerModel.name">\r\n                </div>\r\n                <div class="cl-3-large cl-6-medium cl-12-small">\r\n                    <input type="text"\r\n                            name="surname{{i}}"\r\n                            placeholder="{{__(\'placeholder-surname\') }}"\r\n                            required\r\n                            [(ngModel)]="travelerModel.surname">\r\n                </div>\r\n                <div class="cl-3-large cl-6-medium cl-12-small">\r\n                    <input type="text"\r\n                            name="idCode{{i}}"\r\n                            placeholder="{{__(\'placeholder-idCode\') }}"\r\n                            #idCodeField\r\n                            (blur)="onPersonIdFieldBlur(idCodeField, ageField, travelerModel)"\r\n                            required\r\n                            [pattern]="isPersonId"\r\n                            [(ngModel)]="travelerModel.idCode">\r\n                </div>\r\n                <div class="cl-1-large cl-6-medium cl-12-small">\r\n                    <input type="text"\r\n                            name="age{{i}}"\r\n                            #ageField\r\n                            placeholder="{{__(\'placeholder-age\') }}"\r\n                            required\r\n                            pattern="^\\d{1,3}$"\r\n                            [disabled]="travelerModel.ageLocked && travelerModel.idCode && travelerModel.idCode.length > 0"\r\n                            [(ngModel)]="travelerModel.age">\r\n                </div>\r\n                <div class="cl-3-large cl-6-medium cl-12-small">\r\n                    <div class="cl-5-large insurance-chkbx">\r\n                        <span class="radio-checkbox-group" [style.visibility]="ofAge(travelerModel) ? \'visible\' : \'hidden\'">\r\n                            <input type="radio" \r\n                                id="insurance-taker{{i}}" \r\n                                name="insurance-taker{{i}}" \r\n                                [ngClass]="{radioChecked:travelerModel.insuranceTaker}"\r\n                                [checked]="travelerModel.insuranceTaker">\r\n                            <label attr.for="insurance-taker{{i}}" (click)=setSelectedInsuranceTaker(i)>{{__(\'insurance-taker\')}}</label>\r\n                        </span>\r\n                    </div>\r\n                    <div class="cl-7-large">\r\n                        <button class="delete-btn" (click)="removeParticipant(travelerModel)">{{__(\'delete\')}}</button>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        <div class="row">\r\n            <button class="add-more-btn" (click)="addTravelerModel()" [disabled]="!canAddParticipants">{{__(\'add-more\')}}</button>\r\n        </div>        \r\n    </div>\r\n    <div class="row trip-activity">\r\n        <div class="row">\r\n            <h4 class="step-title">{{__(\'trip-activity\')}}</h4>\r\n        </div>\r\n        <div class="row trip-activity-panel cl-12-large">\r\n            <div class="row">\r\n                <span class="checkbox-group">\r\n                    <input type="checkbox" \r\n                        id="winter-sport-cover-chkbx" \r\n                        name="winter-sport-cover" \r\n                        [(ngModel)]="insuranceDataModel.cover.winterSport">\r\n                    <label for="winter-sport-cover-chkbx" (click)="setActivity(\'winter\')">{{__(\'winter-sport\')}}</label>\r\n                    <span class="trav-tooltip">\r\n                        <span>{{__(\'winter-sport-tooltip\')}}</span>\r\n                    </span>\r\n                </span>\r\n            </div>\r\n            <div class="row">\r\n                <span class="checkbox-group">\r\n                    <input type="checkbox" \r\n                        id="active-sport-cover-chkbx" \r\n                        name="active-sport-cover" \r\n                        [(ngModel)]="insuranceDataModel.cover.activeSport">\r\n                    <label for="active-sport-cover-chkbx" (click)="setActivity(\'active\')">{{__(\'active-sport\')}}</label>\r\n                    <span class="trav-tooltip">\r\n                        <span>{{__(\'active-sport-tooltip\')}}</span>\r\n                    </span>\r\n                </span>\r\n            </div>\r\n            <div class="row">\r\n                <span class="checkbox-group">\r\n                    <input type="checkbox" \r\n                        id="no-sport-chkbx" \r\n                        name="no-sport-cover" \r\n                        [(ngModel)]="noActivity">\r\n                    <label for="no-sport-chkbx" (click)="setActivity(\'noActivity\')">{{__(\'no-sport\')}}</label>\r\n                </span>\r\n            </div>\r\n        </div>\r\n    </div>\r\n    <div class="row trip-transportation">\r\n        <div class="row">\r\n            <h4 class="step-title">{{__(\'trip-transportation\')}}</h4>\r\n        </div>        \r\n        <div class="row">\r\n            <div class="vehicle-type" [ngClass]="{selected:vehicleType.selected}" *ngFor="let vehicleType of vehicleTypes" (click)="vehicleType.selected = !vehicleType.selected">\r\n                <div class="inner {{vehicleType.name}}">\r\n                    <h5>{{__(vehicleType.name)}}</h5>\r\n                </div>\r\n            </div>            \r\n        </div>\r\n    </div>\r\n    <div class="row ch-h-pad">\r\n        <div class="row cl-12-large cl-12-medium">\r\n            <div class="row agreement">\r\n                <span class="checkbox-group">\r\n                    <input type="checkbox" id="incountry-chkbx" name="incountry-chkbx" [(ngModel)]="insuranceDataModel.inCountry">\r\n                    <label for="incountry-chkbx">\r\n                        {{__(\'in-country\')}}\r\n                    </label>\r\n                </span>\r\n            </div>\r\n            <div class="row agreement">\r\n                <span class="checkbox-group">\r\n                    <input type="checkbox" id="agreement-chkbx" name="agreement-chkbx" [(ngModel)]="insuranceDataModel.agreement">\r\n                    <label for="agreement-chkbx">\r\n                        {{__(\'agree-to-terms-part1\')}}\r\n                        <a target="_blank" href="https://www.iizi.lv/privatuma-politika">{{__(\'agree-to-terms-link1\')}}</a>\r\n                        {{__(\'agree-to-terms-part2\')}}\r\n                        <a (click)="agreementHide = !agreementHide">{{__(\'agree-to-terms-link2\')}}</a>{{__(\'agree-to-terms-part3\')}}\r\n                    </label>\r\n                </span>\r\n            </div>\r\n            <div class="row" *ngIf="!insuranceDataModel.inCountry && submitAttempted">\r\n                <span class="long-error error-msg">\r\n                    {{__(\'check-in-country-to-process\')}}\r\n                </span>\r\n            </div> \r\n            <div class="row" *ngIf="!insuranceDataModel.agreement && submitAttempted">\r\n                <span class="long-error error-msg">\r\n                    {{__(\'check-agree-to-provide-data\')}}\r\n                </span>\r\n            </div>      \r\n        </div>   \r\n    </div>\r\n    </form>\r\n    <div class="row ch-h-pad confirm">\r\n        <div class="cl-12-large">\r\n            <div class="row iizi-service-description"></div>\r\n            <div class="row confirm-btn">\r\n                <button class="auto-width" [ngClass]="{disabled:!canSubmit}" required (click)="confirm()">{{__(\'confirm\')}}</button>\r\n            </div>    \r\n        </div>        \r\n    </div>\r\n    <div class="territory-description"\r\n        *ngIf="showTerritoryDescription">\r\n        <div class="row container">\r\n            <div class="row close-btn">\r\n                <button (click)="toggleShowTerritoryDescription()">{{__(\'close\')}}</button>\r\n            </div>\r\n            <div class="row content">\r\n                <p class="header-info">{{__(\'header-info\')}}</p>\r\n                <p [innerHTML]="__(\'europe-info\')"></p>\r\n                <p [innerHTML]="__(\'world-wide-info\')"></p>\r\n                <p [innerHTML]="__(\'exception-info\')"></p>\r\n            </div>\r\n        </div>\r\n    </div>\r\n    <div class="row">\r\n        <div *ngIf="!agreementHide" class="iizi-agreement"\r\n            (hideMe)="agreementHide = !agreementHide">\r\n        </div>\r\n    </div>\r\n</div>'),e("__useDefault",n),e("default",n)}}}),e.register("27",[],function(e,t){"use strict";var n;return{setters:[],execute:function(){e("__useDefault",n='.teritory-info-group select,.teritory-info-group label{display:block;float:left}.teritory-info-group select{width:70%}.teritory-info-group button{border-top:1px solid #ccc;border-bottom:1px solid #ccc;border-right:1px solid #ccc;border-left:none;background-color:#eee;margin:5px 0;border-bottom-left-radius:initial;border-top-left-radius:initial;border-bottom-right-radius:3px;border-top-right-radius:3px;height:40px;line-height:38px;text-transform:initial;text-align:center;padding:initial;color:#55595b;font-weight:initial;min-width:initial;width:30%;max-width:initial;max-width:166px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.trip-duration-days{padding-top:80px;padding-left:10px}.trip-duration-days h3{margin:0;font-size:20px;font-weight:bold}.traveler button{float:right}.delete-btn{padding:7px;margin:8px 0px;background-color:#55595b}.add-more-btn{background-color:#1379bc;position:relative;max-width:165px;padding-right:50px}.add-more-btn::after{color:#1379bc;content:"\\271A";background-color:white;height:16px;width:16px;border-radius:16px;overflow:auto;position:absolute;right:10px;line-height:16px}.add-more-btn[ng-reflect-disabled=true]::after{color:#ccc}.add-more-btn[ng-reflect-disabled=true]{cursor:not-allowed}.trip-activity{margin-top:20px}.trip-activity .trip-activity-panel{padding-bottom:20px}.trip-activity .checkbox-group{display:table}.trip-activity .checkbox-group label{display:table-cell;padding-right:5px;max-width:400px;padding-left:40px;margin-right:15px;font-size:15px;line-height:26px;font-weight:bold}.trip-activity .checkbox-group label:before{width:24px;height:24px}.vehicle-type{margin-right:40px;margin-bottom:40px;float:left;overflow:auto;background-color:white;border:2px solid #ccc;cursor:pointer}.vehicle-type .inner{height:180px;width:180px;background-position:center center;background-repeat:no-repeat;padding-top:95px;text-align:center}.vehicle-type .inner h5{display:block;font-size:13px;margin:25px 0px;font-weight:bold}.vehicle-type .inner.bus{background-image:url("https://www.iizi.lv/calc/v3/assets/img/vehicles/bus.png")}.vehicle-type .inner.airplane{background-image:url("https://www.iizi.lv/calc/v3/assets/img/vehicles/airplane.png")}.vehicle-type .inner.car{background-image:url("https://www.iizi.lv/calc/v3/assets/img/vehicles/car.png")}.vehicle-type.selected{border:2px solid #e32585}.confirm{padding-top:20px}.confirm .confirm-btn{padding-top:20px;text-align:right}.confirm .confirm-btn button.disabled{background-color:#ccc}.territory-description{position:absolute;left:0;top:0;right:0;bottom:0;background-color:rgba(255,255,255,0.6)}.territory-description .container{margin:20px auto;max-width:700px;background-color:white;padding:20px;border:1px solid #ccc}.territory-description .container .close-btn{text-align:right}.territory-description .content{border:none}.territory-description .content .header-info{font-size:24px;text-align:center;color:#e32585}.territory-description .content p{padding-bottom:10px}.start-date{padding-bottom:20px}@media screen and (max-width: 480px){.insurance-chkbx{white-space:nowrap}}.territory-error{width:70%}.row.agreement{background-color:#eee;border:1px solid #ccc;border-radius:3px;padding-left:10px;margin-top:10px}.row.agreement .checkbox-group{margin-bottom:8px;margin-top:8px;height:inherit}.row.agreement .checkbox-group a{font-size:13px;color:#e32585;cursor:pointer}\n'),e("__useDefault",n),e("default",n)}}}),e.registerDynamic("28",["c","24","29","13","21","14","19","2a","26","27"],!0,function(e,t,n){"use strict";this||self;var r=t&&t.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=t&&t.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var o=e("c"),a=e("24"),s=e("29"),u=e("13"),c=e("21"),l=e("14"),p=e("19"),d=e("2a"),h=function(){function t(e,t,n,r,i){this._eventBus=e,this._ga=t,this._tripInsuranceService=n,this._ts=r,this._router=i,this._subscriptions=new Array,this.isPersonId=/^(?:32\d{4}|(?:0[1-9]|1[0-9]|2[0-9]|3[0-1])(?:0[1-9]|1[0-2])\d{2})-\d{5}$/,this._oldStylePersonalCode=/^(?:0[1-9]|1[0-9]|2[0-9]|3[0-1])(?:0[1-9]|1[0-2])\d{2}-\d{5}$/,this._oldStylePersonalCodeBirthDateExtract=/^(0[1-9]|1[0-9]|2[0-9]|3[0-1])(0[1-9]|1[0-2])(\d{2})-\d{5}$/,this._ageFieldPutEvent=window.document.createEvent("Event"),this._ageFieldPutEvent.initEvent("input",!0,!0),this._ga.trackPageView("InsuranceDataComponent"),window.scrollTo(0,0),this._eventBus.calcStepEmmiter.emit({step:1,title:"insurance-data"}),this.agreementHide=!0,this.insuranceDataModel=this._tripInsuranceService.insuranceDataModel,this.datepicker1Hide=!0,this.datepicker2Hide=!0,this.dateFormat=p.StaticConfig.dateFormat,this.vehicleTypes=n.vehicleTypes,this.territories=n.territories,this.noActivity=!1,this.idCodeValidationPattern=new RegExp("/^d{6}-d{5}$/")}return t.prototype.ngAfterViewInit=function(){var e=this;this._subscriptions.push(this.insuranceForm.valueChanges.subscribe(function(t){return e.formChangeHandler(t)}))},t.prototype.ngOnDestroy=function(){},Object.defineProperty(t.prototype,"today",{get:function(){return c().format(this.dateFormat)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"canAddParticipants",{get:function(){return this.insuranceDataModel.travelers.length<5},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tripDuration",{get:function(){if(!this.insuranceDataModel.endDate)return 0;var e=c(this.insuranceDataModel.startDate,this.dateFormat);return c(this.insuranceDataModel.endDate,this.dateFormat).diff(e,"days")+1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"canSubmit",{get:function(){return this.insuranceForm.form.valid&&this.tripDuration>0&&this.insuranceDataModel.agreement&&this.insuranceDataModel.inCountry},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"diag",{get:function(){return JSON.stringify(this.insuranceDataModel)},enumerable:!0,configurable:!0}),t.prototype.__=function(e,t){return this._ts.instant("insuranceDataComponent."+e,t)},t.prototype.toggleShowTerritoryDescription=function(){this.showTerritoryDescription=!this.showTerritoryDescription},t.prototype.hideAllDatepickers=function(){this.datepicker1Hide=!0,this.datepicker2Hide=!0},t.prototype.clearEndDate=function(){this.insuranceDataModel.endDate=""},t.prototype.addTravelerModel=function(){this.insuranceDataModel.travelers.push({name:"",surname:"",idCode:"",insuranceTaker:!1})},t.prototype.removeParticipant=function(e){var t=this.insuranceDataModel.travelers.indexOf(e);t<0||(this.insuranceDataModel.travelers.splice(t,1),this.insuranceDataModel.travelers.length>0||this.addTravelerModel())},t.prototype.setSelectedInsuranceTaker=function(e){this.insuranceDataModel.travelers.forEach(function(t,n){var r=n===e;t.insuranceTaker=!!r&&!t.insuranceTaker})},t.prototype.setActivity=function(e){"winter"===e?this.insuranceDataModel.cover.winterSport||(this.insuranceDataModel.cover.activeSport=!1,this.noActivity=!1):"active"===e?this.insuranceDataModel.cover.activeSport||(this.insuranceDataModel.cover.winterSport=!1,this.noActivity=!1):(this.insuranceDataModel.cover.winterSport=!1,this.insuranceDataModel.cover.activeSport=!1)},t.prototype.confirm=function(){if(this.submitAttempted=!0,this.canSubmit){var e=!1,t=!1,n=!1;this.vehicleTypes.forEach(function(r){r.selected&&(1===r.id&&(e=!0),2===r.id&&(t=!0),3===r.id&&(n=!0))});var r=!1;(this.insuranceDataModel.cover.activeSport||this.insuranceDataModel.cover.winterSport||t||n)&&"RUS"!==this.insuranceDataModel.cover.territory&&"BLR"!==this.insuranceDataModel.cover.territory||(r=!0),r||((e||t||n)&&(this.insuranceDataModel.cover.civilLiability=!0),(t||n)&&(this.insuranceDataModel.cover.luggage=600,c().startOf("day").add(8,"days").toDate()<c(this.insuranceDataModel.startDate,p.StaticConfig.dateFormat).toDate()&&(this.insuranceDataModel.cover.journeyInterupt=600)),n&&(this.insuranceDataModel.cover.delayedDeparture=!0)),this._tripInsuranceService.clearOffers(),this._router.navigate(["celojuma-apdrosinasanas-cenas"])}},t.prototype.validateField=function(e){return e&&e.invalid&&(e.touched||this.submitAttempted)},t.prototype.onPersonIdFieldBlur=function(e,t,n){var r=this;if(this.isPersonId.test(e.value)&&!this._oldStylePersonalCode.test(e.value)){var i=function(){setTimeout(function(){jQuery(".ui-datepicker-title").prepend('<div class="birth-date-title">'+r._ts.instant("insuranceDataComponent.please-select-birth-date")+"</div>")},100)};jQuery(t).datepicker({yearRange:"1900:c",changeMonth:!0,changeYear:!0,dateFormat:"yy-mm-dd",minDate:new Date(1900,0,1),onSelect:function(e){t.value=r.calculateAgeFromBirthDate(c(e)),n.birthDate=c(e).format("DD.MM.YYYY"),t.dispatchEvent(r._ageFieldPutEvent)},beforeShow:function(e,t){var n=jQuery(".ui-datepicker").parent();n.hasClass("ll-skin-latoja")||n.addClass("ll-skin-latoja"),i()},onChangeMonthYear:function(e,t,n){i()}}).datepicker("show")}},t.prototype.ofAge=function(e){if(e.age){var t=parseInt(e.age);return NaN!==t&&t>17}return!1},t.prototype.formChangeHandler=function(e){var t=this;this.insuranceDataModel.travelers&&this.insuranceDataModel.travelers.forEach(function(e){e.idCode&&t._oldStylePersonalCode.test(e.idCode)?(e.age=t.makeTravelerAgeFromId(e.idCode),e.birthDate=c(t.makeBirthDateFromId(e.idCode)).format("DD.MM.YYYY"),e.age&&(e.ageLocked=!0)):e.ageLocked=!1})},t.prototype.makeTravelerAgeFromId=function(e){return this.calculateAgeFromBirthDate(c(this.makeBirthDateFromId(e)))},t.prototype.makeBirthDateFromId=function(e){var t=e.match(this._oldStylePersonalCodeBirthDateExtract);if(t.length>3){var n=t[3],r=t[2],i=t[1];return(n="0"===n[0]||2e3+parseInt(n)<=(new Date).getFullYear()?"20"+n:"19"+n)+"-"+r+"-"+i}return""},t.prototype.calculateAgeFromBirthDate=function(e){var t=c().startOf("day").diff(e)/31536e6;return(t=Math.floor(t))>0?Math.floor(t).toString():"0"},r([o.ViewChild("form"),i("design:type",s.NgForm)],t.prototype,"insuranceForm",void 0),t=r([o.Component({template:e("26"),styles:[e("27")]}),i("design:paramtypes",[l.EventBusService,l.GoogleAnalyticsService,d.TripInsuranceService,u.TranslateService,a.Router])],t)}();t.InsuranceDataComponent=h}),e.register("2b",[],function(e,t){"use strict";var n;return{setters:[],execute:function(){e("__useDefault",n='<div class="row ch-h-pad insuranceCalculationComponent">\r\n    \x3c!--<pre>{{diag}}</pre>--\x3e\r\n    <div class="row">\r\n        <h4 class="step-title">{{__(\'insurance-quotes\')}}</h4>\r\n    </div>\r\n    <div class="cl-3-large cl-12-medium left-col">\r\n        <div class="row ch-h-pad">\r\n            <div class="cl-12-large">\r\n                <div class="additional-tab">\r\n                    <div class="row pad-btm">\r\n                        <span class="field-title">\r\n                            {{__(\'medical-cover\')}}\r\n                        </span>\r\n                        <span class="trav-tooltip">\r\n                            <span>{{__(\'medical-cover-tooltip\')}}</span>\r\n                        </span>\r\n                    </div>\r\n                    <div class="row sel-cont">\r\n                        <select name="medicalCover"\r\n                        id="medicalCover"\r\n                        required\r\n                        [(ngModel)]="insuranceDataModel.cover.medical">\r\n                            <option *ngFor="let medicalCover of medicalCovers" [value]="medicalCover">{{medicalCover}} €</option>\r\n                        </select>\r\n                    </div>\r\n                    <div class="row additional-choise">\r\n                        <div class="row">\r\n                            <span class="checkbox-group">\r\n                                <input type="checkbox" id="pregnancy-cover-chkbx" name="pregnancy-cover" [(ngModel)]="insuranceDataModel.cover.pregnancy">\r\n                                <label for="pregnancy-cover-chkbx">{{__(\'pregnancy\')}}</label>\r\n                                <span class="trav-tooltip">\r\n                                    <span>{{__(\'pregnancy-tooltip\')}}</span>\r\n                                </span>\r\n                            </span>\r\n                        </div>\r\n                        <div class="row">\r\n                            <span class="checkbox-group">\r\n                                <input type="checkbox" id="accident-cover-chkbx" name="accident-cover" [(ngModel)]="insuranceDataModel.cover.accident">\r\n                                <label for="accident-cover-chkbx">{{__(\'accident\')}}</label>\r\n                                <span class="trav-tooltip">\r\n                                    <span>{{__(\'accident-tooltip\')}}</span>\r\n                                </span>\r\n                            </span>\r\n                        </div>\r\n                        <div class="row">\r\n                            <span class="checkbox-group">\r\n                                <input type="checkbox" id="civil-liability-cover-chkbx" name="civil-liability-cover" [(ngModel)]="insuranceDataModel.cover.civilLiability">\r\n                                <label for="civil-liability-cover-chkbx">{{__(\'civil-liability\')}}</label>\r\n                                <span class="trav-tooltip">\r\n                                    <span>{{__(\'civil-liability-tooltip\')}}</span>\r\n                                </span>\r\n                            </span>\r\n                        </div>\r\n                        <div class="row">\r\n                            <span class="checkbox-group">\r\n                                <input type="checkbox" id="legal-help-cover-chkbx" name="legal-help-cover" [(ngModel)]="insuranceDataModel.cover.legalHelp">\r\n                                <label for="legal-help-cover-chkbx">{{__(\'legal-help\')}}</label>\r\n                                <span class="trav-tooltip">\r\n                                    <span>{{__(\'legal-help-tooltip\')}}</span>\r\n                                </span>\r\n                            </span>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n            <div class="cl-12-large">\r\n                <div class="row">\r\n                    <span class="additional-title">{{__(\'luggage-title\')}}</span>\r\n                </div>\r\n                <div class="additional-tab">\r\n                    <div class="row pad-btm">\r\n                        <span class="field-title">\r\n                            {{__(\'luggage-cover\')}}\r\n                        </span>\r\n                        <span class="trav-tooltip">\r\n                            <span>{{__(\'luggage-cover-tooltip\')}}</span>\r\n                        </span>\r\n                    </div>\r\n                    <div class="row sel-cont">\r\n                        <select name="luggageCover"\r\n                        id="luggageCover"\r\n                        required\r\n                        #luggage\r\n                        (change)="validateLuggage(luggage.value)"\r\n                        [(ngModel)]="insuranceDataModel.cover.luggage">\r\n                            <option [value]="0">{{__(\'ignore-cover\')}}</option>\r\n                            <option *ngFor="let luggageCover of luggageCovers" [value]="luggageCover">{{luggageCover}} €</option>\r\n                        </select>\r\n                    </div>\r\n                    <div class="row additional-choise">\r\n                        <div class="row">\r\n                            <span class="checkbox-group">\r\n                                <input type="checkbox" \r\n                                    id="winter-equipment-luggage-cover-chkbx"\r\n                                    name="winter-equipment-luggage-cover"\r\n                                    [disabled]="luggageDisabled"\r\n                                    [(ngModel)]="insuranceDataModel.cover.winterEquipmentLuggage">\r\n                                <label for="winter-equipment-luggage-cover-chkbx" [ngClass]="{disabled:luggageDisabled}">{{__(\'winter-equipment-luggage\')}}</label>\r\n                                <span class="trav-tooltip">\r\n                                    <span>{{__(\'winter-equipment-luggage-tooltip\')}}</span>\r\n                                </span>\r\n                            </span>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n            <div class="cl-12-large">\r\n                <div class="row">\r\n                    <span class="additional-title">{{__(\'trip-interrupt-title\')}}</span>\r\n                </div>\r\n                <div class="additional-tab">\r\n                    <div class="row pad-btm">\r\n                        <span class="field-title">\r\n                            {{__(\'trip-interrupt-cover\')}}\r\n                        </span>\r\n                        <span class="trav-tooltip">\r\n                            <span>{{__(\'trip-interrupt-cover-tooltip\')}}</span>\r\n                        </span>\r\n                    </div>\r\n                    <div class="row sel-cont">\r\n                        <select name="tripInterruptCover"\r\n                        id="tripInterruptCover"\r\n                        required\r\n                        #journey\r\n                        (change)="validateTripInterrupt(journey.value)"\r\n                        [(ngModel)]="insuranceDataModel.cover.journeyInterupt">\r\n                            <option [value]="0">{{__(\'ignore-cover\')}}</option>\r\n                            <option *ngFor="let tripInterruptCover of tripInterruptCovers" [value]="tripInterruptCover">{{tripInterruptCover}} €</option>\r\n                        </select>\r\n                    </div>\r\n                    <div class="row additional-choise">\r\n                        <div class="row">\r\n                            <span class="checkbox-group">\r\n                                <input type="checkbox"\r\n                                    id="missed-departure-cover-chkbx"\r\n                                    name="missed-departure-cover"\r\n                                    [disabled]="tripDisabled"\r\n                                    [(ngModel)]="insuranceDataModel.cover.missedDeparture">\r\n                                <label for="missed-departure-cover-chkbx" [ngClass]="{disabled:tripDisabled}">{{__(\'missed-departure\')}}</label>\r\n                                <span class="trav-tooltip">\r\n                                    <span>{{__(\'missed-departure-tooltip\')}}</span>\r\n                                </span>\r\n                            </span>\r\n                        </div>\r\n                        <div class="row">\r\n                            <span class="checkbox-group">\r\n                                <input type="checkbox"\r\n                                    id="delayed-departure-cover-chkbx"\r\n                                    name="delayed-departure-cover"\r\n                                    [(ngModel)]="insuranceDataModel.cover.delayedDeparture">\r\n                                <label for="delayed-departure-cover-chkbx">{{__(\'missed-fly-departure\')}}</label>\r\n                                <span class="trav-tooltip">\r\n                                    <span>{{__(\'missed-fly-departure-tooltip\')}}</span>\r\n                                </span>\r\n                            </span>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n            <div class="cl-12-large">\r\n                <div class="row">\r\n                    <span class="additional-title">{{__(\'activity-title\')}}</span>\r\n                </div>\r\n                <div class="additional-tab">\r\n                    <div class="row additional-choise">\r\n                        <div class="row">\r\n                            <span class="checkbox-group">\r\n                                <input type="checkbox" id="physical-work-cover-chkbx" name="physical-work-cover" [(ngModel)]="insuranceDataModel.cover.physicalWork">\r\n                                <label for="physical-work-cover-chkbx">{{__(\'physical-work\')}}</label>\r\n                                <span class="trav-tooltip">\r\n                                    <span>{{__(\'physical-work-tooltip\')}}</span>\r\n                                </span>\r\n                            </span>\r\n                        </div>\r\n                        <div class="row">\r\n                            <span class="checkbox-group">\r\n                                <input type="checkbox" id="business-work-cover-chkbx" name="business-work-cover" [(ngModel)]="insuranceDataModel.cover.businessWork">\r\n                                <label for="business-work-cover-chkbx">{{__(\'business-work\')}}</label>\r\n                                <span class="trav-tooltip">\r\n                                    <span>{{__(\'business-work-tooltip\')}}</span>\r\n                                </span>\r\n                            </span>\r\n                        </div>\r\n                        <div class="row">\r\n                            <span class="checkbox-group">\r\n                                <input type="checkbox" id="active-sport-cover-chkbx" name="active-sport-cover" [(ngModel)]="insuranceDataModel.cover.activeSport">\r\n                                <label for="active-sport-cover-chkbx">{{__(\'active-sport\')}}</label>\r\n                                <span class="trav-tooltip">\r\n                                    <span>{{__(\'active-sport-tooltip\')}}</span>\r\n                                </span>\r\n                            </span>\r\n                        </div>\r\n                        <div class="row">\r\n                            <span class="checkbox-group">\r\n                                <input type="checkbox" id="winter-sport-cover-chkbx" name="winter-sport-cover" [(ngModel)]="insuranceDataModel.cover.winterSport">\r\n                                <label for="winter-sport-cover-chkbx">{{__(\'winter-sport\')}}</label>\r\n                                <span class="trav-tooltip">\r\n                                    <span>{{__(\'winter-sport-tooltip\')}}</span>\r\n                                </span>\r\n                            </span>\r\n                        </div>\r\n                        <div class="row">\r\n                            <span class="checkbox-group">\r\n                                <input type="checkbox" id="golf-sport-cover-chkbx" name="golf-sport-cover" [(ngModel)]="insuranceDataModel.cover.golfSport">\r\n                                <label for="golf-sport-cover-chkbx">{{__(\'golf-sport\')}}</label>\r\n                                <span class="trav-tooltip">\r\n                                    <span>{{__(\'golf-sport-tooltip\')}}</span>\r\n                                </span>\r\n                            </span>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n            <div class="cl-12-large cl-12-medium recalculate">\r\n                <button (click)="recalculate()">{{__(\'recalculate\')}}</button>\r\n            </div>\r\n        </div>\r\n    </div>\r\n    <div class="cl-9-large cl-12-medium right-col">\r\n        <div class="row iizi-insurance-summary" [insuranceData]="insuranceDataModel">\r\n        </div>\r\n        <div class="row cl-12-large comparison-panel">\r\n            <b>{{__(\'comparison-tip\')}}</b>\r\n            <button class="comparison-button auto-width"\r\n                    [ngClass]="{disabled:disableComparison()}"\r\n                    [disabled]="disableComparison()"\r\n                    (click)="moveToTop(); comparisonHide = !comparisonHide">{{__(\'advanced-comparison\')}}</button>\r\n        </div>\r\n        <div class="row results">\r\n            <div class="row quotes">\r\n                <div class="row showifless">\r\n                    <span class="error-msg">{{__(\'screen-size\')}}</span>\r\n                </div>\r\n                <div class="row" *ngIf="!showLoader">\r\n                    <table [ngClass]="{invalid:resultsInvalid}" *ngIf="offers.quotes.length>0">\r\n                        <thead class="hideifless">\r\n                            <tr>\r\n                                <td>\r\n                                    {{__(\'price-table\')}}\r\n                                    <span class="header-tooltip">\r\n                                        <span>{{__(\'price-table-tooltip\')}}</span>\r\n                                    </span>\r\n                                </td>\r\n                                <td>\r\n                                    {{__(\'medical-cover-table\')}}\r\n                                    <span class="header-tooltip">\r\n                                        <span>{{__(\'medical-cover-table-tooltip\')}}</span>\r\n                                    </span>\r\n                                </td>\r\n                                <td>\r\n                                    {{__(\'luggage-cover-table\')}}\r\n                                    <span class="header-tooltip">\r\n                                        <span>{{__(\'luggage-cover-table-tooltip\')}}</span>\r\n                                    </span>\r\n                                </td>\r\n                                <td>\r\n                                    {{__(\'trip-interrupt-cover-table\')}}\r\n                                    <span class="header-tooltip">\r\n                                        <span>{{__(\'trip-interrupt-cover-table-tooltip\')}}</span>\r\n                                    </span>\r\n                                </td>\r\n                                <td>\r\n                                    {{__(\'civil-liab-cover-table\')}}\r\n                                    <span class="header-tooltip">\r\n                                        <span>{{__(\'civil-liab-cover-table-tooltip\')}}</span>\r\n                                    </span>\r\n                                </td>\r\n                                <td>\r\n                                    {{__(\'accident-cover-table\')}}\r\n                                    <span class="header-tooltip">\r\n                                        <span>{{__(\'accident-cover-table-tooltip\')}}</span>\r\n                                    </span>\r\n                                </td>\r\n                                <td></td>\r\n                            </tr>\r\n                        </thead>\r\n                            <template ngFor [ngForOf]="offers.quotes" let-quote >\r\n                                <tbody class="recommended" [ngClass]="{active:quote.recommended}">\r\n                                    <tr>\r\n                                        <td colspan="7">\r\n                                            <div class="label">{{__(\'recommended\')}}</div>\r\n                                        </td>\r\n                                    </tr> \r\n                                </tbody>\r\n                                <tbody class="quotes-rows"\r\n                                    [ngClass]="{disabled:resultsInvalid}"\r\n                                    (click)="buyInsurance(quote)">\r\n                                    <tr class="quote-details">\r\n                                        <td>\r\n                                            <div class="row price">{{quote.price | number:priceFormat}}</div>\r\n                                            <div class="row insurer-name">{{quote.insurerName}}</div>                                  \r\n                                        </td>\r\n                                        <td>{{receiveValue(quote.medicalCover)}}</td>\r\n                                        <td>{{receiveValue(quote.luggageCover)}}</td>\r\n                                        <td>{{receiveValue(quote.journeyInteruptCover)}}</td>\r\n                                        <td>{{receiveValue(quote.civilLiabilityCover)}}</td>\r\n                                        <td>{{receiveValue(quote.accidentCover)}}</td>\r\n                                        <td>\r\n                                            <button></button>\r\n                                        </td>\r\n                                    </tr>\r\n                                    <tr class="insurer-details">\r\n                                        <td colspan="6">\r\n                                            <div class="row">{{quote.insurerPremiumDescription}}</div>\r\n                                        </td>\r\n                                        <td></td>\r\n                                    </tr>\r\n                                </tbody>\r\n                                <tbody class="additional-rows">\r\n                                    <tr class="show-more" *ngIf="quote.description">\r\n                                        <td colspan="7" [ngClass]="{active:quote.description.show}">\r\n                                            <div class="row show-more-button">\r\n                                                <button class="auto-width" *ngIf="!quote.description.show" (click)="quote.description.show = !quote.description.show">{{__(\'show-more\')}}</button>\r\n                                                <button class="auto-width" *ngIf="quote.description.show" (click)="quote.description.show = !quote.description.show">{{__(\'show-less\')}}</button>\r\n                                            </div>\r\n                                            <div *ngIf="quote.description.show" class="row content">\r\n                                                <p [innerHTML]="getQuoteDescription(quote)"></p>\r\n                                            </div>\r\n                                        </td>\r\n                                    </tr>\r\n                                    <tr class="spacer">\r\n                                        <td colspan="7"></td>\r\n                                    </tr>\r\n                                </tbody>\r\n                            </template>        \r\n                    </table>\r\n                    <div class="row no-quotes" *ngIf="offers.quotes.length === 0">\r\n                        <p class="no-header">{{__(\'no-header\')}}</p>\r\n                        <p>{{__(\'no-text\')}}</p>\r\n                        <p>{{__(\'no-special\')}}</p>\r\n                    </div>\r\n                </div>\r\n                <div class="calc-loader" *ngIf="showLoader">\r\n                    <span>{{__(\'calc-loader\')}}</span>\r\n                </div>               \r\n            </div>\r\n            <div *ngIf="resultsInvalid && !showLoader" class="recalculation-popup">\r\n                <div class="row">\r\n                    <span>{{__(\'recalculate-popup\')}}</span>\r\n                </div>\r\n                <div class="row">\r\n                    <button (click)="recalculate()">{{__(\'recalculate\')}}</button>\r\n                </div>\r\n            </div>\r\n        </div>\r\n        <div class="row">\r\n            <div class="row special-insurance" (click)="orderSpecialInsurance()"></div>\r\n            <div class="row iizi-service-description"></div>\r\n        </div>\r\n        <div class="row navigation">\r\n            <button class="auto-width" (click)="back()">{{__(\'back\')}}</button>\r\n            <button class="comparison-button auto-width"\r\n                    [ngClass]="{disabled:disableComparison()}"\r\n                    [disabled]="disableComparison()"\r\n                    (click)="moveToTop(); comparisonHide = !comparisonHide">{{__(\'advanced-comparison\')}}</button> \r\n        </div>\r\n    </div>\r\n    <div class="cl-12-large">\r\n        <div *ngIf="!comparisonHide" class="iizi-insurance-comparison"\r\n            [insurerNames]="insurerNames"\r\n            [insuranceTerms]="offers.terms"\r\n            (hideMe)="comparisonHide = !comparisonHide">\r\n        </div>\r\n    </div>\r\n</div>'),e("__useDefault",n),e("default",n)}}}),e.register("2c",[],function(e,t){"use strict";var n;return{setters:[],execute:function(){e("__useDefault",n='.additional-title{display:block;margin:0px 0px 3px 20px;font-size:15px;font-weight:bold}.additional-tab{background-color:#eee;border:1px solid #ccc;border-radius:3px;padding:10px 5px 5px 10px;margin-bottom:20px}.additional-tab .pad-btm{display:table}.additional-tab .pad-btm .field-title{display:table-cell;padding-right:5px}.additional-tab .sel-cont select{cursor:pointer}.additional-choise .checkbox-group{display:table}.additional-choise .checkbox-group label.disabled{color:#ccc;cursor:default}.additional-choise .checkbox-group label{display:table-cell;padding-right:5px;max-width:200px}.additional-choise .trav-tooltip:before{width:20px;height:20px;border-radius:20px;line-height:20px}.additional-choise .trav-tooltip span{left:-52px}.left-col .recalculate button{max-width:none;background-color:#1379bc}.right-col .quotes .showifless{display:none}@media screen and (max-width: 720px){.right-col .quotes .showifless{display:inline}}.right-col .quotes .showifless span{max-width:none;font-size:18px;text-align:center}.right-col .quotes table{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed}.right-col .quotes table td{text-align:center;vertical-align:middle}@media screen and (max-width: 480px){.right-col .quotes table .hideifless{display:none}}.right-col .quotes table thead td{padding:10px;font-weight:bold;position:relative;cursor:default}.right-col .quotes table thead td .header-tooltip{position:absolute;left:50%;top:15px}.right-col .quotes table thead td .header-tooltip span{font-weight:normal;left:-59px}.right-col .quotes table thead td:not(:last-child):hover{color:#e32585}.right-col .quotes table thead td:not(:last-child):hover .header-tooltip span{color:#55595b;display:inline-block}.right-col .quotes table tbody.recommended{display:none}.right-col .quotes table tbody.recommended td{padding:0}.right-col .quotes table tbody.recommended td .label{background-color:#e32585;padding:9px 9px 0;border-top-left-radius:3px;border-top-right-radius:3px;float:left;margin-bottom:-1px;min-width:100px;height:35px}.right-col .quotes table tbody.recommended td .label:before{content:"\\2714";margin-right:5px}.right-col .quotes table tbody.recommended td .label,.right-col .quotes table tbody.recommended td .label:before{color:white;font-size:14px}.right-col .quotes table tbody.recommended.active{display:table-row}.right-col .quotes table tbody.recommended.active+tbody.quotes-rows tr.quote-details td{border-top:1px solid #e32585}.right-col .quotes table tbody.recommended.active+tbody.quotes-rows tr.quote-details td:first-child{border-left:1px solid #e32585;border-radius:0}.right-col .quotes table tbody.recommended.active+tbody.quotes-rows tr.quote-details td:last-child{border-right:1px solid #e32585}.right-col .quotes table tbody.recommended.active+tbody.quotes-rows tr.insurer-details td{border:1px solid #e32585;border-top:0}.right-col .quotes table tbody.recommended.active+tbody.quotes-rows tr.insurer-details td:first-child{border-right:0}.right-col .quotes table tbody.recommended.active+tbody.quotes-rows tr.insurer-details td:last-child{border-left:0}.right-col .quotes table tbody.quotes-rows{cursor:pointer}.right-col .quotes table tbody.quotes-rows tr.quote-details{background-color:white}.right-col .quotes table tbody.quotes-rows tr.quote-details td{padding:5px 5px 0px 5px;border-top:1px solid #ccc}.right-col .quotes table tbody.quotes-rows tr.quote-details td:first-child{border-left:1px solid #ccc;border-top-left-radius:3px;text-align:left}.right-col .quotes table tbody.quotes-rows tr.quote-details td:first-child .row{padding-left:5px}.right-col .quotes table tbody.quotes-rows tr.quote-details td:first-child .price{font-size:20px;color:#e32585;font-weight:bold}.right-col .quotes table tbody.quotes-rows tr.quote-details td:last-child{border-right:1px solid #ccc;border-top-right-radius:3px}.right-col .quotes table tbody.quotes-rows tr.quote-details td:last-child button{background:#1379bc url("https://www.iizi.lv/calc/v3/assets/img/icons/buy.png") no-repeat scroll center center/20px auto;min-height:35px;min-width:40px}.right-col .quotes table tbody.quotes-rows tr.quote-details td:last-child button:hover{background-color:#e32585}.right-col .quotes table tbody.quotes-rows tr.insurer-details{background-color:white}.right-col .quotes table tbody.quotes-rows tr.insurer-details td{padding:0px 5px 5px 5px;border:1px solid #ccc;border-top:0;text-align:left}.right-col .quotes table tbody.quotes-rows tr.insurer-details td .row{padding-left:5px}.right-col .quotes table tbody.quotes-rows tr.insurer-details td:first-child{border-right:0;border-bottom-left-radius:3px}.right-col .quotes table tbody.quotes-rows tr.insurer-details td:last-child{border-left:0;border-bottom-right-radius:3px}.right-col .quotes table tbody.disabled{cursor:default}.right-col .quotes table tbody.additional-rows tr.show-more td{border-radius:3px;padding:0}.right-col .quotes table tbody.additional-rows tr.show-more td .show-more-button{text-align:right}.right-col .quotes table tbody.additional-rows tr.show-more td .show-more-button button{border:none;border-radius:3px;margin:0;padding:0 10px;font-size:14px;height:25px;line-height:25px;width:90px;font-weight:100;text-transform:none}.right-col .quotes table tbody.additional-rows tr.show-more td .content{text-align:left;padding:10px;border:none;margin-right:50px;margin-bottom:25px}.right-col .quotes table tbody.additional-rows tr.show-more td .content p{font-size:16px;line-height:23px;margin:0 auto}.right-col .quotes table tbody.additional-rows tr.show-more td .content /deep/ li{list-style-type:none;list-style-image:url("https://www.iizi.lv/calc/v3/assets/img/icons/logo-mini.png")}.right-col .quotes table tbody.additional-rows tr.show-more td.active{border:1px solid #ccc;background-color:white}.right-col .quotes table tbody.additional-rows tr.show-more td.active .show-more-button button{background-color:#d3d3d3}.right-col .quotes table tbody.additional-rows tr.spacer td{height:20px}.right-col .quotes table .insurer-name{font-size:18px;font-weight:bold}.right-col .quotes table.invalid tbody.recommended,.right-col .quotes table.invalid tbody.quotes-rows,.right-col .quotes table.invalid tbody.additional-rows{-webkit-filter:blur(3px) grayscale(100%);-moz-filter:blur(3px) grayscale(100%);-o-filter:blur(3px) grayscale(100%);-ms-filter:blur(3px) grayscale(100%);filter:blur(3px) grayscale(100%)}.right-col .quotes table.invalid tbody.recommended.active+tbody.quotes-rows tr.quote-details td{border-top:1px solid #ccc}.right-col .quotes table.invalid tbody.recommended.active+tbody.quotes-rows tr.quote-details td:first-child{border-left:1px solid #ccc}.right-col .quotes table.invalid tbody.recommended.active+tbody.quotes-rows tr.quote-details td:last-child{border-right:1px solid #ccc}.right-col .quotes table.invalid tbody.recommended.active+tbody.quotes-rows tr.insurer-details td{border:1px solid #ccc;border-top:0}.right-col .quotes table.invalid tbody.recommended.active+tbody.quotes-rows tr.insurer-details td:first-child{border-right:0}.right-col .quotes table.invalid tbody.recommended.active+tbody.quotes-rows tr.insurer-details td:last-child{border-left:0}.right-col .quotes .calc-loader{background-image:url("https://www.iizi.lv/calc/v3/assets/img/animations/loadingbar.gif");background-position:center center;background-repeat:no-repeat;background-size:190px 14px;height:200px;text-align:center}.right-col .quotes .calc-loader span{display:block;padding-top:65px;font-weight:bold;font-size:16px;color:#e32585}.right-col .no-quotes{padding:10px 15px 100px 15px;font-size:16px}.right-col .no-quotes .no-header{line-height:32px;font-size:32px;color:#1379bc;font-weight:bold;margin-top:0px}.right-col .comparison-panel{background-color:white;border:1px solid #cccccc;border-radius:3px;padding:5px 10px;margin-bottom:5px;overflow:auto;display:table}.right-col .comparison-panel b{display:table-cell;vertical-align:middle;font-size:16px}.right-col .results{position:relative}.right-col .results .recalculation-popup{position:absolute;top:0;left:0;margin:30px 25%;background-color:white;border:2px solid #e32585;border-radius:3px;text-align:center;z-index:999}.right-col .results .recalculation-popup span{font-size:15px;font-weight:bold;padding:20px 10px;margin-top:20px;display:block}.right-col .results .recalculation-popup button{max-width:120px;background-color:#1379bc}.right-col .navigation{padding-top:20px}.right-col .navigation button:first-child{float:left;background-color:#55595b}.right-col .comparison-button{float:right}@media screen and (max-width: 720px){.right-col .comparison-button{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:240px;max-width:70%}}.right-col button.disabled{background-color:#ccc;cursor:default}\n'),e("__useDefault",n),e("default",n)}}}),e.registerDynamic("2d",["c","24","13","14","15","19","2a","2b","2c"],!0,function(e,t,n){"use strict";this||self;var r=t&&t.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=t&&t.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var o=e("c"),a=e("24"),s=e("13"),u=e("14"),c=e("15"),l=e("19"),p=e("2a"),d=function(){function t(e,t,n,r,i,o,a){var s=this;this._ga=t,this._eventBus=n,this._tripInsuranceService=r,this._router=i,this._ts=o,this._windowContainer=a,this._ga.trackPageView("InsuranceCalculationComponent"),this._lg=e.new("InsuranceCalculationComponent"),this._windowContainer.window.scrollTo(0,0),this._eventBus.calcStepEmmiter.emit({step:2,title:"insurance-calculation"}),this.offers={quotes:[],terms:[]},this.luggageCovers=[300,600,950,1300,1600],this.tripInterruptCovers=[300,600,950,1300,1600,1900],this.medicalCovers=[1e4,5e4,7e4,1e5,4e5],this.insurerNames=[],this.comparisonHide=!0,this._offersSubscription=this._tripInsuranceService.offers.subscribe(function(e){return s.handleIncomingOffers(e)}),this.insuranceDataModel=this._tripInsuranceService.insuranceDataModel,this.validateLuggage(this.insuranceDataModel.cover.luggage),this.validateTripInterrupt(this.insuranceDataModel.cover.journeyInterupt),this.recalculateInt()}return t.prototype.handleIncomingOffers=function(e){var t=this;this.offers=e,this.insurerNames=[],this.offers.quotes.forEach(function(e){t.insurerNames.indexOf(e.insurerName)<0&&t.insurerNames.push(e.insurerName)}),this.resultsInvalid=!1,this.showLoader=!1,console.log("Got following offers ",this.offers)},t.prototype.updateAndCompareFormModelHash=function(){var e=JSON.stringify(this.insuranceDataModel);return this._formModelChangesHash===e||(this._formModelChangesHash=e,!1)},t.prototype.__=function(e,t){return this._ts.instant("insuranceCalculationComponent."+e,t)},t.prototype.ngOnInit=function(){this._tripInsuranceService.validateInsuranceDate()||this.back()},t.prototype.ngOnDestroy=function(){this._offersSubscription.unsubscribe()},t.prototype.ngDoCheck=function(){this.updateAndCompareFormModelHash()||(this.resultsInvalid=!0)},t.prototype.recalculate=function(){this._windowContainer.window.scrollTo(0,0),this._tripInsuranceService.clearOffers(),this.recalculateInt()},t.prototype.back=function(){this._router.navigate(["celojuma-dati"])},t.prototype.buyInsurance=function(e){this.resultsInvalid||(this._tripInsuranceService.setSelectedInsuranceQuote(e),this._router.navigate(["celojuma-apdrosinasanas-iegades-apstiprinajums"]))},t.prototype.orderSpecialInsurance=function(){this._router.navigate(["ipasas-apdrosinasanas-iegades-apstiprinajums"])},t.prototype.hideComparison=function(){this.comparisonHide=!0},t.prototype.receiveValue=function(e){return e&&""!==e?e:"-"},t.prototype.disableComparison=function(){return!!(this.showLoader||this.resultsInvalid||this.offers.quotes.length<1)},t.prototype.moveToTop=function(){this._windowContainer.window.scrollTo(0,0)},t.prototype.validateLuggage=function(e){0===Number(e)?(this.insuranceDataModel.cover.winterEquipmentLuggage=!1,this.luggageDisabled=!0):this.luggageDisabled=!1},t.prototype.validateTripInterrupt=function(e){0===Number(e)?(this.insuranceDataModel.cover.missedDeparture=!1,this.tripDisabled=!0):this.tripDisabled=!1},Object.defineProperty(t.prototype,"priceFormat",{get:function(){return l.StaticConfig.priceFormat},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"diag",{get:function(){return JSON.stringify(this.insuranceDataModel)},enumerable:!0,configurable:!0}),t.prototype.recalculateInt=function(){this._tripInsuranceService.giveMeOffers(),this.showLoader=!0},t.prototype.getQuoteDescription=function(e){return"ru"===this._ts.currentLang?e.description.content_ru:e.description.content_lv},t=r([o.Component({template:e("2b"),styles:[e("2c")]}),i("design:paramtypes",[u.LoggerService,u.GoogleAnalyticsService,u.EventBusService,p.TripInsuranceService,a.Router,s.TranslateService,c.WindowContainer])],t)}();t.InsuranceCalculationComponent=d}),e.register("2e",[],function(e,t){"use strict";var n;return{setters:[],execute:function(){e("__useDefault",n='<div class="row ch-h-pad insuranceCalculationComponent" [ngClass]="{submitAttempted:submitAttempted}">\r\n    \x3c!--<pre>{{diag}}</pre>--\x3e \r\n    <div class="row">\r\n        <h4 class="step-title">{{__(\'buy-insurance\')}}</h4>\r\n    </div>\r\n    <div class="row">\r\n        <div class="row iizi-insurance-summary" [insuranceData]="insuranceDataModel" [selectedQuote]="selectedQuoteModel"></div>\r\n    </div>\r\n    <div class="row">\r\n        <h4 class="step-title">{{__(\'insurance-parameters\')}}</h4>\r\n    </div>\r\n    <div class="row">\r\n        <div class="row iizi-insurance-parameters" [insuranceData]="insuranceDataModel" [selectedQuote]="selectedQuoteModel"></div>\r\n    </div>\r\n    <div class="row">\r\n        <h4 class="step-title">{{__(\'buyer-data\')}}</h4>\r\n    </div>\r\n    <div class="row">\r\n        <form #form="ngForm">   \r\n        <div class="row" *ngIf="!showLoader">\r\n            <div class="row buyer-data">\r\n                <div class="row ch-h-pad">\r\n                <div class="cl-6-large cl-12-small">\r\n                    <div class="row pad-btm">\r\n                        <span class="field-title">\r\n                            {{__(\'name\')}}\r\n                        </span>\r\n                        <span class="trav-tooltip">\r\n                            <span>{{__(\'name-tooltip\')}}</span>\r\n                        </span>\r\n                    </div>\r\n                    <div class="row">\r\n                        <input type="text"\r\n                            name="name"\r\n                            placeholder="{{__(\'placeholder-name\')}}"\r\n                            required\r\n                            [(ngModel)]="insuranceBuyerModel.name">\r\n                    </div>\r\n                    <div class="row" *ngIf="validateField(form.controls.name)">\r\n                        <span class="error-msg">\r\n                            {{__(\'check-name-value\')}}\r\n                        </span>\r\n                    </div>\r\n                </div>\r\n                <div class="cl-6-large cl-12-small">\r\n                    <div class="row pad-btm">\r\n                        <span class="field-title">\r\n                            {{__(\'surname\')}}\r\n                        </span>\r\n                        <span class="trav-tooltip">\r\n                            <span>{{__(\'surname-tooltip\')}}</span>\r\n                        </span>\r\n                    </div>\r\n                    <div class="row">\r\n                        <input type="text"\r\n                            name="surname"\r\n                            placeholder="{{__(\'placeholder-surname\')}}"\r\n                            required\r\n                            [(ngModel)]="insuranceBuyerModel.surname">\r\n                    </div>\r\n                    <div class="row" *ngIf="validateField(form.controls.surname)">\r\n                        <span class="error-msg">\r\n                            {{__(\'check-surname-value\')}}\r\n                        </span>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n                <div class="row ch-h-pad">\r\n                    <div class="cl-6-large cl-12-small">\r\n                        <div class="row pad-btm">\r\n                            <span class="field-title">\r\n                                {{__(\'id-code\')}}\r\n                            </span>\r\n                            <span class="trav-tooltip">\r\n                                <span>{{__(\'id-code-tooltip\')}}</span>\r\n                            </span>\r\n                        </div>\r\n                        <div class="row">\r\n                            <input type="text"\r\n                                name="idCode"\r\n                                placeholder="{{__(\'placeholder-id-code\')}}"\r\n                                pattern="^\\d{6}-\\d{5}$"\r\n                                (change)="onCodeChange()"\r\n                                (keyup)="onCodeChange()"\r\n                                required\r\n                                [(ngModel)]="insuranceBuyerModel.idCode">\r\n                        </div>\r\n                        <div class="row" *ngIf="validateField(form.controls.idCode)">\r\n                            <span class="error-msg">\r\n                                {{__(\'check-id-code-value\')}}\r\n                            </span>\r\n                        </div>\r\n                    </div>\r\n                    <div class="cl-6-large cl-12-small">\r\n                        <div class="row pad-btm">\r\n                            <span class="field-title">\r\n                                {{__(\'age\')}}\r\n                            </span>\r\n                            <span class="trav-tooltip">\r\n                                <span>{{__(\'age-tooltip\')}}</span>\r\n                            </span>\r\n                        </div>\r\n                        <div class="row">\r\n                            <input #age type="text"\r\n                                name="age"\r\n                                placeholder="{{__(\'placeholder-age\')}}"\r\n                                pattern="^(?:1[8-9]|[2-9]\\d{1}|[1-9]\\d{2})$"\r\n                                (focus)="ageFocus(age)"\r\n                                (blur)="ageBlur(age)"\r\n                                required\r\n                                [(ngModel)]="insuranceBuyerModel.age">\r\n                        </div>\r\n                        <div class="row" *ngIf="validateField(form.controls.age)">\r\n                            <span class="error-msg">\r\n                                {{__(\'check-age-value\')}}\r\n                            </span>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n                <div class="row ch-h-pad">\r\n                    <div class="cl-6-large cl-12-small">\r\n                        <div class="row pad-btm">\r\n                            <span class="field-title">\r\n                                {{__(\'email\')}}\r\n                            </span>\r\n                            <span class="trav-tooltip">\r\n                                <span>{{__(\'email-tooltip\')}}</span>\r\n                            </span>\r\n                        </div>\r\n                        <div class="row">\r\n                            <input type="text"\r\n                                name="email"\r\n                                placeholder="{{__(\'placeholder-email\')}}"\r\n                                required\r\n                                pattern="^[a-zA-Z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\\.[a-zA-Z0-9-]+)*$"\r\n                                [(ngModel)]="insuranceBuyerModel.email">\r\n                        </div>\r\n                        <div class="row" *ngIf="validateField(form.controls.email)">\r\n                            <span class="error-msg">\r\n                                {{__(\'check-email-value\')}}\r\n                            </span>\r\n                        </div>\r\n                    </div>\r\n                    <div class="cl-6-large cl-12-small">\r\n                        <div class="row pad-btm">\r\n                            <span class="field-title">\r\n                                {{__(\'phone\')}}\r\n                            </span>\r\n                            <span class="trav-tooltip">\r\n                                <span>{{__(\'phone-tooltip\')}}</span>\r\n                            </span>\r\n                        </div>\r\n                        <div class="row">\r\n                            <input type="text"\r\n                                name="phone"\r\n                                placeholder="{{__(\'placeholder-phone\')}}"\r\n                                pattern="^\\d{8}$"\r\n                                required\r\n                                [(ngModel)]="insuranceBuyerModel.phone">\r\n                        </div>\r\n                        <div class="row" *ngIf="validateField(form.controls.phone)">\r\n                            <span class="error-msg">\r\n                                {{__(\'check-phone-value\')}}\r\n                            </span>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n                <div class="row"></div>\r\n            </div>\r\n            <div class="row buyer-address">\r\n                <div class="row">\r\n                    <h4 class="step-title">{{__(\'buyer-address\')}}</h4>\r\n                </div>\r\n                <div class="row ch-h-pad">\r\n                    <div class="cl-6-large cl-12-small">\r\n                        <div class="row pad-btm">\r\n                        <span class="field-title">\r\n                            {{__(\'county\')}}\r\n                        </span>\r\n                        </div>\r\n                        <div class="row">\r\n                            <input type="text"\r\n                                   name="county"\r\n                                   placeholder="{{__(\'placeholder-county\')}}"\r\n                                   [(ngModel)]="insuranceBuyerModel.county">\r\n                        </div>\r\n                    </div>\r\n                    <div class="cl-6-large cl-12-small">\r\n                        <div class="row pad-btm">\r\n                        <span class="field-title">\r\n                            {{__(\'city\')}}\r\n                        </span>\r\n                        </div>\r\n                        <div class="row">\r\n                            <input type="text"\r\n                                   name="city"\r\n                                   placeholder="{{__(\'placeholder-city\')}}"\r\n                                   required\r\n                                   [(ngModel)]="insuranceBuyerModel.city">\r\n                        </div>\r\n                        <div class="row" *ngIf="validateField(form.controls.city)">\r\n                        <span class="error-msg">\r\n                            {{__(\'check-city-value\')}}\r\n                        </span>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n                <div class="row ch-h-pad">\r\n                    <div class="cl-6-large cl-12-small">\r\n                        <div class="row pad-btm">\r\n                        <span class="field-title">\r\n                            {{__(\'street\')}}\r\n                        </span>\r\n                        </div>\r\n                        <div class="row">\r\n                            <input type="text"\r\n                                   name="street"\r\n                                   placeholder="{{__(\'placeholder-street\')}}"\r\n                                   required\r\n                                   [(ngModel)]="insuranceBuyerModel.street">\r\n                        </div>\r\n                        <div class="row" *ngIf="validateField(form.controls.street)">\r\n                        <span class="error-msg">\r\n                            {{__(\'check-street-value\')}}\r\n                        </span>\r\n                        </div>\r\n                    </div>\r\n                    <div class="cl-6-large cl-12-small">\r\n                        <div class="row pad-btm">\r\n                        <span class="field-title">\r\n                            {{__(\'house\')}}\r\n                        </span>\r\n                        </div>\r\n                        <div class="row">\r\n                            <input type="text"\r\n                                   name="house"\r\n                                   placeholder="{{__(\'placeholder-house\')}}"\r\n                                   [(ngModel)]="insuranceBuyerModel.house">\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n                <div class="row ch-h-pad">\r\n                    <div class="cl-6-large cl-12-small">\r\n                        <div class="row pad-btm">\r\n                        <span class="field-title">\r\n                            {{__(\'apartment\')}}\r\n                        </span>\r\n                        </div>\r\n                        <div class="row">\r\n                            <input type="text"\r\n                                   name="flat"\r\n                                   placeholder="{{__(\'placeholder-apartment\')}}"\r\n                                   [(ngModel)]="insuranceBuyerModel.apartment">\r\n                        </div>\r\n                    </div>\r\n                    <div class="cl-6-large cl-12-small">\r\n                        <div class="row pad-btm">\r\n                        <span class="field-title">\r\n                            {{__(\'postalCode\')}}\r\n                        </span>\r\n                        </div>\r\n                        <div class="row">\r\n                            <input type="text"\r\n                                   name="postalCode"\r\n                                   placeholder="{{__(\'placeholder-postalCode\')}}"\r\n                                   required\r\n                                   [(ngModel)]="insuranceBuyerModel.postalCode">\r\n                        </div>\r\n                        <div class="row" *ngIf="validateField(form.controls.postalCode)">\r\n                        <span class="error-msg">\r\n                            {{__(\'check-postalCode-value\')}}\r\n                        </span>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n            <div class="row ch-h-pad">\r\n                <div class="cl-12-large cl-12-small">\r\n                    <div class="row agreement">\r\n                        <span class="checkbox-group">\r\n                            <input type="checkbox" id="agreement-chkbx" name="agreement-chkbx" [(ngModel)]="insuranceBuyerModel.agreement">\r\n                            <label for="agreement-chkbx">\r\n                                {{__(\'agree-to-terms-part1\')}}\r\n                                <a (click)="agreementHide = !agreementHide">{{__(\'agree-to-terms-link\')}}</a>{{__(\'agree-to-terms-part2\')}}\r\n                            </label>\r\n                        </span>                 \r\n                    </div>\r\n                    <div class="row" *ngIf="!insuranceBuyerModel.agreement && submitAttempted">\r\n                        <span class="long-error error-msg">\r\n                            {{__(\'check-agree-to-terms-and-conditions\')}}\r\n                        </span>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </div>\r\n        <div class="payment-loader" *ngIf="showLoader">\r\n            <span>{{__(\'loader\')}}</span>\r\n        </div> \r\n        </form>   \r\n        <div class="row iizi-service-description"></div>\r\n        <div class="row navigation ch-h-pad">\r\n            <div class="cl-12-large">\r\n                <button (click)="back()">{{__(\'back\')}}</button>\r\n                <button class="auto-width" [ngClass]="{disabled:!canConfirm}" required (click)="confirm()">{{__(\'confirm\')}}</button>\r\n            </div>\r\n        </div>\r\n    </div>\r\n    <div class="row">\r\n        <div *ngIf="!agreementHide" class="iizi-agreement"\r\n            (hideMe)="agreementHide = !agreementHide">\r\n        </div>\r\n    </div>\r\n</div>'),e("__useDefault",n),e("default",n)}}}),e.register("2f",[],function(e,t){"use strict";var n;return{setters:[],execute:function(){e("__useDefault",n='.row.agreement{background-color:#eee;border:1px solid #ccc;border-radius:3px;padding-left:10px;margin-top:10px}.row.agreement .checkbox-group{margin-bottom:8px;margin-top:8px;height:inherit}.row.agreement .checkbox-group a{font-size:13px;color:#e32585;cursor:pointer}.payment-loader{background-image:url("https://www.iizi.lv/calc/v3/assets/img/animations/loading.gif");background-position:center center;background-repeat:no-repeat;background-size:24px 24px;height:200px;text-align:center}.navigation{padding-top:20px}.navigation button:first-child{float:left;background-color:#55595b}.navigation button:last-child{float:right}.navigation button.disabled{background-color:#ccc}.buyer-address{margin-top:20px}\n'),e("__useDefault",n),e("default",n)}}}),e.registerDynamic("30",["c","24","13","21","29","19","14","15","2a","31","2e","2f"],!0,function(e,t,n){"use strict";this||self;var r=t&&t.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=t&&t.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var o=e("c"),a=e("24"),s=e("13"),u=e("21"),c=e("29"),l=e("19"),p=e("14"),d=e("15"),h=e("2a"),f=e("31"),m=function(){function t(e,t,n,r,i,o,a){var s=this;this._ga=t,this._eventBus=n,this._tripInsuranceService=r,this._router=i,this._ts=o,this._windowContainer=a,this._ga.trackPageView("InsuranceBuyerDataComponent"),this._lg=e.new("InsuranceBuyerDataComponent"),this._windowContainer.window.scrollTo(0,0),this.disableAgeField=!1,this._isPersonId=/^(?:32\d{4}|(?:0[1-9]|1[0-9]|2[0-9]|3[0-1])(?:0[1-9]|1[0-2])\d{2})-\d{5}$/,this._oldStylePersonalCode=/^(?:0[1-9]|1[0-9]|2[0-9]|3[0-1])(?:0[1-9]|1[0-2])\d{2}-\d{5}$/,this._oldStylePersonalCodeBirthDateExtract=/^(0[1-9]|1[0-9]|2[0-9]|3[0-1])(0[1-9]|1[0-2])(\d{2})-\d{5}$/,this._eventBus.calcStepEmmiter.emit({step:3,title:"insurance-buyer-data"}),this.agreementHide=!0,this.selectedQuoteModel=this._tripInsuranceService.getSelectedInsuranceQuote(),this.selectedQuoteModel||this.back(),this.insuranceBuyerModel=new f.InsuranceBuyerModel,this._responseSubscription=this._tripInsuranceService.travelPolicyPaymentResponseModel.subscribe(function(e){return s.handlePaymentRegistrationResult(e)}),this.insuranceDataModel=this._tripInsuranceService.insuranceDataModel,this.insuranceDataModel.travelers.forEach(function(e){e.insuranceTaker&&s.setInsuranceTaker(e)})}return t.prototype.setInsuranceTaker=function(e){this.insuranceBuyerModel={name:e.name,surname:e.surname,idCode:e.idCode,age:"",email:"",phone:"",county:"",city:"",street:"",house:"",apartment:"",postalCode:"",agreement:!1},this.onCodeChange()},t.prototype.confirm=function(){this.submitAttempted=!0,this.canConfirm&&(this.showLoader=!0,this.insuranceTravelPolicyPaymentModel={name:this.insuranceBuyerModel.name,surname:this.insuranceBuyerModel.surname,email:this.insuranceBuyerModel.email,phone:this.insuranceBuyerModel.phone,clientCode:this.insuranceBuyerModel.idCode,county:this.insuranceBuyerModel.county,city:this.insuranceBuyerModel.city,street:this.insuranceBuyerModel.street,house:this.insuranceBuyerModel.house,apartment:this.insuranceBuyerModel.apartment,postalCode:this.insuranceBuyerModel.postalCode,paymentNotificationUrl:l.StaticConfig.endpointUrl+"common/take-payment-status-change-notification?partnerPaymentId={0}&productType=Travel",quotingGuid:this.selectedQuoteModel.quotingGuid,returnUrl:l.StaticConfig.returnUrl,selectedOfferId:this.selectedQuoteModel.offerId,selectedInsurer:this.selectedQuoteModel.insurerName,selectedInsurerId:this.selectedQuoteModel.insurerId,selectedPremium:this.selectedQuoteModel.price,quotationId:this.selectedQuoteModel.quotationId,partnerChannelGuid:l.StaticConfig.partnerChannelGuid},this._tripInsuranceService.giveMeTravelPolicyPaymentResult(this.insuranceTravelPolicyPaymentModel))},t.prototype.handlePaymentRegistrationResult=function(e){this.travelPolicyPaymentResponseModel=e,this.showLoader=!1,l.StaticConfig.paymentPageUrl&&l.StaticConfig.paymentPageUrl.length>0?this._windowContainer.window.location.href=l.StaticConfig.paymentPageUrl+this.travelPolicyPaymentResponseModel.transactionID:this._router.navigate(["celojuma-apdrosinasanas-apmaksa",this.travelPolicyPaymentResponseModel.transactionID])},t.prototype.__=function(e,t){return this._ts.instant("insuranceBuyerDataComponent."+e,t)},t.prototype.ngOnInit=function(){this._tripInsuranceService.validateInsuranceDate()||this._router.navigate(["celojuma-dati"])},t.prototype.ngOnDestroy=function(){this._responseSubscription.unsubscribe()},t.prototype.back=function(){this._router.navigate(["celojuma-apdrosinasanas-cenas"])},t.prototype.validateField=function(e){return e&&e.invalid&&(e.touched||this.submitAttempted)},t.prototype.ageFocus=function(e){e.readOnly=this.disableAgeField},t.prototype.ageBlur=function(e){e.readOnly=!1},t.prototype.onCodeChange=function(){if(this._isPersonId.test(this.insuranceBuyerModel.idCode)&&this._oldStylePersonalCode.test(this.insuranceBuyerModel.idCode)){var e=this.insuranceBuyerModel.idCode.match(this._oldStylePersonalCodeBirthDateExtract);if(e.length>3){var t=e[3],n=e[2],r=e[1];t="0"===t[0]||2e3+parseInt(t)<=(new Date).getFullYear()?"20"+t:"19"+t;var i=u().startOf("day").diff(u(t+"-"+n+"-"+r))/31536e6;if((i=Math.floor(i))>0)return this.insuranceBuyerModel.age=Math.floor(i).toString(),void(this.disableAgeField=!0)}}this.disableAgeField=!1},Object.defineProperty(t.prototype,"canConfirm",{get:function(){return this.insurancePaymentForm.form.valid&&this.insuranceBuyerModel.agreement},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"diag",{get:function(){return JSON.stringify(this.insuranceBuyerModel)},enumerable:!0,configurable:!0}),r([o.ViewChild("form"),i("design:type",c.NgForm)],t.prototype,"insurancePaymentForm",void 0),t=r([o.Component({template:e("2e"),styles:[e("2f")]}),i("design:paramtypes",[p.LoggerService,p.GoogleAnalyticsService,p.EventBusService,h.TripInsuranceService,a.Router,s.TranslateService,d.WindowContainer])],t)}();t.InsuranceBuyerDataComponent=m}),e.register("32",[],function(e,t){"use strict";var n;return{setters:[],execute:function(){e("__useDefault",n='<div class="row iizi-service-description-text">\r\n    <span translate>{{__(\'iizi-service-description\')}}</span> <a href="http://www.iizi.lv">www.iizi.lv</a>\r\n</div>'),e("__useDefault",n),e("default",n)}}}),e.register("33",[],function(e,t){"use strict";var n;return{setters:[],execute:function(){e("__useDefault",n=".iizi-service-description-text{padding-top:5px;margin-left:20px;color:grey;font-size:16px}.iizi-service-description-text a{color:grey}\n"),e("__useDefault",n),e("default",n)}}}),e.registerDynamic("34",["c","13","32","33"],!0,function(e,t,n){"use strict";this||self;var r=t&&t.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=t&&t.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var o=e("c"),a=e("13"),s=function(){function t(e){this._ts=e}return t.prototype.__=function(e,t){return this._ts.instant("iiziServiceDescriptionComponent."+e,t)},t=r([o.Component({selector:".iizi-service-description",template:e("32"),styles:[e("33")]}),i("design:paramtypes",[a.TranslateService])],t)}();t.IiziServiceDescriptionComponent=s}),e.register("35",[],function(e,t){"use strict";var n;return{setters:[],execute:function(){e("__useDefault",n='<div class="row parameters">\r\n    <div class="row" *ngIf="selectedQuoteModel.medicalCover > 0">\r\n        <div class="param-row">\r\n            <div class="param-value">{{__(\'medical-param\')}} — {{selectedQuoteModel.medicalCover}} EUR</div>\r\n            <div class="param-info">{{__(\'medical-info\')}}</div>\r\n        </div>\r\n    </div>\r\n    <div class="row" *ngIf="selectedQuoteModel.luggageCover > 0">\r\n        <div class="param-row">\r\n            <div class="param-value">{{__(\'luggage-param\')}} — {{selectedQuoteModel.luggageCover}} EUR</div>\r\n            <div class="param-info">{{__(\'luggage-info\')}}</div>\r\n        </div>\r\n    </div>\r\n    <div class="row" *ngIf="selectedQuoteModel.journeyInteruptCover > 0">\r\n        <div class="param-row">\r\n            <div class="param-value">{{__(\'trip-param\')}} — {{selectedQuoteModel.journeyInteruptCover}} EUR</div>\r\n            <div class="param-info">{{__(\'trip-info\')}}</div>\r\n        </div>\r\n    </div>\r\n    <div class="row" *ngIf="selectedQuoteModel.civilLiabilityCover > 0">\r\n        <div class="param-row">\r\n            <div class="param-value">{{__(\'civil-liab-param\')}} — {{selectedQuoteModel.civilLiabilityCover}} EUR</div>\r\n            <div class="param-info">{{__(\'civil-liab-info\')}}</div>\r\n        </div>\r\n    </div>\r\n    <div class="row" *ngIf="selectedQuoteModel.accidentCover > 0">\r\n        <div class="param-row">\r\n            <div class="param-value">{{__(\'accident-param\')}} — {{selectedQuoteModel.accidentCover}} EUR</div>\r\n            <div class="param-info">{{__(\'accident-info\')}}</div>\r\n        </div>\r\n    </div>\r\n    <div class="row" *ngIf="coverList.length > 0">\r\n        <div class="param-value">\r\n            {{__(\'cover-param\')}} — \r\n            <div class="param-cover" *ngFor="let cover of coverList; let i = index">\r\n                <span *ngIf="i < coverList.length -1">{{__(cover)}}, </span>\r\n                <span *ngIf="i === coverList.length -1">{{__(cover)}}</span>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>'),e("__useDefault",n),e("default",n)}}}),e.register("36",[],function(e,t){"use strict";var n;return{setters:[],execute:function(){e("__useDefault",n=".parameters{background-color:white;border:1px solid #ccc;border-radius:3px;padding:10px;margin-bottom:20px}.parameters .param-row{padding-bottom:10px}.parameters .param-info{display:block;padding-top:2px;font-style:italic}.parameters .param-cover{display:initial}\n"),e("__useDefault",n),e("default",n)}}}),e.registerDynamic("37",["c","31","13","35","36"],!0,function(e,t,n){"use strict";this||self;var r=t&&t.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=t&&t.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var o=e("c"),a=e("31"),s=e("13"),u=function(){function t(e){this._ts=e,this.selectedQuoteModel=new a.TripInsuranceQuote,this.coverList=new Array}return Object.defineProperty(t.prototype,"insuranceData",{set:function(e){this.insuranceDataModel=e,this.prepareCoverList()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectedQuote",{set:function(e){void 0!==e&&(this.selectedQuoteModel=e)},enumerable:!0,configurable:!0}),t.prototype.__=function(e,t){return this._ts.instant("insuranceParametersComponent."+e,t)},t.prototype.prepareCoverList=function(){this.insuranceDataModel.cover.pregnancy&&this.coverList.push("pregnancy"),this.insuranceDataModel.cover.accident&&this.coverList.push("accident"),this.insuranceDataModel.cover.civilLiability&&this.coverList.push("civil-liability"),this.insuranceDataModel.cover.legalHelp&&this.coverList.push("legal-help"),this.insuranceDataModel.cover.winterEquipmentLuggage&&this.coverList.push("winter-equipment-luggage"),this.insuranceDataModel.cover.missedDeparture&&this.coverList.push("missed-departure"),this.insuranceDataModel.cover.delayedDeparture&&this.coverList.push("missed-fly-departure"),this.insuranceDataModel.cover.physicalWork&&this.coverList.push("physical-work"),this.insuranceDataModel.cover.businessWork&&this.coverList.push("business-work"),this.insuranceDataModel.cover.activeSport&&this.coverList.push("active-sport"),this.insuranceDataModel.cover.winterSport&&this.coverList.push("winter-sport"),this.insuranceDataModel.cover.golfSport&&this.coverList.push("golf-sport")},r([o.Input(),i("design:type",a.InsuranceDataModel),i("design:paramtypes",[a.InsuranceDataModel])],t.prototype,"insuranceData",null),r([o.Input(),i("design:type",a.TripInsuranceQuote),i("design:paramtypes",[a.TripInsuranceQuote])],t.prototype,"selectedQuote",null),t=r([o.Component({selector:".iizi-insurance-parameters",template:e("35"),styles:[e("36")]}),i("design:paramtypes",[s.TranslateService])],t)}();t.InsuranceParametersComponent=u}),e.registerDynamic("38",[],!0,function(e,t,n){"use strict";this||self;Object.defineProperty(t,"__esModule",{value:!0});var r=function(){return function(){}}();t.InsuranceDataModel=r}),e.registerDynamic("39",[],!0,function(e,t,n){"use strict";this||self;Object.defineProperty(t,"__esModule",{value:!0});var r=function(){return function(){}}();t.TerritoryModel=r}),e.registerDynamic("3a",[],!0,function(e,t,n){"use strict";this||self;Object.defineProperty(t,"__esModule",{value:!0});var r=function(){return function(){}}();t.TravelerModel=r}),e.registerDynamic("3b",[],!0,function(e,t,n){"use strict";this||self;Object.defineProperty(t,"__esModule",{value:!0});var r=function(){return function(){}}();t.VehicleTypeModel=r}),e.registerDynamic("3c",[],!0,function(e,t,n){"use strict";this||self;Object.defineProperty(t,"__esModule",{value:!0});var r=function(){return function(){}}();t.TripInsuranceQuote=r}),e.registerDynamic("3d",[],!0,function(e,t,n){"use strict";this||self;Object.defineProperty(t,"__esModule",{value:!0});var r=function(){return function(){}}();t.TripInsuranceTerm=r}),e.registerDynamic("3e",[],!0,function(e,t,n){"use strict";this||self;Object.defineProperty(t,"__esModule",{value:!0});var r=function(){return function(){}}();t.TripInsuranceOffers=r}),e.registerDynamic("3f",[],!0,function(e,t,n){"use strict";this||self;Object.defineProperty(t,"__esModule",{value:!0});var r=function(){return function(){}}();t.InsuranceBuyerModel=r}),e.registerDynamic("40",[],!0,function(e,t,n){"use strict";this||self;Object.defineProperty(t,"__esModule",{value:!0});var r=function(){return function(){}}();t.TravelInsurerDescriptionModel=r}),e.registerDynamic("41",[],!0,function(e,t,n){"use strict";this||self;Object.defineProperty(t,"__esModule",{value:!0});var r=function(){return function(){}}();t.InsuranceTravelPolicyPaymentModel=r}),e.registerDynamic("42",[],!0,function(e,t,n){"use strict";this||self;Object.defineProperty(t,"__esModule",{value:!0});var r=function(){return function(){}}();t.TravelPolicyPaymentResponseModel=r}),e.registerDynamic("43",[],!0,function(e,t,n){"use strict";this||self;Object.defineProperty(t,"__esModule",{value:!0});var r=function(){return function(){}}();t.SpecialInsuranceDataModel=r}),e.registerDynamic("44",[],!0,function(e,t,n){"use strict";this||self;Object.defineProperty(t,"__esModule",{value:!0});var r=function(){return function(){}}();t.PaymentTypeModel=r}),e.registerDynamic("45",[],!0,function(e,t,n){"use strict";this||self;Object.defineProperty(t,"__esModule",{value:!0});var r=function(){return function(){}}();t.PaymentRegistrationDataModel=r}),e.registerDynamic("46",[],!0,function(e,t,n){"use strict";this||self;Object.defineProperty(t,"__esModule",{value:!0});var r=function(){return function(){}}();t.TermPanelModel=r}),e.registerDynamic("47",[],!0,function(e,t,n){"use strict";this||self;Object.defineProperty(t,"__esModule",{value:!0});var r=function(){return function(){}}();t.QuoteDescriptionModel=r}),e.registerDynamic("31",["38","39","3a","3b","3c","3d","3e","3f","40","41","42","43","44","45","46","47"],!0,function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}this||self;Object.defineProperty(t,"__esModule",{value:!0}),r(e("38")),r(e("39")),r(e("3a")),r(e("3b")),r(e("3c")),r(e("3d")),r(e("3e")),r(e("3f")),r(e("40")),r(e("41")),r(e("42")),r(e("43")),r(e("44")),r(e("45")),r(e("46")),r(e("47"))}),e.register("48",[],function(e,t){"use strict";var n;return{setters:[],execute:function(){e("__useDefault",n='<div class="row summary">\r\n            <div class="row">\r\n                <div class="{{selectedQuoteModel || specialInsuranceCheck ? \'cl-4-large\' : \'cl-6-large\'}} cl-6-medium cl-12-small">\r\n                    <b>{{__(\'territory\')}}</b> <span class="pink-text">{{__(selectedTerritoryName)}}</span>\r\n                </div>\r\n                <div class="{{selectedQuoteModel || specialInsuranceCheck ? \'cl-4-large\' : \'cl-6-large\'}} cl-6-medium cl-12-small">\r\n                    <b>{{__(\'period\')}}</b> <span class="pink-text">{{__(\'from\')}} {{insuranceDataModel.startDate}} {{__(\'to\')}} {{insuranceDataModel.endDate}}</span>\r\n                </div>\r\n                <div *ngIf="selectedQuoteModel" class="cl-4-large cl-6-medium cl-12-small">\r\n                    <b>{{__(\'insurer\')}}</b> <span class="insurer-name">{{selectedQuoteModel.insurerName}}</span> <span class="pink-text insurance-price">{{selectedQuoteModel.price | number:priceFormat}}</span>\r\n                </div>\r\n                <div *ngIf="specialInsuranceCheck" class="cl-4-large cl-6-medium cl-12-small">\r\n                    <b>{{__(\'insurer\')}}</b> <span class="pink-text">{{__(\'special-insurance\')}}</span>\r\n                </div>              \r\n            </div>\r\n            <div class="row">\r\n                <table>\r\n                    <tbody>\r\n                        <tr *ngFor="let travelerModel of insuranceDataModel.travelers; let i = index">\r\n                            <td><b *ngIf="i < 1">{{__(\'travelers\')}}</b></td>\r\n                            <td>{{travelerModel.name}}</td>\r\n                            <td>{{travelerModel.surname}}</td>\r\n                            <td>{{travelerModel.idCode}}</td>\r\n                            <td>{{travelerModel.age}}</td>\r\n                        </tr>\r\n                    </tbody>\r\n                </table>\r\n            </div>\r\n        </div>'),e("__useDefault",n),e("default",n)}}}),e.register("49",[],function(e,t){"use strict";var n;return{setters:[],execute:function(){e("__useDefault",n=".summary{background-color:white;border:1px solid #ccc;border-radius:3px;padding:10px;margin-bottom:20px}.summary .insurer-name{text-transform:uppercase}.summary .insurance-price{font-size:18px;font-weight:bold}.summary table{border-collapse:collapse;margin-bottom:initial}.summary table tr{padding:0}.summary table tr td{padding:5px}.summary table tr td:first-child{padding-left:0}\n"),e("__useDefault",n),e("default",n)}}}),e.registerDynamic("4a",["c","31","13","19","2a","48","49"],!0,function(e,t,n){"use strict";this||self;var r=t&&t.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=t&&t.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var o=e("c"),a=e("31"),s=e("13"),u=e("19"),c=e("2a"),l=function(){function t(e,t){this._tripInsuranceService=e,this._ts=t}return Object.defineProperty(t.prototype,"selectedTerritoryName",{get:function(){return this._tripInsuranceService.getTerritoryNameById(this.insuranceDataModel.cover.territory)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"priceFormat",{get:function(){return u.StaticConfig.priceFormat},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"insuranceData",{set:function(e){this.insuranceDataModel=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectedQuote",{set:function(e){this.selectedQuoteModel=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"specialInsurance",{set:function(e){this.specialInsuranceCheck=e},enumerable:!0,configurable:!0}),t.prototype.__=function(e,t){return this._ts.instant("insuranceSummaryComponent."+e,t)},r([o.Input(),i("design:type",a.InsuranceDataModel),i("design:paramtypes",[a.InsuranceDataModel])],t.prototype,"insuranceData",null),r([o.Input(),i("design:type",a.TripInsuranceQuote),i("design:paramtypes",[a.TripInsuranceQuote])],t.prototype,"selectedQuote",null),r([o.Input(),i("design:type",Boolean),i("design:paramtypes",[Boolean])],t.prototype,"specialInsurance",null),t=r([o.Component({selector:".iizi-insurance-summary",template:e("48"),styles:[e("49")]}),i("design:paramtypes",[c.TripInsuranceService,s.TranslateService])],t)}();t.InsuranceSummaryComponent=l}),e.register("4b",[],function(e,t){"use strict";var n;return{setters:[],execute:function(){e("__useDefault",n='<div class="row description">\r\n    <div class="row">\r\n        <h1>{{__(\'want-special-insurance\')}}</h1>\r\n    </div>\r\n    <div class="row">\r\n        &#x0002A; <span>{{__(\'eg-text\')}}</span>\r\n    </div>\r\n</div>'),e("__useDefault",n),e("default",n)}}}),e.register("4c",[],function(e,t){"use strict";var n;return{setters:[],execute:function(){e("__useDefault",n='.description{background:#36609e url("https://www.iizi.lv/calc/v3/assets/img/bg/baseJump.png") no-repeat scroll right -15px/auto 100px;border-radius:3px;color:white;height:70px;padding:5px;cursor:pointer}.description h1{font-size:26px;margin:0 0 10px}\n'),e("__useDefault",n),e("default",n)}}}),e.registerDynamic("4d",["c","13","4b","4c"],!0,function(e,t,n){"use strict";this||self;var r=t&&t.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=t&&t.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var o=e("c"),a=e("13"),s=function(){function t(e){this._ts=e}return t.prototype.__=function(e,t){return this._ts.instant("specialInsuranceComponent."+e,t)},t=r([o.Component({selector:".special-insurance",template:e("4b"),styles:[e("4c")]}),i("design:paramtypes",[a.TranslateService])],t)}();t.SpecialInsuranceComponent=s}),e.register("4e",[],function(e,t){"use strict";var n;return{setters:[],execute:function(){e("__useDefault",n='<div class="row paymentPageComponent">   \r\n    <div class="row" *ngIf="!showLoader">\r\n        <div class="payment-page" *ngIf="!sessionExpired">\r\n            <div class="row">\r\n                <h4 class="step-title">{{__(\'insurance-payment\')}}</h4>\r\n            </div>\r\n            <div class="row ch-h-pad" *ngIf="paymentRegistrationData">\r\n                <div class="cl-6-large cl-12-medium cl-12-small">\r\n                    <div class="row bank">\r\n                        <h2>{{__(\'bank-payment\')}}</h2>\r\n                        <ul>\r\n                            <li *ngFor="let bank of banks">\r\n                                <a href="{{generateBankUrl(bank)}}" title="{{bank.name}}" class="{{bank.name.toLowerCase()}}">\r\n                                    <span></span>\r\n                                </a>\r\n                            </li>\r\n                        </ul>\r\n                    </div>\r\n                </div>\r\n                <div class="cl-6-large cl-12-medium cl-12-small">\r\n                    <div class="row card">\r\n                        <h2>{{__(\'card-payment\')}}</h2>\r\n                        <ul>\r\n                            <li *ngFor="let card of cards">\r\n                                <a href="{{generateCardUrl()}}" title="{{card.name}}" class="{{card.name.toLowerCase()}}">\r\n                                    <span></span>\r\n                                </a>\r\n                            </li>\r\n                        </ul>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n            <div class="row ch-h-pad">\r\n                <div class="cl-12-large">\r\n                    <div class="row payment-rules">\r\n                        <p>{{__(\'payment-info\')}}</p>\r\n                        <p [innerHTML]="__(\'payment-process\')"></p>\r\n                        <p [innerHTML]="__(\'payment-process-end\')"></p>\r\n                        <p>{{__(\'payment-special-end\')}}</p>\r\n                        <p [innerHTML]="__(\'payment-question\')"></p>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </div>\r\n        <div class="row session-expired-page" *ngIf="sessionExpired">\r\n            <div class="row">\r\n                <div class="cl-2-large cl-3-medium cl-12-small status not-ok">\r\n                </div>\r\n                <div class="cl-10-large cl-9-medium cl-12-small">\r\n                    <div class="row content">\r\n                        <div class="row">\r\n                            <p class="session-end">{{__(\'session-end\')}}</p>\r\n                        </div>\r\n                        <div class="row error-block">\r\n                            <p>{{__(\'questions\')}} <b><a class="pink-text" href="mailto:celojumi@iizi.lv">celojumi@iizi.lv</a></b></p>   \r\n                        </div>\r\n                        <div class="row back-btn">\r\n                            <button class="auto-width" (click)="back()">{{__(\'back\')}}</button>\r\n                        </div>                                         \r\n                    </div>                                             \r\n                </div>\r\n            </div>\r\n        </div>\r\n    </div>\r\n    <div class="payment-loader" *ngIf="showLoader">\r\n    </div>\r\n</div>'),e("__useDefault",n),e("default",n)}}}),e.register("4f",[],function(e,t){"use strict";var n;return{setters:[],execute:function(){e("__useDefault",n='.bank,.card,.payment-rules{-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;margin:0 10px 10px;padding:5px 10px 20px;background:#FFF;border:1px solid #ccc}.bank a,.card a,.payment-rules a{cursor:pointer;display:block;height:58px;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;border:1px solid #bcbcbc;text-align:center;background:#FFF;background:-webkit-linear-gradient(#fff, #eee);background:-o-linear-gradient(#fff, #eee);background:-moz-linear-gradient(#fff, #eee);background:linear-gradient(#fff, #eee)}.bank ul,.card ul,.payment-rules ul{margin:0;list-style-type:none;padding:0}.bank li,.card li,.payment-rules li{display:-moz-inline-stack;display:inline-block;vertical-align:top;zoom:1;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;padding:2px;width:25%}@media screen and (max-width: 480px){.bank li,.card li,.payment-rules li{display:initial}}.bank span,.card span,.payment-rules span{display:inline-block;vertical-align:top;zoom:1;width:75px;height:58px;line-height:normal}.bank a.swedbanklv span,.card a.swedbanklv span,.payment-rules a.swedbanklv span{background:url("https://www.iizi.lv/calc/v3/assets/img/sprites/paymentMethods.png") no-repeat}.bank a.dnblv span,.card a.dnblv span,.payment-rules a.dnblv span{background:url("https://www.iizi.lv/calc/v3/assets/img/sprites/paymentMethods.png") left -117px no-repeat}.bank a.nordealv span,.card a.nordealv span,.payment-rules a.nordealv span{background:url("https://www.iizi.lv/calc/v3/assets/img/sprites/paymentMethods.png") left -175px no-repeat}.bank a.seblv span,.card a.seblv span,.payment-rules a.seblv span{background:url("https://www.iizi.lv/calc/v3/assets/img/sprites/paymentMethods.png") left -59px no-repeat}.bank a.mastercard,.bank a.maestro,.card a.mastercard,.card a.maestro,.payment-rules a.mastercard,.payment-rules a.maestro{border:1px solid #202a6c;background:#1c276a;background:-webkit-linear-gradient(#0d417f, #1c276a);background:-o-linear-gradient(#0d417f, #1c276a);background:-moz-linear-gradient(#0d417f, #1c276a);background:linear-gradient(#0d417f, #1c276a)}.bank a.mastercard span,.card a.mastercard span,.payment-rules a.mastercard span{background:url("https://www.iizi.lv/calc/v3/assets/img/sprites/paymentMethods.png") left -233px no-repeat}.bank a.maestro span,.card a.maestro span,.payment-rules a.maestro span{background:url("https://www.iizi.lv/calc/v3/assets/img/sprites/paymentMethods.png") left -291px no-repeat}.bank a.visaelectron,.card a.visaelectron,.payment-rules a.visaelectron{border:1px solid #124881;background:#145190;background:-webkit-linear-gradient(#145190, #145190);background:-o-linear-gradient(#145190, #145190);background:-moz-linear-gradient(#145190, #145190);background:linear-gradient(#145190, #145190)}.bank a.visaelectron span,.card a.visaelectron span,.payment-rules a.visaelectron span{background:url("https://www.iizi.lv/calc/v3/assets/img/sprites/paymentMethods.png") left -407px no-repeat}.bank a.visa span,.card a.visa span,.payment-rules a.visa span{background:url("https://www.iizi.lv/calc/v3/assets/img/sprites/paymentMethods.png") left -349px no-repeat}.bank h2,.card h2,.payment-rules h2{margin:0;padding:9px 0 20px 5px;font-size:14px;color:#55595b;text-align:left;font-weight:400}@media screen and (max-width: 480px){.bank h2,.card h2,.payment-rules h2{text-align:center}}.bank p,.card p,.payment-rules p{margin-bottom:1.47em;line-height:1.47}.session-end{color:#e32585;font-size:32px;line-height:32px;font-weight:700;margin:32px 0px}.error-block{font-size:16px}@media screen and (max-width: 480px){.back-btn{text-align:center}}.payment-loader{background-image:url("https://www.iizi.lv/calc/v3/assets/img/animations/loading.gif");background-position:center center;background-repeat:no-repeat;background-size:24px 24px;height:200px;text-align:center}\n'),e("__useDefault",n),e("default",n)}}}),e.registerDynamic("50",["c","24","13","21","14","15","19","2a","4e","4f"],!0,function(e,t,n){"use strict";this||self;var r=t&&t.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=t&&t.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var o=e("c"),a=e("24"),s=e("13"),u=e("21"),c=e("14"),l=e("15"),p=e("19"),d=e("2a"),h=function(){function t(e,t,n,r,i,o,a,s){this._ga=t,this._eventBus=n,this._tripInsuranceService=r,this._ts=i,this._router=o,this._activatedRoute=a,this._windowContainer=s,this._ga.trackPageView("PaymentPageComponent"),this._lg=e.new("PaymentPageComponent"),this._windowContainer.window.scrollTo(0,0),this._eventBus.calcStepEmmiter.emit({step:4,title:"payment-page"}),this.banks=this._tripInsuranceService.banks,this.cards=this._tripInsuranceService.cards}return t.prototype.handlePaymentRegistrationData=function(e){this.paymentRegistrationData=e,""!==this.paymentRegistrationData.email&&this.validateSessionTime(this.paymentRegistrationData.created)||(this.sessionExpired=!0),this.showLoader=!1},t.prototype.validateSessionTime=function(e){var t=this,n=u(new Date),r=u(e).add(30,"minutes").diff(n,"ms");return!(r<=0)&&(setTimeout(function(){t.sessionExpired=!t.validateSessionTime(t.paymentRegistrationData.created)},r),!0)},t.prototype.ngOnInit=function(){var e=this;this.showLoader=!0,this._activeRouteSubscription=this._activatedRoute.params.subscribe(function(t){e._partnerPaymentId=t.partnerPaymentId}),this._paymentSubscription=this._tripInsuranceService.paymentRegistrationData.subscribe(function(t){return e.handlePaymentRegistrationData(t)}),this._tripInsuranceService.giveMeTravelPaymentRegistrationData(this._partnerPaymentId)},t.prototype.ngOnDestroy=function(){this._activeRouteSubscription.unsubscribe(),this._paymentSubscription.unsubscribe()},t.prototype.__=function(e,t){return this._ts.instant("paymentPageComponent."+e,t)},t.prototype.generateBankUrl=function(e){return p.StaticConfig.paymentUrl+e.type+"/send/lv/"+e.name+"/"+this._partnerPaymentId+"/"+this.paymentRegistrationData.email},t.prototype.generateCardUrl=function(){return p.StaticConfig.paymentUrl+"creditcard/send/lv/"+this._partnerPaymentId+"/"+this.paymentRegistrationData.email},t.prototype.back=function(){this._router.navigate(["celojuma-dati"])},t=r([o.Component({template:e("4e"),styles:[e("4f")]}),i("design:paramtypes",[c.LoggerService,c.GoogleAnalyticsService,c.EventBusService,d.TripInsuranceService,s.TranslateService,a.Router,a.ActivatedRoute,l.WindowContainer])],t)}();t.PaymentPageComponent=h}),e.registerDynamic("51",["52"],!0,function(e,t,n){"use strict";this||self;var r=e("52");t.toPromise=function(e){var t=this;if(e||(r.root.Rx&&r.root.Rx.config&&r.root.Rx.config.Promise?e=r.root.Rx.config.Promise:r.root.Promise&&(e=r.root.Promise)),!e)throw new Error("no Promise impl found");return new e(function(e,n){var r;t.subscribe(function(e){return r=e},function(e){return n(e)},function(){return e(r)})})}}),function(i,o){"object"==typeof n&&void 0!==r?o(n,t("@angular/core"),t("rxjs/operator/toPromise"),t("rxjs/Subject"),t("rxjs/Observable"),t("rxjs/observable/fromPromise")):e.registerDynamic("29",["c","51","53","54","55"],!1,function(e,t,n){return"function"==typeof o?o.call(t,t,e("c"),e("51"),e("53"),e("54"),e("55")):o})}(0,function(e,t,n,r,i,o){"use strict";function a(e){return null!=e}function s(e){return null==e}function u(e,t){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)}function c(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function l(e){return!c(e)}function p(e){return null==e||0===e.length}function d(e){return q(e)?e:n.toPromise.call(e)}function h(e,t){return t.map(function(t){return t(e)})}function f(e,t){return t.map(function(t){return t(e)})}function m(e){var t=e.reduce(function(e,t){return a(t)?B.merge(e,t):e},{});return 0===Object.keys(t).length?null:t}function v(e){return e.validate?function(t){return e.validate(t)}:e}function y(e){return e.validate?function(t){return e.validate(t)}:e}function g(){throw new Error("unimplemented")}function _(e,t){return null==e?""+t:(l(t)||(t="Object"),(e+": "+t).slice(0,50))}function b(e){return e.split(":")[0]}function w(e,t){return null==e?""+t:("string"==typeof t&&(t="'"+t+"'"),l(t)||(t="Object"),(e+": "+t).slice(0,50))}function k(e){return e.split(":")[0]}function x(e,t){return t.path.concat([e])}function C(e,t){e||O(t,"Cannot find control with"),t.valueAccessor||O(t,"No value accessor for form control with"),e.validator=Z.compose([e.validator,t.validator]),e.asyncValidator=Z.composeAsync([e.asyncValidator,t.asyncValidator]),t.valueAccessor.writeValue(e.value),t.valueAccessor.registerOnChange(function(n){t.viewToModelUpdate(n),e.markAsDirty(),e.setValue(n,{emitModelToViewChange:!1})}),t.valueAccessor.registerOnTouched(function(){return e.markAsTouched()}),e.registerOnChange(function(e,n){t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)}),t.valueAccessor.setDisabledState&&e.registerOnDisabledChange(function(e){t.valueAccessor.setDisabledState(e)}),t._rawValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(function(){return e.updateValueAndValidity()})}),t._rawAsyncValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(function(){return e.updateValueAndValidity()})})}function S(e,t){t.valueAccessor.registerOnChange(function(){return T(t)}),t.valueAccessor.registerOnTouched(function(){return T(t)}),t._rawValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(null)}),t._rawAsyncValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(null)}),e&&e._clearChangeFns()}function E(e,t){s(e)&&O(t,"Cannot find control with"),e.validator=Z.compose([e.validator,t.validator]),e.asyncValidator=Z.composeAsync([e.asyncValidator,t.asyncValidator])}function T(e){return O(e,"There is no FormControl instance attached to form control element with")}function O(e,t){var n;throw n=e.path.length>1?"path: '"+e.path.join(" -> ")+"'":e.path[0]?"name: '"+e.path+"'":"unspecified name attribute",new Error(t+" "+n)}function P(e){return a(e)?Z.compose(e.map(v)):null}function M(e){return a(e)?Z.composeAsync(e.map(y)):null}function A(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!u(t,n.currentValue)}function D(e){return me.some(function(t){return e.constructor===t})}function I(e,t){if(!t)return null;var n,r,i;return t.forEach(function(t){t.constructor===$?n=t:D(t)?(r&&O(e,"More than one built-in value accessor matches form control with"),r=t):(i&&O(e,"More than one custom value accessor matches form control with"),i=t)}),i||(r||(n||(O(e,"No valid value accessor for form control with"),null)))}function R(e,t,n){return null==t?null:(t instanceof Array||(t=t.split(n)),t instanceof Array&&0===t.length?null:t.reduce(function(e,t){return e instanceof Oe?e.controls[t]||null:e instanceof Pe?e.at(t)||null:null},e))}function j(e){return q(e)?o.fromPromise(e):e}function N(e){return Array.isArray(e)?P(e):e}function L(e){return Array.isArray(e)?M(e):e}function F(e){return!(e instanceof Qe||e instanceof Ke||e instanceof et)}var V=function(){function e(){}return Object.defineProperty(e.prototype,"control",{get:function(){throw new Error("unimplemented")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.control?this.control.value:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valid",{get:function(){return this.control?this.control.valid:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"invalid",{get:function(){return this.control?this.control.invalid:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pending",{get:function(){return this.control?this.control.pending:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"errors",{get:function(){return this.control?this.control.errors:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pristine",{get:function(){return this.control?this.control.pristine:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dirty",{get:function(){return this.control?this.control.dirty:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"touched",{get:function(){return this.control?this.control.touched:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"untouched",{get:function(){return this.control?this.control.untouched:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return this.control?this.control.disabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return this.control?this.control.enabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"statusChanges",{get:function(){return this.control?this.control.statusChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valueChanges",{get:function(){return this.control?this.control.valueChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),e.prototype.reset=function(e){void 0===e&&(e=void 0),this.control&&this.control.reset(e)},e.prototype.hasError=function(e,t){return void 0===t&&(t=null),!!this.control&&this.control.hasError(e,t)},e.prototype.getError=function(e,t){return void 0===t&&(t=null),this.control?this.control.getError(e,t):null},e}(),z=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},U=function(e){function t(){e.apply(this,arguments)}return z(t,e),Object.defineProperty(t.prototype,"formDirective",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),t}(V),B=function(){function e(){}return e.merge=function(e,t){for(var n={},r=0,i=Object.keys(e);r<i.length;r++)n[s=i[r]]=e[s];for(var o=0,a=Object.keys(t);o<a.length;o++){var s=a[o];n[s]=t[s]}return n},e.equals=function(e,t){var n=Object.keys(e),r=Object.keys(t);if(n.length!=r.length)return!1;for(var i=0;i<n.length;i++){var o=n[i];if(e[o]!==t[o])return!1}return!0},e}(),H=function(){function e(){}return e.findLast=function(e,t){for(var n=e.length-1;n>=0;n--)if(t(e[n]))return e[n];return null},e.removeAll=function(e,t){for(var n=0;n<t.length;++n){var r=e.indexOf(t[n]);r>-1&&e.splice(r,1)}},e.remove=function(e,t){var n=e.indexOf(t);return n>-1&&(e.splice(n,1),!0)},e.equals=function(e,t){if(e.length!=t.length)return!1;for(var n=0;n<e.length;++n)if(e[n]!==t[n])return!1;return!0},e.flatten=function(t){return t.reduce(function(t,n){var r=Array.isArray(n)?e.flatten(n):n;return t.concat(r)},[])},e}(),q=t.__core_private__.isPromise,W=t.__core_private__.isObservable,G=new t.OpaqueToken("NgValidators"),Y=new t.OpaqueToken("NgAsyncValidators"),Z=function(){function e(){}return e.required=function(e){return p(e.value)?{required:!0}:null},e.requiredTrue=function(e){return!0===e.value?null:{required:!0}},e.minLength=function(e){return function(t){if(p(t.value))return null;var n=t.value?t.value.length:0;return n<e?{minlength:{requiredLength:e,actualLength:n}}:null}},e.maxLength=function(e){return function(t){var n=t.value?t.value.length:0;return n>e?{maxlength:{requiredLength:e,actualLength:n}}:null}},e.pattern=function(t){if(!t)return e.nullValidator;var n,r;return"string"==typeof t?(r="^"+t+"$",n=new RegExp(r)):(r=t.toString(),n=t),function(e){if(p(e.value))return null;var t=e.value;return n.test(t)?null:{pattern:{requiredPattern:r,actualValue:t}}}},e.nullValidator=function(e){return null},e.compose=function(e){if(!e)return null;var t=e.filter(a);return 0==t.length?null:function(e){return m(h(e,t))}},e.composeAsync=function(e){if(!e)return null;var t=e.filter(a);return 0==t.length?null:function(e){var n=f(e,t).map(d);return Promise.all(n).then(m)}},e}(),K=new t.OpaqueToken("NgValueAccessor"),X={provide:K,useExisting:t.forwardRef(function(){return J}),multi:!0},J=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setElementProperty(this._elementRef.nativeElement,"checked",e)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",e)},e.decorators=[{type:t.Directive,args:[{selector:"input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]",host:{"(change)":"onChange($event.target.checked)","(blur)":"onTouched()"},providers:[X]}]}],e.ctorParameters=function(){return[{type:t.Renderer},{type:t.ElementRef}]},e}(),Q={provide:K,useExisting:t.forwardRef(function(){return $}),multi:!0},$=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){var t=null==e?"":e;this._renderer.setElementProperty(this._elementRef.nativeElement,"value",t)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",e)},e.decorators=[{type:t.Directive,args:[{selector:"input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]",host:{"(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[Q]}]}],e.ctorParameters=function(){return[{type:t.Renderer},{type:t.ElementRef}]},e}(),ee={provide:K,useExisting:t.forwardRef(function(){return te}),multi:!0},te=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){var t=null==e?"":e;this._renderer.setElementProperty(this._elementRef.nativeElement,"value",t)},e.prototype.registerOnChange=function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",e)},e.decorators=[{type:t.Directive,args:[{selector:"input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]",host:{"(change)":"onChange($event.target.value)","(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[ee]}]}],e.ctorParameters=function(){return[{type:t.Renderer},{type:t.ElementRef}]},e}(),ne=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},re=function(e){function t(){e.apply(this,arguments),this._parent=null,this.name=null,this.valueAccessor=null,this._rawValidators=[],this._rawAsyncValidators=[]}return ne(t,e),Object.defineProperty(t.prototype,"validator",{get:function(){return g()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return g()},enumerable:!0,configurable:!0}),t.prototype.viewToModelUpdate=function(e){},t}(V),ie={provide:K,useExisting:t.forwardRef(function(){return ae}),multi:!0},oe=function(){function e(){this._accessors=[]}return e.prototype.add=function(e,t){this._accessors.push([e,t])},e.prototype.remove=function(e){for(var t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)},e.prototype.select=function(e){var t=this;this._accessors.forEach(function(n){t._isSameGroup(n,e)&&n[1]!==e&&n[1].fireUncheck(e.value)})},e.prototype._isSameGroup=function(e,t){return!!e[0].control&&(e[0]._parent===t._control._parent&&e[1].name===t.name)},e.decorators=[{type:t.Injectable}],e.ctorParameters=function(){return[]},e}(),ae=function(){function e(e,t,n,r){this._renderer=e,this._elementRef=t,this._registry=n,this._injector=r,this.onChange=function(){},this.onTouched=function(){}}return e.prototype.ngOnInit=function(){this._control=this._injector.get(re),this._checkName(),this._registry.add(this._control,this)},e.prototype.ngOnDestroy=function(){this._registry.remove(this)},e.prototype.writeValue=function(e){this._state=e===this.value,this._renderer.setElementProperty(this._elementRef.nativeElement,"checked",this._state)},e.prototype.registerOnChange=function(e){var t=this;this._fn=e,this.onChange=function(){e(t.value),t._registry.select(t)}},e.prototype.fireUncheck=function(e){this.writeValue(e)},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},e.prototype._throwNameError=function(){throw new Error('\n      If you define both a name and a formControlName attribute on your radio button, their values\n      must match. Ex: <input type="radio" formControlName="food" name="food">\n    ')},e.decorators=[{type:t.Directive,args:[{selector:"input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]",host:{"(change)":"onChange()","(blur)":"onTouched()"},providers:[ie]}]}],e.ctorParameters=function(){return[{type:t.Renderer},{type:t.ElementRef},{type:oe},{type:t.Injector}]},e.propDecorators={name:[{type:t.Input}],formControlName:[{type:t.Input}],value:[{type:t.Input}]},e}(),se={provide:K,useExisting:t.forwardRef(function(){return ue}),multi:!0},ue=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setElementProperty(this._elementRef.nativeElement,"value",parseFloat(e))},e.prototype.registerOnChange=function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",e)},e.decorators=[{type:t.Directive,args:[{selector:"input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]",host:{"(change)":"onChange($event.target.value)","(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[se]}]}],e.ctorParameters=function(){return[{type:t.Renderer},{type:t.ElementRef}]},e}(),ce={provide:K,useExisting:t.forwardRef(function(){return le}),multi:!0},le=function(){function e(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this.value=e;var t=this._getOptionId(e);null==t&&this._renderer.setElementProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=_(t,e);this._renderer.setElementProperty(this._elementRef.nativeElement,"value",n)},e.prototype.registerOnChange=function(e){var t=this;this.onChange=function(n){t.value=n,e(t._getOptionValue(n))}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._registerOption=function(){return(this._idCounter++).toString()},e.prototype._getOptionId=function(e){for(var t=0,n=Array.from(this._optionMap.keys());t<n.length;t++){var r=n[t];if(u(this._optionMap.get(r),e))return r}return null},e.prototype._getOptionValue=function(e){var t=b(e);return this._optionMap.has(t)?this._optionMap.get(t):e},e.decorators=[{type:t.Directive,args:[{selector:"select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]",host:{"(change)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[ce]}]}],e.ctorParameters=function(){return[{type:t.Renderer},{type:t.ElementRef}]},e}(),pe=function(){function e(e,t,n){this._element=e,this._renderer=t,this._select=n,this._select&&(this.id=this._select._registerOption())}return Object.defineProperty(e.prototype,"ngValue",{set:function(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(_(this.id,e)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{set:function(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)},enumerable:!0,configurable:!0}),e.prototype._setElementValue=function(e){this._renderer.setElementProperty(this._element.nativeElement,"value",e)},e.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))},e.decorators=[{type:t.Directive,args:[{selector:"option"}]}],e.ctorParameters=function(){return[{type:t.ElementRef},{type:t.Renderer},{type:le,decorators:[{type:t.Optional},{type:t.Host}]}]},e.propDecorators={ngValue:[{type:t.Input,args:["ngValue"]}],value:[{type:t.Input,args:["value"]}]},e}(),de={provide:K,useExisting:t.forwardRef(function(){return he}),multi:!0},he=function(){function e(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){var t=this;this.value=e;var n;if(Array.isArray(e)){var r=e.map(function(e){return t._getOptionId(e)});n=function(e,t){e._setSelected(r.indexOf(t.toString())>-1)}}else n=function(e,t){e._setSelected(!1)};this._optionMap.forEach(n)},e.prototype.registerOnChange=function(e){var t=this;this.onChange=function(n){var r=[];if(n.hasOwnProperty("selectedOptions"))for(var i=n.selectedOptions,o=0;o<i.length;o++){var a=i.item(o),s=t._getOptionValue(a.value);r.push(s)}else for(var i=n.options,o=0;o<i.length;o++)if((a=i.item(o)).selected){s=t._getOptionValue(a.value);r.push(s)}t.value=r,e(r)}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._registerOption=function(e){var t=(this._idCounter++).toString();return this._optionMap.set(t,e),t},e.prototype._getOptionId=function(e){for(var t=0,n=Array.from(this._optionMap.keys());t<n.length;t++){var r=n[t];if(u(this._optionMap.get(r)._value,e))return r}return null},e.prototype._getOptionValue=function(e){var t=k(e);return this._optionMap.has(t)?this._optionMap.get(t)._value:e},e.decorators=[{type:t.Directive,args:[{selector:"select[multiple][formControlName],select[multiple][formControl],select[multiple][ngModel]",host:{"(change)":"onChange($event.target)","(blur)":"onTouched()"},providers:[de]}]}],e.ctorParameters=function(){return[{type:t.Renderer},{type:t.ElementRef}]},e}(),fe=function(){function e(e,t,n){this._element=e,this._renderer=t,this._select=n,this._select&&(this.id=this._select._registerOption(this))}return Object.defineProperty(e.prototype,"ngValue",{set:function(e){null!=this._select&&(this._value=e,this._setElementValue(w(this.id,e)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{set:function(e){this._select?(this._value=e,this._setElementValue(w(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)},enumerable:!0,configurable:!0}),e.prototype._setElementValue=function(e){this._renderer.setElementProperty(this._element.nativeElement,"value",e)},e.prototype._setSelected=function(e){this._renderer.setElementProperty(this._element.nativeElement,"selected",e)},e.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))},e.decorators=[{type:t.Directive,args:[{selector:"option"}]}],e.ctorParameters=function(){return[{type:t.ElementRef},{type:t.Renderer},{type:he,decorators:[{type:t.Optional},{type:t.Host}]}]},e.propDecorators={ngValue:[{type:t.Input,args:["ngValue"]}],value:[{type:t.Input,args:["value"]}]},e}(),me=[J,ue,te,le,he,ae],ve=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},ye=function(e){function t(){e.apply(this,arguments)}return ve(t,e),t.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormGroup(this)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormGroup(this)},Object.defineProperty(t.prototype,"control",{get:function(){return this.formDirective.getFormGroup(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return x(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return P(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return M(this._asyncValidators)},enumerable:!0,configurable:!0}),t.prototype._checkParentType=function(){},t}(U),ge=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},_e=function(){function e(e){this._cd=e}return Object.defineProperty(e.prototype,"ngClassUntouched",{get:function(){return!!this._cd.control&&this._cd.control.untouched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassTouched",{get:function(){return!!this._cd.control&&this._cd.control.touched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassPristine",{get:function(){return!!this._cd.control&&this._cd.control.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassDirty",{get:function(){return!!this._cd.control&&this._cd.control.dirty},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassValid",{get:function(){return!!this._cd.control&&this._cd.control.valid},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassInvalid",{get:function(){return!!this._cd.control&&this._cd.control.invalid},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassPending",{get:function(){return!!this._cd.control&&this._cd.control.pending},enumerable:!0,configurable:!0}),e}(),be={"[class.ng-untouched]":"ngClassUntouched","[class.ng-touched]":"ngClassTouched","[class.ng-pristine]":"ngClassPristine","[class.ng-dirty]":"ngClassDirty","[class.ng-valid]":"ngClassValid","[class.ng-invalid]":"ngClassInvalid","[class.ng-pending]":"ngClassPending"},we=function(e){function n(t){e.call(this,t)}return ge(n,e),n.decorators=[{type:t.Directive,args:[{selector:"[formControlName],[ngModel],[formControl]",host:be}]}],n.ctorParameters=function(){return[{type:re,decorators:[{type:t.Self}]}]},n}(_e),ke=function(e){function n(t){e.call(this,t)}return ge(n,e),n.decorators=[{type:t.Directive,args:[{selector:"[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]",host:be}]}],n.ctorParameters=function(){return[{type:U,decorators:[{type:t.Self}]}]},n}(_e),xe=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},Ce=function(e){function t(t){void 0===t&&(t=!1),e.call(this),this.__isAsync=t}return xe(t,e),t.prototype.emit=function(t){e.prototype.next.call(this,t)},t.prototype.subscribe=function(t,n,r){var i,o=function(e){return null},a=function(){return null};return t&&"object"==typeof t?(i=this.__isAsync?function(e){setTimeout(function(){return t.next(e)})}:function(e){t.next(e)},t.error&&(o=this.__isAsync?function(e){setTimeout(function(){return t.error(e)})}:function(e){t.error(e)}),t.complete&&(a=this.__isAsync?function(){setTimeout(function(){return t.complete()})}:function(){t.complete()})):(i=this.__isAsync?function(e){setTimeout(function(){return t(e)})}:function(e){t(e)},n&&(o=this.__isAsync?function(e){setTimeout(function(){return n(e)})}:function(e){n(e)}),r&&(a=this.__isAsync?function(){setTimeout(function(){return r()})}:function(){r()})),e.prototype.subscribe.call(this,i,o,a)},t}(r.Subject),Se=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},Ee=function(){function e(e,t){this.validator=e,this.asyncValidator=t,this._onCollectionChange=function(){},this._pristine=!0,this._touched=!1,this._onDisabledChange=[]}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this._status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valid",{get:function(){return"VALID"===this._status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"invalid",{get:function(){return"INVALID"===this._status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pending",{get:function(){return"PENDING"==this._status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return"DISABLED"===this._status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return"DISABLED"!==this._status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"errors",{get:function(){return this._errors},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pristine",{get:function(){return this._pristine},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dirty",{get:function(){return!this.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"touched",{get:function(){return this._touched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"untouched",{get:function(){return!this._touched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valueChanges",{get:function(){return this._valueChanges},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"statusChanges",{get:function(){return this._statusChanges},enumerable:!0,configurable:!0}),e.prototype.setValidators=function(e){this.validator=N(e)},e.prototype.setAsyncValidators=function(e){this.asyncValidator=L(e)},e.prototype.clearValidators=function(){this.validator=null},e.prototype.clearAsyncValidators=function(){this.asyncValidator=null},e.prototype.markAsTouched=function(e){var t=(void 0===e?{}:e).onlySelf;this._touched=!0,this._parent&&!t&&this._parent.markAsTouched({onlySelf:t})},e.prototype.markAsUntouched=function(e){var t=(void 0===e?{}:e).onlySelf;this._touched=!1,this._forEachChild(function(e){e.markAsUntouched({onlySelf:!0})}),this._parent&&!t&&this._parent._updateTouched({onlySelf:t})},e.prototype.markAsDirty=function(e){var t=(void 0===e?{}:e).onlySelf;this._pristine=!1,this._parent&&!t&&this._parent.markAsDirty({onlySelf:t})},e.prototype.markAsPristine=function(e){var t=(void 0===e?{}:e).onlySelf;this._pristine=!0,this._forEachChild(function(e){e.markAsPristine({onlySelf:!0})}),this._parent&&!t&&this._parent._updatePristine({onlySelf:t})},e.prototype.markAsPending=function(e){var t=(void 0===e?{}:e).onlySelf;this._status="PENDING",this._parent&&!t&&this._parent.markAsPending({onlySelf:t})},e.prototype.disable=function(e){var t=void 0===e?{}:e,n=t.onlySelf,r=t.emitEvent;this._status="DISABLED",this._errors=null,this._forEachChild(function(e){e.disable({onlySelf:!0})}),this._updateValue(),!1!==r&&(this._valueChanges.emit(this._value),this._statusChanges.emit(this._status)),this._updateAncestors(n),this._onDisabledChange.forEach(function(e){return e(!0)})},e.prototype.enable=function(e){var t=void 0===e?{}:e,n=t.onlySelf,r=t.emitEvent;this._status="VALID",this._forEachChild(function(e){e.enable({onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:r}),this._updateAncestors(n),this._onDisabledChange.forEach(function(e){return e(!1)})},e.prototype._updateAncestors=function(e){this._parent&&!e&&(this._parent.updateValueAndValidity(),this._parent._updatePristine(),this._parent._updateTouched())},e.prototype.setParent=function(e){this._parent=e},e.prototype.setValue=function(e,t){},e.prototype.patchValue=function(e,t){},e.prototype.reset=function(e,t){},e.prototype.updateValueAndValidity=function(e){var t=void 0===e?{}:e,n=t.onlySelf,r=t.emitEvent;this._setInitialStatus(),this._updateValue(),this.enabled&&(this._errors=this._runValidator(),this._status=this._calculateStatus(),"VALID"!==this._status&&"PENDING"!==this._status||this._runAsyncValidator(r)),!1!==r&&(this._valueChanges.emit(this._value),this._statusChanges.emit(this._status)),this._parent&&!n&&this._parent.updateValueAndValidity({onlySelf:n,emitEvent:r})},e.prototype._updateTreeValidity=function(e){var t=(void 0===e?{emitEvent:!0}:e).emitEvent;this._forEachChild(function(e){return e._updateTreeValidity({emitEvent:t})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t})},e.prototype._setInitialStatus=function(){this._status=this._allControlsDisabled()?"DISABLED":"VALID"},e.prototype._runValidator=function(){return this.validator?this.validator(this):null},e.prototype._runAsyncValidator=function(e){var t=this;if(this.asyncValidator){this._status="PENDING",this._cancelExistingSubscription();var n=j(this.asyncValidator(this));if(!W(n))throw new Error("expected the following validator to return Promise or Observable: "+this.asyncValidator+". If you are using FormBuilder; did you forget to brace your validators in an array?");this._asyncValidationSubscription=n.subscribe({next:function(n){return t.setErrors(n,{emitEvent:e})}})}},e.prototype._cancelExistingSubscription=function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()},e.prototype.setErrors=function(e,t){var n=(void 0===t?{}:t).emitEvent;this._errors=e,this._updateControlsErrors(!1!==n)},e.prototype.get=function(e){return R(this,e,".")},e.prototype.getError=function(e,t){void 0===t&&(t=null);var n=t?this.get(t):this;return n&&n._errors?n._errors[e]:null},e.prototype.hasError=function(e,t){return void 0===t&&(t=null),!!this.getError(e,t)},Object.defineProperty(e.prototype,"root",{get:function(){for(var e=this;e._parent;)e=e._parent;return e},enumerable:!0,configurable:!0}),e.prototype._updateControlsErrors=function(e){this._status=this._calculateStatus(),e&&this._statusChanges.emit(this._status),this._parent&&this._parent._updateControlsErrors(e)},e.prototype._initObservables=function(){this._valueChanges=new Ce,this._statusChanges=new Ce},e.prototype._calculateStatus=function(){return this._allControlsDisabled()?"DISABLED":this._errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"},e.prototype._updateValue=function(){},e.prototype._forEachChild=function(e){},e.prototype._anyControls=function(e){},e.prototype._allControlsDisabled=function(){},e.prototype._anyControlsHaveStatus=function(e){return this._anyControls(function(t){return t.status===e})},e.prototype._anyControlsDirty=function(){return this._anyControls(function(e){return e.dirty})},e.prototype._anyControlsTouched=function(){return this._anyControls(function(e){return e.touched})},e.prototype._updatePristine=function(e){var t=(void 0===e?{}:e).onlySelf;this._pristine=!this._anyControlsDirty(),this._parent&&!t&&this._parent._updatePristine({onlySelf:t})},e.prototype._updateTouched=function(e){var t=(void 0===e?{}:e).onlySelf;this._touched=this._anyControlsTouched(),this._parent&&!t&&this._parent._updateTouched({onlySelf:t})},e.prototype._isBoxedValue=function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e},e.prototype._registerOnCollectionChange=function(e){this._onCollectionChange=e},e}(),Te=function(e){function t(t,n,r){void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),e.call(this,N(n),L(r)),this._onChange=[],this._applyFormState(t),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),this._initObservables()}return Se(t,e),t.prototype.setValue=function(e,t){var n=this,r=void 0===t?{}:t,i=r.onlySelf,o=r.emitEvent,a=r.emitModelToViewChange,s=r.emitViewToModelChange;this._value=e,this._onChange.length&&!1!==a&&this._onChange.forEach(function(e){return e(n._value,!1!==s)}),this.updateValueAndValidity({onlySelf:i,emitEvent:o})},t.prototype.patchValue=function(e,t){void 0===t&&(t={}),this.setValue(e,t)},t.prototype.reset=function(e,t){void 0===e&&(e=null);var n=void 0===t?{}:t,r=n.onlySelf,i=n.emitEvent;this._applyFormState(e),this.markAsPristine({onlySelf:r}),this.markAsUntouched({onlySelf:r}),this.setValue(this._value,{onlySelf:r,emitEvent:i})},t.prototype._updateValue=function(){},t.prototype._anyControls=function(e){return!1},t.prototype._allControlsDisabled=function(){return this.disabled},t.prototype.registerOnChange=function(e){this._onChange.push(e)},t.prototype._clearChangeFns=function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}},t.prototype.registerOnDisabledChange=function(e){this._onDisabledChange.push(e)},t.prototype._forEachChild=function(e){},t.prototype._applyFormState=function(e){this._isBoxedValue(e)?(this._value=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this._value=e},t}(Ee),Oe=function(e){function t(t,n,r){void 0===n&&(n=null),void 0===r&&(r=null),e.call(this,n,r),this.controls=t,this._initObservables(),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}return Se(t,e),t.prototype.registerControl=function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)},t.prototype.addControl=function(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.removeControl=function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.setControl=function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.contains=function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled},t.prototype.setValue=function(e,t){var n=this,r=void 0===t?{}:t,i=r.onlySelf,o=r.emitEvent;this._checkAllValuesPresent(e),Object.keys(e).forEach(function(t){n._throwIfControlMissing(t),n.controls[t].setValue(e[t],{onlySelf:!0,emitEvent:o})}),this.updateValueAndValidity({onlySelf:i,emitEvent:o})},t.prototype.patchValue=function(e,t){var n=this,r=void 0===t?{}:t,i=r.onlySelf,o=r.emitEvent;Object.keys(e).forEach(function(t){n.controls[t]&&n.controls[t].patchValue(e[t],{onlySelf:!0,emitEvent:o})}),this.updateValueAndValidity({onlySelf:i,emitEvent:o})},t.prototype.reset=function(e,t){void 0===e&&(e={});var n=void 0===t?{}:t,r=n.onlySelf,i=n.emitEvent;this._forEachChild(function(t,n){t.reset(e[n],{onlySelf:!0,emitEvent:i})}),this.updateValueAndValidity({onlySelf:r,emitEvent:i}),this._updatePristine({onlySelf:r}),this._updateTouched({onlySelf:r})},t.prototype.getRawValue=function(){return this._reduceChildren({},function(e,t,n){return e[n]=t instanceof Te?t.value:t.getRawValue(),e})},t.prototype._throwIfControlMissing=function(e){if(!Object.keys(this.controls).length)throw new Error("\n        There are no form controls registered with this group yet.  If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.controls[e])throw new Error("Cannot find form control with name: "+e+".")},t.prototype._forEachChild=function(e){var t=this;Object.keys(this.controls).forEach(function(n){return e(t.controls[n],n)})},t.prototype._setUpControls=function(){var e=this;this._forEachChild(function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)})},t.prototype._updateValue=function(){this._value=this._reduceValue()},t.prototype._anyControls=function(e){var t=this,n=!1;return this._forEachChild(function(r,i){n=n||t.contains(i)&&e(r)}),n},t.prototype._reduceValue=function(){var e=this;return this._reduceChildren({},function(t,n,r){return(n.enabled||e.disabled)&&(t[r]=n.value),t})},t.prototype._reduceChildren=function(e,t){var n=e;return this._forEachChild(function(e,r){n=t(n,e,r)}),n},t.prototype._allControlsDisabled=function(){for(var e=0,t=Object.keys(this.controls);e<t.length;e++){var n=t[e];if(this.controls[n].enabled)return!1}return Object.keys(this.controls).length>0||this.disabled},t.prototype._checkAllValuesPresent=function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")})},t}(Ee),Pe=function(e){function t(t,n,r){void 0===n&&(n=null),void 0===r&&(r=null),e.call(this,n,r),this.controls=t,this._initObservables(),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}return Se(t,e),t.prototype.at=function(e){return this.controls[e]},t.prototype.push=function(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.insert=function(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.removeAt=function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.setControl=function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(t.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),t.prototype.setValue=function(e,t){var n=this,r=void 0===t?{}:t,i=r.onlySelf,o=r.emitEvent;this._checkAllValuesPresent(e),e.forEach(function(e,t){n._throwIfControlMissing(t),n.at(t).setValue(e,{onlySelf:!0,emitEvent:o})}),this.updateValueAndValidity({onlySelf:i,emitEvent:o})},t.prototype.patchValue=function(e,t){var n=this,r=void 0===t?{}:t,i=r.onlySelf,o=r.emitEvent;e.forEach(function(e,t){n.at(t)&&n.at(t).patchValue(e,{onlySelf:!0,emitEvent:o})}),this.updateValueAndValidity({onlySelf:i,emitEvent:o})},t.prototype.reset=function(e,t){void 0===e&&(e=[]);var n=void 0===t?{}:t,r=n.onlySelf,i=n.emitEvent;this._forEachChild(function(t,n){t.reset(e[n],{onlySelf:!0,emitEvent:i})}),this.updateValueAndValidity({onlySelf:r,emitEvent:i}),this._updatePristine({onlySelf:r}),this._updateTouched({onlySelf:r})},t.prototype.getRawValue=function(){return this.controls.map(function(e){return e instanceof Te?e.value:e.getRawValue()})},t.prototype._throwIfControlMissing=function(e){if(!this.controls.length)throw new Error("\n        There are no form controls registered with this array yet.  If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.at(e))throw new Error("Cannot find form control at index "+e)},t.prototype._forEachChild=function(e){this.controls.forEach(function(t,n){e(t,n)})},t.prototype._updateValue=function(){var e=this;this._value=this.controls.filter(function(t){return t.enabled||e.disabled}).map(function(e){return e.value})},t.prototype._anyControls=function(e){return this.controls.some(function(t){return t.enabled&&e(t)})},t.prototype._setUpControls=function(){var e=this;this._forEachChild(function(t){return e._registerControl(t)})},t.prototype._checkAllValuesPresent=function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: "+n+".")})},t.prototype._allControlsDisabled=function(){for(var e=0,t=this.controls;e<t.length;e++)if(t[e].enabled)return!1;return this.controls.length>0||this.disabled},t.prototype._registerControl=function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)},t}(Ee),Me=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},Ae={provide:U,useExisting:t.forwardRef(function(){return Ie})},De=Promise.resolve(null),Ie=function(e){function n(t,n){e.call(this),this._submitted=!1,this.ngSubmit=new Ce,this.form=new Oe({},P(t),M(n))}return Me(n,e),Object.defineProperty(n.prototype,"submitted",{get:function(){return this._submitted},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),n.prototype.addControl=function(e){var t=this;De.then(function(){var n=t._findContainer(e.path);e._control=n.registerControl(e.name,e.control),C(e.control,e),e.control.updateValueAndValidity({emitEvent:!1})})},n.prototype.getControl=function(e){return this.form.get(e.path)},n.prototype.removeControl=function(e){var t=this;De.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)})},n.prototype.addFormGroup=function(e){var t=this;De.then(function(){var n=t._findContainer(e.path),r=new Oe({});E(r,e),n.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})},n.prototype.removeFormGroup=function(e){var t=this;De.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)})},n.prototype.getFormGroup=function(e){return this.form.get(e.path)},n.prototype.updateModel=function(e,t){var n=this;De.then(function(){n.form.get(e.path).setValue(t)})},n.prototype.setValue=function(e){this.control.setValue(e)},n.prototype.onSubmit=function(e){return this._submitted=!0,this.ngSubmit.emit(e),!1},n.prototype.onReset=function(){this.resetForm()},n.prototype.resetForm=function(e){void 0===e&&(e=void 0),this.form.reset(e),this._submitted=!1},n.prototype._findContainer=function(e){return e.pop(),e.length?this.form.get(e):this.form},n.decorators=[{type:t.Directive,args:[{selector:"form:not([ngNoForm]):not([formGroup]),ngForm,[ngForm]",providers:[Ae],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},outputs:["ngSubmit"],exportAs:"ngForm"}]}],n.ctorParameters=function(){return[{type:Array,decorators:[{type:t.Optional},{type:t.Self},{type:t.Inject,args:[G]}]},{type:Array,decorators:[{type:t.Optional},{type:t.Self},{type:t.Inject,args:[Y]}]}]},n}(U),Re={formControlName:'\n    <div [formGroup]="myGroup">\n      <input formControlName="firstName">\n    </div>\n\n    In your class:\n\n    this.myGroup = new FormGroup({\n       firstName: new FormControl()\n    });',formGroupName:'\n    <div [formGroup]="myGroup">\n       <div formGroupName="person">\n          <input formControlName="firstName">\n       </div>\n    </div>\n\n    In your class:\n\n    this.myGroup = new FormGroup({\n       person: new FormGroup({ firstName: new FormControl() })\n    });',formArrayName:'\n    <div [formGroup]="myGroup">\n      <div formArrayName="cities">\n        <div *ngFor="let city of cityArray.controls; let i=index">\n          <input [formControlName]="i">\n        </div>\n      </div>\n    </div>\n\n    In your class:\n\n    this.cityArray = new FormArray([new FormControl(\'SF\')]);\n    this.myGroup = new FormGroup({\n      cities: this.cityArray\n    });',ngModelGroup:'\n    <form>\n       <div ngModelGroup="person">\n          <input [(ngModel)]="person.name" name="firstName">\n       </div>\n    </form>',ngModelWithFormGroup:'\n    <div [formGroup]="myGroup">\n       <input formControlName="firstName">\n       <input [(ngModel)]="showMoreControls" [ngModelOptions]="{standalone: true}">\n    </div>\n  '},je=function(){function e(){}return e.modelParentException=function(){throw new Error('\n      ngModel cannot be used to register form controls with a parent formGroup directive.  Try using\n      formGroup\'s partner directive "formControlName" instead.  Example:\n\n      '+Re.formControlName+"\n\n      Or, if you'd like to avoid registering this form control, indicate that it's standalone in ngModelOptions:\n\n      Example:\n\n      "+Re.ngModelWithFormGroup)},e.formGroupNameException=function(){throw new Error("\n      ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n      Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n      "+Re.formGroupName+"\n\n      Option 2:  Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n      "+Re.ngModelGroup)},e.missingNameException=function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n      control must be defined as \'standalone\' in ngModelOptions.\n\n      Example 1: <input [(ngModel)]="person.firstName" name="first">\n      Example 2: <input [(ngModel)]="person.firstName" [ngModelOptions]="{standalone: true}">')},e.modelGroupParentException=function(){throw new Error("\n      ngModelGroup cannot be used with a parent formGroup directive.\n\n      Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n      "+Re.formGroupName+"\n\n      Option 2:  Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n      "+Re.ngModelGroup)},e}(),Ne=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},Le={provide:U,useExisting:t.forwardRef(function(){return Fe})},Fe=function(e){function n(t,n,r){e.call(this),this._parent=t,this._validators=n,this._asyncValidators=r}return Ne(n,e),n.prototype._checkParentType=function(){this._parent instanceof n||this._parent instanceof Ie||je.modelGroupParentException()},n.decorators=[{type:t.Directive,args:[{selector:"[ngModelGroup]",providers:[Le],exportAs:"ngModelGroup"}]}],n.ctorParameters=function(){return[{type:U,decorators:[{type:t.Host},{type:t.SkipSelf}]},{type:Array,decorators:[{type:t.Optional},{type:t.Self},{type:t.Inject,args:[G]}]},{type:Array,decorators:[{type:t.Optional},{type:t.Self},{type:t.Inject,args:[Y]}]}]},n.propDecorators={name:[{type:t.Input,args:["ngModelGroup"]}]},n}(ye),Ve=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},ze={provide:re,useExisting:t.forwardRef(function(){return Be})},Ue=Promise.resolve(null),Be=function(e){function n(t,n,r,i){e.call(this),this._control=new Te,this._registered=!1,this.update=new Ce,this._parent=t,this._rawValidators=n||[],this._rawAsyncValidators=r||[],this.valueAccessor=I(this,i)}return Ve(n,e),n.prototype.ngOnChanges=function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),A(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},n.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(n.prototype,"control",{get:function(){return this._control},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"path",{get:function(){return this._parent?x(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"validator",{get:function(){return P(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"asyncValidator",{get:function(){return M(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),n.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},n.prototype._setUpControl=function(){this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},n.prototype._isStandalone=function(){return!this._parent||this.options&&this.options.standalone},n.prototype._setUpStandalone=function(){C(this._control,this),this._control.updateValueAndValidity({emitEvent:!1})},n.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},n.prototype._checkParentType=function(){!(this._parent instanceof Fe)&&this._parent instanceof ye?je.formGroupNameException():this._parent instanceof Fe||this._parent instanceof Ie||je.modelParentException()},n.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||je.missingNameException()},n.prototype._updateValue=function(e){var t=this;Ue.then(function(){t.control.setValue(e,{emitViewToModelChange:!1})})},n.prototype._updateDisabled=function(e){var t=this,n=e.isDisabled.currentValue,r=""===n||n&&"false"!==n;Ue.then(function(){r&&!t.control.disabled?t.control.disable():!r&&t.control.disabled&&t.control.enable()})},n.decorators=[{type:t.Directive,args:[{selector:"[ngModel]:not([formControlName]):not([formControl])",providers:[ze],exportAs:"ngModel"}]}],n.ctorParameters=function(){return[{type:U,decorators:[{type:t.Optional},{type:t.Host}]},{type:Array,decorators:[{type:t.Optional},{type:t.Self},{type:t.Inject,args:[G]}]},{type:Array,decorators:[{type:t.Optional},{type:t.Self},{type:t.Inject,args:[Y]}]},{type:Array,decorators:[{type:t.Optional},{type:t.Self},{type:t.Inject,args:[K]}]}]},n.propDecorators={name:[{type:t.Input}],isDisabled:[{type:t.Input,args:["disabled"]}],model:[{type:t.Input,args:["ngModel"]}],options:[{type:t.Input,args:["ngModelOptions"]}],update:[{type:t.Output,args:["ngModelChange"]}]},n}(re),He=function(){function e(){}return e.controlParentException=function(){throw new Error("formControlName must be used with a parent formGroup directive.  You'll want to add a formGroup\n       directive and pass it an existing FormGroup instance (you can create one in your class).\n\n      Example:\n\n      "+Re.formControlName)},e.ngModelGroupException=function(){throw new Error('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n       that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n       Option 1:  Update the parent to be formGroupName (reactive form strategy)\n\n        '+Re.formGroupName+"\n\n        Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n        "+Re.ngModelGroup)},e.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n       Example:\n\n       "+Re.formControlName)},e.groupParentException=function(){throw new Error("formGroupName must be used with a parent formGroup directive.  You'll want to add a formGroup\n      directive and pass it an existing FormGroup instance (you can create one in your class).\n\n      Example:\n\n      "+Re.formGroupName)},e.arrayParentException=function(){throw new Error("formArrayName must be used with a parent formGroup directive.  You'll want to add a formGroup\n       directive and pass it an existing FormGroup instance (you can create one in your class).\n\n        Example:\n\n        "+Re.formArrayName)},e.disabledAttrWarning=function(){console.warn("\n      It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n      when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n      you. We recommend using this approach to avoid 'changed after checked' errors.\n       \n      Example: \n      form = new FormGroup({\n        first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n        last: new FormControl('Drew', Validators.required)\n      });\n    ")},e}(),qe=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},We={provide:re,useExisting:t.forwardRef(function(){return Ge})},Ge=function(e){function n(t,n,r){e.call(this),this.update=new Ce,this._rawValidators=t||[],this._rawAsyncValidators=n||[],this.valueAccessor=I(this,r)}return qe(n,e),Object.defineProperty(n.prototype,"isDisabled",{set:function(e){He.disabledAttrWarning()},enumerable:!0,configurable:!0}),n.prototype.ngOnChanges=function(e){this._isControlChanged(e)&&(C(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),A(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)},Object.defineProperty(n.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"validator",{get:function(){return P(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"asyncValidator",{get:function(){return M(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),n.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},n.prototype._isControlChanged=function(e){return e.hasOwnProperty("form")},n.decorators=[{type:t.Directive,args:[{selector:"[formControl]",providers:[We],exportAs:"ngForm"}]}],n.ctorParameters=function(){return[{type:Array,decorators:[{type:t.Optional},{type:t.Self},{type:t.Inject,args:[G]}]},{type:Array,decorators:[{type:t.Optional},{type:t.Self},{type:t.Inject,args:[Y]}]},{type:Array,decorators:[{type:t.Optional},{type:t.Self},{type:t.Inject,args:[K]}]}]},n.propDecorators={form:[{type:t.Input,args:["formControl"]}],model:[{type:t.Input,args:["ngModel"]}],update:[{type:t.Output,args:["ngModelChange"]}],isDisabled:[{type:t.Input,args:["disabled"]}]},n}(re),Ye=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},Ze={provide:U,useExisting:t.forwardRef(function(){return Ke})},Ke=function(e){function n(t,n){e.call(this),this._validators=t,this._asyncValidators=n,this._submitted=!1,this.directives=[],this.form=null,this.ngSubmit=new Ce}return Ye(n,e),n.prototype.ngOnChanges=function(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())},Object.defineProperty(n.prototype,"submitted",{get:function(){return this._submitted},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),n.prototype.addControl=function(e){var t=this.form.get(e.path);return C(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t},n.prototype.getControl=function(e){return this.form.get(e.path)},n.prototype.removeControl=function(e){H.remove(this.directives,e)},n.prototype.addFormGroup=function(e){var t=this.form.get(e.path);E(t,e),t.updateValueAndValidity({emitEvent:!1})},n.prototype.removeFormGroup=function(e){},n.prototype.getFormGroup=function(e){return this.form.get(e.path)},n.prototype.addFormArray=function(e){var t=this.form.get(e.path);E(t,e),t.updateValueAndValidity({emitEvent:!1})},n.prototype.removeFormArray=function(e){},n.prototype.getFormArray=function(e){return this.form.get(e.path)},n.prototype.updateModel=function(e,t){this.form.get(e.path).setValue(t)},n.prototype.onSubmit=function(e){return this._submitted=!0,this.ngSubmit.emit(e),!1},n.prototype.onReset=function(){this.resetForm()},n.prototype.resetForm=function(e){void 0===e&&(e=void 0),this.form.reset(e),this._submitted=!1},n.prototype._updateDomValue=function(){var e=this;this.directives.forEach(function(t){var n=e.form.get(t.path);t._control!==n&&(S(t._control,t),n&&C(n,t),t._control=n)}),this.form._updateTreeValidity({emitEvent:!1})},n.prototype._updateRegistrations=function(){var e=this;this.form._registerOnCollectionChange(function(){return e._updateDomValue()}),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){}),this._oldForm=this.form},n.prototype._updateValidators=function(){var e=P(this._validators);this.form.validator=Z.compose([this.form.validator,e]);var t=M(this._asyncValidators);this.form.asyncValidator=Z.composeAsync([this.form.asyncValidator,t])},n.prototype._checkFormPresent=function(){this.form||He.missingFormException()},n.decorators=[{type:t.Directive,args:[{selector:"[formGroup]",providers:[Ze],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},exportAs:"ngForm"}]}],n.ctorParameters=function(){return[{type:Array,decorators:[{type:t.Optional},{type:t.Self},{type:t.Inject,args:[G]}]},{type:Array,decorators:[{type:t.Optional},{type:t.Self},{type:t.Inject,args:[Y]}]}]},n.propDecorators={form:[{type:t.Input,args:["formGroup"]}],ngSubmit:[{type:t.Output}]},n}(U),Xe=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},Je={provide:U,useExisting:t.forwardRef(function(){return Qe})},Qe=function(e){function n(t,n,r){e.call(this),this._parent=t,this._validators=n,this._asyncValidators=r}return Xe(n,e),n.prototype._checkParentType=function(){F(this._parent)&&He.groupParentException()},n.decorators=[{type:t.Directive,args:[{selector:"[formGroupName]",providers:[Je]}]}],n.ctorParameters=function(){return[{type:U,decorators:[{type:t.Optional},{type:t.Host},{type:t.SkipSelf}]},{type:Array,decorators:[{type:t.Optional},{type:t.Self},{type:t.Inject,args:[G]}]},{type:Array,decorators:[{type:t.Optional},{type:t.Self},{type:t.Inject,args:[Y]}]}]},n.propDecorators={name:[{type:t.Input,args:["formGroupName"]}]},n}(ye),$e={provide:U,useExisting:t.forwardRef(function(){return et})},et=function(e){function n(t,n,r){e.call(this),this._parent=t,this._validators=n,this._asyncValidators=r}return Xe(n,e),n.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormArray(this)},n.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormArray(this)},Object.defineProperty(n.prototype,"control",{get:function(){return this.formDirective.getFormArray(this)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"path",{get:function(){return x(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"validator",{get:function(){return P(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"asyncValidator",{get:function(){return M(this._asyncValidators)},enumerable:!0,configurable:!0}),n.prototype._checkParentType=function(){F(this._parent)&&He.arrayParentException()},n.decorators=[{type:t.Directive,args:[{selector:"[formArrayName]",providers:[$e]}]}],n.ctorParameters=function(){return[{type:U,decorators:[{type:t.Optional},{type:t.Host},{type:t.SkipSelf}]},{type:Array,decorators:[{type:t.Optional},{type:t.Self},{type:t.Inject,args:[G]}]},{type:Array,decorators:[{type:t.Optional},{type:t.Self},{type:t.Inject,args:[Y]}]}]},n.propDecorators={name:[{type:t.Input,args:["formArrayName"]}]},n}(U),tt=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},nt={provide:re,useExisting:t.forwardRef(function(){return rt})},rt=function(e){function n(t,n,r,i){e.call(this),this._added=!1,this.update=new Ce,this._parent=t,this._rawValidators=n||[],this._rawAsyncValidators=r||[],this.valueAccessor=I(this,i)}return tt(n,e),Object.defineProperty(n.prototype,"isDisabled",{set:function(e){He.disabledAttrWarning()},enumerable:!0,configurable:!0}),n.prototype.ngOnChanges=function(e){this._added||this._setUpControl(),A(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))},n.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},n.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},Object.defineProperty(n.prototype,"path",{get:function(){return x(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"validator",{get:function(){return P(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"asyncValidator",{get:function(){return M(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"control",{get:function(){return this._control},enumerable:!0,configurable:!0}),n.prototype._checkParentType=function(){!(this._parent instanceof Qe)&&this._parent instanceof ye?He.ngModelGroupException():this._parent instanceof Qe||this._parent instanceof Ke||this._parent instanceof et||He.controlParentException()},n.prototype._setUpControl=function(){this._checkParentType(),this._control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0},n.decorators=[{type:t.Directive,args:[{selector:"[formControlName]",providers:[nt]}]}],n.ctorParameters=function(){return[{type:U,decorators:[{type:t.Optional},{type:t.Host},{type:t.SkipSelf}]},{type:Array,decorators:[{type:t.Optional},{type:t.Self},{type:t.Inject,args:[G]}]},{type:Array,decorators:[{type:t.Optional},{type:t.Self},{type:t.Inject,args:[Y]}]},{type:Array,decorators:[{type:t.Optional},{type:t.Self},{type:t.Inject,args:[K]}]}]},n.propDecorators={name:[{type:t.Input,args:["formControlName"]}],model:[{type:t.Input,args:["ngModel"]}],update:[{type:t.Output,args:["ngModelChange"]}],isDisabled:[{type:t.Input,args:["disabled"]}]},n}(re),it=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},ot={provide:G,useExisting:t.forwardRef(function(){return st}),multi:!0},at={provide:G,useExisting:t.forwardRef(function(){return ut}),multi:!0},st=function(){function e(){}return Object.defineProperty(e.prototype,"required",{get:function(){return this._required},set:function(e){this._required=null!=e&&!1!==e&&""+e!="false",this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),e.prototype.validate=function(e){return this.required?Z.required(e):null},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e.decorators=[{type:t.Directive,args:[{selector:":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]",providers:[ot],host:{"[attr.required]":'required ? "" : null'}}]}],e.ctorParameters=function(){return[]},e.propDecorators={required:[{type:t.Input}]},e}(),ut=function(e){function n(){e.apply(this,arguments)}return it(n,e),n.prototype.validate=function(e){return this.required?Z.requiredTrue(e):null},n.decorators=[{type:t.Directive,args:[{selector:"input[type=checkbox][required][formControlName],input[type=checkbox][required][formControl],input[type=checkbox][required][ngModel]",providers:[at],host:{"[attr.required]":'required ? "" : null'}}]}],n.ctorParameters=function(){return[]},n}(st),ct={provide:G,useExisting:t.forwardRef(function(){return lt}),multi:!0},lt=function(){function e(){}return e.prototype.ngOnChanges=function(e){"minlength"in e&&(this._createValidator(),this._onChange&&this._onChange())},e.prototype.validate=function(e){return null==this.minlength?null:this._validator(e)},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e.prototype._createValidator=function(){this._validator=Z.minLength(parseInt(this.minlength,10))},e.decorators=[{type:t.Directive,args:[{selector:"[minlength][formControlName],[minlength][formControl],[minlength][ngModel]",providers:[ct],host:{"[attr.minlength]":"minlength ? minlength : null"}}]}],e.ctorParameters=function(){return[]},e.propDecorators={minlength:[{type:t.Input}]},e}(),pt={provide:G,useExisting:t.forwardRef(function(){return dt}),multi:!0},dt=function(){function e(){}return e.prototype.ngOnChanges=function(e){"maxlength"in e&&(this._createValidator(),this._onChange&&this._onChange())},e.prototype.validate=function(e){return null!=this.maxlength?this._validator(e):null},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e.prototype._createValidator=function(){this._validator=Z.maxLength(parseInt(this.maxlength,10))},e.decorators=[{type:t.Directive,args:[{selector:"[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]",providers:[pt],host:{"[attr.maxlength]":"maxlength ? maxlength : null"}}]}],e.ctorParameters=function(){return[]},e.propDecorators={maxlength:[{type:t.Input}]},e}(),ht={provide:G,useExisting:t.forwardRef(function(){return ft}),multi:!0},ft=function(){function e(){}return e.prototype.ngOnChanges=function(e){"pattern"in e&&(this._createValidator(),this._onChange&&this._onChange())},e.prototype.validate=function(e){return this._validator(e)},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e.prototype._createValidator=function(){this._validator=Z.pattern(this.pattern)},e.decorators=[{type:t.Directive,args:[{selector:"[pattern][formControlName],[pattern][formControl],[pattern][ngModel]",providers:[ht],host:{"[attr.pattern]":"pattern ? pattern : null"}}]}],e.ctorParameters=function(){return[]},e.propDecorators={pattern:[{type:t.Input}]},e}(),mt=function(){function e(){}return e.prototype.group=function(e,t){void 0===t&&(t=null);var n=this._reduceControls(e),r=a(t)?t.validator:null,i=a(t)?t.asyncValidator:null;return new Oe(n,r,i)},e.prototype.control=function(e,t,n){return void 0===t&&(t=null),void 0===n&&(n=null),new Te(e,t,n)},e.prototype.array=function(e,t,n){var r=this;void 0===t&&(t=null),void 0===n&&(n=null);var i=e.map(function(e){return r._createControl(e)});return new Pe(i,t,n)},e.prototype._reduceControls=function(e){var t=this,n={};return Object.keys(e).forEach(function(r){n[r]=t._createControl(e[r])}),n},e.prototype._createControl=function(e){if(e instanceof Te||e instanceof Oe||e instanceof Pe)return e;if(Array.isArray(e)){var t=e[0],n=e.length>1?e[1]:null,r=e.length>2?e[2]:null;return this.control(t,n,r)}return this.control(e)},e.decorators=[{type:t.Injectable}],e.ctorParameters=function(){return[]},e}(),vt=new t.Version("2.4.10"),yt=[pe,fe,$,te,ue,J,le,he,ae,we,ke,st,lt,dt,ft,ut],gt=[Be,Fe,Ie],_t=[Ge,Ke,rt,Qe,et],bt=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{declarations:yt,exports:yt}]}],e.ctorParameters=function(){return[]},e}(),wt=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{declarations:gt,providers:[oe],exports:[bt,gt]}]}],e.ctorParameters=function(){return[]},e}(),kt=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{declarations:[_t],providers:[mt,oe],exports:[bt,_t]}]}],e.ctorParameters=function(){return[]},e}();e.AbstractControlDirective=V,e.AbstractFormGroupDirective=ye,e.CheckboxControlValueAccessor=J,e.ControlContainer=U,e.NG_VALUE_ACCESSOR=K,e.DefaultValueAccessor=$,e.NgControl=re,e.NgControlStatus=we,e.NgControlStatusGroup=ke,e.NgForm=Ie,e.NgModel=Be,e.NgModelGroup=Fe,e.RadioControlValueAccessor=ae,e.FormControlDirective=Ge,e.FormControlName=rt,e.FormGroupDirective=Ke,e.FormArrayName=et,e.FormGroupName=Qe,e.NgSelectOption=pe,e.SelectControlValueAccessor=le,e.SelectMultipleControlValueAccessor=he,e.CheckboxRequiredValidator=ut,e.MaxLengthValidator=dt,e.MinLengthValidator=lt,e.PatternValidator=ft,e.RequiredValidator=st,e.FormBuilder=mt,e.AbstractControl=Ee,e.FormArray=Pe,e.FormControl=Te,e.FormGroup=Oe,e.NG_ASYNC_VALIDATORS=Y,e.NG_VALIDATORS=G,e.Validators=Z,e.VERSION=vt,e.FormsModule=wt,e.ReactiveFormsModule=kt}),e.register("56",[],function(e,t){"use strict";var n;return{setters:[],execute:function(){e("__useDefault",n='<div class="row ch-h-pad specialInsuranceDataComponent" [ngClass]="{submitAttempted:submitAttempted}">\r\n    <div class="row" *ngIf="!showLoader">\r\n        <div class="special-insurance-form" *ngIf="!requestSended">\r\n            <div class="row">\r\n                <h4 class="step-title">{{__(\'special-insurance\')}}</h4>\r\n            </div>\r\n            <div class="row">\r\n                <div class="row iizi-insurance-summary" [insuranceData]="insuranceDataModel" [specialInsurance]="true"></div>\r\n                <form #form="ngForm">\r\n                <div class="row special-insurance-data">\r\n                    <div class="row ch-h-pad">\r\n                        <div class="cl-6-large cl-12-small">\r\n                            <div class="row pad-btm">\r\n                                <span class="field-title">\r\n                                    {{__(\'email\')}}\r\n                                </span>\r\n                                <span class="trav-tooltip">\r\n                                    <span>{{__(\'email-tooltip\')}}</span>\r\n                                </span>\r\n                            </div>\r\n                            <div class="row">\r\n                                <input type="text"\r\n                                    name="email"\r\n                                    placeholder="{{__(\'placeholder-email\')}}"\r\n                                    required\r\n                                    pattern="^[a-zA-Z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\\.[a-zA-Z0-9-]+)*$"\r\n                                    [(ngModel)]="specialInsuranceDataModel.email">\r\n                            </div>\r\n                            <div class="row" *ngIf="validateField(form.controls.email)">\r\n                                <span class="error-msg">\r\n                                    {{__(\'check-email-value\')}}\r\n                                </span>\r\n                            </div>\r\n                        </div>\r\n                        <div class="cl-6-large cl-12-small">\r\n                            <div class="row pad-btm">\r\n                                <span class="field-title">\r\n                                    {{__(\'phone\')}}\r\n                                </span>\r\n                                <span class="trav-tooltip">\r\n                                    <span>{{__(\'phone-tooltip\')}}</span>\r\n                                </span>\r\n                            </div>\r\n                            <div class="row">\r\n                                <input type="text"\r\n                                    name="phone"\r\n                                    placeholder="{{__(\'placeholder-phone\')}}"\r\n                                    pattern="^\\d{8}$"\r\n                                    required\r\n                                    [(ngModel)]="specialInsuranceDataModel.phone">\r\n                            </div>\r\n                            <div class="row" *ngIf="validateField(form.controls.phone)">\r\n                                <span class="error-msg">\r\n                                    {{__(\'check-phone-value\')}}\r\n                                </span>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class="row ch-h-pad">\r\n                        <div class="cl-12-large">\r\n                            <p class="annotation">{{__(\'special-insurance-choise\')}}</p>\r\n                        </div>        \r\n                    </div>\r\n                    <div class="row ch-h-pad">\r\n                        <div class="cl-6-large cl-12-small">\r\n                            <div class="row">\r\n                                <span class="checkbox-group">\r\n                                    <input type="checkbox" \r\n                                        id="extreme-sport-chkbx"\r\n                                        name="extreme-sport-chkbx"\r\n                                        [(ngModel)]="specialInsuranceDataModel.extremeSport"\r\n                                        (click)="changeField(\'extreme-sport\')">\r\n                                    <label for="extreme-sport-chkbx">{{__(\'extreme-sport\')}}</label>\r\n                                </span>                  \r\n                            </div>\r\n                        </div>\r\n                        <div class="cl-6-large cl-12-small">\r\n                            <div class="row" *ngIf="specialInsuranceDataModel.extremeSport">\r\n                                <input type="text"\r\n                                    name="extreme-sport-type"\r\n                                    placeholder="{{__(\'sport-type\')}}"\r\n                                    [(ngModel)]="specialInsuranceDataModel.extremeSportType">\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class="row ch-h-pad">\r\n                        <div class="cl-6-large cl-12-small">\r\n                            <div class="row">\r\n                                <span class="checkbox-group">\r\n                                    <input type="checkbox"\r\n                                        id="amateur-sport-chkbx"\r\n                                        name="amateur-sport-chkbx"\r\n                                        [(ngModel)]="specialInsuranceDataModel.amateurSport"\r\n                                        (click)="changeField(\'amateur-sport\')">\r\n                                    <label for="amateur-sport-chkbx">{{__(\'amateur-sport\')}}</label>\r\n                                </span>                  \r\n                            </div>\r\n                        </div>\r\n                        <div class="cl-6-large cl-12-small">\r\n                            <div class="row" *ngIf="specialInsuranceDataModel.amateurSport">\r\n                                <input type="text"\r\n                                    name="amateur-sport-type"\r\n                                    placeholder="{{__(\'sport-type\')}}"\r\n                                    [(ngModel)]="specialInsuranceDataModel.amateurSportType">\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class="row ch-h-pad">\r\n                        <div class="cl-6-large cl-12-small">\r\n                            <div class="row">\r\n                                <span class="checkbox-group">\r\n                                    <input type="checkbox"\r\n                                        id="professional-sport-chkbx"\r\n                                        name="professional-sport-chkbx"\r\n                                        [(ngModel)]="specialInsuranceDataModel.professionalSport"\r\n                                        (click)="changeField(\'professional-sport\')">\r\n                                    <label for="professional-sport-chkbx">{{__(\'professional-sport\')}}</label>\r\n                                </span>                  \r\n                            </div>\r\n                        </div>\r\n                        <div class="cl-6-large cl-12-small">\r\n                            <div class="row" *ngIf="specialInsuranceDataModel.professionalSport">\r\n                                <input type="text"\r\n                                    name="professional-sport-type"\r\n                                    placeholder="{{__(\'sport-type\')}}"\r\n                                    [(ngModel)]="specialInsuranceDataModel.professionalSportType">\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class="row ch-h-pad">\r\n                        <div class="cl-6-large cl-12-small">\r\n                            <div class="row">\r\n                                <span class="checkbox-group">\r\n                                    <input type="checkbox" id="long-insurance-chkbx" name="long-insurance-chkbx" [(ngModel)]="specialInsuranceDataModel.longInsurance">\r\n                                    <label for="long-insurance-chkbx">{{__(\'long-insurance\')}}</label>\r\n                                </span>                  \r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class="row ch-h-pad">\r\n                        <div class="cl-6-large cl-12-small">\r\n                            <div class="row">\r\n                                <span class="checkbox-group">\r\n                                    <input type="checkbox"\r\n                                        id="group-insurance-chkbx"\r\n                                        name="group-insurance-chkbx"\r\n                                        [(ngModel)]="specialInsuranceDataModel.groupInsurance"\r\n                                        (click)="changeField(\'group-insurance\')">\r\n                                    <label for="group-insurance-chkbx">{{__(\'group-insurance\')}}</label>\r\n                                </span>                  \r\n                            </div>\r\n                        </div>\r\n                        <div class="cl-6-large cl-12-small">\r\n                            <div class="row" *ngIf="specialInsuranceDataModel.groupInsurance">\r\n                                <input type="text"\r\n                                    name="group-size"\r\n                                    placeholder="{{__(\'group-size\')}}"\r\n                                    pattern="^[0-9]*$"\r\n                                    [(ngModel)]="specialInsuranceDataModel.groupSize">\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class="row other-choise ch-h-pad">\r\n                        <div class="cl-12-large">\r\n                            <textarea class="other-field"\r\n                                    name="other"\r\n                                    placeholder="{{__(\'other\')}}"\r\n                                    [(ngModel)]="specialInsuranceDataModel.other"></textarea>\r\n                        </div>            \r\n                    </div>\r\n                    <div class="row ch-h-pad">\r\n                        <div class="cl-12-large cl-12-small">\r\n                            <div class="row agreement">\r\n                                <span class="checkbox-group">\r\n                                    <input type="checkbox" id="agreement-chkbx" name="agreement-chkbx" [(ngModel)]="specialInsuranceDataModel.agreement">\r\n                                    <label for="agreement-chkbx">\r\n                                        {{__(\'agree-to-terms-part1\')}}\r\n                                        <a target="_blank" href="https://www.iizi.lv/privatuma-politika">{{__(\'agree-to-terms-link1\')}}</a>\r\n                                        {{__(\'agree-to-terms-part2\')}}\r\n                                        <a (click)="agreementHide = !agreementHide">{{__(\'agree-to-terms-link2\')}}</a>{{__(\'agree-to-terms-part3\')}}\r\n                                    </label>\r\n                                </span>\r\n                            </div>\r\n                            <div class="row" *ngIf="!specialInsuranceDataModel.agreement && submitAttempted">\r\n                                <span class="long-error error-msg">\r\n                                    {{__(\'check-agree-to-terms-and-conditions\')}}\r\n                                </span>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class="row ch-h-pad">\r\n                        <div class="cl-12-large">\r\n                            <div class="row" *ngIf="!validateChoise() && submitAttempted">\r\n                                <span class="long-error error-msg">\r\n                                    {{__(\'check-choise\')}}\r\n                                </span>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n                </form>\r\n                <div class="row iizi-service-description"></div>\r\n                <div class="row navigation ch-h-pad">\r\n                    <div class="cl-12-large">\r\n                        <button (click)="back()">{{__(\'back\')}}</button>\r\n                        <button class="auto-width" [ngClass]="{disabled:!canConfirm}" required (click)="confirm()">{{__(\'confirm\')}}</button>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </div>\r\n        <div class="request-success" *ngIf="requestSended && requestReceived">\r\n            <div class="row ch-h-pad">\r\n                <div class="cl-12-large">\r\n                    <div class="cl-2-large cl-3-medium cl-12-small status">\r\n                    </div>\r\n                    <div class="cl-10-large cl-9-medium cl-12-small">\r\n                        <div class="row content">\r\n                            <div class="row message">\r\n                                <p class="header-content success">{{__(\'success\')}}</p>\r\n                                <p>{{__(\'success-desc\')}}</p>  \r\n                            </div>                          \r\n                            <div class="row additional-offer-component"></div>\r\n                            <div class="row fb-page-plugin-component"></div>                                      \r\n                        </div>\r\n                    </div>                            \r\n                </div>\r\n            </div>\r\n        </div>\r\n        <div class="request-fail" *ngIf="requestSended && !requestReceived">\r\n            <div class="row ch-h-pad">\r\n                <div class="cl-12-large">\r\n                    <div class="cl-2-large cl-3-medium cl-12-small status not-ok">\r\n                    </div>\r\n                    <div class="cl-10-large cl-9-medium cl-12-small">\r\n                        <div class="row content">\r\n                            <div class="row">\r\n                                <p class="header-content">{{__(\'exception\')}}</p>\r\n                            </div>\r\n                            <div class="row error-block">\r\n                                <p class="description">{{__(\'exception-desc\')}}</p>\r\n                                <p>{{__(\'questions\')}} <b><a class="pink-text" href="mailto:celojumi@iizi.lv">celojumi@iizi.lv</a></b></p>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </div>\r\n    <div class="row">\r\n        <div *ngIf="!agreementHide" class="iizi-agreement"\r\n            (hideMe)="agreementHide = !agreementHide">\r\n        </div>\r\n    </div>\r\n    <div class="special-loader" *ngIf="showLoader">\r\n    </div>\r\n</div>'),e("__useDefault",n),e("default",n)}}}),e.register("57",[],function(e,t){"use strict";var n;return{setters:[],execute:function(){e("__useDefault",n='.row.agreement{background-color:#eee;border:1px solid #ccc;border-radius:3px;padding-left:10px;margin-top:10px}.row.agreement .checkbox-group{margin-bottom:8px;margin-top:8px;height:inherit}.row.agreement .checkbox-group a{font-size:13px;color:#e32585;cursor:pointer}.annotation{padding:20px 30px 0px 30px;font-size:1.17em;-webkit-margin-before:1em;-webkit-margin-after:1em;-webkit-margin-start:0px;-webkit-margin-end:0px;font-weight:bold}.other-choise{padding-top:20px}.other-choise .other-field{padding-top:5px;max-width:100%;height:100px}.navigation{padding-top:20px}.navigation button:first-child{float:left;background-color:#55595b}.navigation button:last-child{float:right}.navigation button.disabled{background-color:#ccc}.message{padding-bottom:20px;border-bottom:1px solid #55595b}.header-content{color:#e32585;font-size:32px;line-height:32px;font-weight:700;margin:32px 0px}.error-block{font-size:16px}.success{color:#1379bc}.insurance-info{padding:20px 0px 100px 0px}.additional-offer-component{padding-top:80px}.description{padding-bottom:50px}.special-loader{background-image:url("https://www.iizi.lv/calc/v3/assets/img/animations/loading.gif");background-position:center center;background-repeat:no-repeat;background-size:24px 24px;height:200px;text-align:center}\n'),e("__useDefault",n),e("default",n)}}}),e.registerDynamic("58",["c","24","13","29","14","15","2a","56","57"],!0,function(e,t,n){"use strict";this||self;var r=t&&t.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=t&&t.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var o=e("c"),a=e("24"),s=e("13"),u=e("29"),c=e("14"),l=e("15"),p=e("2a"),d=function(){function t(e,t,n,r,i,o,a){var s=this;this._ga=t,this._eventBus=n,this._tripInsuranceService=r,this._router=i,this._ts=o,this._windowContainer=a,this._ga.trackPageView("SpecialInsuranceDataComponent"),this._lg=e.new("SpecialInsuranceDataComponent"),this._windowContainer.window.scrollTo(0,0),this._eventBus.calcStepEmmiter.emit({step:3,title:"special-insurance-data"}),this.agreementHide=!0,this._regSubscr=this._tripInsuranceService.specialInsuranceRequestRegistration.subscribe(function(e){return s.specialInsuranceRequestRegistrationHandler(e)}),this.insuranceDataModel=this._tripInsuranceService.insuranceDataModel,this.setInsuranceTaker()}return t.prototype.specialInsuranceRequestRegistrationHandler=function(e){this.requestSended=!0,this.requestReceived=e,this._eventBus.calcStepEmmiter.emit({step:5,title:"payment-verification"}),this.showLoader=!1},t.prototype.setInsuranceTaker=function(){this.specialInsuranceDataModel={territory:this.insuranceDataModel.cover.territory,startDate:this.insuranceDataModel.startDate,endDate:this.insuranceDataModel.endDate,travelers:this.insuranceDataModel.travelers,email:"",phone:"",extremeSport:!1,extremeSportType:"",amateurSport:!1,amateurSportType:"",professionalSport:!1,professionalSportType:"",longInsurance:!1,groupInsurance:!1,groupSize:void 0,other:"",agreement:!1}},t.prototype.__=function(e,t){return this._ts.instant("specialInsuranceDataComponent."+e,t)},t.prototype.ngOnDestroy=function(){this._regSubscr.unsubscribe()},t.prototype.confirm=function(){this.submitAttempted=!0,this.canConfirm&&(this.showLoader=!0,this._tripInsuranceService.registerSpecialInsuranceRequest(this.specialInsuranceDataModel))},t.prototype.back=function(){this._router.navigate(["celojuma-apdrosinasanas-cenas"])},t.prototype.validateField=function(e){return e&&e.invalid&&(e.touched||this.submitAttempted)},t.prototype.changeField=function(e){switch(e){case"extreme-sport":this.specialInsuranceDataModel.extremeSport||(this.specialInsuranceDataModel.extremeSportType="");break;case"amateur-sport":this.specialInsuranceDataModel.amateurSport||(this.specialInsuranceDataModel.amateurSportType="");break;case"professional-sport":this.specialInsuranceDataModel.professionalSport||(this.specialInsuranceDataModel.professionalSportType="");break;case"group-insurance":this.specialInsuranceDataModel.groupInsurance||(this.specialInsuranceDataModel.groupSize=void 0)}},t.prototype.validateChoise=function(){return this.specialInsuranceDataModel.extremeSport||this.specialInsuranceDataModel.amateurSport||this.specialInsuranceDataModel.professionalSport||this.specialInsuranceDataModel.longInsurance||this.specialInsuranceDataModel.groupInsurance||this.specialInsuranceDataModel.other.length>0},Object.defineProperty(t.prototype,"canConfirm",{get:function(){return this.validateChoise()&&this.specialInsuranceForm.form.valid&&this.specialInsuranceDataModel.agreement},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"diag",{get:function(){return JSON.stringify(this.specialInsuranceDataModel)},enumerable:!0,configurable:!0}),r([o.ViewChild("form"),i("design:type",u.NgForm)],t.prototype,"specialInsuranceForm",void 0),t=r([o.Component({template:e("56"),styles:[e("57")]}),i("design:paramtypes",[c.LoggerService,c.GoogleAnalyticsService,c.EventBusService,p.TripInsuranceService,a.Router,s.TranslateService,l.WindowContainer])],t)}();t.SpecialInsuranceDataComponent=d}),e.register("59",[],function(e,t){"use strict";var n;return{setters:[],execute:function(){e("__useDefault",n='<div class="paymentVerificationComponent"> \r\n    \x3c!--<pre>{{diag}}</pre>--\x3e\r\n    <div class="row" *ngIf="!showLoader">\r\n        <div class="payment-success" *ngIf="paymentSuccess">\r\n            <div class="row ch-h-pad">\r\n                <div class="cl-12-large">\r\n                    <div class="cl-2-large cl-3-medium cl-12-small status">\r\n                    </div>\r\n                    <div class="cl-10-large cl-9-medium cl-12-small">\r\n                        <div class="row content">\r\n                            <div class="row message">\r\n                                <p class="header-content success">{{__(\'success\')}}</p>\r\n                                <p>{{__(\'success-desc\')}}</p>  \r\n                            </div>\r\n                            <div class="row insurance-info">\r\n                                <div class="cl-6-large cl-12-medium">\r\n                                    {{__(\'insurance\')}} \r\n                                    <span class="context" *ngIf="paymentRegistrationData.fileExist">\r\n                                        <a href="{{getPdf()}}">\r\n                                            {{paymentRegistrationData.policyNumber}}\r\n                                        </a>\r\n                                    </span>\r\n                                    <span class="context" *ngIf="!paymentRegistrationData.fileExist">{{paymentRegistrationData.policyNumber}}</span>\r\n                                </div>\r\n                                <div class="cl-6-large cl-12-medium">\r\n                                    {{__(\'email\')}} <span class="context">{{paymentRegistrationData.email}}</span>\r\n                                </div>\r\n                            </div>\r\n                            <div class="row additional-offer-component"></div>\r\n                            <div class="row fb-page-plugin-component"></div>                                      \r\n                        </div>\r\n                    </div>                            \r\n                </div>\r\n            </div>\r\n        </div>\r\n        <div class="payment-fail" *ngIf="!paymentSuccess">\r\n            <div class="row ch-h-pad">\r\n                <div class="cl-12-large">\r\n                    <div class="cl-2-large cl-3-medium cl-12-small status not-ok">\r\n                    </div>\r\n                    <div class="cl-10-large cl-9-medium cl-12-small">\r\n                        <div class="row content">\r\n                            <div class="row">\r\n                                <p *ngIf="!paymentException" class="header-content">{{__(\'issuing-exception\')}}</p>\r\n                                <p *ngIf="paymentException" class="header-content">{{__(\'payment-exception\')}}</p>\r\n                            </div>\r\n                            <div class="row error-block">\r\n                                <p *ngIf="!paymentException">{{__(\'issuing-exception-desc\')}}</p>\r\n                                <p *ngIf="paymentException" class="payment-exception">{{__(\'payment-exception-desc\')}}</p>\r\n                                <p *ngIf="!paymentException" class="info"><b>{{__(\'info\')}}</b></p>\r\n                                <p>{{__(\'questions\')}} <b><a class="pink-text" href="mailto:celojumi@iizi.lv">celojumi@iizi.lv</a></b></p>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </div>\r\n    <div class="payment-loader" *ngIf="showLoader">\r\n    </div>\r\n</div>'),e("__useDefault",n),e("default",n)}}}),e.register("5a",[],function(e,t){"use strict";var n;return{setters:[],execute:function(){e("__useDefault",n='.message{padding-bottom:20px;border-bottom:1px solid #55595b}.header-content{color:#e32585;font-size:32px;line-height:32px;font-weight:700;margin:32px 0px}.context{color:#e32585;font-size:18px;line-height:18px;font-weight:700}.context a{color:#e32585;text-decoration:initial;cursor:pointer}.context a:hover{text-decoration:underline}.error-block{font-size:16px}.error-block .payment-exception{padding-bottom:20px}.success{color:#1379bc}.info{padding:50px 0px 20px 0px}.insurance-info{padding:20px 0px 100px 0px}.payment-loader{background-image:url("https://www.iizi.lv/calc/v3/assets/img/animations/loading.gif");background-position:center center;background-repeat:no-repeat;background-size:24px 24px;height:200px;text-align:center}\n'),e("__useDefault",n),e("default",n)}}}),e.registerDynamic("5b",["c","24","13","14","15","19","2a","59","5a"],!0,function(e,t,n){"use strict";this||self;var r=t&&t.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=t&&t.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var o=e("c"),a=e("24"),s=e("13"),u=e("14"),c=e("15"),l=e("19"),p=e("2a"),d=function(){function t(e,t,n,r,i,o,a){this._ga=t,this._eventBus=n,this._tripInsuranceService=r,this._ts=i,this._activatedRoute=o,this._windowContainer=a,this._ga.trackPageView("PaymentVerificationComponent"),this._lg=e.new("PaymentVerificationComponent"),this._windowContainer.window.scrollTo(0,0),this._eventBus.calcStepEmmiter.emit({step:5,title:"payment-verification"})}return t.prototype.ngOnInit=function(){var e=this;this.showLoader=!0,this._activeRouteSub=this._activatedRoute.params.subscribe(function(t){e._partnerPaymentId=t.partnerPaymentId,e.getPaymentRegistrationData(e._partnerPaymentId)}),this._paymentDataSub=this._tripInsuranceService.paymentRegistrationData.subscribe(function(t){return e.handlePaymentRegistrationData(t)})},t.prototype.ngOnDestroy=function(){this._activeRouteSub.unsubscribe(),this._paymentDataSub.unsubscribe()},t.prototype.getPaymentRegistrationData=function(e){this._tripInsuranceService.giveMeTravelPaymentRegistrationData(e)},t.prototype.handlePaymentRegistrationData=function(e){this.paymentRegistrationData=e,this.validatePaymentStatus(this.paymentRegistrationData.issuingStatus)},t.prototype.validatePaymentStatus=function(e){var t=this;console.log("Payment Status: ",e),e<=2?setTimeout(function(){t.getPaymentRegistrationData(t._partnerPaymentId)},1e4):3===e?(this.paymentSuccess=!0,this.showLoader=!1,this._ga.ecommSend(this._partnerPaymentId,this.paymentRegistrationData.insurerId,this.paymentRegistrationData.premium,!0)):(this.paymentSuccess=!1,this.paymentException=4!==e,this._ga.ecommSend(this._partnerPaymentId,this.paymentRegistrationData.insurerId,this.paymentRegistrationData.premium,!1),this.showLoader=!1)},t.prototype.getPdf=function(){return l.StaticConfig.endpointUrl+"travel/get-travel-insurance-pdf/"+this._partnerPaymentId},t.prototype.__=function(e,t){return this._ts.instant("paymentVerificationComponent."+e,t)},t=r([o.Component({template:e("59"),styles:[e("5a")]}),i("design:paramtypes",[u.LoggerService,u.GoogleAnalyticsService,u.EventBusService,p.TripInsuranceService,s.TranslateService,a.ActivatedRoute,c.WindowContainer])],t)}();t.PaymentVerificationComponent=d}),e.register("5c",[],function(e,t){"use strict";var n;return{setters:[],execute:function(){e("__useDefault",n='<div fb-page-plugin class="row fb-page-plugin-container">\r\n    <div class="row fb-page" data-href="https://www.facebook.com/iizibrokers" data-small-header="true" data-adapt-container-width="true" data-width="500" data-hide-cover="false" data-show-facepile="false" data-show-posts="false">\r\n        <div class="fb-xfbml-parse-ignore">\r\n            <blockquote cite="https://www.facebook.com/iizibrokers">\r\n                <a href="https://www.facebook.com/iizibrokers">{{__(\'broker\')}}</a>\r\n            </blockquote>\r\n        </div>\r\n    </div>\r\n</div>'),e("__useDefault",n),e("default",n)}}}),e.register("5d",[],function(e,t){"use strict";var n;return{setters:[],execute:function(){e("__useDefault",n=".fb-page-plugin-container{padding:30px 0px 15px 0px;text-align:center}\n"),e("__useDefault",n),e("default",n)}}}),e.registerDynamic("5e",["c","13","15","5c","5d"],!0,function(e,t,n){"use strict";this||self;var r=t&&t.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=t&&t.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var o=e("c"),a=e("13"),s=e("15"),u=function(){function t(e,t){this._ts=e,this._windowContainer=t}return t.prototype.ngOnInit=function(){this._windowContainer.window.FB&&this._windowContainer.window.FB.init({status:!0,cookie:!0,xfbml:!0,version:"v2.3"})},t.prototype.__=function(e,t){return this._ts.instant("fbPagePluginComponent."+e,t)},t=r([o.Component({selector:".fb-page-plugin-component",template:e("5c"),styles:[e("5d")]}),i("design:paramtypes",[a.TranslateService,s.WindowContainer])],t)}();t.FBPagePluginComponent=u}),e.register("5f",[],function(e,t){"use strict";var n;return{setters:[],execute:function(){e("__useDefault",n='<div class="row offer">\r\n    <div class="row">\r\n        <span class="context">{{__(\'offer\')}}</span>\r\n    </div>\r\n    <div class="row">\r\n        <ul>\r\n            <li class="link">\r\n                <p class="img">\r\n                    <span class="kasko"></span>\r\n                </p>\r\n                <h2 class="title">{{__(\'kasko\')}}</h2>\r\n                <a href="/lv/kasko">\r\n                    <span class="btn">{{__(\'buy\')}}</span>\r\n                </a>\r\n            </li>\r\n            <li class="link">\r\n                <p class="img">\r\n                    <span class="octa"></span>\r\n                </p>\r\n                <h2 class="title">{{__(\'octa\')}}</h2>\r\n                <a href="/lv/octa">\r\n                    <span class="btn">{{__(\'buy\')}}</span>\r\n                </a>\r\n            </li>\r\n            <li class="link">\r\n                <p class="img">\r\n                    <span class="estate"></span>\r\n                </p>\r\n                <h2 class="title">{{__(\'estate\')}}</h2>\r\n                <a href="/lv/ce%C4%BCojumu-kalkulators">\r\n                    <span class="btn">{{__(\'buy\')}}</span>\r\n                </a>\r\n            </li>\r\n            <li class="link">\r\n                <p class="img">\r\n                    <span class="accidents"></span>\r\n                </p>\r\n                <h2 class="title">{{__(\'accidents\')}}</h2>\r\n                <a href="/lv/nga-ipasais-piedavajums">\r\n                    <span class="btn">{{__(\'buy\')}}</span>\r\n                </a>\r\n            </li>\r\n        </ul>\r\n    </div>\r\n</div>'),e("__useDefault",n),e("default",n)}}}),e.register("60",[],function(e,t){"use strict";var n;return{setters:[],execute:function(){e("__useDefault",n='.offer .context{color:#e32585;font-size:18px;line-height:18px;font-weight:700}@media screen and (max-width: 480px){.offer{text-align:center}}.offer ul{padding:0px;text-align:center}.offer li{list-style-type:none;display:inline-block;width:180px;padding-bottom:20px;text-align:center;color:#55595b;position:relative}.offer .img{display:table-cell;width:180px;height:80px;vertical-align:middle}.offer .img span{width:110px;height:50px;display:inline-block;background-repeat:no-repeat}.offer .img .kasko{background-image:url("https://beta.iizi.lv/sites/all/themes/iizi/images/icon02.png")}.offer .img .octa{background-image:url("https://beta.iizi.lv/sites/all/themes/iizi/images/icon01.png")}.offer .img .estate{background-image:url("https://beta.iizi.lv/sites/all/themes/iizi/images/icon04.png");width:83px;height:56px}.offer .img .accidents{background-image:url("https://beta.iizi.lv/sites/all/themes/iizi/images/icon05.png");width:81px;height:57px}.offer .title{margin:0px 0px 15px 0px;font-weight:700;text-transform:uppercase}.offer .btn{color:#fff;text-transform:uppercase;display:inline-block;padding:10px 35px;background-color:#e32585;border-radius:4px;font:14px/1 \'Ubuntu\', Arial, Helvetica, sans-serif;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.offer .btn:hover{background-color:#1379bc}\n'),e("__useDefault",n),e("default",n)}}}),e.registerDynamic("61",["c","13","5f","60"],!0,function(e,t,n){"use strict";this||self;var r=t&&t.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=t&&t.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var o=e("c"),a=e("13"),s=function(){function t(e){this._ts=e}return t.prototype.__=function(e,t){return this._ts.instant("additionalOfferComponent."+e,t)},t=r([o.Component({selector:".additional-offer-component",template:e("5f"),styles:[e("60")]}),i("design:paramtypes",[a.TranslateService])],t)}();t.AdditionalOfferComponent=s}),e.register("62",[],function(e,t){"use strict";var n;return{setters:[],execute:function(){e("__useDefault",n='<div class="disableComponent">\r\n    <div class="insurance-comparison">\r\n        <div class="row ch-h-pad">\r\n            <div class="row comparison-header">\r\n                <span>{{__(\'header\')}}</span>\r\n            </div>\r\n            <div class="row comparison-info">\r\n                <div class="row">\r\n                    <span class="favourable"> {{__(\'favourable\')}}</span>\r\n                    <span class="unfavourable"> {{__(\'unfavourable\')}}</span>\r\n                </div>\r\n            </div>\r\n            <div class="row comparison-body">              \r\n                <div class="row">\r\n                    <div class="term-panel" *ngFor="let termPanel of termsPanels">\r\n                        <div class="row panel-header" (click)="termPanel.hidden = !termPanel.hidden">\r\n                            <span [ngClass]="{\'hide-list\':termPanel.hidden,\'show-list\':!termPanel.hidden}">\r\n                                {{termPanel.header}}\r\n                            </span>\r\n                        </div>\r\n                        <div class="row panel-content" *ngIf="!termPanel.hidden">\r\n                            <table>                        \r\n                                <template ngFor [ngForOf]="insurers" let-insurer>\r\n                                    <tr>\r\n                                        <td>{{insurer}}</td>\r\n                                        <td>\r\n                                            <span \r\n                                            [ngClass]="{\'favourable-small\':receiveAttention(insurer, termPanel.header)==\'+\', \r\n                                            \'unfavourable-small\':receiveAttention(insurer, termPanel.header)==\'-\'}">\r\n                                                {{receiveValue(insurer, termPanel.header)}}\r\n                                            </span>\r\n                                        </td>\r\n                                    </tr>\r\n                                </template>\r\n                            </table>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n            <div class="row navigation ch-h-pad">\r\n                <div class="cl-12-large close-btn">\r\n                    <button (click)="close()">{{__(\'close\')}}</button>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>'),e("__useDefault",n),e("default",n)}}}),e.register("63",[],function(e,t){"use strict";var n;return{setters:[],execute:function(){e("__useDefault",n=".disableComponent{position:absolute;top:0;left:0;right:0;bottom:0;background-color:rgba(255,255,255,0.6);overflow:auto;z-index:998}.insurance-comparison{margin:50px auto;overflow:hidden;background-color:white;border:1px solid #ccc;box-shadow:0px 0px 15px 5px #cccccc;border-radius:5px;max-width:1000px;z-index:999}.comparison-header{padding:20px;font-size:18px}.comparison-info{padding:0px 20px}.comparison-info span{display:inherit;padding-bottom:10px}.favourable::before,.unfavourable::before{height:16px;width:16px;border-radius:16px;line-height:16px}.favourable-small::before,.unfavourable-small::before{margin-right:5px;height:12px;width:12px;border-radius:12px;line-height:12px}.favourable::before,.favourable-small::before{background-color:#e32585;border:1px solid #e32585;color:white;display:inline-block;text-align:center;font-weight:bold;content:'+'}.unfavourable::before,.unfavourable-small::before{background-color:#55595b;border:1px solid #55595b;color:white;display:inline-block;text-align:center;font-weight:bold;content:'-'}.comparison-body{padding:10px 20px;overflow-y:auto;height:650px;max-height:650px;border:1px solid #cccccc;border-right:0;border-left:0}.term-panel{margin:20px 0px}.term-panel .panel-header{padding:5px;border:2px solid grey;border-radius:3px;cursor:pointer}.term-panel .panel-header span{font-weight:bold;font-size:16px}.term-panel .panel-header:hover{border:2px solid #e32585}.term-panel .hide-list::before{float:left;margin-right:19px;border-top:9px solid transparent;border-bottom:9px solid transparent;border-left:9px solid #e32585;content:\"\"}.term-panel .show-list::before{float:left;margin-top:9px;margin-right:10px;border-left:9px solid transparent;border-right:9px solid transparent;border-top:9px solid #e32585;content:\"\"}.term-panel .panel-content{margin-top:-2px}.term-panel .panel-content table{width:100%;border-collapse:collapse}.term-panel .panel-content table tr{border:1px solid grey;border-top:0}.term-panel .panel-content table tr td{padding:10px;vertical-align:initial}.term-panel .panel-content table tr td:first-child{width:150px}.navigation .close-btn{padding:10px 20px;text-align:right}.navigation .close-btn button{background-color:#55595b}\n"),e("__useDefault",n),e("default",n)}}}),e.registerDynamic("64",["c","13","62","63"],!0,function(e,t,n){"use strict";this||self;var r=t&&t.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=t&&t.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var o=e("c"),a=e("13"),s=function(){function t(e){this._ts=e,this.hideMe=new o.EventEmitter,this.terms=[],this.insurers=[],this.termsPanels=[]}return Object.defineProperty(t.prototype,"insuranceTerms",{set:function(e){var t=this;this.terms=e;var n=new Array;this.termsPanels=[],this.terms.forEach(function(e){n.indexOf(e.name)<0&&(n.push(e.name),t.termsPanels.push({header:e.name,hidden:!0}))})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"insurerNames",{set:function(e){this.insurers=e},enumerable:!0,configurable:!0}),t.prototype.__=function(e,t){return this._ts.instant("insuranceComparisonComponent."+e,t)},t.prototype.receiveValue=function(e,t){var n="-";return this.terms.forEach(function(r){r.insurer.toUpperCase()===e.toUpperCase()&&r.name===t&&(n=r.value)}),n},t.prototype.receiveAttention=function(e,t){var n="";return this.terms.forEach(function(r){r.insurer.toUpperCase()===e.toUpperCase()&&r.name===t&&(n=r.attention)}),n},t.prototype.close=function(){this.termsPanels.forEach(function(e){e.hidden=!0}),this.hideMe.emit(!0)},r([o.Output(),i("design:type",Object)],t.prototype,"hideMe",void 0),r([o.Input(),i("design:type",Array),i("design:paramtypes",[Array])],t.prototype,"insuranceTerms",null),r([o.Input(),i("design:type",Array),i("design:paramtypes",[Array])],t.prototype,"insurerNames",null),t=r([o.Component({selector:".iizi-insurance-comparison",template:e("62"),styles:[e("63")]}),i("design:paramtypes",[a.TranslateService])],t)}();t.InsuranceComparisonComponent=s}),e.registerDynamic("65",["c","66"],!0,function(e,t,n){"use strict";this||self;var r=t&&t.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=t&&t.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=e("c"),a=e("66"),s=function(){function e(e,t){this.translate=e,this._ref=t,this.value=""}return e.prototype.equals=function(e,t){if(e===t)return!0;if(null===e||null===t)return!1;if(e!==e&&t!==t)return!0;var n,r,i,o=typeof e;if(o==typeof t&&"object"==o){if(!Array.isArray(e)){if(Array.isArray(t))return!1;i=Object.create(null);for(r in e){if(!this.equals(e[r],t[r]))return!1;i[r]=!0}for(r in t)if(!(r in i)&&void 0!==t[r])return!1;return!0}if(!Array.isArray(t))return!1;if((n=e.length)==t.length){for(r=0;r<n;r++)if(!this.equals(e[r],t[r]))return!1;return!0}}return!1},e.prototype.updateValue=function(e,t){var n=this;this.translate.get(e,t).subscribe(function(t){n.value=t||e,n.lastKey=e,n._ref.markForCheck()})},e.prototype.transform=function(e){for(var t=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(!e||0===e.length)return e;if(this.equals(e,this.lastKey)&&this.equals(n,this.lastParams))return this.value;var i;if(n.length&&null!==n[0])if("string"==typeof n[0]&&n[0].length)try{i=JSON.parse(n[0].replace(/(['"])?([a-zA-Z0-9_]+)(['"])?:/g,'"$2": '))}catch(e){throw new SyntaxError("Wrong parameter in TranslatePipe. Expected a valid Object, received: "+n[0])}else"object"!=typeof n[0]||Array.isArray(n[0])||(i=n[0]);return this.lastKey=e,this.lastParams=n,this.updateValue(e,i),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(function(n){t.lastKey&&n.lang===t.translate.currentLang&&(t.lastKey=null,t.updateValue(e,i))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(function(n){t.lastKey&&(t.lastKey=null,t.updateValue(e,i))})),this.value},e.prototype._dispose=function(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0)},e.prototype.ngOnDestroy=function(){this._dispose()},e=r([o.Injectable(),o.Pipe({name:"translate",pure:!1}),i("design:paramtypes",[a.TranslateService,o.ChangeDetectorRef])],e)}();t.TranslatePipe=s}),e.registerDynamic("67",["54","68"],!0,function(e,t,n){"use strict";this||self;var r=e("54"),i=e("68");r.Observable.of=i.of}),e.registerDynamic("69",["53","54","6a","6b"],!0,function(e,t,n){"use strict";this||self;var r=t&&t.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=e("53"),o=e("54"),a=e("6a"),s=e("6b"),u=function(e){function t(t,n){e.call(this),this.source=t,this.subjectFactory=n,this._refCount=0,this._isComplete=!1}return r(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype.connect=function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new s.Subscription).add(this.source.subscribe(new l(this.getSubject(),this))),e.closed?(this._connection=null,e=s.Subscription.EMPTY):this._connection=e),e},t.prototype.refCount=function(){return this.lift(new p(this))},t}(o.Observable);t.ConnectableObservable=u;var c=u.prototype;t.connectableObservableDescriptor={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:c._subscribe},_isComplete:{value:c._isComplete,writable:!0},getSubject:{value:c.getSubject},connect:{value:c.connect},refCount:{value:c.refCount}};var l=function(e){function t(t,n){e.call(this,t),this.connectable=n}return r(t,e),t.prototype._error=function(t){this._unsubscribe(),e.prototype._error.call(this,t)},t.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}},t}(i.SubjectSubscriber),p=function(){function e(e){this.connectable=e}return e.prototype.call=function(e,t){var n=this.connectable;n._refCount++;var r=new d(e,n),i=t.subscribe(r);return r.closed||(r.connection=n.connect()),i},e}(),d=function(e){function t(t,n){e.call(this,t),this.connectable=n}return r(t,e),t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},t}(a.Subscriber)}),e.registerDynamic("6c",["69"],!0,function(e,t,n){"use strict";this||self;var r=e("69");t.multicast=function(e,t){var n;if(n="function"==typeof e?e:function(){return e},"function"==typeof t)return this.lift(new i(n,t));var o=Object.create(this,r.connectableObservableDescriptor);return o.source=this,o.subjectFactory=n,o};var i=function(){function e(e,t){this.subjectFactory=e,this.selector=t}return e.prototype.call=function(e,t){var n=this.selector,r=this.subjectFactory(),i=n(r).subscribe(e);return i.add(t.subscribe(r)),i},e}();t.MulticastOperator=i}),e.registerDynamic("6d",["6c","53"],!0,function(e,t,n){"use strict";function r(){return new o.Subject}this||self;var i=e("6c"),o=e("53");t.share=function(){return i.multicast.call(this,r).refCount()}}),e.registerDynamic("6e",["54","6d"],!0,function(e,t,n){"use strict";this||self;var r=e("54"),i=e("6d");r.Observable.prototype.share=i.share}),e.registerDynamic("6f",["54","70","71","72"],!0,function(e,t,n){"use strict";function r(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];var n=Number.POSITIVE_INFINITY,r=null,u=e[e.length-1];return s.isScheduler(u)?(r=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(n=e.pop())):"number"==typeof u&&(n=e.pop()),null===r&&1===e.length&&e[0]instanceof i.Observable?e[0]:new o.ArrayObservable(e,r).lift(new a.MergeAllOperator(n))}this||self;var i=e("54"),o=e("70"),a=e("71"),s=e("72");t.merge=function(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return this.lift.call(r.apply(void 0,[this].concat(e)))},t.mergeStatic=r}),e.registerDynamic("73",["54","6f"],!0,function(e,t,n){"use strict";this||self;var r=e("54"),i=e("6f");r.Observable.prototype.merge=i.merge}),e.registerDynamic("74",["6a"],!0,function(e,t,n){"use strict";this||self;var r=t&&t.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=e("6a");t.toArray=function(){return this.lift(new o)};var o=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new a(e))},e}(),a=function(e){function t(t){e.call(this,t),this.array=[]}return r(t,e),t.prototype._next=function(e){this.array.push(e)},t.prototype._complete=function(){this.destination.next(this.array),this.destination.complete()},t}(i.Subscriber)}),e.registerDynamic("75",["54","74"],!0,function(e,t,n){"use strict";this||self;var r=e("54"),i=e("74");r.Observable.prototype.toArray=i.toArray}),e.registerDynamic("66",["c","54","67","6e","76","73","75","77"],!0,function(e,t,n){"use strict";this||self;var r=t&&t.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=t&&t.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=t&&t.__param||function(e,t){return function(n,r){t(n,r,e)}},a=e("c"),s=e("54");e("67"),e("6e"),e("76"),e("73"),e("75");var u=e("77"),c=function(){return function(){}}();t.MissingTranslationHandler=c;var l=function(){return function(){}}();t.TranslateLoader=l;var p=function(){function e(e,t,n){void 0===t&&(t="i18n"),void 0===n&&(n=".json"),this.http=e,this.prefix=t,this.suffix=n}return e.prototype.getTranslation=function(e){return this.http.get(this.prefix+"/"+e+this.suffix).map(function(e){return e.json()})},e}();t.TranslateStaticLoader=p;var d=function(){function e(e,t){this.currentLoader=e,this.missingTranslationHandler=t,this.currentLang=this.defaultLang,this.onTranslationChange=new a.EventEmitter,this.onLangChange=new a.EventEmitter,this.translations={},this.langs=[],this.parser=new u.Parser}return e.prototype.setDefaultLang=function(e){this.defaultLang=e},e.prototype.use=function(e){var t,n=this;return void 0===this.translations[e]&&(t=this.getTranslation(e)),void 0!==t?(this.currentLang||(this.currentLang=e),t.subscribe(function(t){n.changeLang(e)}),t):(this.changeLang(e),s.Observable.of(this.translations[e]))},e.prototype.getTranslation=function(e){var t=this;return this.pending=this.currentLoader.getTranslation(e).share(),this.pending.subscribe(function(n){t.translations[e]=n,t.updateLangs()},function(e){throw e},function(){t.pending=void 0}),this.pending},e.prototype.setTranslation=function(e,t,n){void 0===n&&(n=!1),n&&this.translations[e]?(Object.assign(this.translations[e],t),this.onTranslationChange.emit({translations:t,lang:e})):this.translations[e]=t,this.updateLangs()},e.prototype.getLangs=function(){return this.langs},e.prototype.addLangs=function(e){var t=this;e.forEach(function(e){-1===t.langs.indexOf(e)&&t.langs.push(e)})},e.prototype.updateLangs=function(){this.addLangs(Object.keys(this.translations))},e.prototype.getParsedResult=function(e,t,n){var r;if(t instanceof Array){for(var i={},o=!1,a=0,u=t;a<u.length;a++)i[d=u[a]]=this.getParsedResult(e,d,n),"function"==typeof i[d].subscribe&&(o=!0);if(o){for(var c=void 0,l=0,p=t;l<p.length;l++){var d=p[l],h="function"==typeof i[d].subscribe?i[d]:s.Observable.of(i[d]);c=void 0===c?h:c.merge(h)}return c.toArray().map(function(e){var n={};return e.forEach(function(e,r){n[t[r]]=e}),n})}return i}return e&&(r=this.parser.interpolate(this.parser.getValue(e,t),n)),void 0===r&&this.defaultLang&&this.defaultLang!==this.currentLang&&(r=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),n)),!r&&this.missingTranslationHandler&&(r=this.missingTranslationHandler.handle(t)),r||t},e.prototype.get=function(e,t){var n=this;if(!e)throw new Error('Parameter "key" required');if(this.pending)return s.Observable.create(function(r){var i=function(e){r.next(e),r.complete()};n.pending.subscribe(function(r){"function"==typeof(r=n.getParsedResult(r,e,t)).subscribe?r.subscribe(i):i(r)})});var r=this.getParsedResult(this.translations[this.currentLang],e,t);return"function"==typeof r.subscribe?r:s.Observable.of(r)},e.prototype.instant=function(e,t){if(!e)throw new Error('Parameter "key" required');var n=this.getParsedResult(this.translations[this.currentLang],e,t);if(void 0!==n.subscribe){if(e instanceof Array){var r={};return e.forEach(function(t,n){r[e[n]]=e[n]}),r}return e}return n},e.prototype.set=function(e,t,n){void 0===n&&(n=this.currentLang),this.translations[n][e]=t,this.updateLangs(),this.onTranslationChange.emit({translations:(r={},r[e]=t,r),lang:n});var r},e.prototype.changeLang=function(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]})},e.prototype.reloadLang=function(e){return this.resetLang(e),this.getTranslation(e)},e.prototype.resetLang=function(e){this.translations[e]=void 0},e.prototype.getBrowserLang=function(){if("undefined"!=typeof window&&void 0!==window.navigator){var e;return(e=void 0!==window.navigator.languages&&window.navigator.languages.length>0?-1!==window.navigator.languages[0].indexOf("-")||window.navigator.languages.length<2?window.navigator.languages[0]:window.navigator.languages[1]:window.navigator.language||window.navigator.browserLanguage)&&e.length?e.split("-")[0]:void 0}},e=r([a.Injectable(),o(1,a.Optional()),i("design:paramtypes",[l,c])],e)}();t.TranslateService=d}),e.registerDynamic("77",[],!0,function(e,t,n){"use strict";this||self;var r=function(){function e(){this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}return e.prototype.interpolate=function(e,t){var n=this;return"string"==typeof e&&t?e.replace(this.templateMatcher,function(e,r){var i=n.getValue(t,r);return void 0!==i?i:e}):e},e.prototype.getValue=function(e,t){var n=t.split(".");t="";do{t+=n.shift(),void 0===e||void 0===e[t]||"object"!=typeof e[t]&&n.length?n.length?t+=".":e=void 0:(e=e[t],t="")}while(n.length);return e},e}();t.Parser=r}),e.registerDynamic("13",["c","78","65","66","77"],!0,function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}function i(e){return new l.TranslateStaticLoader(e)}this||self;var o=t&&t.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},a=t&&t.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=e("c"),u=e("78"),c=e("65"),l=e("66");r(e("65")),r(e("66")),r(e("77")),Object.defineProperty(t,"__esModule",{value:!0}),t.default={pipes:[c.TranslatePipe],providers:[l.TranslateService]},t.translateLoaderFactory=i;var p=function(){function e(){}return e.forRoot=function(t){return void 0===t&&(t={provide:l.TranslateLoader,useFactory:i,deps:[u.Http]}),{ngModule:e,providers:[t,l.TranslateService]}},e=o([s.NgModule({imports:[u.HttpModule],declarations:[c.TranslatePipe],exports:[u.HttpModule,c.TranslatePipe]}),a("design:paramtypes",[])],e)}();t.TranslateModule=p}),e.register("79",[],function(e,t){"use strict";var n;return{setters:[],execute:function(){e("__useDefault",n='<div class="agreement-component">\r\n    <div class="row container">\r\n        <div class="row">\r\n            <span class="close-btn" (click)="close()"></span>\r\n        </div>\r\n        <div class="row">\r\n            <div class="row">\r\n                <p class="agreement-header">{{__(\'agree-header\')}}</p>\r\n            </div>\r\n            <div class="row agreement-text">\r\n                <p [innerHTML]="__(\'agree-par1\')"></p>\r\n                <p [innerHTML]="__(\'agree-par2\')"></p>\r\n                <p>{{__(\'agree-par3\')}}</p>\r\n                <p [innerHTML]="__(\'agree-par4\')"></p>\r\n                <p [innerHTML]="__(\'agree-par5\')"></p>\r\n                <p>{{__(\'agree-par6\')}}</p>\r\n                <p [innerHTML]="__(\'agree-par7\')"></p>\r\n                <p>{{__(\'agree-par8\')}}</p>\r\n                <p>{{__(\'agree-par9\')}}</p>\r\n                <p>{{__(\'agree-par10\')}}</p>\r\n            </div>\r\n        </div>    \r\n    </div>\r\n</div>'),e("__useDefault",n),e("default",n)}}}),e.register("7a",[],function(e,t){"use strict";var n;return{setters:[],execute:function(){e("__useDefault",n=".agreement-component{position:absolute;left:0;top:0;right:0;bottom:0;background-color:rgba(0,0,0,0.4);overflow:auto;z-index:998}.agreement-component .container{padding:0px 20px 0px 20px;border-radius:3px;border:1px solid #ccc;border-radius:3px;background-color:white;margin-top:20px;margin-left:auto;margin-right:auto;max-width:700px;max-height:1000px;width:100%;z-index:999}.agreement-component .container .close-btn{cursor:pointer}.agreement-component .container .close-btn::before{background-color:#e32585;color:#fff;float:right;padding:0 5px;margin-top:5px;margin-right:-15px;content:'\\00D7';font-weight:bold}.agreement-component .container p{font-size:16px;margin:24px 0px;line-height:1.47}.agreement-component .container p.agreement-header{text-align:center}.agreement-component .container .agreement-text{overflow-y:auto;max-height:850px;margin-bottom:24px}\n"),e("__useDefault",n),e("default",n)}}}),e.registerDynamic("7b",["c","13","79","7a"],!0,function(e,t,n){"use strict";this||self;var r=t&&t.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=t&&t.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var o=e("c"),a=e("13"),s=function(){function t(e){this._ts=e,this.hideMe=new o.EventEmitter}return t.prototype.__=function(e,t){return this._ts.instant("iiziAgreementComponent."+e,t)},t.prototype.close=function(){this.hideMe.emit(!0)},r([o.Output(),i("design:type",Object)],t.prototype,"hideMe",void 0),t=r([o.Component({selector:".iizi-agreement",template:e("79"),styles:[e("7a")]}),i("design:paramtypes",[a.TranslateService])],t)}();t.IiziAgreementComponent=s}),e.registerDynamic("25",["28","2d","30","34","37","4a","4d","50","58","5b","5e","61","64","7b"],!0,function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}this||self;Object.defineProperty(t,"__esModule",{value:!0}),r(e("28")),r(e("2d")),r(e("30")),r(e("34")),r(e("37")),r(e("4a")),r(e("4d")),r(e("50")),r(e("58")),r(e("5b")),r(e("5e")),r(e("61")),r(e("64")),r(e("7b"))}),function(t,i){"object"==typeof n&&void 0!==r?r.exports=i():e.registerDynamic("21",[],!1,function(e,t,n){return"function"==typeof i?i.call(this):i})}(0,function(){"use strict";function e(){return bt.apply(null,arguments)}function n(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function o(e){var t;for(t in e)return!1;return!0}function a(e){return void 0===e}function s(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function u(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function c(e,t){var n,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function l(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function p(e,t){for(var n in t)l(t,n)&&(e[n]=t[n]);return l(t,"toString")&&(e.toString=t.toString),l(t,"valueOf")&&(e.valueOf=t.valueOf),e}function d(e,t,n,r){return Le(e,t,n,r,!0).utc()}function h(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function f(e){return null==e._pf&&(e._pf=h()),e._pf}function m(e){if(null==e._isValid){var t=f(e),n=kt.call(t.parsedDateParts,function(e){return null!=e}),r=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(r=r&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return r;e._isValid=r}return e._isValid}function v(e){var t=d(NaN);return null!=e?p(f(t),e):f(t).userInvalidated=!0,t}function y(e,t){var n,r,i;if(a(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),a(t._i)||(e._i=t._i),a(t._f)||(e._f=t._f),a(t._l)||(e._l=t._l),a(t._strict)||(e._strict=t._strict),a(t._tzm)||(e._tzm=t._tzm),a(t._isUTC)||(e._isUTC=t._isUTC),a(t._offset)||(e._offset=t._offset),a(t._pf)||(e._pf=f(t)),a(t._locale)||(e._locale=t._locale),xt.length>0)for(n=0;n<xt.length;n++)a(i=t[r=xt[n]])||(e[r]=i);return e}function g(t){y(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===Ct&&(Ct=!0,e.updateOffset(this),Ct=!1)}function _(e){return e instanceof g||null!=e&&null!=e._isAMomentObject}function b(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function w(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=b(t)),n}function k(e,t,n){var r,i=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),a=0;for(r=0;r<i;r++)(n&&e[r]!==t[r]||!n&&w(e[r])!==w(t[r]))&&a++;return a+o}function x(t){!1===e.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function C(t,n){var r=!0;return p(function(){if(null!=e.deprecationHandler&&e.deprecationHandler(null,t),r){for(var i,o=[],a=0;a<arguments.length;a++){if(i="","object"==typeof arguments[a]){i+="\n["+a+"] ";for(var s in arguments[0])i+=s+": "+arguments[0][s]+", ";i=i.slice(0,-2)}else i=arguments[a];o.push(i)}x(t+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+(new Error).stack),r=!1}return n.apply(this,arguments)},n)}function S(t,n){null!=e.deprecationHandler&&e.deprecationHandler(t,n),St[t]||(x(n),St[t]=!0)}function E(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function T(e,t){var n,r=p({},e);for(n in t)l(t,n)&&(i(e[n])&&i(t[n])?(r[n]={},p(r[n],e[n]),p(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)l(e,n)&&!l(t,n)&&i(e[n])&&(r[n]=p({},r[n]));return r}function O(e){null!=e&&this.set(e)}function P(e,t){var n=e.toLowerCase();It[n]=It[n+"s"]=It[t]=e}function M(e){return"string"==typeof e?It[e]||It[e.toLowerCase()]:void 0}function A(e){var t,n,r={};for(n in e)l(e,n)&&(t=M(n))&&(r[t]=e[n]);return r}function D(e,t){Rt[e]=t}function I(e){var t=[];for(var n in e)t.push({unit:n,priority:Rt[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}function R(t,n){return function(r){return null!=r?(N(this,t,r),e.updateOffset(this,n),this):j(this,t)}}function j(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function N(e,t,n){e.isValid()&&e._d["set"+(e._isUTC?"UTC":"")+t](n)}function L(e,t,n){var r=""+Math.abs(e),i=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}function F(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(Ft[e]=i),t&&(Ft[t[0]]=function(){return L(i.apply(this,arguments),t[1],t[2])}),n&&(Ft[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function V(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function z(e){var t,n,r=e.match(jt);for(t=0,n=r.length;t<n;t++)Ft[r[t]]?r[t]=Ft[r[t]]:r[t]=V(r[t]);return function(t){var i,o="";for(i=0;i<n;i++)o+=E(r[i])?r[i].call(t,e):r[i];return o}}function U(e,t){return e.isValid()?(t=B(t,e.localeData()),Lt[t]=Lt[t]||z(t),Lt[t](e)):e.localeData().invalidDate()}function B(e,t){var n=5;for(Nt.lastIndex=0;n>=0&&Nt.test(e);)e=e.replace(Nt,function(e){return t.longDateFormat(e)||e}),Nt.lastIndex=0,n-=1;return e}function H(e,t,n){nn[e]=E(t)?t:function(e,r){return e&&n?n:t}}function q(e,t){return l(nn,e)?nn[e](t._strict,t._locale):new RegExp(W(e))}function W(e){return G(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,i){return t||n||r||i}))}function G(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Y(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),s(t)&&(r=function(e,n){n[t]=w(e)}),n=0;n<e.length;n++)rn[e[n]]=r}function Z(e,t){Y(e,function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)})}function K(e,t,n){null!=t&&l(rn,e)&&rn[e](t,n._a,n,e)}function X(e,t){return new Date(Date.UTC(e,t+1,0)).getUTCDate()}function J(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=d([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=fn.call(this._shortMonthsParse,a))?i:null:-1!==(i=fn.call(this._longMonthsParse,a))?i:null:"MMM"===t?-1!==(i=fn.call(this._shortMonthsParse,a))?i:-1!==(i=fn.call(this._longMonthsParse,a))?i:null:-1!==(i=fn.call(this._longMonthsParse,a))?i:-1!==(i=fn.call(this._shortMonthsParse,a))?i:null}function Q(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=w(t);else if(t=e.localeData().monthsParse(t),!s(t))return e;return n=Math.min(e.date(),X(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function $(t){return null!=t?(Q(this,t),e.updateOffset(this,!0),this):j(this,"Month")}function ee(){function e(e,t){return t.length-e.length}var t,n,r=[],i=[],o=[];for(t=0;t<12;t++)n=d([2e3,t]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(r.sort(e),i.sort(e),o.sort(e),t=0;t<12;t++)r[t]=G(r[t]),i[t]=G(i[t]);for(t=0;t<24;t++)o[t]=G(o[t]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function te(e){return ne(e)?366:365}function ne(e){return e%4==0&&e%100!=0||e%400==0}function re(e,t,n,r,i,o,a){var s=new Date(e,t,n,r,i,o,a);return e<100&&e>=0&&isFinite(s.getFullYear())&&s.setFullYear(e),s}function ie(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function oe(e,t,n){var r=7+t-n;return-((7+ie(e,0,r).getUTCDay()-t)%7)+r-1}function ae(e,t,n,r,i){var o,a,s=1+7*(t-1)+(7+n-r)%7+oe(e,r,i);return s<=0?a=te(o=e-1)+s:s>te(e)?(o=e+1,a=s-te(e)):(o=e,a=s),{year:o,dayOfYear:a}}function se(e,t,n){var r,i,o=oe(e.year(),t,n),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?r=a+ue(i=e.year()-1,t,n):a>ue(e.year(),t,n)?(r=a-ue(e.year(),t,n),i=e.year()+1):(i=e.year(),r=a),{week:r,year:i}}function ue(e,t,n){var r=oe(e,t,n),i=oe(e+1,t,n);return(te(e)-r+i)/7}function ce(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function le(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function pe(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=d([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=fn.call(this._weekdaysParse,a))?i:null:"ddd"===t?-1!==(i=fn.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=fn.call(this._minWeekdaysParse,a))?i:null:"dddd"===t?-1!==(i=fn.call(this._weekdaysParse,a))?i:-1!==(i=fn.call(this._shortWeekdaysParse,a))?i:-1!==(i=fn.call(this._minWeekdaysParse,a))?i:null:"ddd"===t?-1!==(i=fn.call(this._shortWeekdaysParse,a))?i:-1!==(i=fn.call(this._weekdaysParse,a))?i:-1!==(i=fn.call(this._minWeekdaysParse,a))?i:null:-1!==(i=fn.call(this._minWeekdaysParse,a))?i:-1!==(i=fn.call(this._weekdaysParse,a))?i:-1!==(i=fn.call(this._shortWeekdaysParse,a))?i:null}function de(){function e(e,t){return t.length-e.length}var t,n,r,i,o,a=[],s=[],u=[],c=[];for(t=0;t<7;t++)n=d([2e3,1]).day(t),r=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),o=this.weekdays(n,""),a.push(r),s.push(i),u.push(o),c.push(r),c.push(i),c.push(o);for(a.sort(e),s.sort(e),u.sort(e),c.sort(e),t=0;t<7;t++)s[t]=G(s[t]),u[t]=G(u[t]),c[t]=G(c[t]);this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function he(){return this.hours()%12||12}function fe(e,t){F(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function me(e,t){return t._meridiemParse}function ve(e){return e?e.toLowerCase().replace("_","-"):e}function ye(e){for(var t,n,r,i,o=0;o<e.length;){for(t=(i=ve(e[o]).split("-")).length,n=(n=ve(e[o+1]))?n.split("-"):null;t>0;){if(r=ge(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&k(i,n,!0)>=t-1)break;t--}o++}return null}function ge(e){var n=null;if(!Dn[e]&&void 0!==r&&r&&r.exports)try{n=On._abbr,t("./locale/"+e),_e(n)}catch(e){}return Dn[e]}function _e(e,t){var n;return e&&(n=a(t)?we(e):be(e,t))&&(On=n),On._abbr}function be(e,t){if(null!==t){var n=An;if(t.abbr=e,null!=Dn[e])S("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=Dn[e]._config;else if(null!=t.parentLocale){if(null==Dn[t.parentLocale])return In[t.parentLocale]||(In[t.parentLocale]=[]),In[t.parentLocale].push({name:e,config:t}),null;n=Dn[t.parentLocale]._config}return Dn[e]=new O(T(n,t)),In[e]&&In[e].forEach(function(e){be(e.name,e.config)}),_e(e),Dn[e]}return delete Dn[e],null}function we(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return On;if(!n(e)){if(t=ge(e))return t;e=[e]}return ye(e)}function ke(e){var t,n=e._a;return n&&-2===f(e).overflow&&(t=n[an]<0||n[an]>11?an:n[sn]<1||n[sn]>X(n[on],n[an])?sn:n[un]<0||n[un]>24||24===n[un]&&(0!==n[cn]||0!==n[ln]||0!==n[pn])?un:n[cn]<0||n[cn]>59?cn:n[ln]<0||n[ln]>59?ln:n[pn]<0||n[pn]>999?pn:-1,f(e)._overflowDayOfYear&&(t<on||t>sn)&&(t=sn),f(e)._overflowWeeks&&-1===t&&(t=dn),f(e)._overflowWeekday&&-1===t&&(t=hn),f(e).overflow=t),e}function xe(e){var t,n,r,i,o,a,s=e._i,u=Rn.exec(s)||jn.exec(s);if(u){for(f(e).iso=!0,t=0,n=Ln.length;t<n;t++)if(Ln[t][1].exec(u[1])){i=Ln[t][0],r=!1!==Ln[t][2];break}if(null==i)return void(e._isValid=!1);if(u[3]){for(t=0,n=Fn.length;t<n;t++)if(Fn[t][1].exec(u[3])){o=(u[2]||" ")+Fn[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(u[4]){if(!Nn.exec(u[4]))return void(e._isValid=!1);a="Z"}e._f=i+(o||"")+(a||""),Me(e)}else e._isValid=!1}function Ce(e){var t,n,r,i,o,a,s,u,c={" GMT":" +0000"," EDT":" -0400"," EST":" -0500"," CDT":" -0500"," CST":" -0600"," MDT":" -0600"," MST":" -0700"," PDT":" -0700"," PST":" -0800"};if(t=e._i.replace(/\([^\)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s|\s$/g,""),n=zn.exec(t)){if(r=n[1]?"ddd"+(5===n[1].length?", ":" "):"",i="D MMM "+(n[2].length>10?"YYYY ":"YY "),o="HH:mm"+(n[4]?":ss":""),n[1]){var l=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][new Date(n[2]).getDay()];if(n[1].substr(0,3)!==l)return f(e).weekdayMismatch=!0,void(e._isValid=!1)}switch(n[5].length){case 2:s=0===u?" +0000":((u="YXWVUTSRQPONZABCDEFGHIKLM".indexOf(n[5][1].toUpperCase())-12)<0?" -":" +")+(""+u).replace(/^-?/,"0").match(/..$/)[0]+"00";break;case 4:s=c[n[5]];break;default:s=c[" GMT"]}n[5]=s,e._i=n.splice(1).join(""),a=" ZZ",e._f=r+i+o+a,Me(e),f(e).rfc2822=!0}else e._isValid=!1}function Se(t){var n=Vn.exec(t._i);null===n?(xe(t),!1===t._isValid&&(delete t._isValid,Ce(t),!1===t._isValid&&(delete t._isValid,e.createFromInputFallback(t)))):t._d=new Date(+n[1])}function Ee(e,t,n){return null!=e?e:null!=t?t:n}function Te(t){var n=new Date(e.now());return t._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function Oe(e){var t,n,r,i,o=[];if(!e._d){for(r=Te(e),e._w&&null==e._a[sn]&&null==e._a[an]&&Pe(e),null!=e._dayOfYear&&(i=Ee(e._a[on],r[on]),(e._dayOfYear>te(i)||0===e._dayOfYear)&&(f(e)._overflowDayOfYear=!0),n=ie(i,0,e._dayOfYear),e._a[an]=n.getUTCMonth(),e._a[sn]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=o[t]=r[t];for(;t<7;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[un]&&0===e._a[cn]&&0===e._a[ln]&&0===e._a[pn]&&(e._nextDay=!0,e._a[un]=0),e._d=(e._useUTC?ie:re).apply(null,o),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[un]=24)}}function Pe(e){var t,n,r,i,o,a,s,u;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)o=1,a=4,n=Ee(t.GG,e._a[on],se(Fe(),1,4).year),r=Ee(t.W,1),((i=Ee(t.E,1))<1||i>7)&&(u=!0);else{o=e._locale._week.dow,a=e._locale._week.doy;var c=se(Fe(),o,a);n=Ee(t.gg,e._a[on],c.year),r=Ee(t.w,c.week),null!=t.d?((i=t.d)<0||i>6)&&(u=!0):null!=t.e?(i=t.e+o,(t.e<0||t.e>6)&&(u=!0)):i=o}r<1||r>ue(n,o,a)?f(e)._overflowWeeks=!0:null!=u?f(e)._overflowWeekday=!0:(s=ae(n,r,i,o,a),e._a[on]=s.year,e._dayOfYear=s.dayOfYear)}function Me(t){if(t._f!==e.ISO_8601)if(t._f!==e.RFC_2822){t._a=[],f(t).empty=!0;var n,r,i,o,a,s=""+t._i,u=s.length,c=0;for(i=B(t._f,t._locale).match(jt)||[],n=0;n<i.length;n++)o=i[n],(r=(s.match(q(o,t))||[])[0])&&((a=s.substr(0,s.indexOf(r))).length>0&&f(t).unusedInput.push(a),s=s.slice(s.indexOf(r)+r.length),c+=r.length),Ft[o]?(r?f(t).empty=!1:f(t).unusedTokens.push(o),K(o,r,t)):t._strict&&!r&&f(t).unusedTokens.push(o);f(t).charsLeftOver=u-c,s.length>0&&f(t).unusedInput.push(s),t._a[un]<=12&&!0===f(t).bigHour&&t._a[un]>0&&(f(t).bigHour=void 0),f(t).parsedDateParts=t._a.slice(0),f(t).meridiem=t._meridiem,t._a[un]=Ae(t._locale,t._a[un],t._meridiem),Oe(t),ke(t)}else Ce(t);else xe(t)}function Ae(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function De(e){var t,n,r,i,o;if(0===e._f.length)return f(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<e._f.length;i++)o=0,t=y({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Me(t),m(t)&&(o+=f(t).charsLeftOver,o+=10*f(t).unusedTokens.length,f(t).score=o,(null==r||o<r)&&(r=o,n=t));p(e,n||t)}function Ie(e){if(!e._d){var t=A(e._i);e._a=c([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),Oe(e)}}function Re(e){var t=new g(ke(je(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function je(e){var t=e._i,r=e._f;return e._locale=e._locale||we(e._l),null===t||void 0===r&&""===t?v({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),_(t)?new g(ke(t)):(u(t)?e._d=t:n(r)?De(e):r?Me(e):Ne(e),m(e)||(e._d=null),e))}function Ne(t){var r=t._i;a(r)?t._d=new Date(e.now()):u(r)?t._d=new Date(r.valueOf()):"string"==typeof r?Se(t):n(r)?(t._a=c(r.slice(0),function(e){return parseInt(e,10)}),Oe(t)):i(r)?Ie(t):s(r)?t._d=new Date(r):e.createFromInputFallback(t)}function Le(e,t,r,a,s){var u={};return!0!==r&&!1!==r||(a=r,r=void 0),(i(e)&&o(e)||n(e)&&0===e.length)&&(e=void 0),u._isAMomentObject=!0,u._useUTC=u._isUTC=s,u._l=r,u._i=e,u._f=t,u._strict=a,Re(u)}function Fe(e,t,n,r){return Le(e,t,n,r,!1)}function Ve(e,t){var r,i;if(1===t.length&&n(t[0])&&(t=t[0]),!t.length)return Fe();for(r=t[0],i=1;i<t.length;++i)t[i].isValid()&&!t[i][e](r)||(r=t[i]);return r}function ze(e){for(var t in e)if(-1===Hn.indexOf(t)||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,r=0;r<Hn.length;++r)if(e[Hn[r]]){if(n)return!1;parseFloat(e[Hn[r]])!==w(e[Hn[r]])&&(n=!0)}return!0}function Ue(e){var t=A(e),n=t.year||0,r=t.quarter||0,i=t.month||0,o=t.week||0,a=t.day||0,s=t.hour||0,u=t.minute||0,c=t.second||0,l=t.millisecond||0;this._isValid=ze(t),this._milliseconds=+l+1e3*c+6e4*u+1e3*s*60*60,this._days=+a+7*o,this._months=+i+3*r+12*n,this._data={},this._locale=we(),this._bubble()}function Be(e){return e instanceof Ue}function He(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function qe(e,t){F(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+L(~~(e/60),2)+t+L(~~e%60,2)})}function We(e,t){var n=(t||"").match(e);if(null===n)return null;var r=((n[n.length-1]||[])+"").match(qn)||["-",0,0],i=60*r[1]+w(r[2]);return 0===i?0:"+"===r[0]?i:-i}function Ge(t,n){var r,i;return n._isUTC?(r=n.clone(),i=(_(t)||u(t)?t.valueOf():Fe(t).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+i),e.updateOffset(r,!1),r):Fe(t).local()}function Ye(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Ze(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Ke(e,t){var n,r,i,o=e,a=null;return Be(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:s(e)?(o={},t?o[t]=e:o.milliseconds=e):(a=Wn.exec(e))?(n="-"===a[1]?-1:1,o={y:0,d:w(a[sn])*n,h:w(a[un])*n,m:w(a[cn])*n,s:w(a[ln])*n,ms:w(He(1e3*a[pn]))*n}):(a=Gn.exec(e))?(n="-"===a[1]?-1:1,o={y:Xe(a[2],n),M:Xe(a[3],n),w:Xe(a[4],n),d:Xe(a[5],n),h:Xe(a[6],n),m:Xe(a[7],n),s:Xe(a[8],n)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(i=Qe(Fe(o.from),Fe(o.to)),(o={}).ms=i.milliseconds,o.M=i.months),r=new Ue(o),Be(e)&&l(e,"_locale")&&(r._locale=e._locale),r}function Xe(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Je(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Qe(e,t){var n;return e.isValid()&&t.isValid()?(t=Ge(t,e),e.isBefore(t)?n=Je(e,t):((n=Je(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function $e(e,t){return function(n,r){var i,o;return null===r||isNaN(+r)||(S(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=r,r=o),n="string"==typeof n?+n:n,i=Ke(n,r),et(this,i,e),this}}function et(t,n,r,i){var o=n._milliseconds,a=He(n._days),s=He(n._months);t.isValid()&&(i=null==i||i,o&&t._d.setTime(t._d.valueOf()+o*r),a&&N(t,"Date",j(t,"Date")+a*r),s&&Q(t,j(t,"Month")+s*r),i&&e.updateOffset(t,a||s))}function tt(e,t){var n,r=12*(t.year()-e.year())+(t.month()-e.month()),i=e.clone().add(r,"months");return n=t-i<0?(t-i)/(i-e.clone().add(r-1,"months")):(t-i)/(e.clone().add(r+1,"months")-i),-(r+n)||0}function nt(e){var t;return void 0===e?this._locale._abbr:(null!=(t=we(e))&&(this._locale=t),this)}function rt(){return this._locale}function it(e,t){F(0,[e,e.length],0,t)}function ot(e,t,n,r,i){var o;return null==e?se(this,r,i).year:(o=ue(e,r,i),t>o&&(t=o),at.call(this,e,t,n,r,i))}function at(e,t,n,r,i){var o=ae(e,t,n,r,i),a=ie(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function st(e){return e}function ut(e,t,n,r){var i=we(),o=d().set(r,t);return i[n](o,e)}function ct(e,t,n){if(s(e)&&(t=e,e=void 0),e=e||"",null!=t)return ut(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=ut(e,r,n,"month");return i}function lt(e,t,n,r){"boolean"==typeof e?(s(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,s(t)&&(n=t,t=void 0),t=t||"");var i=we(),o=e?i._week.dow:0;if(null!=n)return ut(t,(n+o)%7,r,"day");var a,u=[];for(a=0;a<7;a++)u[a]=ut(t,(a+o)%7,r,"day");return u}function pt(e,t,n,r){var i=Ke(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function dt(e){return e<0?Math.floor(e):Math.ceil(e)}function ht(e){return 4800*e/146097}function ft(e){return 146097*e/4800}function mt(e){return function(){return this.as(e)}}function vt(e){return function(){return this.isValid()?this._data[e]:NaN}}function yt(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function gt(e,t,n){var r=Ke(e).abs(),i=_r(r.as("s")),o=_r(r.as("m")),a=_r(r.as("h")),s=_r(r.as("d")),u=_r(r.as("M")),c=_r(r.as("y")),l=i<=br.ss&&["s",i]||i<br.s&&["ss",i]||o<=1&&["m"]||o<br.m&&["mm",o]||a<=1&&["h"]||a<br.h&&["hh",a]||s<=1&&["d"]||s<br.d&&["dd",s]||u<=1&&["M"]||u<br.M&&["MM",u]||c<=1&&["y"]||["yy",c];return l[2]=t,l[3]=+e>0,l[4]=n,yt.apply(null,l)}function _t(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r=wr(this._milliseconds)/1e3,i=wr(this._days),o=wr(this._months);t=b((e=b(r/60))/60),r%=60,e%=60;var a=n=b(o/12),s=o%=12,u=i,c=t,l=e,p=r,d=this.asSeconds();return d?(d<0?"-":"")+"P"+(a?a+"Y":"")+(s?s+"M":"")+(u?u+"D":"")+(c||l||p?"T":"")+(c?c+"H":"")+(l?l+"M":"")+(p?p+"S":""):"P0D"}var bt,wt,kt=wt=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1},xt=e.momentProperties=[],Ct=!1,St={};e.suppressDeprecationWarnings=!1,e.deprecationHandler=null;var Et,Tt,Ot=Et=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)l(e,t)&&n.push(t);return n},Pt={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},Mt={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},At=/\d{1,2}/,Dt={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},It={},Rt={},jt=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Nt=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Lt={},Ft={},Vt=/\d/,zt=/\d\d/,Ut=/\d{3}/,Bt=/\d{4}/,Ht=/[+-]?\d{6}/,qt=/\d\d?/,Wt=/\d\d\d\d?/,Gt=/\d\d\d\d\d\d?/,Yt=/\d{1,3}/,Zt=/\d{1,4}/,Kt=/[+-]?\d{1,6}/,Xt=/\d+/,Jt=/[+-]?\d+/,Qt=/Z|[+-]\d\d:?\d\d/gi,$t=/Z|[+-]\d\d(?::?\d\d)?/gi,en=/[+-]?\d+(\.\d{1,3})?/,tn=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,nn={},rn={},on=0,an=1,sn=2,un=3,cn=4,ln=5,pn=6,dn=7,hn=8,fn=Tt=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};F("M",["MM",2],"Mo",function(){return this.month()+1}),F("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),F("MMMM",0,0,function(e){return this.localeData().months(this,e)}),P("month","M"),D("month",8),H("M",qt),H("MM",qt,zt),H("MMM",function(e,t){return t.monthsShortRegex(e)}),H("MMMM",function(e,t){return t.monthsRegex(e)}),Y(["M","MM"],function(e,t){t[an]=w(e)-1}),Y(["MMM","MMMM"],function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);null!=i?t[an]=i:f(n).invalidMonth=e});var mn=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,vn="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),yn="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),gn=tn,_n=tn;F("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),F(0,["YY",2],0,function(){return this.year()%100}),F(0,["YYYY",4],0,"year"),F(0,["YYYYY",5],0,"year"),F(0,["YYYYYY",6,!0],0,"year"),P("year","y"),D("year",1),H("Y",Jt),H("YY",qt,zt),H("YYYY",Zt,Bt),H("YYYYY",Kt,Ht),H("YYYYYY",Kt,Ht),Y(["YYYYY","YYYYYY"],on),Y("YYYY",function(t,n){n[on]=2===t.length?e.parseTwoDigitYear(t):w(t)}),Y("YY",function(t,n){n[on]=e.parseTwoDigitYear(t)}),Y("Y",function(e,t){t[on]=parseInt(e,10)}),e.parseTwoDigitYear=function(e){return w(e)+(w(e)>68?1900:2e3)};var bn=R("FullYear",!0);F("w",["ww",2],"wo","week"),F("W",["WW",2],"Wo","isoWeek"),P("week","w"),P("isoWeek","W"),D("week",5),D("isoWeek",5),H("w",qt),H("ww",qt,zt),H("W",qt),H("WW",qt,zt),Z(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=w(e)});var wn={dow:0,doy:6};F("d",0,"do","day"),F("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),F("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),F("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),F("e",0,0,"weekday"),F("E",0,0,"isoWeekday"),P("day","d"),P("weekday","e"),P("isoWeekday","E"),D("day",11),D("weekday",11),D("isoWeekday",11),H("d",qt),H("e",qt),H("E",qt),H("dd",function(e,t){return t.weekdaysMinRegex(e)}),H("ddd",function(e,t){return t.weekdaysShortRegex(e)}),H("dddd",function(e,t){return t.weekdaysRegex(e)}),Z(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:f(n).invalidWeekday=e}),Z(["d","e","E"],function(e,t,n,r){t[r]=w(e)});var kn="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),xn="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Cn="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Sn=tn,En=tn,Tn=tn;F("H",["HH",2],0,"hour"),F("h",["hh",2],0,he),F("k",["kk",2],0,function(){return this.hours()||24}),F("hmm",0,0,function(){return""+he.apply(this)+L(this.minutes(),2)}),F("hmmss",0,0,function(){return""+he.apply(this)+L(this.minutes(),2)+L(this.seconds(),2)}),F("Hmm",0,0,function(){return""+this.hours()+L(this.minutes(),2)}),F("Hmmss",0,0,function(){return""+this.hours()+L(this.minutes(),2)+L(this.seconds(),2)}),fe("a",!0),fe("A",!1),P("hour","h"),D("hour",13),H("a",me),H("A",me),H("H",qt),H("h",qt),H("k",qt),H("HH",qt,zt),H("hh",qt,zt),H("kk",qt,zt),H("hmm",Wt),H("hmmss",Gt),H("Hmm",Wt),H("Hmmss",Gt),Y(["H","HH"],un),Y(["k","kk"],function(e,t,n){var r=w(e);t[un]=24===r?0:r}),Y(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),Y(["h","hh"],function(e,t,n){t[un]=w(e),f(n).bigHour=!0}),Y("hmm",function(e,t,n){var r=e.length-2;t[un]=w(e.substr(0,r)),t[cn]=w(e.substr(r)),f(n).bigHour=!0}),Y("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[un]=w(e.substr(0,r)),t[cn]=w(e.substr(r,2)),t[ln]=w(e.substr(i)),f(n).bigHour=!0}),Y("Hmm",function(e,t,n){var r=e.length-2;t[un]=w(e.substr(0,r)),t[cn]=w(e.substr(r))}),Y("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[un]=w(e.substr(0,r)),t[cn]=w(e.substr(r,2)),t[ln]=w(e.substr(i))});var On,Pn=/[ap]\.?m?\.?/i,Mn=R("Hours",!0),An={calendar:Pt,longDateFormat:Mt,invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:At,relativeTime:Dt,months:vn,monthsShort:yn,week:wn,weekdays:kn,weekdaysMin:Cn,weekdaysShort:xn,meridiemParse:Pn},Dn={},In={},Rn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,jn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Nn=/Z|[+-]\d\d(?::?\d\d)?/,Ln=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Fn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Vn=/^\/?Date\((\-?\d+)/i,zn=/^((?:Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d?\d\s(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(?:\d\d)?\d\d\s)(\d\d:\d\d)(\:\d\d)?(\s(?:UT|GMT|[ECMP][SD]T|[A-IK-Za-ik-z]|[+-]\d{4}))$/;e.createFromInputFallback=C("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),e.ISO_8601=function(){},e.RFC_2822=function(){};var Un=C("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Fe.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:v()}),Bn=C("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Fe.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:v()}),Hn=["year","quarter","month","week","day","hour","minute","second","millisecond"];qe("Z",":"),qe("ZZ",""),H("Z",$t),H("ZZ",$t),Y(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=We($t,e)});var qn=/([\+\-]|\d\d)/gi;e.updateOffset=function(){};var Wn=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Gn=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;Ke.fn=Ue.prototype,Ke.invalid=function(){return Ke(NaN)};var Yn=$e(1,"add"),Zn=$e(-1,"subtract");e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",e.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Kn=C("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});F(0,["gg",2],0,function(){return this.weekYear()%100}),F(0,["GG",2],0,function(){return this.isoWeekYear()%100}),it("gggg","weekYear"),it("ggggg","weekYear"),it("GGGG","isoWeekYear"),it("GGGGG","isoWeekYear"),P("weekYear","gg"),P("isoWeekYear","GG"),D("weekYear",1),D("isoWeekYear",1),H("G",Jt),H("g",Jt),H("GG",qt,zt),H("gg",qt,zt),H("GGGG",Zt,Bt),H("gggg",Zt,Bt),H("GGGGG",Kt,Ht),H("ggggg",Kt,Ht),Z(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=w(e)}),Z(["gg","GG"],function(t,n,r,i){n[i]=e.parseTwoDigitYear(t)}),F("Q",0,"Qo","quarter"),P("quarter","Q"),D("quarter",7),H("Q",Vt),Y("Q",function(e,t){t[an]=3*(w(e)-1)}),F("D",["DD",2],"Do","date"),P("date","D"),D("date",9),H("D",qt),H("DD",qt,zt),H("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),Y(["D","DD"],sn),Y("Do",function(e,t){t[sn]=w(e.match(qt)[0],10)});var Xn=R("Date",!0);F("DDD",["DDDD",3],"DDDo","dayOfYear"),P("dayOfYear","DDD"),D("dayOfYear",4),H("DDD",Yt),H("DDDD",Ut),Y(["DDD","DDDD"],function(e,t,n){n._dayOfYear=w(e)}),F("m",["mm",2],0,"minute"),P("minute","m"),D("minute",14),H("m",qt),H("mm",qt,zt),Y(["m","mm"],cn);var Jn=R("Minutes",!1);F("s",["ss",2],0,"second"),P("second","s"),D("second",15),H("s",qt),H("ss",qt,zt),Y(["s","ss"],ln);var Qn=R("Seconds",!1);F("S",0,0,function(){return~~(this.millisecond()/100)}),F(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),F(0,["SSS",3],0,"millisecond"),F(0,["SSSS",4],0,function(){return 10*this.millisecond()}),F(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),F(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),F(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),F(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),F(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),P("millisecond","ms"),D("millisecond",16),H("S",Yt,Vt),H("SS",Yt,zt),H("SSS",Yt,Ut);var $n;for($n="SSSS";$n.length<=9;$n+="S")H($n,Xt);for($n="S";$n.length<=9;$n+="S")Y($n,function(e,t){t[pn]=w(1e3*("0."+e))});var er=R("Milliseconds",!1);F("z",0,0,"zoneAbbr"),F("zz",0,0,"zoneName");var tr=g.prototype;tr.add=Yn,tr.calendar=function(t,n){var r=t||Fe(),i=Ge(r,this).startOf("day"),o=e.calendarFormat(this,i)||"sameElse",a=n&&(E(n[o])?n[o].call(this,r):n[o]);return this.format(a||this.localeData().calendar(o,this,Fe(r)))},tr.clone=function(){return new g(this)},tr.diff=function(e,t,n){var r,i,o,a;return this.isValid()&&(r=Ge(e,this)).isValid()?(i=6e4*(r.utcOffset()-this.utcOffset()),"year"===(t=M(t))||"month"===t||"quarter"===t?(a=tt(this,r),"quarter"===t?a/=3:"year"===t&&(a/=12)):(o=this-r,a="second"===t?o/1e3:"minute"===t?o/6e4:"hour"===t?o/36e5:"day"===t?(o-i)/864e5:"week"===t?(o-i)/6048e5:o),n?a:b(a)):NaN},tr.endOf=function(e){return void 0===(e=M(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))},tr.format=function(t){t||(t=this.isUtc()?e.defaultFormatUtc:e.defaultFormat);var n=U(this,t);return this.localeData().postformat(n)},tr.from=function(e,t){return this.isValid()&&(_(e)&&e.isValid()||Fe(e).isValid())?Ke({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},tr.fromNow=function(e){return this.from(Fe(),e)},tr.to=function(e,t){return this.isValid()&&(_(e)&&e.isValid()||Fe(e).isValid())?Ke({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},tr.toNow=function(e){return this.to(Fe(),e)},tr.get=function(e){return e=M(e),E(this[e])?this[e]():this},tr.invalidAt=function(){return f(this).overflow},tr.isAfter=function(e,t){var n=_(e)?e:Fe(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=M(a(t)?"millisecond":t))?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},tr.isBefore=function(e,t){var n=_(e)?e:Fe(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=M(a(t)?"millisecond":t))?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},tr.isBetween=function(e,t,n,r){return("("===(r=r||"()")[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===r[1]?this.isBefore(t,n):!this.isAfter(t,n))},tr.isSame=function(e,t){var n,r=_(e)?e:Fe(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=M(t||"millisecond"))?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},tr.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},tr.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},tr.isValid=function(){return m(this)},tr.lang=Kn,tr.locale=nt,tr.localeData=rt,tr.max=Bn,tr.min=Un,tr.parsingFlags=function(){return p({},f(this))},tr.set=function(e,t){if("object"==typeof e)for(var n=I(e=A(e)),r=0;r<n.length;r++)this[n[r].unit](e[n[r].unit]);else if(e=M(e),E(this[e]))return this[e](t);return this},tr.startOf=function(e){switch(e=M(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this},tr.subtract=Zn,tr.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},tr.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},tr.toDate=function(){return new Date(this.valueOf())},tr.toISOString=function(){if(!this.isValid())return null;var e=this.clone().utc();return e.year()<0||e.year()>9999?U(e,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):E(Date.prototype.toISOString)?this.toDate().toISOString():U(e,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]")},tr.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i=t+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+i)},tr.toJSON=function(){return this.isValid()?this.toISOString():null},tr.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},tr.unix=function(){return Math.floor(this.valueOf()/1e3)},tr.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},tr.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},tr.year=bn,tr.isLeapYear=function(){return ne(this.year())},tr.weekYear=function(e){return ot.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},tr.isoWeekYear=function(e){return ot.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},tr.quarter=tr.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},tr.month=$,tr.daysInMonth=function(){return X(this.year(),this.month())},tr.week=tr.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},tr.isoWeek=tr.isoWeeks=function(e){var t=se(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},tr.weeksInYear=function(){var e=this.localeData()._week;return ue(this.year(),e.dow,e.doy)},tr.isoWeeksInYear=function(){return ue(this.year(),1,4)},tr.date=Xn,tr.day=tr.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=ce(e,this.localeData()),this.add(e-t,"d")):t},tr.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},tr.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=le(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},tr.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},tr.hour=tr.hours=Mn,tr.minute=tr.minutes=Jn,tr.second=tr.seconds=Qn,tr.millisecond=tr.milliseconds=er,tr.utcOffset=function(t,n,r){var i,o=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=We($t,t)))return this}else Math.abs(t)<16&&!r&&(t*=60);return!this._isUTC&&n&&(i=Ye(this)),this._offset=t,this._isUTC=!0,null!=i&&this.add(i,"m"),o!==t&&(!n||this._changeInProgress?et(this,Ke(t-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,e.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:Ye(this)},tr.utc=function(e){return this.utcOffset(0,e)},tr.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Ye(this),"m")),this},tr.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=We(Qt,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},tr.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Fe(e).utcOffset():0,(this.utcOffset()-e)%60==0)},tr.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},tr.isLocal=function(){return!!this.isValid()&&!this._isUTC},tr.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},tr.isUtc=Ze,tr.isUTC=Ze,tr.zoneAbbr=function(){return this._isUTC?"UTC":""},tr.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},tr.dates=C("dates accessor is deprecated. Use date instead.",Xn),tr.months=C("months accessor is deprecated. Use month instead",$),tr.years=C("years accessor is deprecated. Use year instead",bn),tr.zone=C("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),tr.isDSTShifted=C("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!a(this._isDSTShifted))return this._isDSTShifted;var e={};if(y(e,this),(e=je(e))._a){var t=e._isUTC?d(e._a):Fe(e._a);this._isDSTShifted=this.isValid()&&k(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var nr=O.prototype;nr.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return E(r)?r.call(t,n):r},nr.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])},nr.invalidDate=function(){return this._invalidDate},nr.ordinal=function(e){return this._ordinal.replace("%d",e)},nr.preparse=st,nr.postformat=st,nr.relativeTime=function(e,t,n,r){var i=this._relativeTime[n];return E(i)?i(e,t,n,r):i.replace(/%d/i,e)},nr.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return E(n)?n(t):n.replace(/%s/i,t)},nr.set=function(e){var t,n;for(n in e)E(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},nr.months=function(e,t){return e?n(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||mn).test(t)?"format":"standalone"][e.month()]:n(this._months)?this._months:this._months.standalone},nr.monthsShort=function(e,t){return e?n(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[mn.test(t)?"format":"standalone"][e.month()]:n(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},nr.monthsParse=function(e,t,n){var r,i,o;if(this._monthsParseExact)return J.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=d([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},nr.monthsRegex=function(e){return this._monthsParseExact?(l(this,"_monthsRegex")||ee.call(this),e?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=_n),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},nr.monthsShortRegex=function(e){return this._monthsParseExact?(l(this,"_monthsRegex")||ee.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=gn),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},nr.week=function(e){return se(e,this._week.dow,this._week.doy).week},nr.firstDayOfYear=function(){return this._week.doy},nr.firstDayOfWeek=function(){return this._week.dow},nr.weekdays=function(e,t){return e?n(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:n(this._weekdays)?this._weekdays:this._weekdays.standalone},nr.weekdaysMin=function(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin},nr.weekdaysShort=function(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort},nr.weekdaysParse=function(e,t,n){var r,i,o;if(this._weekdaysParseExact)return pe.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=d([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".",".?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},nr.weekdaysRegex=function(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||de.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=Sn),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},nr.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||de.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=En),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},nr.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||de.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Tn),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},nr.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},nr.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},_e("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===w(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),e.lang=C("moment.lang is deprecated. Use moment.locale instead.",_e),e.langData=C("moment.langData is deprecated. Use moment.localeData instead.",we);var rr=Math.abs,ir=mt("ms"),or=mt("s"),ar=mt("m"),sr=mt("h"),ur=mt("d"),cr=mt("w"),lr=mt("M"),pr=mt("y"),dr=vt("milliseconds"),hr=vt("seconds"),fr=vt("minutes"),mr=vt("hours"),vr=vt("days"),yr=vt("months"),gr=vt("years"),_r=Math.round,br={ss:44,s:45,m:45,h:22,d:26,M:11},wr=Math.abs,kr=Ue.prototype;return kr.isValid=function(){return this._isValid},kr.abs=function(){var e=this._data;return this._milliseconds=rr(this._milliseconds),this._days=rr(this._days),this._months=rr(this._months),e.milliseconds=rr(e.milliseconds),e.seconds=rr(e.seconds),e.minutes=rr(e.minutes),e.hours=rr(e.hours),e.months=rr(e.months),e.years=rr(e.years),this},kr.add=function(e,t){return pt(this,e,t,1)},kr.subtract=function(e,t){return pt(this,e,t,-1)},kr.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=M(e))||"year"===e)return t=this._days+r/864e5,n=this._months+ht(t),"month"===e?n:n/12;switch(t=this._days+Math.round(ft(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},kr.asMilliseconds=ir,kr.asSeconds=or,kr.asMinutes=ar,kr.asHours=sr,kr.asDays=ur,kr.asWeeks=cr,kr.asMonths=lr,kr.asYears=pr,kr.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*w(this._months/12):NaN},kr._bubble=function(){var e,t,n,r,i,o=this._milliseconds,a=this._days,s=this._months,u=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*dt(ft(s)+a),a=0,s=0),u.milliseconds=o%1e3,e=b(o/1e3),u.seconds=e%60,t=b(e/60),u.minutes=t%60,n=b(t/60),u.hours=n%24,a+=b(n/24),i=b(ht(a)),s+=i,a-=dt(ft(i)),r=b(s/12),s%=12,u.days=a,u.months=s,u.years=r,this},kr.get=function(e){return e=M(e),this.isValid()?this[e+"s"]():NaN},kr.milliseconds=dr,kr.seconds=hr,kr.minutes=fr,kr.hours=mr,kr.days=vr,kr.weeks=function(){return b(this.days()/7)},kr.months=yr,kr.years=gr,kr.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=gt(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)},kr.toISOString=_t,kr.toString=_t,kr.toJSON=_t,kr.locale=nt,kr.localeData=rt,kr.toIsoString=C("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",_t),kr.lang=Kn,F("X",0,0,"unix"),F("x",0,0,"valueOf"),H("x",Jt),H("X",en),Y("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),Y("x",function(e,t,n){n._d=new Date(w(e))}),e.version="2.18.1",function(e){bt=e}(Fe),e.fn=tr,e.min=function(){return Ve("isBefore",[].slice.call(arguments,0))},e.max=function(){return Ve("isAfter",[].slice.call(arguments,0))},e.now=function(){return Date.now?Date.now():+new Date},e.utc=d,e.unix=function(e){return Fe(1e3*e)},e.months=function(e,t){return ct(e,t,"months")},e.isDate=u,e.locale=_e,e.invalid=v,e.duration=Ke,e.isMoment=_,e.weekdays=function(e,t,n){return lt(e,t,n,"weekdays")},e.parseZone=function(){return Fe.apply(null,arguments).parseZone()},e.localeData=we,e.isDuration=Be,e.monthsShort=function(e,t){return ct(e,t,"monthsShort")},e.weekdaysMin=function(e,t,n){return lt(e,t,n,"weekdaysMin")},e.defineLocale=be,e.updateLocale=function(e,t){if(null!=t){var n,r=An;null!=Dn[e]&&(r=Dn[e]._config),(n=new O(t=T(r,t))).parentLocale=Dn[e],Dn[e]=n,_e(e)}else null!=Dn[e]&&(null!=Dn[e].parentLocale?Dn[e]=Dn[e].parentLocale:null!=Dn[e]&&delete Dn[e]);return Dn[e]},e.locales=function(){return Ot(Dn)},e.weekdaysShort=function(e,t,n){return lt(e,t,n,"weekdaysShort")},e.normalizeUnits=M,e.relativeTimeRounding=function(e){return void 0===e?_r:"function"==typeof e&&(_r=e,!0)},e.relativeTimeThreshold=function(e,t){return void 0!==br[e]&&(void 0===t?br[e]:(br[e]=t,"s"===e&&(br.ss=t-1),!0))},e.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},e.prototype=tr,e}),e.registerDynamic("7c",["c"],!0,function(e,t,n){"use strict";this||self;Object.defineProperty(t,"__esModule",{value:!0});var r=e("c"),i=function(){function e(){this._emmiters={}}return e.prototype.emmiter=function(e){return this._emmiters[e]||(this._emmiters[e]=new r.EventEmitter),this._emmiters[e]},e}();t.BaseEventBusService=i}),e.registerDynamic("7d",["7c","c"],!0,function(e,t,n){"use strict";this||self;var r=t&&t.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=t&&t.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},o=t&&t.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var a=e("7c"),s=e("c"),u=function(e){function t(){return e.call(this)||this}return r(t,e),Object.defineProperty(t.prototype,"calcStepEmmiter",{get:function(){return e.prototype.emmiter.call(this,"calcStepEmmiter")},enumerable:!0,configurable:!0}),t=i([s.Injectable(),o("design:paramtypes",[])],t)}(a.BaseEventBusService);t.EventBusService=u}),e.registerDynamic("7e",["c","7f","15"],!0,function(e,t,n){"use strict";this||self;var r=t&&t.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=t&&t.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var o=e("c"),a=e("7f"),s=e("15"),u=function(){function e(e){this._console=e.window.console,this.setLoggingOn()}return e.prototype.setLoggingOn=function(){this._loggingOn=!0},e.prototype.setLoggingOff=function(){this._loggingOn=!1},e.prototype.new=function(e){return new a.LoggerInstance(e,this)},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._loggingOn&&this._console.log.apply(this,e)},e=r([o.Injectable(),i("design:paramtypes",[s.WindowContainer])],e)}();t.LoggerService=u}),e.registerDynamic("7f",[],!0,function(e,t,n){"use strict";this||self;Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){this._name=e,this._loggerService=t}return e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];e.unshift(this._name+": "),this._loggerService.log.apply(this._loggerService,e)},e}();t.LoggerInstance=r}),function(i,o){"object"==typeof n&&void 0!==r?o(n,t("@angular/core"),t("rxjs/Observable"),t("@angular/platform-browser")):e.registerDynamic("78",["c","54","e"],!1,function(e,t,n){return"function"==typeof o?o.call(t,t,e("c"),e("54"),e("e")):o})}(0,function(e,t,n,r){"use strict";function i(e){if("string"!=typeof e)return e;switch(e.toUpperCase()){case"GET":return v.Get;case"POST":return v.Post;case"PUT":return v.Put;case"DELETE":return v.Delete;case"OPTIONS":return v.Options;case"HEAD":return v.Head;case"PATCH":return v.Patch}throw new Error('Invalid request method. The method "'+e+'" is not supported.')}function o(e){return"responseURL"in e?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):void 0}function a(e){for(var t=new Uint16Array(e.length),n=0,r=e.length;n<r;n++)t[n]=e.charCodeAt(n);return t.buffer}function s(e){void 0===e&&(e="");var t=new Map;return e.length>0&&e.split("&").forEach(function(e){var n=e.indexOf("="),r=-1==n?[e,""]:[e.slice(0,n),e.slice(n+1)],i=r[0],o=r[1],a=t.get(i)||[];a.push(o),t.set(i,a)}),t}function u(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}function c(){var e="object"==typeof window?window:{};return null===N&&(N=e[j]={}),N}function l(e,t){return e.createConnection(t).response}function p(e,t,n,r){var i=e;return t?i.merge(new X({method:t.method||n,url:t.url||r,search:t.search,headers:t.headers,body:t.body,withCredentials:t.withCredentials,responseType:t.responseType})):i.merge(new X({method:n,url:r}))}function d(){return new Y}function h(e,t){return new ae(e,t)}function f(e,t){return new se(e,t)}var m=function(){function e(){}return e.prototype.build=function(){return new XMLHttpRequest},e.decorators=[{type:t.Injectable}],e.ctorParameters=function(){return[]},e}(),v={};v.Get=0,v.Post=1,v.Put=2,v.Delete=3,v.Options=4,v.Head=5,v.Patch=6,v[v.Get]="Get",v[v.Post]="Post",v[v.Put]="Put",v[v.Delete]="Delete",v[v.Options]="Options",v[v.Head]="Head",v[v.Patch]="Patch";var y={};y.Unsent=0,y.Open=1,y.HeadersReceived=2,y.Loading=3,y.Done=4,y.Cancelled=5,y[y.Unsent]="Unsent",y[y.Open]="Open",y[y.HeadersReceived]="HeadersReceived",y[y.Loading]="Loading",y[y.Done]="Done",y[y.Cancelled]="Cancelled";var g={};g.Basic=0,g.Cors=1,g.Default=2,g.Error=3,g.Opaque=4,g[g.Basic]="Basic",g[g.Cors]="Cors",g[g.Default]="Default",g[g.Error]="Error",g[g.Opaque]="Opaque";var _={};_.NONE=0,_.JSON=1,_.FORM=2,_.FORM_DATA=3,_.TEXT=4,_.BLOB=5,_.ARRAY_BUFFER=6,_[_.NONE]="NONE",_[_.JSON]="JSON",_[_.FORM]="FORM",_[_.FORM_DATA]="FORM_DATA",_[_.TEXT]="TEXT",_[_.BLOB]="BLOB",_[_.ARRAY_BUFFER]="ARRAY_BUFFER";var b={};b.Text=0,b.Json=1,b.ArrayBuffer=2,b.Blob=3,b[b.Text]="Text",b[b.Json]="Json",b[b.ArrayBuffer]="ArrayBuffer",b[b.Blob]="Blob";var w=function(){function e(t){var n=this;this._headers=new Map,this._normalizedNames=new Map,t&&(t instanceof e?t.forEach(function(e,t){e.forEach(function(e){return n.append(t,e)})}):Object.keys(t).forEach(function(e){var r=Array.isArray(t[e])?t[e]:[t[e]];n.delete(e),r.forEach(function(t){return n.append(e,t)})}))}return e.fromResponseHeaderString=function(t){var n=new e;return t.split("\n").forEach(function(e){var t=e.indexOf(":");if(t>0){var r=e.slice(0,t),i=e.slice(t+1).trim();n.set(r,i)}}),n},e.prototype.append=function(e,t){var n=this.getAll(e);null===n?this.set(e,t):n.push(t)},e.prototype.delete=function(e){var t=e.toLowerCase();this._normalizedNames.delete(t),this._headers.delete(t)},e.prototype.forEach=function(e){var t=this;this._headers.forEach(function(n,r){return e(n,t._normalizedNames.get(r),t._headers)})},e.prototype.get=function(e){var t=this.getAll(e);return null===t?null:t.length>0?t[0]:null},e.prototype.has=function(e){return this._headers.has(e.toLowerCase())},e.prototype.keys=function(){return Array.from(this._normalizedNames.values())},e.prototype.set=function(e,t){Array.isArray(t)?t.length&&this._headers.set(e.toLowerCase(),[t.join(",")]):this._headers.set(e.toLowerCase(),[t]),this.mayBeSetNormalizedName(e)},e.prototype.values=function(){return Array.from(this._headers.values())},e.prototype.toJSON=function(){var e=this,t={};return this._headers.forEach(function(n,r){var i=[];n.forEach(function(e){return i.push.apply(i,e.split(","))}),t[e._normalizedNames.get(r)]=i}),t},e.prototype.getAll=function(e){return this.has(e)?this._headers.get(e.toLowerCase()):null},e.prototype.entries=function(){throw new Error('"entries" method is not implemented on Headers class')},e.prototype.mayBeSetNormalizedName=function(e){var t=e.toLowerCase();this._normalizedNames.has(t)||this._normalizedNames.set(t,e)},e}(),k=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},x=function(){function e(e){var t=void 0===e?{}:e,n=t.body,r=t.status,i=t.headers,o=t.statusText,a=t.type,s=t.url;this.body=null!=n?n:null,this.status=null!=r?r:null,this.headers=null!=i?i:null,this.statusText=null!=o?o:null,this.type=null!=a?a:null,this.url=null!=s?s:null}return e.prototype.merge=function(t){return new e({body:t&&null!=t.body?t.body:this.body,status:t&&null!=t.status?t.status:this.status,headers:t&&null!=t.headers?t.headers:this.headers,statusText:t&&null!=t.statusText?t.statusText:this.statusText,type:t&&null!=t.type?t.type:this.type,url:t&&null!=t.url?t.url:this.url})},e}(),C=function(e){function n(){e.call(this,{status:200,statusText:"Ok",type:g.Default,headers:new w})}return k(n,e),n.decorators=[{type:t.Injectable}],n.ctorParameters=function(){return[]},n}(x),S=function(){function e(){}return e.prototype.createConnection=function(e){},e}(),E=function(){return function(){}}(),T=function(){function e(){}return e.prototype.configureRequest=function(e){},e}(),O=function(e){return e>=200&&e<300},P=function(){function e(){}return e.prototype.encodeKey=function(e){return u(e)},e.prototype.encodeValue=function(e){return u(e)},e}(),M=function(){function e(e,t){void 0===e&&(e=""),void 0===t&&(t=new P),this.rawParams=e,this.queryEncoder=t,this.paramsMap=s(e)}return e.prototype.clone=function(){var t=new e("",this.queryEncoder);return t.appendAll(this),t},e.prototype.has=function(e){return this.paramsMap.has(e)},e.prototype.get=function(e){var t=this.paramsMap.get(e);return Array.isArray(t)?t[0]:null},e.prototype.getAll=function(e){return this.paramsMap.get(e)||[]},e.prototype.set=function(e,t){if(void 0!==t&&null!==t){var n=this.paramsMap.get(e)||[];n.length=0,n.push(t),this.paramsMap.set(e,n)}else this.delete(e)},e.prototype.setAll=function(e){var t=this;e.paramsMap.forEach(function(e,n){var r=t.paramsMap.get(n)||[];r.length=0,r.push(e[0]),t.paramsMap.set(n,r)})},e.prototype.append=function(e,t){if(void 0!==t&&null!==t){var n=this.paramsMap.get(e)||[];n.push(t),this.paramsMap.set(e,n)}},e.prototype.appendAll=function(e){var t=this;e.paramsMap.forEach(function(e,n){for(var r=t.paramsMap.get(n)||[],i=0;i<e.length;++i)r.push(e[i]);t.paramsMap.set(n,r)})},e.prototype.replaceAll=function(e){var t=this;e.paramsMap.forEach(function(e,n){var r=t.paramsMap.get(n)||[];r.length=0;for(var i=0;i<e.length;++i)r.push(e[i]);t.paramsMap.set(n,r)})},e.prototype.toString=function(){var e=this,t=[];return this.paramsMap.forEach(function(n,r){n.forEach(function(n){return t.push(e.queryEncoder.encodeKey(r)+"="+e.queryEncoder.encodeValue(n))})}),t.join("&")},e.prototype.delete=function(e){this.paramsMap.delete(e)},e}(),A=function(){function e(){}return e.prototype.json=function(){return"string"==typeof this._body?JSON.parse(this._body):this._body instanceof ArrayBuffer?JSON.parse(this.text()):this._body},e.prototype.text=function(){return this._body instanceof M?this._body.toString():this._body instanceof ArrayBuffer?String.fromCharCode.apply(null,new Uint16Array(this._body)):null==this._body?"":"object"==typeof this._body?JSON.stringify(this._body,null,2):this._body.toString()},e.prototype.arrayBuffer=function(){return this._body instanceof ArrayBuffer?this._body:a(this.text())},e.prototype.blob=function(){if(this._body instanceof Blob)return this._body;if(this._body instanceof ArrayBuffer)return new Blob([this._body]);throw new Error("The request body isn't either a blob or an array buffer")},e}(),D=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},I=function(e){function t(t){e.call(this),this._body=t.body,this.status=t.status,this.ok=this.status>=200&&this.status<=299,this.statusText=t.statusText,this.headers=t.headers,this.type=t.type,this.url=t.url}return D(t,e),t.prototype.toString=function(){return"Response with status: "+this.status+" "+this.statusText+" for URL: "+this.url},t}(A),R=0,j="__ng_jsonp__",N=null,L=function(){function e(){}return e.prototype.build=function(e){var t=document.createElement("script");return t.src=e,t},e.prototype.nextRequestID=function(){return"__req"+R++},e.prototype.requestCallback=function(e){return j+"."+e+".finished"},e.prototype.exposeConnection=function(e,t){c()[e]=t},e.prototype.removeConnection=function(e){c()[e]=null},e.prototype.send=function(e){document.body.appendChild(e)},e.prototype.cleanup=function(e){e.parentNode&&e.parentNode.removeChild(e)},e.decorators=[{type:t.Injectable}],e.ctorParameters=function(){return[]},e}(),F=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},V="JSONP injected script did not invoke callback.",z="JSONP requests must use GET request method.",U=function(){function e(){}return e.prototype.finished=function(e){},e}(),B=function(e){function t(t,r,i){var o=this;if(e.call(this),this._dom=r,this.baseResponseOptions=i,this._finished=!1,t.method!==v.Get)throw new TypeError(z);this.request=t,this.response=new n.Observable(function(e){o.readyState=y.Loading;var n=o._id=r.nextRequestID();r.exposeConnection(n,o);var a=r.requestCallback(o._id),s=t.url;s.indexOf("=JSONP_CALLBACK&")>-1?s=s.replace("=JSONP_CALLBACK&","="+a+"&"):s.lastIndexOf("=JSONP_CALLBACK")===s.length-"=JSONP_CALLBACK".length&&(s=s.substring(0,s.length-"=JSONP_CALLBACK".length)+"="+a);var u=o._script=r.build(s),c=function(t){if(o.readyState!==y.Cancelled){if(o.readyState=y.Done,r.cleanup(u),!o._finished){var n=new x({body:V,type:g.Error,url:s});return i&&(n=i.merge(n)),void e.error(new I(n))}var a=new x({body:o._responseData,url:s});o.baseResponseOptions&&(a=o.baseResponseOptions.merge(a)),e.next(new I(a)),e.complete()}},l=function(t){if(o.readyState!==y.Cancelled){o.readyState=y.Done,r.cleanup(u);var n=new x({body:t.message,type:g.Error});i&&(n=i.merge(n)),e.error(new I(n))}};return u.addEventListener("load",c),u.addEventListener("error",l),r.send(u),function(){o.readyState=y.Cancelled,u.removeEventListener("load",c),u.removeEventListener("error",l),o._dom.cleanup(u)}})}return F(t,e),t.prototype.finished=function(e){this._finished=!0,this._dom.removeConnection(this._id),this.readyState!==y.Cancelled&&(this._responseData=e)},t}(U),H=function(e){function t(){e.apply(this,arguments)}return F(t,e),t}(S),q=function(e){function n(t,n){e.call(this),this._browserJSONP=t,this._baseResponseOptions=n}return F(n,e),n.prototype.createConnection=function(e){return new B(e,this._browserJSONP,this._baseResponseOptions)},n.decorators=[{type:t.Injectable}],n.ctorParameters=function(){return[{type:L},{type:x}]},n}(H),W=/^\)\]\}',?\n/,G=function(){function e(e,t,r){var i=this;this.request=e,this.response=new n.Observable(function(n){var a=t.build();a.open(v[e.method].toUpperCase(),e.url),null!=e.withCredentials&&(a.withCredentials=e.withCredentials);var s=function(){var t=1223===a.status?204:a.status,i=null;204!==t&&"string"==typeof(i=void 0===a.response?a.responseText:a.response)&&(i=i.replace(W,"")),0===t&&(t=i?200:0);var s=w.fromResponseHeaderString(a.getAllResponseHeaders()),u=o(a)||e.url,c=a.statusText||"OK",l=new x({body:i,status:t,headers:s,statusText:c,url:u});null!=r&&(l=r.merge(l));var p=new I(l);if(p.ok=O(t),p.ok)return n.next(p),void n.complete();n.error(p)},u=function(e){var t=new x({body:e,type:g.Error,status:a.status,statusText:a.statusText});null!=r&&(t=r.merge(t)),n.error(new I(t))};if(i.setDetectedContentType(e,a),null==e.headers&&(e.headers=new w),e.headers.has("Accept")||e.headers.append("Accept","application/json, text/plain, */*"),e.headers.forEach(function(e,t){return a.setRequestHeader(t,e.join(","))}),null!=e.responseType&&null!=a.responseType)switch(e.responseType){case b.ArrayBuffer:a.responseType="arraybuffer";break;case b.Json:a.responseType="json";break;case b.Text:a.responseType="text";break;case b.Blob:a.responseType="blob";break;default:throw new Error("The selected responseType is not supported")}return a.addEventListener("load",s),a.addEventListener("error",u),a.send(i.request.getBody()),function(){a.removeEventListener("load",s),a.removeEventListener("error",u),a.abort()}})}return e.prototype.setDetectedContentType=function(e,t){if(null==e.headers||null==e.headers.get("Content-Type"))switch(e.contentType){case _.NONE:break;case _.JSON:t.setRequestHeader("content-type","application/json");break;case _.FORM:t.setRequestHeader("content-type","application/x-www-form-urlencoded;charset=UTF-8");break;case _.TEXT:t.setRequestHeader("content-type","text/plain");break;case _.BLOB:var n=e.blob();n.type&&t.setRequestHeader("content-type",n.type)}},e}(),Y=function(){function e(e,t){void 0===e&&(e="XSRF-TOKEN"),void 0===t&&(t="X-XSRF-TOKEN"),this._cookieName=e,this._headerName=t}return e.prototype.configureRequest=function(e){var t=r.__platform_browser_private__.getDOM().getCookie(this._cookieName);t&&e.headers.set(this._headerName,t)},e}(),Z=function(){function e(e,t,n){this._browserXHR=e,this._baseResponseOptions=t,this._xsrfStrategy=n}return e.prototype.createConnection=function(e){return this._xsrfStrategy.configureRequest(e),new G(e,this._browserXHR,this._baseResponseOptions)},e.decorators=[{type:t.Injectable}],e.ctorParameters=function(){return[{type:m},{type:x},{type:T}]},e}(),K=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},X=function(){function e(e){var t=void 0===e?{}:e,n=t.method,r=t.headers,o=t.body,a=t.url,s=t.search,u=t.withCredentials,c=t.responseType;this.method=null!=n?i(n):null,this.headers=null!=r?r:null,this.body=null!=o?o:null,this.url=null!=a?a:null,this.search=null!=s?"string"==typeof s?new M(s):s:null,this.withCredentials=null!=u?u:null,this.responseType=null!=c?c:null}return e.prototype.merge=function(t){return new e({method:t&&null!=t.method?t.method:this.method,headers:t&&null!=t.headers?t.headers:new w(this.headers),body:t&&null!=t.body?t.body:this.body,url:t&&null!=t.url?t.url:this.url,search:t&&null!=t.search?"string"==typeof t.search?new M(t.search):t.search.clone():this.search,withCredentials:t&&null!=t.withCredentials?t.withCredentials:this.withCredentials,responseType:t&&null!=t.responseType?t.responseType:this.responseType})},e}(),J=function(e){function n(){e.call(this,{method:v.Get,headers:new w})}return K(n,e),n.decorators=[{type:t.Injectable}],n.ctorParameters=function(){return[]},n}(X),Q=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},$=function(e){function t(t){e.call(this);var n=t.url;if(this.url=t.url,t.search){var r=t.search.toString();if(r.length>0){var o="?";-1!=this.url.indexOf("?")&&(o="&"==this.url[this.url.length-1]?"":"&"),this.url=n+o+r}}this._body=t.body,this.method=i(t.method),this.headers=new w(t.headers),this.contentType=this.detectContentType(),this.withCredentials=t.withCredentials,this.responseType=t.responseType}return Q(t,e),t.prototype.detectContentType=function(){switch(this.headers.get("content-type")){case"application/json":return _.JSON;case"application/x-www-form-urlencoded":return _.FORM;case"multipart/form-data":return _.FORM_DATA;case"text/plain":case"text/html":return _.TEXT;case"application/octet-stream":return this._body instanceof ie?_.ARRAY_BUFFER:_.BLOB;default:return this.detectContentTypeFromBody()}},t.prototype.detectContentTypeFromBody=function(){return null==this._body?_.NONE:this._body instanceof M?_.FORM:this._body instanceof ne?_.FORM_DATA:this._body instanceof re?_.BLOB:this._body instanceof ie?_.ARRAY_BUFFER:this._body&&"object"==typeof this._body?_.JSON:_.TEXT},t.prototype.getBody=function(){switch(this.contentType){case _.JSON:case _.FORM:return this.text();case _.FORM_DATA:return this._body;case _.TEXT:return this.text();case _.BLOB:return this.blob();case _.ARRAY_BUFFER:return this.arrayBuffer();default:return null}},t}(A),ee=function(){},te="object"==typeof window?window:ee,ne=te.FormData||ee,re=te.Blob||ee,ie=te.ArrayBuffer||ee,oe=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},ae=function(){function e(e,t){this._backend=e,this._defaultOptions=t}return e.prototype.request=function(e,t){var n;if("string"==typeof e)n=l(this._backend,new $(p(this._defaultOptions,t,v.Get,e)));else{if(!(e instanceof $))throw new Error("First argument must be a url string or Request instance.");n=l(this._backend,e)}return n},e.prototype.get=function(e,t){return this.request(new $(p(this._defaultOptions,t,v.Get,e)))},e.prototype.post=function(e,t,n){return this.request(new $(p(this._defaultOptions.merge(new X({body:t})),n,v.Post,e)))},e.prototype.put=function(e,t,n){return this.request(new $(p(this._defaultOptions.merge(new X({body:t})),n,v.Put,e)))},e.prototype.delete=function(e,t){return this.request(new $(p(this._defaultOptions,t,v.Delete,e)))},e.prototype.patch=function(e,t,n){return this.request(new $(p(this._defaultOptions.merge(new X({body:t})),n,v.Patch,e)))},e.prototype.head=function(e,t){return this.request(new $(p(this._defaultOptions,t,v.Head,e)))},e.prototype.options=function(e,t){return this.request(new $(p(this._defaultOptions,t,v.Options,e)))},e.decorators=[{type:t.Injectable}],e.ctorParameters=function(){return[{type:S},{type:X}]},e}(),se=function(e){function n(t,n){e.call(this,t,n)}return oe(n,e),n.prototype.request=function(e,t){if("string"==typeof e&&(e=new $(p(this._defaultOptions,t,v.Get,e))),!(e instanceof $))throw new Error("First argument must be a url string or Request instance.");if(e.method!==v.Get)throw new Error("JSONP requests must use GET request method.");return l(this._backend,e)},n.decorators=[{type:t.Injectable}],n.ctorParameters=function(){return[{type:S},{type:X}]},n}(ae),ue=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{providers:[{provide:ae,useFactory:h,deps:[Z,X]},m,{provide:X,useClass:J},{provide:x,useClass:C},Z,{provide:T,useFactory:d}]}]}],e.ctorParameters=function(){return[]},e}(),ce=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{providers:[{provide:se,useFactory:f,deps:[H,X]},L,{provide:X,useClass:J},{provide:x,useClass:C},{provide:H,useClass:q}]}]}],e.ctorParameters=function(){return[]},e}(),le=new t.Version("2.4.10");e.BrowserXhr=m,e.JSONPBackend=H,e.JSONPConnection=U,e.CookieXSRFStrategy=Y,e.XHRBackend=Z,e.XHRConnection=G,e.BaseRequestOptions=J,e.RequestOptions=X,e.BaseResponseOptions=C,e.ResponseOptions=x,e.ReadyState=y,e.RequestMethod=v,e.ResponseContentType=b,e.ResponseType=g,e.Headers=w,e.Http=ae,e.Jsonp=se,e.HttpModule=ue,e.JsonpModule=ce,e.Connection=E,e.ConnectionBackend=S,e.XSRFStrategy=T,e.Request=$,e.Response=I,e.QueryEncoder=P,e.URLSearchParams=M,e.VERSION=le}),e.registerDynamic("80",["54","81"],!0,function(e,t,n){"use strict";this||self;var r=e("54"),i=e("81");r.Observable.prototype.catch=i._catch,r.Observable.prototype._catch=i._catch}),e.registerDynamic("76",["54","82"],!0,function(e,t,n){"use strict";this||self;var r=e("54"),i=e("82");r.Observable.prototype.map=i.map}),e.registerDynamic("83",["54"],!0,function(e,t,n){"use strict";this||self;var r=t&&t.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=function(e){function t(t,n){e.call(this),this.error=t,this.scheduler=n}return r(t,e),t.create=function(e,n){return new t(e,n)},t.dispatch=function(e){var t=e.error;e.subscriber.error(t)},t.prototype._subscribe=function(e){var n=this.error,r=this.scheduler;if(e.syncErrorThrowable=!0,r)return r.schedule(t.dispatch,0,{error:n,subscriber:e});e.error(n)},t}(e("54").Observable);t.ErrorObservable=i}),e.registerDynamic("84",["83"],!0,function(e,t,n){"use strict";this||self;var r=e("83");t._throw=r.ErrorObservable.create}),e.registerDynamic("85",["54","84"],!0,function(e,t,n){"use strict";this||self;var r=e("54"),i=e("84");r.Observable.throw=i._throw}),e.registerDynamic("86",["87"],!0,function(e,t,n){"use strict";this||self;var r=e("87");t.empty=r.EmptyObservable.create}),e.registerDynamic("88",["54","86"],!0,function(e,t,n){"use strict";this||self;var r=e("54"),i=e("86");r.Observable.empty=i.empty}),e.registerDynamic("89",["c","78","80","76","85","88","14","19"],!0,function(e,t,n){"use strict";this||self;var r=t&&t.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=t&&t.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var o=e("c"),a=e("78");e("80"),e("76"),e("85"),e("88");var s=e("14"),u=e("19"),c=function(){function e(e,t){this._http=t,this._endpointUrl=u.StaticConfig.endpointUrl,this._lg=e.new("CommonApiService")}return e.prototype.get=function(e,t,n){return this._http.get((n||this._endpointUrl)+e,this.applyOptions(t)).map(this.extractData)},e.prototype.post=function(e,t,n,r){return this._http.post((r||this._endpointUrl)+e,JSON.stringify(t),this.applyOptions(n)).map(this.extractData)},e.prototype.applyOptions=function(e){return e||(e=new a.RequestOptions),e.headers||(e.headers=new a.Headers),e.headers.append("Content-Type","application/json; charset=UTF-8"),e},e.prototype.extractData=function(e){return e.json()},e=r([o.Injectable(),i("design:paramtypes",[s.LoggerService,a.Http])],e)}();t.CommonApiService=c}),e.registerDynamic("8a",[],!0,function(e,t,n){this||self;n.exports=[{headerComponent:{title:"Ceļojumu Apdrošināšanas Kalkulators",subtitle:"Ievadi Datus, Salīdzini un Izvēlies Piemērotāko no Vadošajiem Latvijas Apdrošinātājiem."}},{additionalOfferComponent:{offer:"Apskati, ko vēl varam piedāvāt!",estate:"Īpašums",kasko:"Kasko",octa:"Octa",accidents:"Negadījumi",buy:"Pirkt"}},{fbPagePluginComponent:{broker:"IIZI Brokers"}},{iiziAgreementComponent:{"agree-header":"Ceļojuma apdrošināšanas darījuma noteikumi.","agree-par1":"Apdrošināšanas cenu aprēķinu nodrošina SIA „IIZI Brokers” (turpmāk tekstā IIZI). IIZI darbojas saskaņā ar „Apdrošināšanas un Pārapdrošināšanas starpnieku darbības likums” un tās darbību uzrauga Finanšu un Kapitāla Tirgus Komisija (<a target='_blank' class='pink-text' href='http://www.fktk.lv'>www.fktk.lv</a>). Apdrošināšanas polišu noteikumus nosaka katra apdrošināšanas sabiedrība.","agree-par2":"Ceļojuma apdrošināšanas polišu izdošanu nodrošina <b>IIZI</b> izstrādāts automātisks risinājums, kas pieejams katru dienu no 00:00 – 24:00. Gadījumos, kad automātiska ceļojuma apdrošināšanas polises izdošana nav iespējama, polisi izdod <b>IIZI</b> darbinieks, darba laikā (darba dienās no plkst. 9:00-17.30). Ceļojuma apdrošināšanas polises iegāde uzskatāma par pabeigtu tad, kad polises kopija ir saņemta klienta norādītajā e-pasta kastītē. Ja polise pēc iegādes nav saņemta norādītājā e-pasta adresē, ceļojuma apdrošināšanas spēkā esamība jāpārbauda sazinoties ar <b>IIZI</b>.","agree-par3":"Gadījumā, ja klients veicis norēķinu par ceļojuma apdrošināšanu, ceļojuma apdrošināšanas polises izdošana nav bijusi iespējama un klients vēlas vēl nenotikušo darījumu atcelt, samaksātā summa klientam tiek atgriezta 14 dienu laikā pēc klienta rakstiska (t.sk. e-pasta veidā) pieprasījuma anulēt darījumu, saņemšanas.","agree-par4":"Apdrošināšanas cenu nosaka katrs apdrošinātājs - <b>IIZI</b> negarantē cenu pareizību. Retos gadījumos aprēķinātā ceļojuma apdrošināšanas cena var nesakrist ar ceļojuma apdrošināšanas cenu iegādes brīdī – šādā gadījumā automātiska ceļojuma apdrošināšanas iegāde tiks pārtraukta un ar Jums sazināsies IIZI darbinieks.","agree-par5":"Ceļojuma apdrošināšanas polises un atsevišķu segumu spēkā stāšanās laiks, polises noteikumi, darbības teritorija, pašriski un iekļautais segums ir norādīts ceļojuma apdrošināšanas polisē. Veicot pirkumu Jūs apstiprināt, ka par visiem Jums neskaidrajiem apdrošināšanas jautājumiem esat konsultējies ar SIA IIZI Brokers brokeri, un izvēlētajā apdrošināšanas variantā pareizi tiek atspoguļotas Jūsu patiesās, izvēlētās apdrošināšanas intereses, kā arī galvenās prasības apdrošināšanas līgumam, tai skaitā riski, pret kuriem vēlaties apdrošināties, apdrošināšanas aizsardzības apmērs un pašriska robeža. Veicot pirkumu Jūs apstiprināt, ka apdrošināšanas nosacījumi Jums ir skaidri un papildus apdrošināšanas interešu paskaidrošana no apdrošināšanas starpnieka puses nav nepieciešama. <b>IIZI</b> neatbild par zaudējumiem, kas Jums var rasties sakarā ar pasūtītās apdrošināšanas polises laicīgu neapmaksāšanu vai nestāšanos spēkā noteiktā termiņā.","agree-par6":"Citai personai izsniegtas maksājumu kartes un/vai maksājumu kartes datu izmantošana ir pretlikumīga. Par šādu noziedzīgu nodarījumu vainīgā persona var tikt saukta pie atbildības saskaņā ar Latvijas Republikas likumdošanu.","agree-par7":"Personu datu aizsardzība un konfidencialitāte - informācija par portāla lietotāju un pasūtījumu portālā tiks izmantota un apstrādāta tikai LR likumdošanā noteiktajā kārtībā un saskaņā ar <a target='_blank' class='pink-text' href='https://www.iizi.lv/privatuma-politika'>IIZI Privātuma politiku</a>.","agree-par8":"Nododot portāla rīcībā savu e-pasta adresi un/vai tālruņa numuru, lietotājs piekrīt saņemt informāciju par polišu beigu termiņiem, apdrošināšanas piedāvājumiem, jaunumiem un izmaiņām portālā.","agree-par9":"Īpašuma tiesības uz portālu pieder tikai SIA „IIZI Brokers”. Satura pavairošana, pārsūtīšana, izplatīšana vai uzglabāšana bez iepriekšējas rakstiskas atļaujas ir aizliegta.","agree-par10":"Visi strīdi, kas saistīti ar portāla lietošanu, polišu pasūtīšanu un lietošanas noteikumiem, tiek risināti pārrunu ceļā. Ja pārrunu ceļā tas nav iespējams, risinājums tiek meklēts saskaņā ar Latvijas Republikas likumdošanu."}},{iiziServiceDescriptionComponent:{"iizi-service-description":"Pakalpojumu nodrošina SIA IIZI Brokers. Sūdzību izskatīšanas kārtību un citu svarīgu informāciju atradīsiet vietnē"}},{insuranceBuyerDataComponent:{"buy-insurance":"Apdrošināšanas maksājums","insurance-parameters":"Izvēlētā apdrošināšana","buyer-data":"Polises ņēmēja dati","buyer-address":"Polises ņēmēja adrese",name:"Vārds","name-tooltip":"Apdrošinājuma ņēmēja vārds","check-name-value":"Lūdzu, norādiet vārdu",surname:"Uzvārds","surname-tooltip":"Apdrošinājuma ņēmēja uzvārds","check-surname-value":"Lūdzu, norādiet uzvārdu","id-code":"Personas kods","id-code-tooltip":"Apdrošinājuma ņēmēja personas kods","check-id-code-value":"Lūdzu, norādiet personas kodu",age:"Vecums","age-tooltip":"Apdrošinājuma ņēmēja vecums","placeholder-age":"Lūdzu, norādiet vecumu","check-age-value":"Apdrošinājuma ņēmējs var būt tikai persona, kas vecāka par 18 gadiem",email:"E-pasta adrese","email-tooltip":"Apdrošinājuma ņēmēja e-pasta adrese","check-email-value":"Lūdzu, norādiet e-pasta adresi",phone:"Tālruņa numurs","phone-tooltip":"Apdrošinājuma ņēmēja tālruņa numurs","check-phone-value":"Lūdzu, norādiet tālruņa numuru",county:"Novads",city:"Pilsēta/Pagasts","check-city-value":"Lūdzu, norādiet pilsētu/pagastu",street:"Iela/Mājas nosaukums ","check-street-value":"Lūdzu, norādiet ielas/mājas nosaukumu",house:"Mājas numurs",apartment:"Dzīvoklis",postalCode:"Pasta indekss","check-postalCode-value":"Lūdzu, norādiet pasta indeksu","placeholder-name":"Vārds","placeholder-surname":"Uzvārds","placeholder-id-code":"Personas kods (xxxxxx-xxxxx)","placeholder-email":"E-pasta adrese (email@email.lv)","placeholder-phone":"Tālruņa numurs","placeholder-county":"Novads","placeholder-city":"Pilsēta/Pagasts","placeholder-street":"Iela/Mājas nosaukums ","placeholder-house":"Mājas numurs","placeholder-apartment":"Dzīvoklis","placeholder-postalCode":"Pasta indekss","agree-to-terms-part1":"Veicot apdrošināšanas prēmijas maksājumu, apstiprinu, ka esmu iepazinies ar apdrošināšanas līguma noteikumiem un","agree-to-terms-link":"IIZI darījuma noteikumiem","agree-to-terms-part2":". Apstiprinu, ka par visiem man neskaidrajiem jautājumiem esmu konsultējies ar SIA IIZI Brokers brokeri, un izvēlētajā apdrošināšanas variantā pareizi tiek atspoguļotas manas patiesās, izvēlētās apdrošināšanas intereses, kā arī galvenās prasības apdrošināšanas līgumam, tai skaitā riski, pret kuriem vēlos apdrošināties, apdrošināšanas aizsardzības apmērs un pašriska robeža. Apstiprinu, ka apdrošināšanas nosacījumi man ir skaidri un papildus apdrošināšanas interešu paskaidrošana no apdrošināšanas starpnieka puses nav nepieciešama. Vēlos noslēgt ceļojumu apdrošināšanas līgumu ar manis norādīto apdrošinātāju uz izvēlētajiem noteikumiem.","check-agree-to-terms-and-conditions":"Lai iegādātos apdrošināšanas polisi, ir jāpiekrīt noteikumiem",back:"Atpakaļ",confirm:"Apmaksāt",loader:"Notiek ielāde, lūdzu uzgaidiet..."}},{insuranceCalculationComponent:{"insurance-quotes":"Izvēlies apdrošināšanas segumu","ignore-cover":"Neiekļaut šādu segumu","medical-cover":"Medicīniskie izdevumi","medical-cover-tooltip":"Tiek segti izdevumi, kas radušies akūtas saslimšanas vai nelaimes gadījuma seku rezultātā, saskaņā ar katra apdrošinātāja nosacījumiem","luggage-title":"Bagāža","luggage-cover":"Bagāžas apdrošināšana","luggage-cover-tooltip":"Ja ir izvēlēts bagāžas apdrošināšanas segums, tiek apdrošināta bagāžas zādzība, nolaupīšana, kavēšanās, bojāšana saskaņā ar katras apdrošināšanas sabiedrības noteikumiem.","trip-interrupt-title":"Pārtraukšana, nokavēšana","trip-interrupt-cover":"Ceļojuma pārtraukšana","trip-interrupt-cover-tooltip":"Ar ceļojuma pārtraukšanas risku saprot ceļojuma nenotikšanu, kavēšanos vai pārtraukšanu, atbilstoši apdrošināšanas sabiedrību noteikumiem.","activity-title":"Aktivitātes",accident:"Nelaimes gadījums","accident-tooltip":"Ja izvēlēts nelaimes gadījumu apdrošināšanas segums, tiek segta nelaimes gadījuma seku rezultātā iestājusies nāve, invaliditāte/pastāvīga slimība, dažiem apdrošinātājiem arī trauma. Apdrošināšanas aizsardzība ir spēkā atbilstoši apdrošinātāja noteikumiem, un atlīdzība tiek izmaksāta atbilstoši apdrošinātāja noteiktajām atlīdzību tabulām.","civil-liability":"Civiltiesiskā atbildiba","civil-liability-tooltip":"Ja ir izvēlēts civiltiesiskās atbildības apdrošināšanas segums, tiek atlīdzināti apdrošinātās personas trešajai personai nodarītie miesas un mantiskie zaudējumi, kurus apdrošinātā persona ir neapzināti radījusi ceļojuma laikā un kuru dēļ pret viņu tiek iesniegta prasība. Netiek atlīdzināti bojājumi vai zaudējumi, kas izriet no dažādos noteikumos minēto transportlīdzekļu iegūšanas vai lietošanas. Seguma saturs, limiti un pašriski atšķiras dažādās apdrošināšanas sabiedrībās.",pregnancy:"Segums grūtniecei","pregnancy-tooltip":"Ja izvēlēts segums grūtniecei, tad apdrošinātājs saskaņā ar noteikumiem sedz medicīniskos izdevumus, kas radušies sakarā ar grūtniecību (piem., akūtas grūtniecības komplikācijas","missed-departure":"Nokavēts tranzīts","missed-departure-tooltip":"Ar nokavētas izbraukšanas risku saprot ceļojuma nokavēšanu, atbilstoši apdrošināšanas sabiedrību noteikumiem.","missed-fly-departure":"Lidojuma kavēšanās","missed-fly-departure-tooltip":"Segums iekļauj atlīdzību, ja ir aizkavējies regulārais reiss. Katrs apdrošinātājs nosaka, kādi izdevumi un pie kādiem aizkavēšanās iemesliem tiek segti. Apdrošinātājs nosaka arī minimālo aizkavēšanās laiku, par kuru tiek izmaksāta atlīdzība.","winter-equipment-luggage":"Ziemas inventārs","winter-equipment-luggage-tooltip":"Sporta inventāra apdrošināšana paredz īpašu segumu izdevumiem, kas radušies kavēšanās, nozaudēšanas, sabojāšanas u.c. iemeslu dēļ. Seguma specifiku nosaka katrs apdrošinātājs.","legal-help":"Juridiskā palīdzība","legal-help-tooltip":"Ja apdrošināšanas polisē ir iekļauts tiesiskās palīdzības risks, tiek atlīdzināti no neapzināti veiktās prettiesiskās darbības izrietoši tiesiskās palīdzības izdevumi, kas radušies apdrošinātajai personai ceļojuma laikā . Apdrošināšanas aizsardzība ir spēkā atbilstoši katra apdrošinātāja noteikumiem, noteiktās summas apmērā.","physical-work":"Fizisks darbs","physical-work-tooltip":"Ja apdrošināšanas polisē ir iekļauts fiziskā darba segums, atlīdzība par medicīniskajiem izdevumiem tiek izmaksāta arī tad, ja izdevumi radušies strādājot fizisku darbu.","business-work":"Darījumu brauciens","business-work-tooltip":"Ja apdrošināšanas polisē ir iekļauts biznesa brauciena segums, atlīdzība par medicīniskajiem izdevumiem tiek izmaksāta arī tad, ja izdevumi radušies strādājot garīgu darbu. Vairāki apdrošinātāji iekļauj papildus segumu, piemēram, darbinieku aizvietošanu vai darba līdzekļu (dators u.tml) aizkavēšanās, nozaudēšanas risku.","active-sport":"Aktīvā atpūta","active-sport-tooltip":"Ja apdrošināšanas polisē ir iekļauts aktīvās atpūtas segums, atlīdzība par medicīniskajiem izdevumiem tiek izmaksāta arī tad, ja izdevumi radušies nodarbojoties ar aktīvo atpūtu, saskaņā ar katra apdrošinātāja noteikumiem.","winter-sport":"Ziemas aktivitātes (slēpošana, snovbords)","winter-sport-tooltip":"Ja apdrošināšanas polisē ir iekļauts aktīvās ziemas hobiju segums, atlīdzība par medicīniskajiem izdevumiem tiek izmaksāta arī tad, ja izdevumi radušies nodarbojoties ar ziemas hobijiem, piemēram slēpošanu vai snovbordu, saskaņā ar katra apdrošinātāja noteikumiem. Vairāki apdrošinātāji iekļauj papildus segumu, piemēram, trašu slēgšanas apdrošināšanu, segumu inventāram u.c.","golf-sport":"Golfs","golf-sport-tooltip":"Ja apdrošināšanas polisē ir iekļauts golfa segums, atlīdzība par medicīniskajiem izdevumiem tiek izmaksāta arī tad, ja izdevumi radušies nodarbojoties ar golfu, saskaņā ar katra apdrošinātāja noteikumiem. Apdrošinātājs segumā var iekļaut papildus segumu, piemēram, nepiedalīšanās plānotajās aktivitātēs, segumu inventāram u.c.",recalculate:"Pārrēķināt","screen-size":"Iesakām pagriezt ierīci horizontāli","price-table":"Cena","price-table-tooltip":"Polises cena, par visām polisē iekļautajām personām kopā.","medical-cover-table":"Med.izd.","medical-cover-table-tooltip":"Maksimālā izmaksa par medicīniskajiem izdevumiem, kas radušies saslimšanas vai nelaimes gadījuma rezultātā. Segums ietver arī zobārstniecības izdevumus, repatriāciju slimības vai nāves gadījumā.","luggage-cover-table":"Bagāža","luggage-cover-table-tooltip":"Maksimālā izmaksa par bagāžas zādzību / nozaudēšanu pārvadātāja vainas dēļ. Segums ietver arī bagāžas apdrošināšanu laikā, kad tā neatrodas pie pārvadātāja.","trip-interrupt-cover-table":"Ceļojuma pārtraukšana","trip-interrupt-cover-table-tooltip":"Maksimālā izmaksa par ceļojuma pārtraukšanu, kad tas jau uzsākts vai anulēšanu tam nesākoties.","civil-liab-cover-table":"Civiltiesiskā apdr.","civil-liab-cover-table-tooltip":"Maksimālā izmaksa, lai segtu izdevumus, kas Jūsu vainas pēc radušies trešajai pusei.","accident-cover-table":"Nelaimes gad. apdrošināšana","accident-cover-table-tooltip":"Maksimālā izmaksa naudas kompensācijas veidā par neatgriezenisku invaliditāti vai nāvi nelaimes gadījumā. Atkarībā no izvēlētā apdrošinātāja var būt iekļauta arī naudas kompensācijas izmaksa par nelaimes gadījumā radušos traumu (piemēram, lūzumu, apdegumu).",recommended:"IIZI iesaka","show-more":"Vairāk","show-less":"Mazāk","no-header":"Hmmmm...","no-text":"Pēc Tevis izvēlētas segumu kombinācijas mums neizdevās atrast nevienu piemērotu piedāvājumu. Lūdzu, pārskati izvēlētos segumus un izmēģini citu kombināciju vai zemākus segumu limitus.","no-special":"Ja vēlies īpasu piedāvājumu - tā nav problēma! Spied uz pogas zemāk un aizpildi pieteikumu īpašai ceļojumu apdrošināšanai. Brokeris izpētīs iespējas un sazināsies ar Tevi vienas darba dienas laikā!",back:"Atpakaļ","comparison-tip":"Pirms pērc - iepazīsties ar noteikumiem:","advanced-comparison":"Noteikumu salīdzinājums","calc-loader":"Take it IIZI! Meklējam labākos piedāvājumus!","recalculate-popup":"Tu esi izvēlējies citu risku kombināciju, tādēļ nepieciešams pārrēķināt cenas."}},{insuranceComparisonComponent:{header:"Apdrošināšanas segumu salīdzinājums",close:"Aizvērt",favourable:"Pievērs uzmanību - šīs kompānijas noteikumi ir īpaši izdevīgi!",unfavourable:"Pievērs uzmanību, vai šis segums tiešām ir atbilstošs Tavām vajadzībām."}},{insuranceDataComponent:{"insurance-data":"1. Ceļojuma galamērķis un laiks",territory:"Teritorija","territory-tooltip":"Norādiet teritoriju, kuras ietvaros ceļosiet. Lūdzu iepazīstieties ar padomiem atbilstošas teritorijas izvēlei",europe:"Eiropa",russia:"Krievija",belarus:"Baltkrievija","world-wide":"Visa pasaule","header-info":"Svarīga informācija par teritorijām","europe-info":"<b class='pink-text'>EIROPA</b> – ar teritoriju Eiropa visbiežāk saprot Eiropas ģeogrāfisko teritoriju. Daļa apdrošināšanas kompāniju šajā teritorijā iekļauj arī Krievijas teritoriju Eiropas daļā – līdz Urālu kalniem. <b>Eiropas teritorijā dažiem apdrošinātājiem tiek iekļauti arī tādi populāri atpūtas braucienu galamērķi kā:</b> <span class='pink-text'>Ēģipte, Maroka, Turcija, Tunisija, Kanāriju salas.</span><p>Precīzu katra apdrošinātāja teritoriju un iekļauto valstu sarakstu varēsiet apskatīt nākamajā solī – nosacījumu salīdzinājumā.</p>","world-wide-info":"<b class='pink-text'>VISA PASAULE</b> – Apdrošinātāji bieži piedāvā divu veidu visas pasaules segumus – ar izņēmumiem un bez izņēmumiem. Visa pasaule ar izņēmumiem parasti neiekļauj Amerikas kontinenta valstis, Japānu, Jaunzēlandi, Austrāliju. Tomēr katra apdrošinātāja noteiktie izņēmumi ir savādāki.<p>Precīzu katra apdrošinātāja teritoriju un iekļauto valstu sarakstu varēsiet apskatīt nākamajā solī – nosacījumu salīdzinājumā. Izvēloties teritoriju Visa pasaule, tiks aprēķinātas cenas gan teritorijām ar, gan bez izņēmumiem.</p>","exception-info":"<b class='pink-text'>IZŅĒMUMI</b> – Noteikumu salīdzinājumā noteikti pievērsiet uzmanību iekļauto valstu sarakstiem un izņēmumiem. <b>Vispārīgs izņēmums, kas parasti iekļauts visu apdrošinātāju noteikumos, ir valstis, kurās notiek karadarbība.</b> Ar precīziem izņēmumu formulējumiem var iepazīties katra apdrošinātāja noteikumos.</p>","territory-info":"Kā izvēlēties teritoriju?",close:"Aizvērt","check-territory":"Lūdzu, norādiet teritoriju","trip-duration":"Ceļojuma ilgums","trip-duration-tooltip":"Plānotais ceļojuma ilgums",days:"dienas","check-trip-duration":"Lūdzu, norādiet ceļojuma periodu","trip-participants":"2. Personas, kuras vēlaties apdrošināt","placeholder-name":"Vārds","placeholder-surname":"Uzvārds","placeholder-idCode":"Personas kods (xxxxxx-xxxxx)","placeholder-age":"Vecums","please-select-birth-date":"Lūdzu, noradiet personas<br/>dzimšanas datumu","insurance-taker":"Apdrošinājuma ņēmējs",delete:"Dzēst","add-more":"Pievienot vēl","trip-activity":"3. Aktīvā atpūta","active-sport":"Aktīvā atpūta","active-sport-tooltip":"Ja apdrošināšanas polisē ir iekļauts aktīvās atpūtas segums, atlīdzība par medicīniskajiem izdevumiem tiek izmaksāta arī tad, ja izdevumi radušies nodarbojoties ar aktīvo atpūtu, saskaņā ar katra apdrošinātāja noteikumiem.","winter-sport":"Ziemas aktivitātes (slēpošana, snovbords)","winter-sport-tooltip":"Ja apdrošināšanas polisē ir iekļauts aktīvās ziemas hobiju segums, atlīdzība par medicīniskajiem izdevumiem tiek izmaksāta arī tad, ja izdevumi radušies nodarbojoties ar ziemas hobijiem, piemēram slēpošanu vai snovbordu, saskaņā ar katra apdrošinātāja noteikumiem. Vairāki apdrošinātāji iekļauj papildus segumu, piemēram, trašu slēgšanas apdrošināšanu, segumu inventāram u.c.","no-sport":"Nenodarbošos ar aktīvo atpūtu","trip-transportation":"4. Plānotie pārvietošanās veidi",car:"Privātais (vai īrēts) sauszemes transports",bus:"Sabiedriskais sauszemes transports",airplane:"Sabiedriskais gaisa vai ūdens transports","in-country":"Apstiprinu, ka ceļojuma apdrošināšanas iegādes brīdī ceļojums vēl nav uzsākts un atrodos Latvijā. Apzinos, ka nepatiesas informācijas sniegšana var ietekmēt iegādātās polises seguma spēkā esamību.","agree-to-terms-part1":"Piekrītu nodot savus datus apstrādei tādiem mērķiem, kas aprakstīti","agree-to-terms-part2":"un","agree-to-terms-part3":". Apliecinu, ka iesniegtie personas dati ir patiesi un tie neaizskar trešo personu tiesības. Apstiprinu, ka nesu pilnu atbildību par nepatiesu personas datu sniegšanu.","agree-to-terms-link1":"IIZI privātuma politikā","agree-to-terms-link2":"Ceļojuma apdrošināšanas darījuma noteikumos","check-in-country-to-process":"Lai aprēķinātu cenas, jāapstiprina, ka ceļojums vēl nav uzsākts","check-agree-to-provide-data":"Lai aprēķinātu cenas, jāpiekrīt datu apstrādes noteikumiem",confirm:"Aprēķināt"}},{insuranceParametersComponent:{"medical-param":"Medicīniskie izdevumi","medical-info":"Maksimālā izmaksa par medicīniskajiem izdevumiem, kas radušies saslimšanas vai nelaimes gadījuma rezultātā. Segums ietver arī zobārstniecības izdevumus, repatriāciju slimības vai nāves gadījumā.","luggage-param":"Bagāža","luggage-info":"Maksimālā izmaksa par bagāžas zādzību / nozaudēšanu pārvadātāja vainas dēļ. Segums ietver arī bagāžas apdrošināšanu laikā, kad tā neatrodas pie pārvadātāja.","trip-param":"Ceļojuma pārtraukšana","trip-info":"Maksimālā izmaksa par ceļojuma pārtraukšanu, kad tas jau uzsākts vai anulēšanu tam nesākoties.","civil-liab-param":"Civiltiesiskā apdr.","civil-liab-info":"Maksimālā izmaksa, lai segtu izdevumus, kas Jūsu vainas pēc radušies trešajai pusei.","accident-param":"Nelaimes gad. apdrošināšana","accident-info":"Maksimālā izmaksa naudas kompensācijas veidā par neatgriezenisku invaliditāti vai nāvi nelaimes gadījumā. Atkarībā no izvēlētā apdrošinātāja var būt iekļauta arī naudas kompensācijas izmaksa par nelaimes gadījumā radušos traumu (piemēram, lūzumu, apdegumu).","cover-param":"Papildus izvēlēts",pregnancy:"Segums grūtniecei",accident:"Nelaimes gadījums","civil-liability":"Civiltiesiskā atbildiba","legal-help":"Juridiskā palīdzība","winter-equipment-luggage":"Ziemas inventārs","missed-departure":"Nokavēts tranzīts","missed-fly-departure":"Lidojuma kavēšanās","physical-work":"Fizisks darbs","business-work":"Darījumu brauciens","active-sport":"Aktīvā atpūta","winter-sport":"Ziemas aktivitātes (slēpošana, snovbords)","golf-sport":"Golfs"}},{insuranceSummaryComponent:{territory:"Teritorija:",europe:"Eiropa",russia:"Krievija",belarus:"Baltkrievija","world-wide":"Visa pasaule",period:"Periods:",from:"No",to:"līdz",insurer:"Apdrošināšana:","special-insurance":"Īpašas apdrošināšanas pieprasījums",travelers:"Ceļotāji:"}},{paymentPageComponent:{"insurance-payment":"LAI PABEIGTU IEGĀDES PROCESU, LŪDZU VEICIET POLISES APMAKSU","bank-payment":"Apmaksāt izmantojot internetbanku","card-payment":"Apmaksāt izmantojot kredītkarti","payment-info":"Informējam, ka maksājumu apstrādi veic Jūsu izvēlētā banka. Izvēloties apmaksas veidu, Jūs nokļūsiet bankas vai maksājumu kartes autorizācijas lapā, par kuras drošību atbild attiecīgā finanšu iestāde – SIA IIZI Brokers šajā gadījumā ir starpnieks, kam nav pieejami maksājumu autorizācijas dati. SIA IIZI Brokers no attiecīgās finanšu iestādes saņem tikai informāciju par maksājuma faktu – apstiprinājumu vai atteikumu.","payment-process":"Maksājuma process var ilgt no dažām sekundēm, līdz vairākām minūtēm. <b class='pink-text'>NEKĀDĀ GADĪJUMĀ PROCESA LAIKĀ NESPIEDIET POGU BACK (ATPAKAĻ)!!!</b>","payment-process-end":"Pēc maksājuma procesa beigām Jums uz ekrāna parādīsies paziņojums par maksājuma apstiprinājumu vai atteikumu. <b class='pink-text'>MAKSĀJUMA APSTIPRINĀJUMA LOGU NEKĀDĀ GADĪJUMĀ NEVERIET CIET</b>, bet turpiniet darbības, lai nokļūtu atpakaļ pie pakalpojuma sniedzēja – aizverot maksājuma apstiprinājuma logu, Jūs pārtrauksiet procesu, kā rezultātā darījums nenotiks, neskatoties uz to, ka naudu būsiet samaksājuši.","payment-special-end":"Nenotikušas apmaksas gadījumā, kam par iemeslu var būt bankas atteikums, interneta sakaru traucējumi, pārtraukts maksājuma process un citas tehniskas problēmas, darījums tiek uzskatīts par nenotikušu.","payment-question":"Jebkuru jautājumu gadījumā lūgums sazināties ar SIA <b class='pink-text'>IIZI Brokers</b>","session-end":"Tava sesija ir beigusies noilguma dēļ un polise nav izdota",questions:"Jautājumu gadījumā sazinies ar mums, zvanot +371 6750 0063 vai rakstot uz",back:"Atgriezties aprēķina sākumā"}},{paymentVerificationComponent:{success:"Paldies par pirkumu!","success-desc":"Polisi ir iespējams lejupielādēt, nospiežot uz polises numura. Tavai ērtībai esam to nosūtījuši arī uz iepriekš norādīto e-pastu!","issuing-exception":"Ak, nē!","payment-exception":"Polises iegāde ir pārtraukta","issuing-exception-desc":"Tava apmaksa ir saņemta, tomēr savienojums ar apdrošinātāju tehnisku iemeslu dēļ ir zudis un Tava polise, iespējams, nav izdota.","payment-exception-desc":"Esam saņēmuši ziņu no bankas, ka maksājums nav apstiprināts, tādēļ ceļojuma polise netika izdota.",info:"Ja polise nav izdota, mēs to izrakstīsim tuvākajā darba dienā, darba laikā no 9:00 - 17:00 un nosūtīsim uz iepriekš norādīto e-pastu. Ja tomēr pēc dienas polisi e-pastā neesi saņēmis, lūdzu, pirms došanās ceļojumā sazinies ar mums, lai pārliecinātos, ka darījums ir veiksmīgi pabeigts un Tavs ceļojums ir apdrošināts.",questions:"Jautājumu gadījumā sazinies ar mums, zvanot +371 6750 0063 vai rakstot uz",insurance:"Polises numurs:",email:"E-pasts:"}},{specialInsuranceComponent:{"want-special-insurance":"Nepieciešama īpaša apdrošināšana? Spied šeit!","eg-text":"Piemēram, ekstrēmais, amatieru vai profesionālais sports, polise uz gadu, studentiem u.c."}},{specialInsuranceDataComponent:{"special-insurance":"Īpaša ceļojuma apdrošināšanas piedāvājuma pieprasījums","special-insurance-choise":"Lūdzu, izvēlies kādus no norādītajiem segumiem vai brīvā tekstā ieraksti savas ceļojumu apdrošināsanas vajadzības tam paredzētajos laukos. Profesionāls apdrošināšanas brokeris izvērtēs pieprasījumu un sagatavos īpašu ceļojumu apdrošināšanas piedāvājumu vienas darba dienas laikā!",email:"E-pasta adrese","email-tooltip":"Apdrošinājuma ņēmēja e-pasta adrese","check-email-value":"Lūdzu, norādiet e-pasta adresi",phone:"Tālruņa numurs","phone-tooltip":"Apdrošinājuma ņēmēja tālruņa numurs","check-phone-value":"Lūdzu, norādiet tālruņa numuru","placeholder-email":"E-pasta adrese (email@email.lv)","placeholder-phone":"Tālruņa numurs","extreme-sport":"Nodarbošos ar ekstrēmo sportu (hobija līmeni)","amateur-sport":"Nodarbošos ar amatieru sportu","professional-sport":"Nodarbošos ar profesionālo sportu","sport-type":"Sporta veids","long-insurance":"Nepieciešama ilgtermiņa (gada) ceļojumu polise","group-insurance":"Nepieciešama apdrošināšana grupai","group-size":"Cilvēku skaits",other:"Ja tev ir citas specifiskas vajadzības ceļojumu apdrošināšanai, lūdzu, apraksti tās šeit","agree-to-terms-part1":"Piekrītu nodot savus datus apstrādei tādiem mērķiem, kas aprakstīti","agree-to-terms-part2":"un","agree-to-terms-part3":". Apliecinu, ka iesniegtie personas dati ir patiesi un tie neaizskar trešo personu tiesības. Apstiprinu, ka nesu pilnu atbildību par nepatiesu personas datu sniegšanu.","agree-to-terms-link1":"IIZI privātuma politikā","agree-to-terms-link2":"Ceļojuma apdrošināšanas darījuma noteikumos","check-agree-to-terms-and-conditions":"Lai nosūtītu pieprasījumu piedāvājuma sagatavošanai, jāpiekrīt datu apstrādes noteikumiem","check-choise":"Lūdzu, izvēlies kādus no norādītajiem segumiem vai brīvā tekstā ieraksti savas ceļojumu apdrošināšanas vajadzības tam paredzētajos laukos.",back:"Atpakaļ",confirm:"Apstiprināt",success:"Tavs pieprasījums ir nosūtīts!","success-desc":"Paldies, ka izvēlējies IIZI pakalpojumus! Tavs apdrošināšanas pieprasījums ir nosūtīts IIZI. Apdrošināšanas brokeris izskatīs pieprasījumu un sazināsies ar Tevi vienas darba dienas laikā.",exception:"Ak, nē!","exception-desc":"Notikusi neparedzēta kļūda un Tavs apdrošināšanas pieprasījums, iespējams, nav nogātāts uz IIZI. Lūdzu pamēģini vēlreiz pēc brītiņa vai sazinies ar mums.",questions:"Jautājumu gadījumā sazinies ar mums, zvanot +371 6750 0063 vai rakstot uz"}}]}),e.registerDynamic("8b",[],!0,function(e,t,n){this||self;n.exports=[{headerComponent:{title:"Калькулятор Страхования Путешествий",subtitle:"Введи Данные, Сравни И Выбери Наиболее Подходящего Из Ведущих Страховщиков В Латвии."}},{additionalOfferComponent:{offer:"Посмотри, что еще мы можем предложить!",estate:"Страхование имущества",kasko:"KASKO",octa:"OCTA",accidents:"Страхование несчастных случаев",buy:"Купить"}},{fbPagePluginComponent:{broker:"IIZI Brokers"}},{iiziAgreementComponent:{"agree-header":"Правила сделки страхования путешествий.","agree-par1":"Расчет цен страхования обеспечивает ООО „IIZI Brokers” ( далее по тексту IIZI). IIZI действует в рамках закона „О деятельности посредников страхования и перестрахования” и контролируется Комиссией по рынку финансов и капитала (<a target='_blank' class='pink-text' href='http://www.fktk.lv'>www.fktk.lv</a>). Каждая страховая компания установливает свои правила страхования.","agree-par2":"Выдачу полиса страхования путешествий обеспечивает разработанное автоматизированное решение <b>IIZI</b> , доступное ежедневно с 00:00 - 24:00. В тех случаях, когда автоматическая выдача страхового полиса путешествия не возможна, полис выдает сотрудник <b>IIZI</b>, в рабочее время (по рабочим дням с 9: 00-17.30.). Покупка полиса страхования путешествия считается завершенной тогда, когда клиент получил копию полиса на указанную им электронную почту. Если клиент после приобретения не получил полис на указанную им электронную почту, удостовериться в действительности полиса страхование путешествий можно, связавшись с <b>IIZI</b>.","agree-par3":"В случае, когда клиент осуществил платеж за страхование путешествия и выдача полиса страхования путешествия не была возможна, после чего клиент хочет отменить несостоявшуюся сделку, сумма, уплаченная клиентом будет возвращена в течение 14 дней после того, как будет получено заявление от клиента в письменном виде (а так же по электронной почте).","agree-par4":"Цена страхования определяется каждым страховщиком - <b>IIZI</b> не гарантирует правильность цен. В редких случаях, рассчитанная цена страхования путешествий  может не совпадать с ценой страхования путешествий во время покупки - в этом случае, автоматическое приобретение страхования путешествия будет остановлено, и с Вами свяжется сотрудник IIZI.","agree-par5":"Вступление в силу полисов страхования путешествий и других покрытий, правила полиса, выбранная территория, собственный риск и включенное покрытие указаны в полисе страхования. Делая покупку Вы подтверждаете, что обо всех непонятных Вам вопросах проконсультированы с SIA IIZI Brokers брокерами, и в выбранном Вами варианте страхования предоставлены Ваши правдивые страховые интересы, а так же основные требования к договору страхования, в том числе риски, против которых желаете застраховаться, сумма страхового покрытия и ограничение собственного риска. Делая покупку, Вы подтверждаете, что Вам понятны условия страхования и в дополнительных обьяснениях со стороны посредников страхования не нуждаетесь. <b>IIZI</b> не несет ответственности за любые убытки, связанные с уклонением от оплыты вовремя или невступления полиса в силу в заданное время.","agree-par6":"Использование платежной карточки и/или данных платежный карточки выданной другому лицу является нарушением закона. За это преступление виновный может быть привлечен к ответственности в соответствии с законодательством Латвийской Республики.","agree-par7":"Защита личных данных и конфиденциальность - информация о пользователе сайта и онлайн-заказах будут обрабатываться и использоваться только в соответствии с законом Латвийской Республики и <a target='_blank' class='pink-text' href='https://www.iizi.lv/privatuma-politika'>Политикой конфиденциальности IIZI</a>.","agree-par8":"Передавая владению сайта ваш адрес электронной почты и/или номер телефона, пользователь соглашается получать информацию о сроке окончания полиса, страховых предложениях, новинках и изменениях на сайте.","agree-par9":"Право собственности на портал принадлежит ООО „IIZI Brokers”. Воспроизведение, передача, распространение или хранение содержания без предварительного письменного разрешения запрещено.","agree-par10":"Все споры, связанные c использованием портала, заказами полисов и правилами использования, решаются путем переговоров. В случае, если путем переговоров это невозможно, решение ищется в соответствии с законодательством Латвийской Республики."}},{iiziServiceDescriptionComponent:{"iizi-service-description":"Услугу предоставляет SIA IIZI Brokers. Процедуру подачи жалоб и другую важную информацию можно найти по адресу"}},{insuranceBuyerDataComponent:{"buy-insurance":"Оплата страховки","insurance-parameters":"Выбранная программа страхования","buyer-data":"Данные страхователя полиса","buyer-address":"Адрес страхователя полиса",name:"Имя","name-tooltip":"Имя страхователя","check-name-value":"Пожалуйста, укажите имя",surname:"Фамилия","surname-tooltip":"Фамилия страхователя","check-surname-value":"Пожалуйста, укажите фамилию","id-code":"Персональный код","id-code-tooltip":"Персональный код страхователя","check-id-code-value":"Пожалуйста, укажите персональный код",age:"Возраст","age-tooltip":"Возраст покупателя страховки","placeholder-age":"Пожалуйста, укажите возраст","check-age-value":"Страховку может приобрести только лицо старше 18 лет",email:"Адрес электронной почты","email-tooltip":"Адрес электронной почты страхователя","check-email-value":"Пожалуйста, укажите адрес электронной почты",phone:"Номер телефона","phone-tooltip":"Номер телефона страхователя","check-phone-value":"Пожалуйста, укажите номер телефона",county:"Область",city:"Город/Район","check-city-value":"Пожалуйста, укажите город/район",street:"Улица/Дом","check-street-value":"Пожалуйста, укажите название улицы/дома",house:"Номер дома",apartment:"Квартира",postalCode:"Почтовый индекс","check-postalCode-value":"Пожалуйста, укажите почтовый индекс","placeholder-name":"Имя","placeholder-surname":"Фамилия","placeholder-id-code":"Персональный код (xxxxxx-xxxxx)","placeholder-email":"Адрес электронной почты (email@email.lv)","placeholder-phone":"Номер телефона","placeholder-county":"Область","placeholder-city":"Город/Район","placeholder-street":"Улица","placeholder-house":"Номер дома","placeholder-apartment":"Квартира","placeholder-postalCode":"Почтовый индекс","agree-to-terms-part1":"Осуществляя оплату страховой премии, подтверждаю, что ознакомился с правилами договора и","agree-to-terms-link":"правилами сделки IIZI","agree-to-terms-part2":". Подтверждаю, что обо всех непонятных мне вопросах проконсультирован с SIA IIZI Brokers брокерами, и в выбранном мною варианте страхования предоставлены мои правдивые страховые интересы, а так же основные требования к договору страхования, в том числе риски, против которых желаю застраховаться, сумма страхового покрытия и ограничение собственного риска. Подтверждаю, что мне понятны условия страхования и в дополнительних обьяснениях со стороны посредников страхования не нуждаюсь. Хочу заключить страховой договор путешествия с выбранным мною страховщиком и выбранными условиями.","check-agree-to-terms-and-conditions":"Для приобретения страхового полиса требуется соглашение с правилами",back:"Назад",confirm:"Оплатить",loader:"Подождите, идет загрузка…"}},{insuranceCalculationComponent:{"insurance-quotes":"Выбери страховое покрытие","ignore-cover":"Не включать данное покрытие","medical-cover":"Медицинские расходы","medical-cover-tooltip":"Покрывает расходы возникшие в связи с острой болезнью или в результате несчастного случая согласно условиям страховщиков","luggage-title":"Багаж","luggage-cover":"Страхование багажа","luggage-cover-tooltip":"Если выбрано страхование багажа, багаж будет застрахован от кражи, похищения, задержки, повреждений согласно правилам страховой компании.","trip-interrupt-title":"Прерывание, опоздание","trip-interrupt-cover":"Прерывание путешествия","trip-interrupt-cover-tooltip":"Под риском прерывания путешествия подразумевается отмена путешесвия, опоздание или прерывание согласно правилам страховой компании.","activity-title":"Деятельность",accident:"Несчастный случай","accident-tooltip":"При выборе покрытия несчастного случая, покрываются последствия несчастного случая, приведенные к смерти, инвалидности/постоянной болезни, а так же травмы у некоторых страховщиков. Страховая защита действует в соответствии с правилами страховщика, и компенсация возмещается в соответствии с таблицами возмещения страховщика.","civil-liability":"Гражданско-правовая ответственность","civil-liability-tooltip":"В случае выбора покрытия гражданско-правовой ответственности, возмещается, во время путешествия непреднамеренно нанесенный вред физическому состоянию или материальный ущерб третьему лицу, за что застрахованный несет ответственность. Не возмещается ущерб или убытки, связанные с различными условиями приобретения или использования упомянутых странспортных средств. Содержание покрытия, лимиты и собственный риск у каждой страховой компании отличаются.",pregnancy:"Покрытие для беременной","pregnancy-tooltip":"При выборе покрытия для беременной, страховщик, в соответствии с правилами, покрывает медицинские расходы, связанные с беременностью (острые осложнения беременности)","missed-departure":"Задержка транзита","missed-departure-tooltip":"С риском задержки выезда подразумевается задержка путешествия, в соответствии с правилами компании.","missed-fly-departure":"Задержка рейса","missed-fly-departure-tooltip":"Покрытие включает убытки в связи с задержкой регулярного рейса. Каждый страховщик определяет, какие расходы и при каких причинах покрываются. Страховщик так же определяет минимальное время задержки, при которой возмещаются расходы.","winter-equipment-luggage":"Зимний инвентарь","winter-equipment-luggage-tooltip":"Страхование зимнего инвентаря обеспечивает специальное покрытие расходам, возникшие при задержки, потери, повреждения и тд. Каждый страховщик определает специфику покрытия.","legal-help":"Юридическая помощь","legal-help-tooltip":"Если страховой полис включает риск юридической помощи, возмещаются расходы юридической помощи застрахованому в связи с непреднамеренными проделанными незаконными действиями во время путешествия. Страховое покрытие действует в соответствии с правилами каждого страховщика за определенную сумму.","physical-work":"Физическая работа","physical-work-tooltip":"Если страховой полис включает покрытие физической работы, возмещаются медицинские расходы, понесенные при выполнении физической работы.","business-work":"Деловая поездка","business-work-tooltip":"Если страховой полис включает покрытие деловой поездки, возмещаются медицинские расходы, понесенные во время интелектуальной работы. Многие страховщики включают дополнительные покрытия рисков, например, замена сотрудника, задержка или потеря рабочих инструментов (компьютер и тп.).","active-sport":"Активный отдых","active-sport-tooltip":"Если страховой полис включает покрытие активного отдыха, возмещаются медицинские расходы, понесенные во время занятием активным отдыхом, в соответствии с правилами каждого страховщика.","winter-sport":"Активный зимний отдых (катание на лыжах, сновборде)","winter-sport-tooltip":"Если страховой полис включает покрытие активного зимнего отдыха, возмещаются медицинские расходы, понесенные во время зимнего хобби, например катания на лыжах или сновборде, в соответствии с правилами каждого страховщика. Многие страховщики включают дополнительные покрытия, например, страхование закрытия трасс, покрытие инвентаря и тп.","golf-sport":"Гольф","golf-sport-tooltip":"Если страховой полис включает покрытие гольфа, возмещаются медицинские расходы понесенные во время игры в гольф, в соответствии с правилами каждого страховщика. Страховщик может включить дополнительные покрытия, например, неучастие в запланированной игре, покрытие инвентаря и др.",recalculate:"Пересчитать","screen-size":"Советуем перевернуть устройство по горизонтали","price-table":"Цена","price-table-tooltip":"Цена полиса, за всех включенных в полис лиц вместе.","medical-cover-table":"Медицинские расходы","medical-cover-table-tooltip":"Максимальная выплата за медицинские расходы, понесенные в результате болезни или несчастного случая.","luggage-cover-table":"Багаж","luggage-cover-table-tooltip":"Максимальная выплата за кражу/потерю багажа по вине перевозчика.","trip-interrupt-cover-table":"Прерывание путешествия","trip-interrupt-cover-table-tooltip":"Максимальная выплата за прерывание или анулирование путешествия, не начавшись.","civil-liab-cover-table":"Гражданско-правовое страхование","civil-liab-cover-table-tooltip":"Максимальная выплата за нанесенный Вами третий персоне ущерб.","accident-cover-table":"Страхование несчастного случая","accident-cover-table-tooltip":"Максимальная сумма выплаты в виде компенсации за пожизненную инвалидность или смерть, полученную в результате несчастного случая. Многие страховщики за полученую трамву в результате несчастного случая, включают так же денежную компенсацию (например, перелом, ожог).",recommended:"IIZI рекомендует","show-more":"Больше","show-less":"Меньше","no-header":"Хмммм...","no-text":"К сожалению, по данной комбинации покрытия не удалось найти ни одного подходящего предложения. Пожалуйста, пересмотрите выбранные покрытия и выберите другую комбинацию или более низкие лимиты покрытия.","no-special":"Если Вы желаете особенное предложение- это не проблема! Нажми на кнопку ниже и заполни заявку особого страхования путешествий. Брокер рассмотрит возможности и свяжется с Тобой в течении одного рабочего дня!",back:"Назад","comparison-tip":"Перед покупкой ознакомься с правилами:","advanced-comparison":"Сравнение условий","calc-loader":"Take ir IIZI! Ищем лучшие предложения!","recalculate-popup":"Вы выбрали другую комбинацию рисков, поэтому необходимо пересчитать цену."}},{insuranceComparisonComponent:{header:"Сравнение страховых покрытий",close:"Закрыть",favourable:"Обрати внимание- условия этой компании особенно выгодны!",unfavourable:"Обрати внимание, действительно ли выбранное покрытие соответствует твоим потребностям."}},{insuranceDataComponent:{"insurance-data":"1. Пункт назначения поездки и время пребывания",territory:"Территория","territory-tooltip":"Укажите территорию, в пределах которой будете путешествовать. Пожалуйста ознакомьтесь с доступной информацией касательно выбранной территории",europe:"Европа",russia:"Россия",belarus:"Белоруссия","world-wide":"Весь мир","header-info":"Важная информация о территориях","europe-info":"<b class='pink-text'>ЕВРОПА</b> – под территорией Европа чаще всего подразумевают Европейскую географическую территорию. Некоторые страховые компании включают сюда Квропейскую часть территории России – вплоть до Уральской гряды. <b>Многие страховщики включают в Европейскую территорию такие популярные места отдыха как:</b> <span class='pink-text'>Египет, Марокко, Турция, Тунис, Канарские острова.</span><p>Более подробный список территорий и стран каждого страховщика сможете рассмотреть на следующем шаге - раздел сравнения условий.</p>","world-wide-info":"<b class='pink-text'>ВЕСЬ МИР</b> – Страховщики часто предлагают два вида путешесвий по всему миру – с исключенияи и без. Весь мир с исключениями не включает в себя страны Американского континента, Японию, Новую Зеландию, Австралию. Впрочем, у каждого страховщика свои собсвенные списки исключений.<p>Более подробный список территорий и стран каждого страховщика сможете рассмотреть на следующем шаге - раздел сравнения условий. Цена, при выборе территории Весь мир, расчитывается как с учетом усключений, так и без.</p>","exception-info":"<b class='pink-text'>ИСКЛЮЧЕНИЯ</b> – В разеделе сравнения условий обратите внимание на список стран и исключений. <b>Общее исключение, которое обычно включено в правила страховщиков, это страны где происходят военные дейсвия.</b> С точными формулировками исключений можете ознакомиться в правилах каждого страховщика.</p>","territory-info":"Как выбрать территорию?",close:"Закрыть","check-territory":"Пожалуйста, укажите территорию","trip-duration":"Продолжительность путешествия","trip-duration-tooltip":"Планируемая продолжительность путешествия",days:"дней","check-trip-duration":"Пожалуйста, укажите период путешествия","trip-participants":"2. Лица, которые хотите застраховать","placeholder-name":"Имя","placeholder-surname":"Фамилия","placeholder-idCode":"Персональный код (xxxxxx-xxxxx)","placeholder-age":"Возраст","please-select-birth-date":"Пожалуйста, укажите дату<br/>рождения лица","insurance-taker":"Получатель полиса",delete:"Удалить","add-more":"Добавить","trip-activity":"3. Активный отдых","active-sport":"Активный отдых","active-sport-tooltip":"Если в страховой полис включен активный отдых, возмещение медицинских расходов произойдет в том числе если расходы образовались из-за занятий активным отдыхом, согласно правилам страховщиков.","winter-sport":"Зимние развлечения (лыжи, сноуборд)","winter-sport-tooltip":"Если в страховой полис включены зимние развлечения и хобби, возмещение медицинских расходов произойдет в том числе если расходы образовались из-за занятий такими вещами как например лыжи или сноуборд, согласно правилам страховщиков. Многие страховщики включают добополнительные условия, например: страхование на случай закрытия трасс, страхование инвентаря и т.д.","no-sport":"Не буду заниматься активным отдыхом","trip-transportation":"4. Планируемые виды передвижения",car:"Частный (или ареднованный) наземный транспорт",bus:"Общественный наземный транспорт",airplane:"Общественный воздушный или водный транспорт","in-country":"Я подтверждаю что, на момент приобретения страхования путешествий, я нахожусь в Латвии и путешествие еще не началось. Осознаю, что предоставление ложной информации может повлиять на действительность приобретенного страхового полиса.","agree-to-terms-part1":"Я согласен передать свои данные на обработку для целей описанных в","agree-to-terms-part2":"и","agree-to-terms-part3":". Подтверждаю, что указанные личные данные являются достоверными и не затрагивают прав третьих лиц. Подтверждаю что несу полную ответственность за предоставление ложных данных.","agree-to-terms-link1":"IIZI политика конфиденциальности","agree-to-terms-link2":"Правила страхования путешествий","check-in-country-to-process":"Чтобы приступить к расчету цены необходимо подтвердить что путешествие еще не началось","check-agree-to-provide-data":"Чтобы приступить к расчету цены необходимо согласиться с правилами обработки данных",confirm:"Расчитать"}},{insuranceParametersComponent:{"medical-param":"Медицинские расходы","medical-info":"Максимальная выплата за медицинские расходы, возникшие в результате заболевания или несчастного случая.","luggage-param":"Багаж","luggage-info":"Максимальная вылата за кражу/потерю багажа по вине перевозчика.","trip-param":"Прерывание путешествия","trip-info":"Максимальная вылата за прерывание или ануляция путешествия, не начавшись.","civil-liab-param":"Гражданско-правовое страхование","civil-liab-info":"Максимальная вылата для покрытия расходов, связанных с.","accident-param":"Страхование несчастного случая","accident-info":"Максимальная компенсация за необратимую инвалидность или в случае смерти. Многие страховщики включают денежную компенсация за травмы, вызванные несчастным случаем (например, перелом, ожог).","cover-param":"Дополнительно выбран",pregnancy:"Покрытие для беременной",accident:"Несчастный случай","civil-liability":"Гражданско-правовая ответственность","legal-help":"Юридическая помощь","winter-equipment-luggage":"Зимний инвентарь","missed-departure":"Опоздание на транзит","missed-fly-departure":"Задержка рейса","physical-work":"Физическая работа","business-work":"Деловая поездка","active-sport":"Активный отдых","winter-sport":"Зимний спорт (катание на лыжах или сновборде)","golf-sport":"Гольф"}},{insuranceSummaryComponent:{territory:"Территория:",europe:"Европа",russia:"Россия",belarus:"Белоруссия","world-wide":"Весь мир",period:"Период:",from:"С",to:"до",insurer:"Страхование:","special-insurance":"Запрос на особое страхование",travelers:"Путешественники:"}},{paymentPageComponent:{"insurance-payment":"ДЛЯ ЗАВЕРШЕНИЯ ПРОЦЕССА ПОКУПКИ, ПОЖАЛУЙСТА, ОПЛАТИТЕ ПОЛИС","bank-payment":"Оплатить с помощью интернет-банка","card-payment":"Оплатить с помощью кредитной карты","payment-info":"Информируем, что обработку платежа осуществляет выбранный Вами банк. При выборе способа оплаты, вы автоматически перейдете на страницу авторизации банка или платежной карты, за безопасность которой отвечает соответствующeе финансовое учреждение- SIA IIZI brokers в этом случае посредник, у которого нет доступа к данным авторизации платежа. SIA IIZI Brokers от соответсвующего финансового учреждения получает инфомацию только о статусе оплаты- подтверждение или отказ.","payment-process":"Процесс оплаты может занять некоторое время. <b class='pink-text'>НИ В КОЕМ СЛУЧАЕ НЕ НАЖИМАЙТЕ КНОПКУ BACK (НАЗАД)!!!</b>","payment-process-end":"После процесса оплаты у Вас на экране появится уведомление о подтверждении или отказа платежа. <b class='pink-text'>НИ В КОЕМ СЛУЧАЕ НЕ ЗАКРЫВАЙТЕ ОКНО С ПОДТВЕРЖДЕНИЕМ ОБ ОПЛАТЕ</b>, и продолжайте необходимые действия для перехода обратно к предоставителю услуг- закрыв окно подтверждения платежа, вы прервёте процесс и в результате сделка не состоится, в не зависимости от того, что оплата будет осуществлена.","payment-special-end":"В случае несостоявшегося платежа, причина чего может быть отказ банка, перебои связи интернета, прерваный процесс платежа и другие технические проблемы, сделка будет считаться несостоявшейся.","payment-question":"В случае каких-либо вопросов, пожалуйста, свяжитесь с SIA <b class='pink-text'>IIZI Brokers</b>","session-end":"Интернет-сессия прервана в связи с долгим ожиданием активности. Полис не выдан",questions:"В случае каких-либо вопросов, пожалуйста, свяжитесь с нами по телефону +371 6750 0063 или пишите на",back:"Вернуться к началу"}},{paymentVerificationComponent:{success:"Благодарим Вас за покупку!","success-desc":"Полис можно скачать, нажав на номер полиса. Для Вашего удобства мы также отправили его по указанную Вами электронную почту!","issuing-exception":"О, нет!","payment-exception":"Приобретение полиса прервано","issuing-exception-desc":"Ваш платеж получен, однако, связь с страховщиком по техническим причинам была утрачена и Ваш полис, возможно, автоматически не выдан.","payment-exception-desc":"Мы получили сообщение от банка, что платеж не подтвержден, поэтому полис не выдан.",info:"В случае, если полис не выдан автоматически, мы выпишем его в ближайший рабочий день, в рабочее время с 9:00 - 17:00 и отправим его на указанную Вами электронную почту. В случае, если полис на элекронную почту в течении рабочего дня так и не пришел, убедиться, что сделка удачно завершена и твое путешествие застраховано, можно, связавшись с нами.",questions:"В случае каких-либо вопросов, пожалуйста, свяжитесь с нами по телефону +371 6750 0063 или пишите на",insurance:"Номер полиса:",email:"Электронная почта:"}},{specialInsuranceComponent:{"want-special-insurance":"Необходимо особое страхование? Жми сюда!","eg-text":"Например, экстремальный, любительский или профессиональный спорт, полис на год, для студентов и тд."}},{specialInsuranceDataComponent:{"special-insurance":"Запрос на особое страхование","special-insurance-choise":"Пожалуйста, выберите любой из указанных покрытий или напишите в свободном стиле свои особые пожелания страхования. Профессиональный страховой брокер оценит запрос и оформит особое предложение специально для Вас в течении одного рабочего дня!",email:"Адрес электронной почты","email-tooltip":"Адрес электронной почты страхователя","check-email-value":"Пожалуйста, укажите адрес электронной почты",phone:"Номер телефона","phone-tooltip":"Номер телефона страхователя","check-phone-value":"Пожалуйста, укажите номер телефона","placeholder-email":"Адрес электронной почты (email@email.lv)","placeholder-phone":"Номер телефона","extreme-sport":"Занятие экстремальным спортом (на уровне хобби)","amateur-sport":"Занятие любительским спортом","professional-sport":"Занятие профессиональным спортом","sport-type":"Вид спорта","long-insurance":"Требуется долгосрочный (годовой) полис путешетвия","group-insurance":"Требуется страхование для группы","group-size":"Количество людей",other:"Если у Вас есть особые пожелания в страховании путешествия, пожалуйста, опишите их здесь","agree-to-terms-part1":"Я СОГЛАСЕН(-НА) на обработку и хранение моих персональных данных в указанных целях","agree-to-terms-part2":"и","agree-to-terms-part3":". Я подтверждаю, что представленные мною персональные данные являются достоверными и что они не нарушают права третьих лиц. Я подтверждаю, что несу полную ответственность за предоставленные ложные данные.","agree-to-terms-link1":"Политика конфиденциальности IIZI","agree-to-terms-link2":"Условия страхования путешествий","check-agree-to-terms-and-conditions":"Чтобы отправить запрос для подготовления предложения, трубуется соглашение с правилами обработки данных","check-choise":"Пожалуйста, выберите любой из указанных покрытий или напишите в свободном стиле свои особые пожелания страхования.",back:"Назад",confirm:"Подтвердить",success:"Ваш запрос отправлен!","success-desc":"Благодарим Вас за выбор услуг IIZI! Ваш запрос был отправлен IIZI. Страховой брокер оценит запрос и оформит особое предложение специально для Вас в течении одного рабочего дня.",exception:"О, нет!","exception-desc":"Произошла непредвиденная ошибка и Ваш запрос по страхованию, возможно, не доставлен в IIZI. Пожалуйста, повторите попытку через некоторое время или свяжитесь с нами.",questions:"В случае каких-либо вопросов, пожалуйста, свяжитесь с нами по телефону +371 6750 0063 или пишите на"}}]}),e.registerDynamic("8c",["8a","8b"],!0,function(e,t,n){"use strict";this||self;Object.defineProperty(t,"__esModule",{value:!0}),t.translations={lv:e("8a"),ru:e("8b")}}),e.registerDynamic("8d",["54","8c"],!0,function(e,t,n){"use strict";this||self;Object.defineProperty(t,"__esModule",{value:!0});var r=e("54"),i=e("8c"),o=(function(){}(),function(){function e(){}return e.prototype.getTranslation=function(e){var t=i.translations[e]||[],n={};for(var o in t){var a=t[o];for(var s in a){var u=a[s];for(var c in u)n[s+"."+c]=u[c]}}return r.Observable.of(n)},e}());t.CustomTranslateLoader=o}),e.registerDynamic("8e",["c","1b","15","19"],!0,function(e,t,n){"use strict";this||self;var r=t&&t.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=t&&t.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var o=e("c"),a=e("1b"),s=e("15"),u=e("19"),c=function(){function e(e,t){this._windowContainer=e,this._location=t,this._initGA=!0,u.StaticConfig.endpointUrl.includes("localhost")&&(console.log("localhost detected!"),this._initGA=!1),this._initGA&&this._windowContainer.window.ga&&this._windowContainer.window.ga.loaded?(this._ga=this._windowContainer.window.ga,this._ga("create",u.StaticConfig.googleAnalyticsId,"auto",{name:u.StaticConfig.googleAnalyticsTrackerName,allowLinker:!0}),this._ga(u.StaticConfig.googleAnalyticsTrackerName+".require","linker"),this._ga(u.StaticConfig.googleAnalyticsTrackerName+".require","ecommerce"),this._windowContainer.location.hostname===u.StaticConfig.googleAnalyticsPrimaryDomain?(this._ga(u.StaticConfig.googleAnalyticsTrackerName+".linker:autoLink",u.StaticConfig.googleAnalyticsSecondaryDomain),console.log(u.StaticConfig.googleAnalyticsTrackerName+": tracking on primary domain.")):(this._ga(u.StaticConfig.googleAnalyticsTrackerName+".linker:autoLink",[u.StaticConfig.googleAnalyticsPrimaryDomain]),console.log(u.StaticConfig.googleAnalyticsTrackerName+": tracking on secondary domain."))):this._ga=null}return e.prototype.trackPageView=function(e){this._ga?(console.log("Tracking pageview: ",e),this._ga(u.StaticConfig.googleAnalyticsTrackerName+".send","pageview",{page:this.getCurrentPage(),dimension1:u.StaticConfig.iiziChannelName,transport:!0})):console.log("Could not track pageview. GA not initialized.",e)},e.prototype.trackEvent=function(e,t){if(this._ga){void 0!==t&&null!==t||(t=1);var n={hitType:"event",eventCategory:"TRAVEL",eventAction:t,eventLabel:e,page:this.getCurrentPage(),dimension1:u.StaticConfig.iiziChannelName,transport:!0};console.log("Tracking event: ",n),this._ga(u.StaticConfig.googleAnalyticsTrackerName+".send",n)}else console.log("Could not track event. GA not initialized.")},e.prototype.ecommSend=function(e,t,n,r){if(this._ga){var i={id:e,affiliation:"IIZI",revenue:n,shipping:"0",tax:"0"},o={id:e,name:"TRAVEL",sku:t,category:!0===r?"OK":"ERR",price:n,quantity:"1",dimension1:u.StaticConfig.iiziChannelName};console.log("Adding ecomm transaction: ",i),this._ga(u.StaticConfig.googleAnalyticsTrackerName+".ecommerce:addTransaction",i),console.log("Adding ecomm item: ",o),this._ga(u.StaticConfig.googleAnalyticsTrackerName+".ecommerce:addItem",o),this._ga(u.StaticConfig.googleAnalyticsTrackerName+".ecommerce:send")}else console.log("Could not send e-commerce. GA not initialized.")},e.prototype.getCurrentPage=function(){return this._windowContainer.location.href.replace(this._windowContainer.location.protocol+"//"+this._windowContainer.location.hostname,"")},e=r([o.Injectable(),i("design:paramtypes",[s.WindowContainer,a.Location])],e)}();t.GoogleAnalyticsService=c}),e.registerDynamic("14",["7d","7e","7f","89","8d","8e"],!0,function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}this||self;Object.defineProperty(t,"__esModule",{value:!0}),r(e("7d")),r(e("7e")),r(e("7f")),r(e("89")),r(e("8d")),r(e("8e"))}),e.registerDynamic("19",[],!0,function(e,t,n){"use strict";this||self;Object.defineProperty(t,"__esModule",{value:!0});var r=function(){var e=window;return e.IiiziCalcV3Config?e.IiiziCalcV3Config:{endpointUrl:"https://beta.iizi.lv/calcendpoint/",cmsEndpointUrl:"https://www.iizi.lv/",paymentUrl:"https://www.iizi.lv/betapayments/",returnUrl:"https://beta.iizi.lv/celojumu-kalkulators/#/maksajuma-parbaude/{0}",paymentPageUrl:"",googleAnalyticsId:"UA-59527092-1",googleAnalyticsTrackerName:"iiziTravelCalcTracker",googleAnalyticsPrimaryDomain:"beta.iizi.lv",googleAnalyticsSecondaryDomain:["www.iizi.lv","iizi.lv","www.ezauto.lv","d-auto.lv"],iiziChannelName:"Portal",partnerChannelGuid:"e20b323d-937b-47fc-ba2f-a070e7b80478",clientIp:"81.198.124.68",lang:"lv"}}(),i=function(){function e(){}return Object.defineProperty(e,"dateFormat",{get:function(){return"DD.MM.YYYY"},enumerable:!0,configurable:!0}),Object.defineProperty(e,"priceFormat",{get:function(){return"1.2-2"},enumerable:!0,configurable:!0}),Object.defineProperty(e,"endpointUrl",{get:function(){return r.endpointUrl},enumerable:!0,configurable:!0}),Object.defineProperty(e,"cmsEndpointUrl",{get:function(){return r.cmsEndpointUrl},enumerable:!0,configurable:!0}),Object.defineProperty(e,"paymentUrl",{get:function(){return r.paymentUrl},enumerable:!0,configurable:!0}),Object.defineProperty(e,"returnUrl",{get:function(){return r.returnUrl},enumerable:!0,configurable:!0}),Object.defineProperty(e,"paymentPageUrl",{get:function(){return r.paymentPageUrl},enumerable:!0,configurable:!0}),Object.defineProperty(e,"googleAnalyticsId",{get:function(){return r.googleAnalyticsId},enumerable:!0,configurable:!0}),Object.defineProperty(e,"googleAnalyticsTrackerName",{get:function(){return r.googleAnalyticsTrackerName},enumerable:!0,configurable:!0}),Object.defineProperty(e,"googleAnalyticsPrimaryDomain",{get:function(){return r.googleAnalyticsPrimaryDomain},enumerable:!0,configurable:!0}),Object.defineProperty(e,"googleAnalyticsSecondaryDomain",{get:function(){return r.googleAnalyticsSecondaryDomain},enumerable:!0,configurable:!0}),Object.defineProperty(e,"iiziChannelName",{get:function(){return r.iiziChannelName},enumerable:!0,configurable:!0}),Object.defineProperty(e,"partnerChannelGuid",{get:function(){return r.partnerChannelGuid},enumerable:!0,configurable:!0}),Object.defineProperty(e,"clientIp",{get:function(){return r.clientIp},enumerable:!0,configurable:!0}),Object.defineProperty(e,"lang",{get:function(){return r.lang},enumerable:!0,configurable:!0}),e}();t.StaticConfig=i}),e.registerDynamic("8f",["c","78","80","88","21","14","19"],!0,function(e,t,n){"use strict";this||self;var r=t&&t.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=t&&t.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var o=e("c"),a=e("78");e("80"),e("88");var s=e("21"),u=e("14"),c=e("19"),l=function(){function e(e,t){this._api=t,this._sessionStorKey="IiziCalcTripInsuranceService",this._lg=e.new("TripInsuranceService"),this._offersEmmiter=new o.EventEmitter,this._travelPolicyPaymentResponseEmitter=new o.EventEmitter,this._paymentRegistrationDataEmitter=new o.EventEmitter,this._specialInsuranceRequestRegistrationEmitter=new o.EventEmitter,this._insuranceDataModel=JSON.parse(sessionStorage.getItem(this._sessionStorKey))||{cover:{territory:"",luggage:0,journeyInterupt:0,medical:7e4},startDate:s().format(c.StaticConfig.dateFormat),endDate:"",travelers:[{idCode:"",insuranceTaker:!1,surname:"",name:""}],inCountry:!1,agreement:!1,partnerChannelGuid:c.StaticConfig.partnerChannelGuid,clientIp:""},this._territories=[{id:"EU",name:"europe"},{id:"RUS",name:"russia"},{id:"BLR",name:"belarus"},{id:"WW",name:"world-wide"}],this._vehicleTypes=[{id:1,name:"car",selected:!1},{id:2,name:"bus",selected:!1},{id:3,name:"airplane",selected:!1}],this._banks=[{id:1,name:"SwedbankLV",type:"bank"},{id:2,name:"DnbLV",type:"bank"},{id:4,name:"SEBLV",type:"bank"}],this._cards=[{id:1,name:"MasterCard",type:"creditcard"},{id:2,name:"Maestro",type:"creditcard"},{id:3,name:"VisaElectron",type:"creditcard"},{id:4,name:"Visa",type:"creditcard"}],this.setClientIp()}return Object.defineProperty(e.prototype,"offers",{get:function(){return this._offersEmmiter},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"insuranceDataModel",{get:function(){return this._insuranceDataModel},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"territories",{get:function(){return this._territories},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"vehicleTypes",{get:function(){return this._vehicleTypes},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"travelPolicyPaymentResponseModel",{get:function(){return this._travelPolicyPaymentResponseEmitter},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paymentRegistrationData",{get:function(){return this._paymentRegistrationDataEmitter},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"specialInsuranceRequestRegistration",{get:function(){return this._specialInsuranceRequestRegistrationEmitter},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"banks",{get:function(){return this._banks},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cards",{get:function(){return this._cards},enumerable:!0,configurable:!0}),e.prototype.clearOffers=function(){this._offers=null},e.prototype.validateInsuranceDate=function(){return this._insuranceDataModel.agreement},e.prototype.getTerritoryNameById=function(e){var t=e;return this._territories.forEach(function(n){e===n.id&&(t=n.name)}),t},e.prototype.getSelectedInsuranceQuote=function(){return this._selectedInsuranceQuote},e.prototype.setSelectedInsuranceQuote=function(e){this._selectedInsuranceQuote=e},e.prototype.giveMeOffers=function(){var e=this;if(this._insuranceDataModel)if(this._offers&&this._offers.quotes&&this._offers.quotes.length)setTimeout(function(){e._offersEmmiter.emit(e._offers)},100);else{this._selectedInsuranceQuote=void 0;var t=this.cloneAndModify(this._insuranceDataModel,function(e){var t="YYYY-MM-DDTHH:mm:ss";e.startDate=s(e.startDate,c.StaticConfig.dateFormat).local().format(t),e.endDate=s(e.endDate,c.StaticConfig.dateFormat).local().format(t),e.partnerChannelGuid=c.StaticConfig.partnerChannelGuid});""===t.clientIp&&(t.clientIp=c.StaticConfig.clientIp,console.log("Client Ip has been set to default value: ",t.clientIp)),this._api.post("travel/offers",t).subscribe(function(t){e._offers=t,e._offers.quotes.length>0&&e.MarkRecommended(e._offers.quotes),e._offers.quotes.forEach(function(t){e.getInsurerDescription(t)}),e._offersEmmiter.emit(e._offers)}),c.StaticConfig.endpointUrl.includes("localhost")&&(console.log("localhost detected!"),sessionStorage.setItem(this._sessionStorKey,JSON.stringify(this._insuranceDataModel)))}},e.prototype.registerSpecialInsuranceRequest=function(e){var t=this;e&&this._api.post("travel/register-special-travel-insurance-request",e).subscribe(function(e){t._specialInsuranceRequestRegistrationEmitter.emit(e)})},e.prototype.giveMeTravelPolicyPaymentResult=function(e){var t=this;e&&this._api.post("travel/travelpolicypayment",e).subscribe(function(e){t._travelPolicyPaymentResponse=e,t._travelPolicyPaymentResponseEmitter.emit(t._travelPolicyPaymentResponse)})},e.prototype.giveMeTravelPaymentRegistrationData=function(e){var t=this;if(e){var n=new a.RequestOptions,r=new a.URLSearchParams;r.append("partnerPaymentId",e),n.search=r,this._api.get("travel/insurance-payment-registration-data",n).subscribe(function(e){t._paymentRegistrationData=e,t._paymentRegistrationDataEmitter.emit(t._paymentRegistrationData)})}},e.prototype.setClientIp=function(){var e=this;this._api.get("ping.php",null,"https://www.iizi.lv/").subscribe(function(t){console.log("Client Ip has been received: ",t.ip),e.insuranceDataModel.clientIp=t.ip})},e.prototype.MarkRecommended=function(e){var t=this;e.forEach(function(e){e.recommended=!1,e.recommendedPoints=0,e.attentions=0,t._offers.terms.forEach(function(t){e.insurerName.toUpperCase()===t.insurer.toUpperCase()&&("+"===t.attention&&(e.attentions++,e.recommendedPoints++),"-"===t.attention&&(e.attentions--,e.recommendedPoints--))})}),e.sort(function(e,t){var n=Number((e.price/(e.attentions>1?e.attentions:1)).toFixed(5)),r=Number((t.price/(t.attentions>1?t.attentions:1)).toFixed(5));return n>r?1:n<r?-1:0});for(var n=e.length,r=0;r<e.length;r++)e[r].recommendedPoints+=n,r<e.length-1&&(o=Number((e[r].price/(e[r].attentions>1?e[r].attentions:1)).toFixed(5)))!==(a=Number((e[r+1].price/(e[r+1].attentions>1?e[r+1].attentions:1)).toFixed(5)))&&n--;e.sort(function(e,t){var n=Number((e.price/e.medicalCover*100).toFixed(5)),r=Number((t.price/t.medicalCover*100).toFixed(5));return n>r?1:n<r?-1:0});for(var i=e.length,r=0;r<e.length;r++)if(e[r].recommendedPoints+=i,r<e.length-1){var o=Number((e[r].price/e[r].medicalCover*100).toFixed(5)),a=Number((e[r+1].price/e[r+1].medicalCover*100).toFixed(5));o!==a&&i--}return e.sort(function(e,t){return e.recommendedPoints<t.recommendedPoints?1:e.recommendedPoints>t.recommendedPoints?-1:e.price<t.price?-1:e.price>t.price?1:0}),e[0].recommended=!0,!0},e.prototype.getInsurerDescription=function(e){this._api.get("travel_desc/1/"+e.insurerName,void 0,c.StaticConfig.cmsEndpointUrl).subscribe(function(t){var n={show:"1"===t.IsShow,content_lv:t.Content_lv,content_ru:t.Content_ru};e.description=n})},e.prototype.cloneAndModify=function(e,t){var n=JSON.parse(JSON.stringify(e));return t(n),n},e=r([o.Injectable(),i("design:paramtypes",[u.LoggerService,u.CommonApiService])],e)}();t.TripInsuranceService=l}),e.registerDynamic("2a",["8f"],!0,function(e,t,n){"use strict";this||self;Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(e("8f"))}),e.registerDynamic("90",["c","29","1b","1d","22","23","25","2a"],!0,function(e,t,n){"use strict";this||self;var r=t&&t.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0});var i=e("c"),o=e("29"),a=e("1b"),s=e("1d"),u=e("22"),c=e("23"),l=e("25"),p=e("2a"),d=function(){function e(){}return e=r([i.NgModule({imports:[a.CommonModule,o.FormsModule,s.SharedModule,c.tripInsuranceRouting],declarations:[l.InsuranceDataComponent,l.InsuranceCalculationComponent,l.InsuranceBuyerDataComponent,l.IiziServiceDescriptionComponent,l.InsuranceParametersComponent,l.InsuranceSummaryComponent,l.SpecialInsuranceComponent,l.SpecialInsuranceDataComponent,l.PaymentPageComponent,u.DatepickerComponent,l.PaymentVerificationComponent,l.FBPagePluginComponent,l.AdditionalOfferComponent,l.InsuranceComparisonComponent,l.IiziAgreementComponent],providers:[p.TripInsuranceService]})],e)}();t.TripInsuranceModule=d}),e.registerDynamic("91",[],!0,function(e,t,n){"use strict";this||self;Object.defineProperty(t,"__esModule",{value:!0});var r=function(){return function(){this.step=0}}();t.StepChangeEventModel=r}),e.registerDynamic("92",["c"],!0,function(e,t,n){"use strict";this||self;var r=t&&t.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0});var i=e("c"),o=function(){function e(){}return Object.defineProperty(e.prototype,"window",{get:function(){return window},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"location",{get:function(){return location},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"document",{get:function(){return document},enumerable:!0,configurable:!0}),e=r([i.Injectable()],e)}();t.WindowContainer=o}),e.registerDynamic("93",[],!0,function(e,t,n){"use strict";this||self;Object.defineProperty(t,"__esModule",{value:!0});var r=function(){return function(){}}();t.TranslateDictionaryModel=r}),e.registerDynamic("15",["91","92","93"],!0,function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}this||self;Object.defineProperty(t,"__esModule",{value:!0}),r(e("91")),r(e("92")),r(e("93"))}),e.registerDynamic("94",["53","95"],!0,function(e,t,n){"use strict";this||self;var r=t&&t.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=e("53"),o=e("95"),a=function(e){function t(t){e.call(this),this._value=t}return r(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return n&&!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new o.ObjectUnsubscribedError;return this._value},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(i.Subject);t.BehaviorSubject=a}),e.registerDynamic("96",["52","54","97"],!0,function(e,t,n){"use strict";function r(e){var t=e[l.iterator];if(!t&&"string"==typeof e)return new d(e);if(!t&&void 0!==e.length)return new h(e);if(!t)throw new TypeError("object is not iterable");return e[l.iterator]()}function i(e){var t=+e.length;return isNaN(t)?0:0!==t&&o(t)?(t=a(t)*Math.floor(Math.abs(t)))<=0?0:t>f?f:t:t}function o(e){return"number"==typeof e&&u.root.isFinite(e)}function a(e){var t=+e;return 0===t?t:isNaN(t)?t:t<0?-1:1}this||self;var s=t&&t.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},u=e("52"),c=e("54"),l=e("97"),p=function(e){function t(t,n){if(e.call(this),this.scheduler=n,null==t)throw new Error("iterator cannot be null.");this.iterator=r(t)}return s(t,e),t.create=function(e,n){return new t(e,n)},t.dispatch=function(e){var t=e.index,n=e.hasError,r=e.iterator,i=e.subscriber;if(n)i.error(e.error);else{var o=r.next();o.done?i.complete():(i.next(o.value),e.index=t+1,i.closed?"function"==typeof r.return&&r.return():this.schedule(e))}},t.prototype._subscribe=function(e){var n=this,r=n.iterator,i=n.scheduler;if(i)return i.schedule(t.dispatch,0,{index:0,iterator:r,subscriber:e});for(;;){var o=r.next();if(o.done){e.complete();break}if(e.next(o.value),e.closed){"function"==typeof r.return&&r.return();break}}},t}(c.Observable);t.IteratorObservable=p;var d=function(){function e(e,t,n){void 0===t&&(t=0),void 0===n&&(n=e.length),this.str=e,this.idx=t,this.len=n}return e.prototype[l.iterator]=function(){return this},e.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.str.charAt(this.idx++)}:{done:!0,value:void 0}},e}(),h=function(){function e(e,t,n){void 0===t&&(t=0),void 0===n&&(n=i(e)),this.arr=e,this.idx=t,this.len=n}return e.prototype[l.iterator]=function(){return this},e.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.arr[this.idx++]}:{done:!0,value:void 0}},e}(),f=Math.pow(2,53)-1}),e.registerDynamic("98",["54","99","87"],!0,function(e,t,n){"use strict";this||self;var r=t&&t.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=e("54"),o=e("99"),a=e("87"),s=function(e){function t(t,n){e.call(this),this.arrayLike=t,this.scheduler=n,n||1!==t.length||(this._isScalar=!0,this.value=t[0])}return r(t,e),t.create=function(e,n){var r=e.length;return 0===r?new a.EmptyObservable:1===r?new o.ScalarObservable(e[0],n):new t(e,n)},t.dispatch=function(e){var t=e.arrayLike,n=e.index,r=e.length,i=e.subscriber;i.closed||(n>=r?i.complete():(i.next(t[n]),e.index=n+1,this.schedule(e)))},t.prototype._subscribe=function(e){var n=this,r=n.arrayLike,i=n.scheduler,o=r.length;if(i)return i.schedule(t.dispatch,0,{arrayLike:r,index:0,length:o,subscriber:e});for(var a=0;a<o&&!e.closed;a++)e.next(r[a]);e.complete()},t}(i.Observable);t.ArrayLikeObservable=s}),e.registerDynamic("9a",["54"],!0,function(e,t,n){"use strict";this||self;var r=e("54"),i=function(){function e(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}return e.prototype.observe=function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}},e.prototype.do=function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}},e.prototype.accept=function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)},e.prototype.toObservable=function(){switch(this.kind){case"N":return r.Observable.of(this.value);case"E":return r.Observable.throw(this.error);case"C":return r.Observable.empty()}throw new Error("unexpected notification kind value")},e.createNext=function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e}();t.Notification=i}),e.registerDynamic("9b",["6a","9a"],!0,function(e,t,n){"use strict";this||self;var r=t&&t.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=e("6a"),o=e("9a");t.observeOn=function(e,t){return void 0===t&&(t=0),this.lift(new a(e,t))};var a=function(){function e(e,t){void 0===t&&(t=0),this.scheduler=e,this.delay=t}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.scheduler,this.delay))},e}();t.ObserveOnOperator=a;var s=function(e){function t(t,n,r){void 0===r&&(r=0),e.call(this,t),this.scheduler=n,this.delay=r}return r(t,e),t.dispatch=function(e){var t=e.notification,n=e.destination;t.observe(n),this.unsubscribe()},t.prototype.scheduleMessage=function(e){this.add(this.scheduler.schedule(t.dispatch,this.delay,new u(e,this.destination)))},t.prototype._next=function(e){this.scheduleMessage(o.Notification.createNext(e))},t.prototype._error=function(e){this.scheduleMessage(o.Notification.createError(e))},t.prototype._complete=function(){this.scheduleMessage(o.Notification.createComplete())},t}(i.Subscriber);t.ObserveOnSubscriber=s;var u=function(){return function(e,t){this.notification=e,this.destination=t}}();t.ObserveOnMessage=u}),e.registerDynamic("9c",["9d","9e","9f","a0","96","70","98","97","54","9b","a1"],!0,function(e,t,n){"use strict";this||self;var r=t&&t.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=e("9d"),o=e("9e"),a=e("9f"),s=e("a0"),u=e("96"),c=e("70"),l=e("98"),p=e("97"),d=e("54"),h=e("9b"),f=e("a1"),m=function(e){function t(t,n){e.call(this,null),this.ish=t,this.scheduler=n}return r(t,e),t.create=function(e,n){if(null!=e){if("function"==typeof e[f.observable])return e instanceof d.Observable&&!n?e:new t(e,n);if(i.isArray(e))return new c.ArrayObservable(e,n);if(a.isPromise(e))return new s.PromiseObservable(e,n);if("function"==typeof e[p.iterator]||"string"==typeof e)return new u.IteratorObservable(e,n);if(o.isArrayLike(e))return new l.ArrayLikeObservable(e,n)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")},t.prototype._subscribe=function(e){var t=this.ish,n=this.scheduler;return null==n?t[f.observable]().subscribe(e):t[f.observable]().subscribe(new h.ObserveOnSubscriber(e,n,0))},t}(d.Observable);t.FromObservable=m}),e.registerDynamic("a2",["9c"],!0,function(e,t,n){"use strict";this||self;var r=e("9c");t.from=r.FromObservable.create}),e.registerDynamic("99",["54"],!0,function(e,t,n){"use strict";this||self;var r=t&&t.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=function(e){function t(t,n){e.call(this),this.value=t,this.scheduler=n,this._isScalar=!0,n&&(this._isScalar=!1)}return r(t,e),t.create=function(e,n){return new t(e,n)},t.dispatch=function(e){var t=e.done,n=e.value,r=e.subscriber;t?r.complete():(r.next(n),r.closed||(e.done=!0,this.schedule(e)))},t.prototype._subscribe=function(e){var n=this.value,r=this.scheduler;if(r)return r.schedule(t.dispatch,0,{done:!1,value:n,subscriber:e});e.next(n),e.closed||e.complete()},t}(e("54").Observable);t.ScalarObservable=i}),e.registerDynamic("87",["54"],!0,function(e,t,n){"use strict";this||self;var r=t&&t.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=function(e){function t(t){e.call(this),this.scheduler=t}return r(t,e),t.create=function(e){return new t(e)},t.dispatch=function(e){e.subscriber.complete()},t.prototype._subscribe=function(e){var n=this.scheduler;if(n)return n.schedule(t.dispatch,0,{subscriber:e});e.complete()},t}(e("54").Observable);t.EmptyObservable=i}),e.registerDynamic("72",[],!0,function(e,t,n){"use strict";this||self;t.isScheduler=function(e){return e&&"function"==typeof e.schedule}}),e.registerDynamic("70",["54","99","87","72"],!0,function(e,t,n){"use strict";this||self;var r=t&&t.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=e("54"),o=e("99"),a=e("87"),s=e("72"),u=function(e){function t(t,n){e.call(this),this.array=t,this.scheduler=n,n||1!==t.length||(this._isScalar=!0,this.value=t[0])}return r(t,e),t.create=function(e,n){return new t(e,n)},t.of=function(){for(var e=[],n=0;n<arguments.length;n++)e[n-0]=arguments[n];var r=e[e.length-1];s.isScheduler(r)?e.pop():r=null;var i=e.length;return i>1?new t(e,r):1===i?new o.ScalarObservable(e[0],r):new a.EmptyObservable(r)},t.dispatch=function(e){var t=e.array,n=e.index,r=e.count,i=e.subscriber;n>=r?i.complete():(i.next(t[n]),i.closed||(e.index=n+1,this.schedule(e)))},t.prototype._subscribe=function(e){var n=this.array,r=n.length,i=this.scheduler;if(i)return i.schedule(t.dispatch,0,{array:n,index:0,count:r,subscriber:e});for(var o=0;o<r&&!e.closed;o++)e.next(n[o]);e.complete()},t}(i.Observable);t.ArrayObservable=u}),e.registerDynamic("68",["70"],!0,function(e,t,n){"use strict";this||self;var r=e("70");t.of=r.ArrayObservable.of}),e.registerDynamic("a3",["a4"],!0,function(e,t,n){"use strict";this||self;var r=e("a4");t.concatMap=function(e,t){return this.lift(new r.MergeMapOperator(e,t,1))}}),e.registerDynamic("a5",["6a"],!0,function(e,t,n){"use strict";this||self;var r=t&&t.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=e("6a");t.every=function(e,t){return this.lift(new o(e,t,this))};var o=function(){function e(e,t,n){this.predicate=e,this.thisArg=t,this.source=n}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.predicate,this.thisArg,this.source))},e}(),a=function(e){function t(t,n,r,i){e.call(this,t),this.predicate=n,this.thisArg=r,this.source=i,this.index=0,this.thisArg=r||this}return r(t,e),t.prototype.notifyComplete=function(e){this.destination.next(e),this.destination.complete()},t.prototype._next=function(e){var t=!1;try{t=this.predicate.call(this.thisArg,e,this.index++,this.source)}catch(e){return void this.destination.error(e)}t||this.notifyComplete(!1)},t.prototype._complete=function(){this.notifyComplete(!0)},t}(i.Subscriber)}),e.registerDynamic("a6",["6a","a7"],!0,function(e,t,n){"use strict";this||self;var r=t&&t.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=e("6a"),o=e("a7");t.first=function(e,t,n){return this.lift(new a(e,t,n,this))};var a=function(){function e(e,t,n,r){this.predicate=e,this.resultSelector=t,this.defaultValue=n,this.source=r}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.predicate,this.resultSelector,this.defaultValue,this.source))},e}(),s=function(e){function t(t,n,r,i,o){e.call(this,t),this.predicate=n,this.resultSelector=r,this.defaultValue=i,this.source=o,this.index=0,this.hasCompleted=!1,this._emitted=!1}return r(t,e),t.prototype._next=function(e){var t=this.index++;this.predicate?this._tryPredicate(e,t):this._emit(e,t)},t.prototype._tryPredicate=function(e,t){var n;try{n=this.predicate(e,t,this.source)}catch(e){return void this.destination.error(e)}n&&this._emit(e,t)},t.prototype._emit=function(e,t){this.resultSelector?this._tryResultSelector(e,t):this._emitFinal(e)},t.prototype._tryResultSelector=function(e,t){var n;try{n=this.resultSelector(e,t)}catch(e){return void this.destination.error(e)}this._emitFinal(n)},t.prototype._emitFinal=function(e){var t=this.destination;this._emitted||(this._emitted=!0,t.next(e),t.complete(),this.hasCompleted=!0)},t.prototype._complete=function(){var e=this.destination;this.hasCompleted||void 0===this.defaultValue?this.hasCompleted||e.error(new o.EmptyError):(e.next(this.defaultValue),e.complete())},t}(i.Subscriber)}),e.registerDynamic("82",["6a"],!0,function(e,t,n){"use strict";this||self;var r=t&&t.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=e("6a");t.map=function(e,t){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return this.lift(new o(e,t))};var o=function(){function e(e,t){this.project=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.project,this.thisArg))},e}();t.MapOperator=o;var a=function(e){function t(t,n,r){e.call(this,t),this.project=n,this.count=0,this.thisArg=r||this}return r(t,e),t.prototype._next=function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(i.Subscriber)}),e.registerDynamic("a4",["a8","a9"],!0,function(e,t,n){"use strict";this||self;var r=t&&t.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=e("a8"),o=e("a9");t.mergeMap=function(e,t,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"number"==typeof t&&(n=t,t=null),this.lift(new a(e,t,n))};var a=function(){function e(e,t,n){void 0===n&&(n=Number.POSITIVE_INFINITY),this.project=e,this.resultSelector=t,this.concurrent=n}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.project,this.resultSelector,this.concurrent))},e}();t.MergeMapOperator=a;var s=function(e){function t(t,n,r,i){void 0===i&&(i=Number.POSITIVE_INFINITY),e.call(this,t),this.project=n,this.resultSelector=r,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return r(t,e),t.prototype._next=function(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)},t.prototype._tryNext=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(e){return void this.destination.error(e)}this.active++,this._innerSub(t,e,n)},t.prototype._innerSub=function(e,t,n){this.add(i.subscribeToResult(this,e,t,n))},t.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},t.prototype.notifyNext=function(e,t,n,r,i){this.resultSelector?this._notifyResultSelector(e,t,n,r):this.destination.next(t)},t.prototype._notifyResultSelector=function(e,t,n,r){var i;try{i=this.resultSelector(e,t,n,r)}catch(e){return void this.destination.error(e)}this.destination.next(i)},t.prototype.notifyComplete=function(e){var t=this.buffer;this.remove(e),this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(o.OuterSubscriber);t.MergeMapSubscriber=s}),e.registerDynamic("aa",["6a"],!0,function(e,t,n){"use strict";this||self;var r=t&&t.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=e("6a");t.reduce=function(e,t){var n=!1;return arguments.length>=2&&(n=!0),this.lift(new o(e,t,n))};var o=function(){function e(e,t,n){void 0===n&&(n=!1),this.accumulator=e,this.seed=t,this.hasSeed=n}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.accumulator,this.seed,this.hasSeed))},e}();t.ReduceOperator=o;var a=function(e){function t(t,n,r,i){e.call(this,t),this.accumulator=n,this.hasSeed=i,this.index=0,this.hasValue=!1,this.acc=r,this.hasSeed||this.index++}return r(t,e),t.prototype._next=function(e){this.hasValue||(this.hasValue=this.hasSeed)?this._tryReduce(e):(this.acc=e,this.hasValue=!0)},t.prototype._tryReduce=function(e){var t;try{t=this.accumulator(this.acc,e,this.index++)}catch(e){return void this.destination.error(e)}this.acc=t},t.prototype._complete=function(){(this.hasValue||this.hasSeed)&&this.destination.next(this.acc),this.destination.complete()},t}(i.Subscriber);t.ReduceSubscriber=a}),e.registerDynamic("81",["a9","a8"],!0,function(e,t,n){"use strict";this||self;var r=t&&t.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=e("a9"),o=e("a8");t._catch=function(e){var t=new a(e),n=this.lift(t);return t.caught=n};var a=function(){function e(e){this.selector=e}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.selector,this.caught))},e}(),s=function(e){function t(t,n,r){e.call(this,t),this.selector=n,this.caught=r}return r(t,e),t.prototype.error=function(t){if(!this.isStopped){var n=void 0;try{n=this.selector(t,this.caught)}catch(t){return void e.prototype.error.call(this,t)}this._unsubscribeAndRecycle(),this.add(o.subscribeToResult(this,n))}},t}(i.OuterSubscriber)}),e.registerDynamic("ab",["71"],!0,function(e,t,n){"use strict";this||self;var r=e("71");t.concatAll=function(){return this.lift(new r.MergeAllOperator(1))}}),e.registerDynamic("a0",["52","54"],!0,function(e,t,n){"use strict";function r(e){var t=e.value,n=e.subscriber;n.closed||(n.next(t),n.complete())}function i(e){var t=e.err,n=e.subscriber;n.closed||n.error(t)}this||self;var o=t&&t.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},a=e("52"),s=function(e){function t(t,n){e.call(this),this.promise=t,this.scheduler=n}return o(t,e),t.create=function(e,n){return new t(e,n)},t.prototype._subscribe=function(e){var t=this,n=this.promise,o=this.scheduler;if(null==o)this._isScalar?e.closed||(e.next(this.value),e.complete()):n.then(function(n){t.value=n,t._isScalar=!0,e.closed||(e.next(n),e.complete())},function(t){e.closed||e.error(t)}).then(null,function(e){a.root.setTimeout(function(){throw e})});else if(this._isScalar){if(!e.closed)return o.schedule(r,0,{value:this.value,subscriber:e})}else n.then(function(n){t.value=n,t._isScalar=!0,e.closed||e.add(o.schedule(r,0,{value:n,subscriber:e}))},function(t){e.closed||e.add(o.schedule(i,0,{err:t,subscriber:e}))}).then(null,function(e){a.root.setTimeout(function(){throw e})})},t}(e("54").Observable);t.PromiseObservable=s}),e.registerDynamic("55",["a0"],!0,function(e,t,n){"use strict";this||self;var r=e("a0");t.fromPromise=r.PromiseObservable.create}),e.registerDynamic("a7",[],!0,function(e,t,n){"use strict";this||self;var r=t&&t.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=function(e){function t(){var t=e.call(this,"no elements in sequence");this.name=t.name="EmptyError",this.stack=t.stack,this.message=t.message}return r(t,e),t}(Error);t.EmptyError=i}),e.registerDynamic("ac",["6a","a7"],!0,function(e,t,n){"use strict";this||self;var r=t&&t.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=e("6a"),o=e("a7");t.last=function(e,t,n){return this.lift(new a(e,t,n,this))};var a=function(){function e(e,t,n,r){this.predicate=e,this.resultSelector=t,this.defaultValue=n,this.source=r}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.predicate,this.resultSelector,this.defaultValue,this.source))},e}(),s=function(e){function t(t,n,r,i,o){e.call(this,t),this.predicate=n,this.resultSelector=r,this.defaultValue=i,this.source=o,this.hasValue=!1,this.index=0,void 0!==i&&(this.lastValue=i,this.hasValue=!0)}return r(t,e),t.prototype._next=function(e){var t=this.index++;if(this.predicate)this._tryPredicate(e,t);else{if(this.resultSelector)return void this._tryResultSelector(e,t);this.lastValue=e,this.hasValue=!0}},t.prototype._tryPredicate=function(e,t){var n;try{n=this.predicate(e,t,this.source)}catch(e){return void this.destination.error(e)}if(n){if(this.resultSelector)return void this._tryResultSelector(e,t);this.lastValue=e,this.hasValue=!0}},t.prototype._tryResultSelector=function(e,t){var n;try{n=this.resultSelector(e,t)}catch(e){return void this.destination.error(e)}this.lastValue=n,this.hasValue=!0},t.prototype._complete=function(){var e=this.destination;this.hasValue?(e.next(this.lastValue),e.complete()):e.error(new o.EmptyError)},t}(i.Subscriber)}),e.registerDynamic("a9",["6a"],!0,function(e,t,n){"use strict";this||self;var r=t&&t.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=function(e){function t(){e.apply(this,arguments)}return r(t,e),t.prototype.notifyNext=function(e,t,n,r,i){this.destination.next(t)},t.prototype.notifyError=function(e,t){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.destination.complete()},t}(e("6a").Subscriber);t.OuterSubscriber=i}),e.registerDynamic("9e",[],!0,function(e,t,n){"use strict";this||self;t.isArrayLike=function(e){return e&&"number"==typeof e.length}}),e.registerDynamic("9f",[],!0,function(e,t,n){"use strict";this||self;t.isPromise=function(e){return e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}}),e.registerDynamic("97",["52"],!0,function(e,t,n){"use strict";function r(e){var t=e.Symbol;if("function"==typeof t)return t.iterator||(t.iterator=t("iterator polyfill")),t.iterator;var n=e.Set;if(n&&"function"==typeof(new n)["@@iterator"])return"@@iterator";var r=e.Map;if(r)for(var i=Object.getOwnPropertyNames(r.prototype),o=0;o<i.length;++o){var a=i[o];if("entries"!==a&&"size"!==a&&r.prototype[a]===r.prototype.entries)return a}return"@@iterator"}this||self;var i=e("52");t.symbolIteratorPonyfill=r,t.iterator=r(i.root),t.$$iterator=t.iterator}),e.registerDynamic("ad",["6a"],!0,function(e,t,n){"use strict";this||self;var r=t&&t.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=function(e){function t(t,n,r){e.call(this),this.parent=t,this.outerValue=n,this.outerIndex=r,this.index=0}return r(t,e),t.prototype._next=function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)},t.prototype._error=function(e){this.parent.notifyError(e,this),this.unsubscribe()},t.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},t}(e("6a").Subscriber);t.InnerSubscriber=i}),e.registerDynamic("a8",["52","9e","9f","ae","54","97","ad","a1"],!0,function(e,t,n){"use strict";this||self;var r=e("52"),i=e("9e"),o=e("9f"),a=e("ae"),s=e("54"),u=e("97"),c=e("ad"),l=e("a1");t.subscribeToResult=function(e,t,n,p){var d=new c.InnerSubscriber(e,n,p);if(d.closed)return null;if(t instanceof s.Observable)return t._isScalar?(d.next(t.value),d.complete(),null):t.subscribe(d);if(i.isArrayLike(t)){for(var h=0,f=t.length;h<f&&!d.closed;h++)d.next(t[h]);d.closed||d.complete()}else{if(o.isPromise(t))return t.then(function(e){d.closed||(d.next(e),d.complete())},function(e){return d.error(e)}).then(null,function(e){r.root.setTimeout(function(){throw e})}),d;if(t&&"function"==typeof t[u.iterator])for(var m=t[u.iterator]();;){var v=m.next();if(v.done){d.complete();break}if(d.next(v.value),d.closed)break}else if(t&&"function"==typeof t[l.observable]){var y=t[l.observable]();if("function"==typeof y.subscribe)return y.subscribe(new c.InnerSubscriber(e,n,p));d.error(new TypeError("Provided object does not correctly implement Symbol.observable"))}else{var g="You provided "+(a.isObject(t)?"an invalid object":"'"+t+"'")+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";d.error(new TypeError(g))}}return null}}),e.registerDynamic("71",["a9","a8"],!0,function(e,t,n){"use strict";this||self;var r=t&&t.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=e("a9"),o=e("a8");t.mergeAll=function(e){return void 0===e&&(e=Number.POSITIVE_INFINITY),this.lift(new a(e))};var a=function(){function e(e){this.concurrent=e}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.concurrent))},e}();t.MergeAllOperator=a;var s=function(e){function t(t,n){e.call(this,t),this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0}return r(t,e),t.prototype._next=function(e){this.active<this.concurrent?(this.active++,this.add(o.subscribeToResult(this,e))):this.buffer.push(e)},t.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},t.prototype.notifyComplete=function(e){var t=this.buffer;this.remove(e),this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(i.OuterSubscriber);t.MergeAllSubscriber=s}),function(i,o){"object"==typeof n&&void 0!==r?o(n,t("@angular/core")):e.registerDynamic("1b",["c"],!1,function(e,t,n){return"function"==typeof o?o.call(t,t,e("c")):o})}(0,function(e,t){"use strict";function n(e){return e.name||typeof e}function r(e){return null!=e}function i(e){return null==e}function o(e){if("string"==typeof e)return e;if(null==e)return""+e;if(e.overriddenName)return""+e.overriddenName;if(e.name)return""+e.name;var t=e.toString(),n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function a(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function s(){if(!j)if(P.Symbol&&Symbol.iterator)j=Symbol.iterator;else for(var e=Object.getOwnPropertyNames(Map.prototype),t=0;t<e.length;++t){var n=e[t];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(j=n)}return j}function u(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}function c(e){return e.replace(/\/index.html$/,"")}function l(e,t,n){var r="="+e;if(t.indexOf(r)>-1)return r;if(r=n.getPluralCategory(e),t.indexOf(r)>-1)return r;if(t.indexOf("other")>-1)return"other";throw new Error('No plural message found for value "'+e+'"')}function p(e,t){"string"==typeof t&&(t=parseInt(t,10));var n=t,r=n.toString().replace(/^[^.]*\.?/,""),i=Math.floor(Math.abs(n)),o=r.length,a=parseInt(r,10),s=parseInt(n.toString().replace(/^[^.]*\.?|0+$/g,""),10)||0;switch(e.split("-")[0].toLowerCase()){case"af":case"asa":case"az":case"bem":case"bez":case"bg":case"brx":case"ce":case"cgg":case"chr":case"ckb":case"ee":case"el":case"eo":case"es":case"eu":case"fo":case"fur":case"gsw":case"ha":case"haw":case"hu":case"jgo":case"jmc":case"ka":case"kk":case"kkj":case"kl":case"ks":case"ksb":case"ky":case"lb":case"lg":case"mas":case"mgo":case"ml":case"mn":case"nb":case"nd":case"ne":case"nn":case"nnh":case"nyn":case"om":case"or":case"os":case"ps":case"rm":case"rof":case"rwk":case"saq":case"seh":case"sn":case"so":case"sq":case"ta":case"te":case"teo":case"tk":case"tr":case"ug":case"uz":case"vo":case"vun":case"wae":case"xog":return 1===n?q.One:q.Other;case"agq":case"bas":case"cu":case"dav":case"dje":case"dua":case"dyo":case"ebu":case"ewo":case"guz":case"kam":case"khq":case"ki":case"kln":case"kok":case"ksf":case"lrc":case"lu":case"luo":case"luy":case"mer":case"mfe":case"mgh":case"mua":case"mzn":case"nmg":case"nus":case"qu":case"rn":case"rw":case"sbp":case"twq":case"vai":case"yav":case"yue":case"zgh":case"ak":case"ln":case"mg":case"pa":case"ti":return n===Math.floor(n)&&n>=0&&n<=1?q.One:q.Other;case"am":case"as":case"bn":case"fa":case"gu":case"hi":case"kn":case"mr":case"zu":return 0===i||1===n?q.One:q.Other;case"ar":return 0===n?q.Zero:1===n?q.One:2===n?q.Two:n%100===Math.floor(n%100)&&n%100>=3&&n%100<=10?q.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=99?q.Many:q.Other;case"ast":case"ca":case"de":case"en":case"et":case"fi":case"fy":case"gl":case"it":case"nl":case"sv":case"sw":case"ur":case"yi":return 1===i&&0===o?q.One:q.Other;case"be":return n%10==1&&n%100!=11?q.One:n%10===Math.floor(n%10)&&n%10>=2&&n%10<=4&&!(n%100>=12&&n%100<=14)?q.Few:n%10==0||n%10===Math.floor(n%10)&&n%10>=5&&n%10<=9||n%100===Math.floor(n%100)&&n%100>=11&&n%100<=14?q.Many:q.Other;case"br":return n%10==1&&n%100!=11&&n%100!=71&&n%100!=91?q.One:n%10==2&&n%100!=12&&n%100!=72&&n%100!=92?q.Two:n%10===Math.floor(n%10)&&(n%10>=3&&n%10<=4||n%10==9)&&!(n%100>=10&&n%100<=19||n%100>=70&&n%100<=79||n%100>=90&&n%100<=99)?q.Few:0!==n&&n%1e6==0?q.Many:q.Other;case"bs":case"hr":case"sr":return 0===o&&i%10==1&&i%100!=11||a%10==1&&a%100!=11?q.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)||a%10===Math.floor(a%10)&&a%10>=2&&a%10<=4&&!(a%100>=12&&a%100<=14)?q.Few:q.Other;case"cs":case"sk":return 1===i&&0===o?q.One:i===Math.floor(i)&&i>=2&&i<=4&&0===o?q.Few:0!==o?q.Many:q.Other;case"cy":return 0===n?q.Zero:1===n?q.One:2===n?q.Two:3===n?q.Few:6===n?q.Many:q.Other;case"da":return 1===n||0!==s&&(0===i||1===i)?q.One:q.Other;case"dsb":case"hsb":return 0===o&&i%100==1||a%100==1?q.One:0===o&&i%100==2||a%100==2?q.Two:0===o&&i%100===Math.floor(i%100)&&i%100>=3&&i%100<=4||a%100===Math.floor(a%100)&&a%100>=3&&a%100<=4?q.Few:q.Other;case"ff":case"fr":case"hy":case"kab":return 0===i||1===i?q.One:q.Other;case"fil":return 0===o&&(1===i||2===i||3===i)||0===o&&i%10!=4&&i%10!=6&&i%10!=9||0!==o&&a%10!=4&&a%10!=6&&a%10!=9?q.One:q.Other;case"ga":return 1===n?q.One:2===n?q.Two:n===Math.floor(n)&&n>=3&&n<=6?q.Few:n===Math.floor(n)&&n>=7&&n<=10?q.Many:q.Other;case"gd":return 1===n||11===n?q.One:2===n||12===n?q.Two:n===Math.floor(n)&&(n>=3&&n<=10||n>=13&&n<=19)?q.Few:q.Other;case"gv":return 0===o&&i%10==1?q.One:0===o&&i%10==2?q.Two:0!==o||i%100!=0&&i%100!=20&&i%100!=40&&i%100!=60&&i%100!=80?0!==o?q.Many:q.Other:q.Few;case"he":return 1===i&&0===o?q.One:2===i&&0===o?q.Two:0!==o||n>=0&&n<=10||n%10!=0?q.Other:q.Many;case"is":return 0===s&&i%10==1&&i%100!=11||0!==s?q.One:q.Other;case"ksh":return 0===n?q.Zero:1===n?q.One:q.Other;case"kw":case"naq":case"se":case"smn":return 1===n?q.One:2===n?q.Two:q.Other;case"lag":return 0===n?q.Zero:0!==i&&1!==i||0===n?q.Other:q.One;case"lt":return n%10!=1||n%100>=11&&n%100<=19?n%10===Math.floor(n%10)&&n%10>=2&&n%10<=9&&!(n%100>=11&&n%100<=19)?q.Few:0!==a?q.Many:q.Other:q.One;case"lv":case"prg":return n%10==0||n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19||2===o&&a%100===Math.floor(a%100)&&a%100>=11&&a%100<=19?q.Zero:n%10==1&&n%100!=11||2===o&&a%10==1&&a%100!=11||2!==o&&a%10==1?q.One:q.Other;case"mk":return 0===o&&i%10==1||a%10==1?q.One:q.Other;case"mt":return 1===n?q.One:0===n||n%100===Math.floor(n%100)&&n%100>=2&&n%100<=10?q.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19?q.Many:q.Other;case"pl":return 1===i&&0===o?q.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)?q.Few:0===o&&1!==i&&i%10===Math.floor(i%10)&&i%10>=0&&i%10<=1||0===o&&i%10===Math.floor(i%10)&&i%10>=5&&i%10<=9||0===o&&i%100===Math.floor(i%100)&&i%100>=12&&i%100<=14?q.Many:q.Other;case"pt":return n===Math.floor(n)&&n>=0&&n<=2&&2!==n?q.One:q.Other;case"ro":return 1===i&&0===o?q.One:0!==o||0===n||1!==n&&n%100===Math.floor(n%100)&&n%100>=1&&n%100<=19?q.Few:q.Other;case"ru":case"uk":return 0===o&&i%10==1&&i%100!=11?q.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)?q.Few:0===o&&i%10==0||0===o&&i%10===Math.floor(i%10)&&i%10>=5&&i%10<=9||0===o&&i%100===Math.floor(i%100)&&i%100>=11&&i%100<=14?q.Many:q.Other;case"shi":return 0===i||1===n?q.One:n===Math.floor(n)&&n>=2&&n<=10?q.Few:q.Other;case"si":return 0===n||1===n||0===i&&1===a?q.One:q.Other;case"sl":return 0===o&&i%100==1?q.One:0===o&&i%100==2?q.Two:0===o&&i%100===Math.floor(i%100)&&i%100>=3&&i%100<=4||0!==o?q.Few:q.Other;case"tzm":return n===Math.floor(n)&&n>=0&&n<=1||n===Math.floor(n)&&n>=11&&n<=99?q.One:q.Other;default:return q.Other}}function d(e){return!!a(e)&&(Array.isArray(e)||!(e instanceof Map)&&s()in e)}function h(e){return function(t,n){var r=e(t,n);return 1==r.length?"0"+r:r}}function f(e){return function(t,n){return e(t,n).split(" ")[0]}}function m(e,t,n){return new Intl.DateTimeFormat(t,n).format(e).replace(/[\u200e\u200f]/g,"")}function v(e){var t={hour:"2-digit",hour12:!1,timeZoneName:e};return function(e,n){var r=m(e,n,t);return r?r.substring(3):""}}function y(e,t){return e.hour12=t,e}function g(e,t){var n={};return n[e]=2===t?"2-digit":"numeric",n}function _(e,t){var n={};return n[e]=t<4?t>1?"short":"narrow":"long",n}function b(e){return(t=Object).assign.apply(t,[{}].concat(e));var t}function w(e){return function(t,n){return m(t,n,e)}}function k(e,t,n){var r=ge[e];if(r)return r(t,n);var i=e,o=be.get(i);if(!o){o=[];var a=void 0;for(ye.exec(e);e;)(a=ye.exec(e))?e=(o=o.concat(a.slice(1))).pop():(o.push(e),e=null);be.set(i,o)}return o.reduce(function(e,r){var i=_e[r];return e+(i?i(t,n):x(r))},"")}function x(e){return"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}function C(e){return null==e||""===e}function S(e){return e instanceof Date&&!isNaN(e.valueOf())}function E(e){var t=new Date(0),n=0,r=0,i=e[8]?t.setUTCFullYear:t.setFullYear,o=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=T(e[9]+e[10]),r=T(e[9]+e[11])),i.call(t,T(e[1]),T(e[2])-1,T(e[3]));var a=T(e[4]||"0")-n,s=T(e[5]||"0")-r,u=T(e[6]||"0"),c=Math.round(1e3*parseFloat("0."+(e[7]||0)));return o.call(t,a,s,u,c),t}function T(e){return parseInt(e,10)}function O(e,t,n,r,i,o,a){if(void 0===o&&(o=null),void 0===a&&(a=!1),null==n)return null;if("number"!=typeof(n="string"==typeof n&&R.isNumeric(n)?+n:n))throw new le(e,n);var s,u,c;if(r!==me.Currency&&(s=1,u=0,c=3),i){var l=i.match(Pe);if(null===l)throw new Error(i+" is not a valid digit info for number pipes");null!=l[1]&&(s=R.parseIntAutoRadix(l[1])),null!=l[3]&&(u=R.parseIntAutoRadix(l[3])),null!=l[5]&&(c=R.parseIntAutoRadix(l[5]))}return ve.format(n,t,r,{minimumIntegerDigits:s,minimumFractionDigits:u,maximumFractionDigits:c,currency:o,currencyAsSymbol:a})}var P,M=function(){function e(){}return e.prototype.getBaseHrefFromDOM=function(){},e.prototype.onPopState=function(e){},e.prototype.onHashChange=function(e){},Object.defineProperty(e.prototype,"pathname",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"search",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hash",{get:function(){return null},enumerable:!0,configurable:!0}),e.prototype.replaceState=function(e,t,n){},e.prototype.pushState=function(e,t,n){},e.prototype.forward=function(){},e.prototype.back=function(){},e}(),A=new t.OpaqueToken("Location Initialized"),D=function(){function e(){}return e.prototype.path=function(e){},e.prototype.prepareExternalUrl=function(e){},e.prototype.pushState=function(e,t,n,r){},e.prototype.replaceState=function(e,t,n,r){},e.prototype.forward=function(){},e.prototype.back=function(){},e.prototype.onPopState=function(e){},e.prototype.getBaseHref=function(){},e}(),I=new t.OpaqueToken("appBaseHref");(P="undefined"==typeof window?"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:global:window).assert=function(e){};var R=function(){function e(){}return e.parseIntAutoRadix=function(e){var t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t},e.isNumeric=function(e){return!isNaN(e-parseFloat(e))},e}(),j=null,N=function(){function e(n){var r=this;this._subject=new t.EventEmitter,this._platformStrategy=n;var i=this._platformStrategy.getBaseHref();this._baseHref=e.stripTrailingSlash(c(i)),this._platformStrategy.onPopState(function(e){r._subject.emit({url:r.path(!0),pop:!0,type:e.type})})}return e.prototype.path=function(e){return void 0===e&&(e=!1),this.normalize(this._platformStrategy.path(e))},e.prototype.isCurrentPathEqualTo=function(t,n){return void 0===n&&(n=""),this.path()==this.normalize(t+e.normalizeQueryParams(n))},e.prototype.normalize=function(t){return e.stripTrailingSlash(u(this._baseHref,c(t)))},e.prototype.prepareExternalUrl=function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)},e.prototype.go=function(e,t){void 0===t&&(t=""),this._platformStrategy.pushState(null,"",e,t)},e.prototype.replaceState=function(e,t){void 0===t&&(t=""),this._platformStrategy.replaceState(null,"",e,t)},e.prototype.forward=function(){this._platformStrategy.forward()},e.prototype.back=function(){this._platformStrategy.back()},e.prototype.subscribe=function(e,t,n){return void 0===t&&(t=null),void 0===n&&(n=null),this._subject.subscribe({next:e,error:t,complete:n})},e.normalizeQueryParams=function(e){return e&&"?"!==e[0]?"?"+e:e},e.joinWithSlash=function(e,t){if(0==e.length)return t;if(0==t.length)return e;var n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t},e.stripTrailingSlash=function(e){return e.replace(/\/$/,"")},e.decorators=[{type:t.Injectable}],e.ctorParameters=function(){return[{type:D}]},e}(),L=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},F=function(e){function n(t,n){e.call(this),this._platformLocation=t,this._baseHref="",r(n)&&(this._baseHref=n)}return L(n,e),n.prototype.onPopState=function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)},n.prototype.getBaseHref=function(){return this._baseHref},n.prototype.path=function(e){void 0===e&&(e=!1);var t=this._platformLocation.hash;return r(t)||(t="#"),t.length>0?t.substring(1):t},n.prototype.prepareExternalUrl=function(e){var t=N.joinWithSlash(this._baseHref,e);return t.length>0?"#"+t:t},n.prototype.pushState=function(e,t,n,r){var i=this.prepareExternalUrl(n+N.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(e,t,i)},n.prototype.replaceState=function(e,t,n,r){var i=this.prepareExternalUrl(n+N.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,i)},n.prototype.forward=function(){this._platformLocation.forward()},n.prototype.back=function(){this._platformLocation.back()},n.decorators=[{type:t.Injectable}],n.ctorParameters=function(){return[{type:M},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[I]}]}]},n}(D),V=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},z=function(e){function n(t,n){if(e.call(this),this._platformLocation=t,i(n)&&(n=this._platformLocation.getBaseHrefFromDOM()),i(n))throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=n}return V(n,e),n.prototype.onPopState=function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)},n.prototype.getBaseHref=function(){return this._baseHref},n.prototype.prepareExternalUrl=function(e){return N.joinWithSlash(this._baseHref,e)},n.prototype.path=function(e){void 0===e&&(e=!1);var t=this._platformLocation.pathname+N.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?""+t+n:t},n.prototype.pushState=function(e,t,n,r){var i=this.prepareExternalUrl(n+N.normalizeQueryParams(r));this._platformLocation.pushState(e,t,i)},n.prototype.replaceState=function(e,t,n,r){var i=this.prepareExternalUrl(n+N.normalizeQueryParams(r));this._platformLocation.replaceState(e,t,i)},n.prototype.forward=function(){this._platformLocation.forward()},n.prototype.back=function(){this._platformLocation.back()},n.decorators=[{type:t.Injectable}],n.ctorParameters=function(){return[{type:M},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[I]}]}]},n}(D),U=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},B=function(){function e(){}return e.prototype.getPluralCategory=function(e){},e}(),H=function(e){function n(t){e.call(this),this._locale=t}return U(n,e),n.prototype.getPluralCategory=function(e){switch(p(this._locale,e)){case q.Zero:return"zero";case q.One:return"one";case q.Two:return"two";case q.Few:return"few";case q.Many:return"many";default:return"other"}},n.decorators=[{type:t.Injectable}],n.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Inject,args:[t.LOCALE_ID]}]}]},n}(B),q={};q.Zero=0,q.One=1,q.Two=2,q.Few=3,q.Many=4,q.Other=5,q[q.Zero]="Zero",q[q.One]="One",q[q.Two]="Two",q[q.Few]="Few",q[q.Many]="Many",q[q.Other]="Other";var W=function(){function e(e,t,n,r){this._iterableDiffers=e,this._keyValueDiffers=t,this._ngEl=n,this._renderer=r,this._initialClasses=[]}return Object.defineProperty(e.prototype,"klass",{set:function(e){this._applyInitialClasses(!0),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyInitialClasses(!1),this._applyClasses(this._rawClass,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClass",{set:function(e){this._cleanupClasses(this._rawClass),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(d(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create(null):this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create(null))},enumerable:!0,configurable:!0}),e.prototype.ngDoCheck=function(){if(this._iterableDiffer)(e=this._iterableDiffer.diff(this._rawClass))&&this._applyIterableChanges(e);else if(this._keyValueDiffer){var e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}},e.prototype._cleanupClasses=function(e){this._applyClasses(e,!0),this._applyInitialClasses(!1)},e.prototype._applyKeyValueChanges=function(e){var t=this;e.forEachAddedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachChangedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachRemovedItem(function(e){e.previousValue&&t._toggleClass(e.key,!1)})},e.prototype._applyIterableChanges=function(e){var t=this;e.forEachAddedItem(function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+o(e.item));t._toggleClass(e.item,!0)}),e.forEachRemovedItem(function(e){return t._toggleClass(e.item,!1)})},e.prototype._applyInitialClasses=function(e){var t=this;this._initialClasses.forEach(function(n){return t._toggleClass(n,!e)})},e.prototype._applyClasses=function(e,t){var n=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return n._toggleClass(e,!t)}):Object.keys(e).forEach(function(r){null!=e[r]&&n._toggleClass(r,!t)}))},e.prototype._toggleClass=function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach(function(e){n._renderer.setElementClass(n._ngEl.nativeElement,e,t)})},e.decorators=[{type:t.Directive,args:[{selector:"[ngClass]"}]}],e.ctorParameters=function(){return[{type:t.IterableDiffers},{type:t.KeyValueDiffers},{type:t.ElementRef},{type:t.Renderer}]},e.propDecorators={klass:[{type:t.Input,args:["class"]}],ngClass:[{type:t.Input}]},e}(),G=function(){function e(e,t,n){this.$implicit=e,this.index=t,this.count=n}return Object.defineProperty(e.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),e}(),Y=function(){function e(e,t,n,r){this._viewContainer=e,this._template=t,this._differs=n,this._cdr=r,this._differ=null}return Object.defineProperty(e.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(e){t.isDevMode()&&null!=e&&"function"!=typeof e&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(e)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngForTemplate",{set:function(e){e&&(this._template=e)},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){if("ngForOf"in e){var t=e.ngForOf.currentValue;if(!this._differ&&t)try{this._differ=this._differs.find(t).create(this._cdr,this.ngForTrackBy)}catch(e){throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+n(t)+"'. NgFor only supports binding to Iterables such as Arrays.")}}},e.prototype.ngDoCheck=function(){if(this._differ){var e=this._differ.diff(this.ngForOf);e&&this._applyChanges(e)}},e.prototype._applyChanges=function(e){var t=this,n=[];e.forEachOperation(function(e,r,i){if(null==e.previousIndex){var o=t._viewContainer.createEmbeddedView(t._template,new G(null,null,null),i),a=new Z(e,o);n.push(a)}else if(null==i)t._viewContainer.remove(r);else{o=t._viewContainer.get(r);t._viewContainer.move(o,i);a=new Z(e,o);n.push(a)}});for(r=0;r<n.length;r++)this._perViewChange(n[r].view,n[r].record);for(var r=0,i=this._viewContainer.length;r<i;r++){var o=this._viewContainer.get(r);o.context.index=r,o.context.count=i}e.forEachIdentityChange(function(e){t._viewContainer.get(e.currentIndex).context.$implicit=e.item})},e.prototype._perViewChange=function(e,t){e.context.$implicit=t.item},e.decorators=[{type:t.Directive,args:[{selector:"[ngFor][ngForOf]"}]}],e.ctorParameters=function(){return[{type:t.ViewContainerRef},{type:t.TemplateRef},{type:t.IterableDiffers},{type:t.ChangeDetectorRef}]},e.propDecorators={ngForOf:[{type:t.Input}],ngForTrackBy:[{type:t.Input}],ngForTemplate:[{type:t.Input}]},e}(),Z=function(){return function(e,t){this.record=e,this.view=t}}(),K=function(){function e(e,t){this._viewContainer=e,this._template=t,this._hasView=!1}return Object.defineProperty(e.prototype,"ngIf",{set:function(e){e&&!this._hasView?(this._hasView=!0,this._viewContainer.createEmbeddedView(this._template)):!e&&this._hasView&&(this._hasView=!1,this._viewContainer.clear())},enumerable:!0,configurable:!0}),e.decorators=[{type:t.Directive,args:[{selector:"[ngIf]"}]}],e.ctorParameters=function(){return[{type:t.ViewContainerRef},{type:t.TemplateRef}]},e.propDecorators={ngIf:[{type:t.Input}]},e}(),X=function(){function e(e,t){this._viewContainerRef=e,this._templateRef=t,this._created=!1}return e.prototype.create=function(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)},e.prototype.destroy=function(){this._created=!1,this._viewContainerRef.clear()},e.prototype.enforceState=function(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()},e}(),J=function(){function e(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return Object.defineProperty(e.prototype,"ngSwitch",{set:function(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)},enumerable:!0,configurable:!0}),e.prototype._addCase=function(){return this._caseCount++},e.prototype._addDefault=function(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)},e.prototype._matchCase=function(e){var t=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||t,++this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),t},e.prototype._updateDefaultCases=function(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(var t=0;t<this._defaultViews.length;t++)this._defaultViews[t].enforceState(e)}},e.decorators=[{type:t.Directive,args:[{selector:"[ngSwitch]"}]}],e.ctorParameters=function(){return[]},e.propDecorators={ngSwitch:[{type:t.Input}]},e}(),Q=function(){function e(e,t,n){this.ngSwitch=n,n._addCase(),this._view=new X(e,t)}return e.prototype.ngDoCheck=function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))},e.decorators=[{type:t.Directive,args:[{selector:"[ngSwitchCase]"}]}],e.ctorParameters=function(){return[{type:t.ViewContainerRef},{type:t.TemplateRef},{type:J,decorators:[{type:t.Host}]}]},e.propDecorators={ngSwitchCase:[{type:t.Input}]},e}(),$=function(){function e(e,t,n){n._addDefault(new X(e,t))}return e.decorators=[{type:t.Directive,args:[{selector:"[ngSwitchDefault]"}]}],e.ctorParameters=function(){return[{type:t.ViewContainerRef},{type:t.TemplateRef},{type:J,decorators:[{type:t.Host}]}]},e}(),ee=function(){function e(e){this._localization=e,this._caseViews={}}return Object.defineProperty(e.prototype,"ngPlural",{set:function(e){this._switchValue=e,this._updateView()},enumerable:!0,configurable:!0}),e.prototype.addCase=function(e,t){this._caseViews[e]=t},e.prototype._updateView=function(){this._clearViews();var e=Object.keys(this._caseViews),t=l(this._switchValue,e,this._localization);this._activateView(this._caseViews[t])},e.prototype._clearViews=function(){this._activeView&&this._activeView.destroy()},e.prototype._activateView=function(e){e&&(this._activeView=e,this._activeView.create())},e.decorators=[{type:t.Directive,args:[{selector:"[ngPlural]"}]}],e.ctorParameters=function(){return[{type:B}]},e.propDecorators={ngPlural:[{type:t.Input}]},e}(),te=function(){function e(e,t,n,r){this.value=e;var i=!isNaN(Number(e));r.addCase(i?"="+e:e,new X(n,t))}return e.decorators=[{type:t.Directive,args:[{selector:"[ngPluralCase]"}]}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Attribute,args:["ngPluralCase"]}]},{type:t.TemplateRef},{type:t.ViewContainerRef},{type:ee,decorators:[{type:t.Host}]}]},e}(),ne=function(){function e(e,t,n){this._differs=e,this._ngEl=t,this._renderer=n}return Object.defineProperty(e.prototype,"ngStyle",{set:function(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create(null))},enumerable:!0,configurable:!0}),e.prototype.ngDoCheck=function(){if(this._differ){var e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}},e.prototype._applyChanges=function(e){var t=this;e.forEachRemovedItem(function(e){return t._setStyle(e.key,null)}),e.forEachAddedItem(function(e){return t._setStyle(e.key,e.currentValue)}),e.forEachChangedItem(function(e){return t._setStyle(e.key,e.currentValue)})},e.prototype._setStyle=function(e,t){var n=e.split("."),r=n[0],i=n[1];t=t&&i?""+t+i:t,this._renderer.setElementStyle(this._ngEl.nativeElement,r,t)},e.decorators=[{type:t.Directive,args:[{selector:"[ngStyle]"}]}],e.ctorParameters=function(){return[{type:t.KeyValueDiffers},{type:t.ElementRef},{type:t.Renderer}]},e.propDecorators={ngStyle:[{type:t.Input}]},e}(),re=function(){function e(e){this._viewContainerRef=e}return Object.defineProperty(e.prototype,"ngOutletContext",{set:function(e){this._context=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngTemplateOutlet",{set:function(e){this._templateRef=e},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){this._viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._viewRef)),this._templateRef&&(this._viewRef=this._viewContainerRef.createEmbeddedView(this._templateRef,this._context))},e.decorators=[{type:t.Directive,args:[{selector:"[ngTemplateOutlet]"}]}],e.ctorParameters=function(){return[{type:t.ViewContainerRef}]},e.propDecorators={ngOutletContext:[{type:t.Input}],ngTemplateOutlet:[{type:t.Input}]},e}(),ie=[W,Y,K,re,ne,J,Q,$,ee,te],oe=t.__core_private__.isPromise,ae=t.__core_private__.isObservable,se=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},ue=function(e){function t(t){e.call(this,t);var n=new Error(t);this._nativeError=n}return se(t,e),Object.defineProperty(t.prototype,"message",{get:function(){return this._nativeError.message},set:function(e){this._nativeError.message=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this._nativeError.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"stack",{get:function(){return this._nativeError.stack},set:function(e){this._nativeError.stack=e},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this._nativeError.toString()},t}(Error),ce=(function(e){function t(t,n){e.call(this,t+" caused by: "+(n instanceof Error?n.message:n)),this.originalError=n}se(t,e),Object.defineProperty(t.prototype,"stack",{get:function(){return(this.originalError instanceof Error?this.originalError:this._nativeError).stack},enumerable:!0,configurable:!0})}(ue),this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),le=function(e){function t(t,n){e.call(this,"Invalid argument '"+n+"' for pipe '"+o(t)+"'")}return ce(t,e),t}(ue),pe=function(){function e(){}return e.prototype.createSubscription=function(e,t){return e.subscribe({next:t,error:function(e){throw e}})},e.prototype.dispose=function(e){e.unsubscribe()},e.prototype.onDestroy=function(e){e.unsubscribe()},e}(),de=new(function(){function e(){}return e.prototype.createSubscription=function(e,t){return e.then(t,function(e){throw e})},e.prototype.dispose=function(e){},e.prototype.onDestroy=function(e){},e}()),he=new pe,fe=function(){function e(e){this._ref=e,this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null,this._strategy=null}return e.prototype.ngOnDestroy=function(){this._subscription&&this._dispose()},e.prototype.transform=function(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue===this._latestReturnedValue?this._latestReturnedValue:(this._latestReturnedValue=this._latestValue,t.WrappedValue.wrap(this._latestValue)):(e&&this._subscribe(e),this._latestReturnedValue=this._latestValue,this._latestValue)},e.prototype._subscribe=function(e){var t=this;this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,function(n){return t._updateLatestValue(e,n)})},e.prototype._selectStrategy=function(t){if(oe(t))return de;if(ae(t))return he;throw new le(e,t)},e.prototype._dispose=function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null},e.prototype._updateLatestValue=function(e,t){e===this._obj&&(this._latestValue=t,this._ref.markForCheck())},e.decorators=[{type:t.Pipe,args:[{name:"async",pure:!1}]}],e.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},e}(),me={};me.Decimal=0,me.Percent=1,me.Currency=2,me[me.Decimal]="Decimal",me[me.Percent]="Percent",me[me.Currency]="Currency";var ve=function(){function e(){}return e.format=function(e,t,n,r){var i=void 0===r?{}:r,o=i.minimumIntegerDigits,a=i.minimumFractionDigits,s=i.maximumFractionDigits,u=i.currency,c=i.currencyAsSymbol,l=void 0!==c&&c,p={minimumIntegerDigits:o,minimumFractionDigits:a,maximumFractionDigits:s,style:me[n].toLowerCase()};return n==me.Currency&&(p.currency=u,p.currencyDisplay=l?"symbol":"code"),new Intl.NumberFormat(t,p).format(e)},e}(),ye=/((?:[^yMLdHhmsazZEwGjJ']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|J+|j+|m+|s+|a|z|Z|G+|w+))(.*)/,ge={yMMMdjms:w(b([g("year",1),_("month",3),g("day",1),g("hour",1),g("minute",1),g("second",1)])),yMdjm:w(b([g("year",1),g("month",1),g("day",1),g("hour",1),g("minute",1)])),yMMMMEEEEd:w(b([g("year",1),_("month",4),_("weekday",4),g("day",1)])),yMMMMd:w(b([g("year",1),_("month",4),g("day",1)])),yMMMd:w(b([g("year",1),_("month",3),g("day",1)])),yMd:w(b([g("year",1),g("month",1),g("day",1)])),jms:w(b([g("hour",1),g("second",1),g("minute",1)])),jm:w(b([g("hour",1),g("minute",1)]))},_e={yyyy:w(g("year",4)),yy:w(g("year",2)),y:w(g("year",1)),MMMM:w(_("month",4)),MMM:w(_("month",3)),MM:w(g("month",2)),M:w(g("month",1)),LLLL:w(_("month",4)),L:w(_("month",1)),dd:w(g("day",2)),d:w(g("day",1)),HH:h(f(w(y(g("hour",2),!1)))),H:f(w(y(g("hour",1),!1))),hh:h(f(w(y(g("hour",2),!0)))),h:f(w(y(g("hour",1),!0))),jj:w(g("hour",2)),j:w(g("hour",1)),mm:h(w(g("minute",2))),m:w(g("minute",1)),ss:h(w(g("second",2))),s:w(g("second",1)),sss:w(g("second",3)),EEEE:w(_("weekday",4)),EEE:w(_("weekday",3)),EE:w(_("weekday",2)),E:w(_("weekday",1)),a:function(e){return function(t,n){return e(t,n).split(" ")[1]}}(w(y(g("hour",1),!0))),Z:v("short"),z:v("long"),ww:w({}),w:w({}),G:w(_("era",1)),GG:w(_("era",2)),GGG:w(_("era",3)),GGGG:w(_("era",4))},be=new Map,we=function(){function e(){}return e.format=function(e,t,n){return k(n,e,t)},e}(),ke=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,xe=function(){function e(e){this._locale=e}return e.prototype.transform=function(t,n){void 0===n&&(n="mediumDate");var r;if(C(t)||t!==t)return null;if("string"==typeof t&&(t=t.trim()),S(t))r=t;else if(R.isNumeric(t))r=new Date(parseFloat(t));else if("string"==typeof t&&/^(\d{4}-\d{1,2}-\d{1,2})$/.test(t)){var i=t.split("-").map(function(e){return parseInt(e,10)}),o=i[0],a=i[1],s=i[2];r=new Date(o,a-1,s)}else r=new Date(t);if(!S(r)){var u=void 0;if("string"!=typeof t||!(u=t.match(ke)))throw new le(e,t);r=E(u)}return we.format(r,this._locale,e._ALIASES[n]||n)},e._ALIASES={medium:"yMMMdjms",short:"yMdjm",fullDate:"yMMMMEEEEd",longDate:"yMMMMd",mediumDate:"yMMMd",shortDate:"yMd",mediumTime:"jms",shortTime:"jm"},e.decorators=[{type:t.Pipe,args:[{name:"date",pure:!0}]}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Inject,args:[t.LOCALE_ID]}]}]},e}(),Ce=/#/g,Se=function(){function e(e){this._localization=e}return e.prototype.transform=function(t,n){if(null==t)return"";if("object"!=typeof n||null===n)throw new le(e,n);return n[l(t,Object.keys(n),this._localization)].replace(Ce,t.toString())},e.decorators=[{type:t.Pipe,args:[{name:"i18nPlural",pure:!0}]}],e.ctorParameters=function(){return[{type:B}]},e}(),Ee=function(){function e(){}return e.prototype.transform=function(t,n){if(null==t)return"";if("object"!=typeof n||"string"!=typeof t)throw new le(e,n);return n.hasOwnProperty(t)?n[t]:n.hasOwnProperty("other")?n.other:""},e.decorators=[{type:t.Pipe,args:[{name:"i18nSelect",pure:!0}]}],e.ctorParameters=function(){return[]},e}(),Te=function(){function e(){}return e.prototype.transform=function(e){return JSON.stringify(e,null,2)},e.decorators=[{type:t.Pipe,args:[{name:"json",pure:!1}]}],e.ctorParameters=function(){return[]},e}(),Oe=function(){function e(){}return e.prototype.transform=function(t){if(i(t))return t;if("string"!=typeof t)throw new le(e,t);return t.toLowerCase()},e.decorators=[{type:t.Pipe,args:[{name:"lowercase"}]}],e.ctorParameters=function(){return[]},e}(),Pe=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Me=function(){function e(e){this._locale=e}return e.prototype.transform=function(t,n){return void 0===n&&(n=null),O(e,this._locale,t,me.Decimal,n)},e.decorators=[{type:t.Pipe,args:[{name:"number"}]}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Inject,args:[t.LOCALE_ID]}]}]},e}(),Ae=function(){function e(e){this._locale=e}return e.prototype.transform=function(t,n){return void 0===n&&(n=null),O(e,this._locale,t,me.Percent,n)},e.decorators=[{type:t.Pipe,args:[{name:"percent"}]}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Inject,args:[t.LOCALE_ID]}]}]},e}(),De=function(){function e(e){this._locale=e}return e.prototype.transform=function(t,n,r,i){return void 0===n&&(n="USD"),void 0===r&&(r=!1),void 0===i&&(i=null),O(e,this._locale,t,me.Currency,i,n,r)},e.decorators=[{type:t.Pipe,args:[{name:"currency"}]}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Inject,args:[t.LOCALE_ID]}]}]},e}(),Ie=function(){function e(){}return e.prototype.transform=function(t,n,r){if(null==t)return t;if(!this.supports(t))throw new le(e,t);return t.slice(n,r)},e.prototype.supports=function(e){return"string"==typeof e||Array.isArray(e)},e.decorators=[{type:t.Pipe,args:[{name:"slice",pure:!1}]}],e.ctorParameters=function(){return[]},e}(),Re=function(){function e(){}return e.prototype.transform=function(t){if(i(t))return t;if("string"!=typeof t)throw new le(e,t);return t.toUpperCase()},e.decorators=[{type:t.Pipe,args:[{name:"uppercase"}]}],e.ctorParameters=function(){return[]},e}(),je=[fe,Re,Oe,Te,Ie,Me,Ae,De,xe,Se,Ee],Ne=function(){function e(){}return e.decorators=[{type:t.NgModule,args:[{declarations:[ie,je],exports:[ie,je],providers:[{provide:B,useClass:H}]}]}],e.ctorParameters=function(){return[]},e}(),Le=new t.Version("2.4.10");e.NgLocalization=B,e.CommonModule=Ne,e.NgClass=W,e.NgFor=Y,e.NgIf=K,e.NgPlural=ee,e.NgPluralCase=te,e.NgStyle=ne,e.NgSwitch=J,e.NgSwitchCase=Q,e.NgSwitchDefault=$,e.NgTemplateOutlet=re,e.AsyncPipe=fe,e.DatePipe=xe,e.I18nPluralPipe=Se,e.I18nSelectPipe=Ee,e.JsonPipe=Te,e.LowerCasePipe=Oe,e.CurrencyPipe=De,e.DecimalPipe=Me,e.PercentPipe=Ae,e.SlicePipe=Ie,e.UpperCasePipe=Re,e.VERSION=Le,e.Version=t.Version,e.PlatformLocation=M,e.LOCATION_INITIALIZED=A,e.LocationStrategy=D,e.APP_BASE_HREF=I,e.HashLocationStrategy=F,e.PathLocationStrategy=z,e.Location=N}),e.registerDynamic("95",[],!0,function(e,t,n){"use strict";this||self;var r=t&&t.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=function(e){function t(){var t=e.call(this,"object unsubscribed");this.name=t.name="ObjectUnsubscribedError",this.stack=t.stack,this.message=t.message}return r(t,e),t}(Error);t.ObjectUnsubscribedError=i}),e.registerDynamic("af",["6b"],!0,function(e,t,n){"use strict";this||self;var r=t&&t.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=function(e){function t(t,n){e.call(this),this.subject=t,this.subscriber=n,this.closed=!1}return r(t,e),t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}},t}(e("6b").Subscription);t.SubjectSubscription=i}),e.registerDynamic("53",["54","6a","6b","95","af","b0"],!0,function(e,t,n){"use strict";this||self;var r=t&&t.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=e("54"),o=e("6a"),a=e("6b"),s=e("95"),u=e("af"),c=e("b0"),l=function(e){function t(t){e.call(this,t),this.destination=t}return r(t,e),t}(o.Subscriber);t.SubjectSubscriber=l;var p=function(e){function t(){e.call(this),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}return r(t,e),t.prototype[c.rxSubscriber]=function(){return new l(this)},t.prototype.lift=function(e){var t=new d(this,this);return t.operator=e,t},t.prototype.next=function(e){if(this.closed)throw new s.ObjectUnsubscribedError;if(!this.isStopped)for(var t=this.observers,n=t.length,r=t.slice(),i=0;i<n;i++)r[i].next(e)},t.prototype.error=function(e){if(this.closed)throw new s.ObjectUnsubscribedError;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,r=t.slice(),i=0;i<n;i++)r[i].error(e);this.observers.length=0},t.prototype.complete=function(){if(this.closed)throw new s.ObjectUnsubscribedError;this.isStopped=!0;for(var e=this.observers,t=e.length,n=e.slice(),r=0;r<t;r++)n[r].complete();this.observers.length=0},t.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},t.prototype._trySubscribe=function(t){if(this.closed)throw new s.ObjectUnsubscribedError;return e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){if(this.closed)throw new s.ObjectUnsubscribedError;return this.hasError?(e.error(this.thrownError),a.Subscription.EMPTY):this.isStopped?(e.complete(),a.Subscription.EMPTY):(this.observers.push(e),new u.SubjectSubscription(this,e))},t.prototype.asObservable=function(){var e=new i.Observable;return e.source=this,e},t.create=function(e,t){return new d(e,t)},t}(i.Observable);t.Subject=p;var d=function(e){function t(t,n){e.call(this),this.destination=t,this.source=n}return r(t,e),t.prototype.next=function(e){var t=this.destination;t&&t.next&&t.next(e)},t.prototype.error=function(e){var t=this.destination;t&&t.error&&this.destination.error(e)},t.prototype.complete=function(){var e=this.destination;e&&e.complete&&this.destination.complete()},t.prototype._subscribe=function(e){return this.source?this.source.subscribe(e):a.Subscription.EMPTY},t}(p);t.AnonymousSubject=d}),e.registerDynamic("b1",["6a","b0","b2"],!0,function(e,t,n){"use strict";this||self;var r=e("6a"),i=e("b0"),o=e("b2");t.toSubscriber=function(e,t,n){if(e){if(e instanceof r.Subscriber)return e;if(e[i.rxSubscriber])return e[i.rxSubscriber]()}return e||t||n?new r.Subscriber(e,t,n):new r.Subscriber(o.empty)}}),e.registerDynamic("a1",["52"],!0,function(e,t,n){"use strict";function r(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}this||self;var i=e("52");t.getSymbolObservable=r,t.observable=r(i.root),t.$$observable=t.observable}),e.registerDynamic("54",["52","b1","a1"],!0,function(e,t,n){"use strict";this||self;var r=e("52"),i=e("b1"),o=e("a1"),a=function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r=this.operator,o=i.toSubscriber(e,t,n);if(r?r.call(o,this.source):o.add(this.source?this._subscribe(o):this._trySubscribe(o)),o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.syncErrorThrown=!0,e.syncErrorValue=t,e.error(t)}},e.prototype.forEach=function(e,t){var n=this;if(t||(r.root.Rx&&r.root.Rx.config&&r.root.Rx.config.Promise?t=r.root.Rx.config.Promise:r.root.Promise&&(t=r.root.Promise)),!t)throw new Error("no Promise impl found");return new t(function(t,r){var i;i=n.subscribe(function(t){if(i)try{e(t)}catch(e){r(e),i.unsubscribe()}else e(t)},r,t)})},e.prototype._subscribe=function(e){return this.source.subscribe(e)},e.prototype[o.observable]=function(){return this},e.create=function(t){return new e(t)},e}();t.Observable=a}),function(i,o){"object"==typeof n&&void 0!==r?o(n,t("rxjs/symbol/observable"),t("rxjs/Subject"),t("rxjs/Observable")):e.registerDynamic("c",["a1","53","54"],!1,function(e,t,n){return"function"==typeof o?o.call(t,t,e("a1"),e("53"),e("54")):o})}(0,function(e,t,n,r){"use strict";function i(e){Zone.current.scheduleMicroTask("scheduleMicrotask",e)}function o(e){return e.name||typeof e}function a(e){return null!=e}function s(e){return null==e}function u(e){if("string"==typeof e)return e;if(null==e)return""+e;if(e.overriddenName)return""+e.overriddenName;if(e.name)return""+e.name;var t=e.toString(),n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function c(e,t){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)}function l(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function p(e){console.log(e)}function d(e){console.warn(e)}function h(){if(!we)if(_e.Symbol&&Symbol.iterator)we=Symbol.iterator;else for(var e=Object.getOwnPropertyNames(Map.prototype),t=0;t<e.length;++t){var n=e[t];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(we=n)}return we}function f(e){return!l(e)}function m(e){return"function"==typeof e&&e.hasOwnProperty("annotation")&&(e=e.annotation),e}function v(e,t){if(e===Object||e===String||e===Function||e===Number||e===Array)throw new Error("Can not use native "+u(e)+" as constructor");if("function"==typeof e)return e;if(Array.isArray(e)){var n=e,r=n.length-1,i=e[r];if("function"!=typeof i)throw new Error("Last position of Class method array must be Function in key "+t+" was '"+u(i)+"'");if(r!=i.length)throw new Error("Number of annotations ("+r+") does not match number of arguments ("+i.length+") in the function: "+u(i));for(var o=[],a=0,s=n.length-1;a<s;a++){var c=[];o.push(c);var l=n[a];if(Array.isArray(l))for(var p=0;p<l.length;p++)c.push(m(l[p]));else"function"==typeof l?c.push(m(l)):c.push(l)}return xe.defineMetadata("parameters",o,i),i}throw new Error("Only Function or Array is supported in Class definition for key '"+t+"' is '"+u(e)+"'")}function y(e){var t=v(e.hasOwnProperty("constructor")?e.constructor:void 0,"constructor"),n=t.prototype;if(e.hasOwnProperty("extends")){if("function"!=typeof e.extends)throw new Error("Class definition 'extends' property must be a constructor function was: "+u(e.extends));t.prototype=n=Object.create(e.extends.prototype)}for(var r in e)"extends"!==r&&"prototype"!==r&&e.hasOwnProperty(r)&&(n[r]=v(e[r],r));this&&this.annotations instanceof Array&&xe.defineMetadata("annotations",this.annotations,t);var i=t.name;return i&&"constructor"!==i||(t.overriddenName="class"+ke++),t}function g(e,t,n,r){function i(e){if(!xe||!xe.getOwnMetadata)throw"reflect-metadata shim is required when using class decorators";if(this instanceof i)return o.call(this,e),this;var t=new i(e),n="function"==typeof this&&Array.isArray(this.annotations)?this.annotations:[];n.push(t);var a=function(e){var n=xe.getOwnMetadata("annotations",e)||[];return n.push(t),xe.defineMetadata("annotations",n,e),e};return a.annotations=n,a.Class=y,r&&r(a),a}void 0===r&&(r=null);var o=_([t]);return n&&(i.prototype=Object.create(n.prototype)),i.prototype.toString=function(){return"@"+e},i.annotationCls=i,i}function _(e){return function(){for(var t=this,n=[],r=0;r<arguments.length;r++)n[r-0]=arguments[r];e.forEach(function(e,r){var i=n[r];if(Array.isArray(e))t[e[0]]=void 0===i?e[1]:i;else for(var o in e)t[o]=i&&i.hasOwnProperty(o)?i[o]:e[o]})}}function b(e,t,n){function r(){function e(e,t,n){for(var r=xe.getOwnMetadata("parameters",e)||[];r.length<=n;)r.push(null);return r[n]=r[n]||[],r[n].push(o),xe.defineMetadata("parameters",r,e),e}for(var t=[],n=0;n<arguments.length;n++)t[n-0]=arguments[n];if(this instanceof r)return i.apply(this,t),this;var o=new((a=r).bind.apply(a,[void 0].concat(t)));return e.annotation=o,e;var a}var i=_(t);return n&&(r.prototype=Object.create(n.prototype)),r.prototype.toString=function(){return"@"+e},r.annotationCls=r,r}function w(e,t,n){function r(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];if(this instanceof r)return i.apply(this,e),this;var n=new((o=r).bind.apply(o,[void 0].concat(e)));return function(e,t){var r=xe.getOwnMetadata("propMetadata",e.constructor)||{};r[t]=r.hasOwnProperty(t)&&r[t]||[],r[t].unshift(n),xe.defineMetadata("propMetadata",r,e.constructor)};var o}var i=_(t);return n&&(r.prototype=Object.create(n.prototype)),r.prototype.toString=function(){return"@"+e},r.annotationCls=r,r}function k(e){return e.__forward_ref__=k,e.toString=function(){return u(this())},e}function x(e){return"function"==typeof e&&e.hasOwnProperty("__forward_ref__")&&e.__forward_ref__===k?e():e}function C(e){for(var t=[],n=0;n<e.length;++n){if(t.indexOf(e[n])>-1)return t.push(e[n]),t;t.push(e[n])}return t}function S(e){return e.length>1?" ("+C(e.slice().reverse()).map(function(e){return u(e.token)}).join(" -> ")+")":""}function E(e){return"function"==typeof e}function T(e){return e?e.map(function(e){var t=e.type.annotationCls,n=e.args?e.args:[];return new(t.bind.apply(t,[void 0].concat(n)))}):[]}function O(e){var t=Object.getPrototypeOf(e.prototype);return(t?t.constructor:null)||Object}function P(e){var t,n;if(e.useClass){var r=x(e.useClass);t=Rt.factory(r),n=j(r)}else e.useExisting?(t=function(e){return e},n=[jt.fromKey(Et.get(e.useExisting))]):e.useFactory?(t=e.useFactory,n=R(e.useFactory,e.deps)):(t=function(){return e.useValue},n=Nt);return new Ft(t,n)}function M(e){return new Lt(Et.get(e.provide),[P(e)],e.multi)}function A(e){var t=D(I(e,[]).map(M),new Map);return Array.from(t.values())}function D(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=t.get(r.key.id);if(i){if(r.multiProvider!==i.multiProvider)throw new St(i,r);if(r.multiProvider)for(var o=0;o<r.resolvedFactories.length;o++)i.resolvedFactories.push(r.resolvedFactories[o]);else t.set(r.key.id,r)}else{var a=void 0;a=r.multiProvider?new Lt(r.key,r.resolvedFactories.slice(),r.multiProvider):r,t.set(r.key.id,a)}}return t}function I(e,t){return e.forEach(function(e){if(e instanceof Ot)t.push({provide:e,useClass:e});else if(e&&"object"==typeof e&&void 0!==e.provide)t.push(e);else{if(!(e instanceof Array))throw new kt(e);I(e,t)}}),t}function R(e,t){if(t){var n=t.map(function(e){return[e]});return t.map(function(t){return N(e,t,n)})}return j(e)}function j(e){var t=Rt.parameters(e);if(!t)return[];if(t.some(function(e){return null==e}))throw new xt(e,t);return t.map(function(n){return N(e,n,t)})}function N(e,t,n){var r=null,i=!1;if(!Array.isArray(t))return t instanceof Ce?L(t.token,i,null):L(t,i,null);for(var o=null,a=0;a<t.length;++a){var s=t[a];s instanceof Ot?r=s:s instanceof Ce?r=s.token:s instanceof Se?i=!0:(s instanceof Te||s instanceof Oe)&&(o=s)}if(null!=(r=x(r)))return L(r,i,o);throw new xt(e,n)}function L(e,t,n){return new jt(Et.get(e),t,n)}function F(e,t){for(var n=new Array(e._providers.length),r=0;r<e._providers.length;++r)n[r]=t(e.getProviderAtIndex(r));return n}function V(e){return!!l(e)&&(Array.isArray(e)||!(e instanceof Map)&&h()in e)}function z(e,t,n){for(var r=e[h()](),i=t[h()]();;){var o=r.next(),a=i.next();if(o.done&&a.done)return!0;if(o.done||a.done)return!1;if(!n(o.value,a.value))return!1}}function U(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++)t(e[n]);else for(var r=e[h()](),i=void 0;!(i=r.next()).done;)t(i.value)}function B(e){return!!e&&"function"==typeof e.then}function H(){return String.fromCharCode(97+Math.floor(25*Math.random()))}function q(){throw new Error("Runtime compiler is not loaded")}function W(e,t,n){var r=e.previousIndex;if(null===r)return r;var i=0;return n&&r<n.length&&(i=n[r]),r+t+i}function G(e,t){return V(e)&&V(t)?z(e,t,G):!(V(e)||f(e)||V(t)||f(t))||c(e,t)}function Y(e,t){t.push(e)}function Z(e){return null!=e?e.toString():""}function K(e,t,n,r){try{e.setBindingDebugInfo(t,"ng-reflect-"+X(n),r?r.toString():null)}catch(r){e.setBindingDebugInfo(t,"ng-reflect-"+X(n),"[ERROR] Exception while trying to serialize the value")}}function X(e){return e.replace(Kn,function(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return"-"+e[1].toLowerCase()})}function J(e,t,n,r,i){for(var o=e.createElement(t,n,i),a=0;a<r.length;a+=2)e.setElementAttribute(o,r.get(a),r.get(a+1));return o}function Q(e){for(var t=0;t<e.length;t++)e.get(t)()}function $(e){return new(e<=2?Jn:e<=4?Qn:e<=8?$n:e<=16?er:tr)(e)}function ee(e,t){return null}function te(){return xr=!0,kr}function ne(e){if(Vn&&!Vn.destroyed)throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Vn=e.get(Sr);var t=e.get(Xt,null);return t&&t.forEach(function(e){return e()}),Vn}function re(e,t,n){void 0===n&&(n=[]);var r=new Me("Platform: "+t);return function(t){return void 0===t&&(t=[]),oe()||(e?e(n.concat(t).concat({provide:r,useValue:!0})):ne(zt.resolveAndCreate(n.concat(t).concat({provide:r,useValue:!0})))),ie(r)}}function ie(e){var t=oe();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}function oe(){return Vn&&!Vn.destroyed?Vn:null}function ae(e,t){try{var n=t();return B(n)?n.catch(function(t){throw e.handleError(t),t}):n}catch(t){throw e.handleError(t),t}}function se(e,t,n){if(!e)throw new Error("Cannot find '"+n+"' in '"+t+"'");return e}function ue(e,t,n){e.childNodes.forEach(function(e){e instanceof Qr&&(t(e)&&n.push(e),ue(e,t,n))})}function ce(e,t,n){e instanceof Qr&&e.childNodes.forEach(function(e){t(e)&&n.push(e),e instanceof Qr&&ce(e,t,n)})}function le(e){return $r.get(e)}function pe(e){$r.set(e.nativeNode,e)}function de(e){$r.delete(e.nativeNode)}function he(){return Mn}function fe(){return An}function me(e){return e||"en-US"}function ve(e,t){return t.map(function(t){var n={};return Object.keys(t).forEach(function(r){var i=t[r];i==oi&&(a(i=e[r])||(i=di)),e[r]=i,n[r]=i}),n})}function ye(e){var t={};return e.forEach(function(e){Object.keys(e).forEach(function(n){t[n]=e[n]})}),t}function ge(e,t){e instanceof ai||e instanceof li?e.players.forEach(function(e){return ge(e,t)}):t.push(e)}var _e,be=_e="undefined"==typeof window?"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:global:window;be.assert=function(e){};var we=null,ke=0,xe=be.Reflect,Ce=b("Inject",[["token",void 0]]),Se=b("Optional",[]),Ee=g("Injectable",[]),Te=b("Self",[]),Oe=b("SkipSelf",[]),Pe=b("Host",[]),Me=function(){function e(e){this._desc=e}return e.prototype.toString=function(){return"Token "+this._desc},e.decorators=[{type:Ee}],e.ctorParameters=function(){return[null]},e}(),Ae=new Me("AnalyzeForEntryComponents"),De=b("Attribute",[["attributeName",void 0]]),Ie=function(){return function(){}}(),Re=w("ContentChildren",[["selector",void 0],{first:!1,isViewQuery:!1,descendants:!1,read:void 0}],Ie),je=w("ContentChild",[["selector",void 0],{first:!0,isViewQuery:!1,descendants:!0,read:void 0}],Ie),Ne=w("ViewChildren",[["selector",void 0],{first:!1,isViewQuery:!0,descendants:!0,read:void 0}],Ie),Le=w("ViewChild",[["selector",void 0],{first:!0,isViewQuery:!0,descendants:!0,read:void 0}],Ie),Fe={};Fe.OnPush=0,Fe.Default=1,Fe[Fe.OnPush]="OnPush",Fe[Fe.Default]="Default";var Ve={};Ve.CheckOnce=0,Ve.Checked=1,Ve.CheckAlways=2,Ve.Detached=3,Ve.Errored=4,Ve.Destroyed=5,Ve[Ve.CheckOnce]="CheckOnce",Ve[Ve.Checked]="Checked",Ve[Ve.CheckAlways]="CheckAlways",Ve[Ve.Detached]="Detached",Ve[Ve.Errored]="Errored",Ve[Ve.Destroyed]="Destroyed";var ze=g("Directive",{selector:void 0,inputs:void 0,outputs:void 0,host:void 0,providers:void 0,exportAs:void 0,queries:void 0}),Ue=g("Component",{selector:void 0,inputs:void 0,outputs:void 0,host:void 0,exportAs:void 0,moduleId:void 0,providers:void 0,viewProviders:void 0,changeDetection:Fe.Default,queries:void 0,templateUrl:void 0,template:void 0,styleUrls:void 0,styles:void 0,animations:void 0,encapsulation:void 0,interpolation:void 0,entryComponents:void 0},ze),Be=g("Pipe",{name:void 0,pure:!0}),He=w("Input",[["bindingPropertyName",void 0]]),qe=w("Output",[["bindingPropertyName",void 0]]),We=w("HostBinding",[["hostPropertyName",void 0]]),Ge=w("HostListener",[["eventName",void 0],["args",[]]]),Ye={};Ye.OnInit=0,Ye.OnDestroy=1,Ye.DoCheck=2,Ye.OnChanges=3,Ye.AfterContentInit=4,Ye.AfterContentChecked=5,Ye.AfterViewInit=6,Ye.AfterViewChecked=7,Ye[Ye.OnInit]="OnInit",Ye[Ye.OnDestroy]="OnDestroy",Ye[Ye.DoCheck]="DoCheck",Ye[Ye.OnChanges]="OnChanges",Ye[Ye.AfterContentInit]="AfterContentInit",Ye[Ye.AfterContentChecked]="AfterContentChecked",Ye[Ye.AfterViewInit]="AfterViewInit",Ye[Ye.AfterViewChecked]="AfterViewChecked";var Ze=[Ye.OnInit,Ye.OnDestroy,Ye.DoCheck,Ye.OnChanges,Ye.AfterContentInit,Ye.AfterContentChecked,Ye.AfterViewInit,Ye.AfterViewChecked],Ke=function(){function e(){}return e.prototype.ngOnChanges=function(e){},e}(),Xe=function(){function e(){}return e.prototype.ngOnInit=function(){},e}(),Je=function(){function e(){}return e.prototype.ngDoCheck=function(){},e}(),Qe=function(){function e(){}return e.prototype.ngOnDestroy=function(){},e}(),$e=function(){function e(){}return e.prototype.ngAfterContentInit=function(){},e}(),et=function(){function e(){}return e.prototype.ngAfterContentChecked=function(){},e}(),tt=function(){function e(){}return e.prototype.ngAfterViewInit=function(){},e}(),nt=function(){function e(){}return e.prototype.ngAfterViewChecked=function(){},e}(),rt={name:"custom-elements"},it={name:"no-errors-schema"},ot=g("NgModule",{providers:void 0,declarations:void 0,imports:void 0,exports:void 0,entryComponents:void 0,bootstrap:void 0,schemas:void 0,id:void 0}),at={};at.Emulated=0,at.Native=1,at.None=2,at[at.Emulated]="Emulated",at[at.Native]="Native",at[at.None]="None";var st=function(){return function(e){var t=void 0===e?{}:e,n=t.templateUrl,r=t.template,i=t.encapsulation,o=t.styles,a=t.styleUrls,s=t.animations,u=t.interpolation;this.templateUrl=n,this.template=r,this.styleUrls=a,this.styles=o,this.encapsulation=i,this.animations=s,this.interpolation=u}}(),ut=function(){function e(e){this.full=e}return Object.defineProperty(e.prototype,"major",{get:function(){return this.full.split(".")[0]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minor",{get:function(){return this.full.split(".")[1]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"patch",{get:function(){return this.full.split(".").slice(2).join(".")},enumerable:!0,configurable:!0}),e}(),ct=new ut("2.4.10"),lt=new Object,pt=lt,dt=function(){function e(){}return e.prototype.get=function(e,t){if(void 0===t&&(t=lt),t===lt)throw new Error("No provider for "+u(e)+"!");return t},e}(),ht=function(){function e(){}return e.prototype.get=function(e,t){},e.THROW_IF_NOT_FOUND=lt,e.NULL=new dt,e}(),ft=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},mt=function(e){function t(t){e.call(this,t);var n=new Error(t);this._nativeError=n}return ft(t,e),Object.defineProperty(t.prototype,"message",{get:function(){return this._nativeError.message},set:function(e){this._nativeError.message=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this._nativeError.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"stack",{get:function(){return this._nativeError.stack},set:function(e){this._nativeError.stack=e},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this._nativeError.toString()},t}(Error),vt=function(e){function t(t,n){e.call(this,t+" caused by: "+(n instanceof Error?n.message:n)),this.originalError=n}return ft(t,e),Object.defineProperty(t.prototype,"stack",{get:function(){return(this.originalError instanceof Error?this.originalError:this._nativeError).stack},enumerable:!0,configurable:!0}),t}(mt),yt=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},gt=function(e){function t(t,n,r){e.call(this,"DI Error"),this.keys=[n],this.injectors=[t],this.constructResolvingMessage=r,this.message=this.constructResolvingMessage(this.keys)}return yt(t,e),t.prototype.addKey=function(e,t){this.injectors.push(e),this.keys.push(t),this.message=this.constructResolvingMessage(this.keys)},t}(mt),_t=function(e){function t(t,n){e.call(this,t,n,function(e){return"No provider for "+u(e[0].token)+"!"+S(e)})}return yt(t,e),t}(gt),bt=function(e){function t(t,n){e.call(this,t,n,function(e){return"Cannot instantiate cyclic dependency!"+S(e)})}return yt(t,e),t}(gt),wt=function(e){function t(t,n,r,i){e.call(this,"DI Error",n),this.keys=[i],this.injectors=[t]}return yt(t,e),t.prototype.addKey=function(e,t){this.injectors.push(e),this.keys.push(t)},Object.defineProperty(t.prototype,"message",{get:function(){var e=u(this.keys[0].token);return this.originalError.message+": Error during instantiation of "+e+"!"+S(this.keys)+"."},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"causeKey",{get:function(){return this.keys[0]},enumerable:!0,configurable:!0}),t}(vt),kt=function(e){function t(t){e.call(this,"Invalid provider - only instances of Provider and Type are allowed, got: "+t)}return yt(t,e),t}(mt),xt=function(e){function t(n,r){e.call(this,t._genMessage(n,r))}return yt(t,e),t._genMessage=function(e,t){for(var n=[],r=0,i=t.length;r<i;r++){var o=t[r];o&&0!=o.length?n.push(o.map(u).join(" ")):n.push("?")}return"Cannot resolve all parameters for '"+u(e)+"'("+n.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+u(e)+"' is decorated with Injectable."},t}(mt),Ct=function(e){function t(t){e.call(this,"Index "+t+" is out-of-bounds.")}return yt(t,e),t}(mt),St=function(e){function t(t,n){e.call(this,"Cannot mix multi providers and regular providers, got: "+t.toString()+" "+n.toString())}return yt(t,e),t}(mt),Et=function(){function e(e,t){if(this.token=e,this.id=t,!e)throw new Error("Token must be defined!")}return Object.defineProperty(e.prototype,"displayName",{get:function(){return u(this.token)},enumerable:!0,configurable:!0}),e.get=function(e){return Tt.get(x(e))},Object.defineProperty(e,"numberOfKeys",{get:function(){return Tt.numberOfKeys},enumerable:!0,configurable:!0}),e}(),Tt=new(function(){function e(){this._allKeys=new Map}return e.prototype.get=function(e){if(e instanceof Et)return e;if(this._allKeys.has(e))return this._allKeys.get(e);var t=new Et(e,Et.numberOfKeys);return this._allKeys.set(e,t),t},Object.defineProperty(e.prototype,"numberOfKeys",{get:function(){return this._allKeys.size},enumerable:!0,configurable:!0}),e}()),Ot=Function,Pt=/^function\s+\S+\(\)\s*{\s*("use strict";)?\s*(return\s+)?\S+\.apply\(this,\s*arguments\)/,Mt=function(){function e(e){this._reflect=e||be.Reflect}return e.prototype.isReflectionEnabled=function(){return!0},e.prototype.factory=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n-0]=arguments[n];return new(e.bind.apply(e,[void 0].concat(t)))}},e.prototype._zipTypesAndAnnotations=function(e,t){var n;n=void 0===e?new Array(t.length):new Array(e.length);for(var r=0;r<n.length;r++)void 0===e?n[r]=[]:e[r]!=Object?n[r]=[e[r]]:n[r]=[],t&&a(t[r])&&(n[r]=n[r].concat(t[r]));return n},e.prototype._ownParameters=function(e,t){if(Pt.exec(e.toString()))return null;if(e.parameters&&e.parameters!==t.parameters)return e.parameters;var n=e.ctorParameters;if(n&&n!==t.ctorParameters){var r="function"==typeof n?n():n,i=r.map(function(e){return e&&e.type}),o=r.map(function(e){return e&&T(e.decorators)});return this._zipTypesAndAnnotations(i,o)}if(a(this._reflect)&&a(this._reflect.getOwnMetadata)){o=this._reflect.getOwnMetadata("parameters",e);if((i=this._reflect.getOwnMetadata("design:paramtypes",e))||o)return this._zipTypesAndAnnotations(i,o)}return new Array(e.length).fill(void 0)},e.prototype.parameters=function(e){if(!E(e))return[];var t=O(e),n=this._ownParameters(e,t);return n||t===Object||(n=this.parameters(t)),n||[]},e.prototype._ownAnnotations=function(e,t){if(e.annotations&&e.annotations!==t.annotations){var n=e.annotations;return"function"==typeof n&&n.annotations&&(n=n.annotations),n}return e.decorators&&e.decorators!==t.decorators?T(e.decorators):this._reflect&&this._reflect.getOwnMetadata?this._reflect.getOwnMetadata("annotations",e):void 0},e.prototype.annotations=function(e){if(!E(e))return[];var t=O(e),n=this._ownAnnotations(e,t)||[];return(t!==Object?this.annotations(t):[]).concat(n)},e.prototype._ownPropMetadata=function(e,t){if(e.propMetadata&&e.propMetadata!==t.propMetadata){var n=e.propMetadata;return"function"==typeof n&&n.propMetadata&&(n=n.propMetadata),n}if(e.propDecorators&&e.propDecorators!==t.propDecorators){var r=e.propDecorators,i={};return Object.keys(r).forEach(function(e){i[e]=T(r[e])}),i}if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("propMetadata",e)},e.prototype.propMetadata=function(e){if(!E(e))return{};var t=O(e),n={};if(t!==Object){var r=this.propMetadata(t);Object.keys(r).forEach(function(e){n[e]=r[e]})}var i=this._ownPropMetadata(e,t);return i&&Object.keys(i).forEach(function(e){var t=[];n.hasOwnProperty(e)&&t.push.apply(t,n[e]),t.push.apply(t,i[e]),n[e]=t}),n},e.prototype.hasLifecycleHook=function(e,t){return e instanceof Ot&&t in e.prototype},e.prototype.getter=function(e){return new Function("o","return o."+e+";")},e.prototype.setter=function(e){return new Function("o","v","return o."+e+" = v;")},e.prototype.method=function(e){var t="if (!o."+e+") throw new Error('\""+e+"\" is undefined');\n        return o."+e+".apply(o, args);";return new Function("o","args",t)},e.prototype.importUri=function(e){return"object"==typeof e&&e.filePath?e.filePath:"./"+u(e)},e.prototype.resolveIdentifier=function(e,t,n){return n},e.prototype.resolveEnum=function(e,t){return e[t]},e}(),At=function(){function e(){}return e.prototype.parameters=function(e){},e.prototype.annotations=function(e){},e.prototype.propMetadata=function(e){},e.prototype.importUri=function(e){},e.prototype.resolveIdentifier=function(e,t,n){},e.prototype.resolveEnum=function(e,t){},e}(),Dt=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},It=function(e){function t(t){e.call(this),this.reflectionCapabilities=t}return Dt(t,e),t.prototype.updateCapabilities=function(e){this.reflectionCapabilities=e},t.prototype.factory=function(e){return this.reflectionCapabilities.factory(e)},t.prototype.parameters=function(e){return this.reflectionCapabilities.parameters(e)},t.prototype.annotations=function(e){return this.reflectionCapabilities.annotations(e)},t.prototype.propMetadata=function(e){return this.reflectionCapabilities.propMetadata(e)},t.prototype.hasLifecycleHook=function(e,t){return this.reflectionCapabilities.hasLifecycleHook(e,t)},t.prototype.getter=function(e){return this.reflectionCapabilities.getter(e)},t.prototype.setter=function(e){return this.reflectionCapabilities.setter(e)},t.prototype.method=function(e){return this.reflectionCapabilities.method(e)},t.prototype.importUri=function(e){return this.reflectionCapabilities.importUri(e)},t.prototype.resolveIdentifier=function(e,t,n){return this.reflectionCapabilities.resolveIdentifier(e,t,n)},t.prototype.resolveEnum=function(e,t){return this.reflectionCapabilities.resolveEnum(e,t)},t}(At),Rt=new It(new Mt),jt=function(){function e(e,t,n){this.key=e,this.optional=t,this.visibility=n}return e.fromKey=function(t){return new e(t,!1,null)},e}(),Nt=[],Lt=function(){function e(e,t,n){this.key=e,this.resolvedFactories=t,this.multiProvider=n}return Object.defineProperty(e.prototype,"resolvedFactory",{get:function(){return this.resolvedFactories[0]},enumerable:!0,configurable:!0}),e}(),Ft=function(){return function(e,t){this.factory=e,this.dependencies=t}}(),Vt=new Object,zt=function(){function e(){}return e.resolve=function(e){return A(e)},e.resolveAndCreate=function(t,n){void 0===n&&(n=null);var r=e.resolve(t);return e.fromResolvedProviders(r,n)},e.fromResolvedProviders=function(e,t){return void 0===t&&(t=null),new Ut(e,t)},e.prototype.parent=function(){},e.prototype.resolveAndCreateChild=function(e){},e.prototype.createChildFromResolved=function(e){},e.prototype.resolveAndInstantiate=function(e){},e.prototype.instantiateResolved=function(e){},e.prototype.get=function(e,t){},e}(),Ut=function(){function e(e,t){void 0===t&&(t=null),this._constructionCounter=0,this._providers=e,this._parent=t;var n=e.length;this.keyIds=new Array(n),this.objs=new Array(n);for(var r=0;r<n;r++)this.keyIds[r]=e[r].key.id,this.objs[r]=Vt}return e.prototype.get=function(e,t){return void 0===t&&(t=pt),this._getByKey(Et.get(e),null,t)},Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),e.prototype.resolveAndCreateChild=function(e){var t=zt.resolve(e);return this.createChildFromResolved(t)},e.prototype.createChildFromResolved=function(t){var n=new e(t);return n._parent=this,n},e.prototype.resolveAndInstantiate=function(e){return this.instantiateResolved(zt.resolve([e])[0])},e.prototype.instantiateResolved=function(e){return this._instantiateProvider(e)},e.prototype.getProviderAtIndex=function(e){if(e<0||e>=this._providers.length)throw new Ct(e);return this._providers[e]},e.prototype._new=function(e){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw new bt(this,e.key);return this._instantiateProvider(e)},e.prototype._getMaxNumberOfObjects=function(){return this.objs.length},e.prototype._instantiateProvider=function(e){if(e.multiProvider){for(var t=new Array(e.resolvedFactories.length),n=0;n<e.resolvedFactories.length;++n)t[n]=this._instantiate(e,e.resolvedFactories[n]);return t}return this._instantiate(e,e.resolvedFactories[0])},e.prototype._instantiate=function(e,t){var n,r=this,i=t.factory;try{n=t.dependencies.map(function(e){return r._getByReflectiveDependency(e)})}catch(t){throw(t instanceof gt||t instanceof wt)&&t.addKey(this,e.key),t}var o;try{o=i.apply(void 0,n)}catch(t){throw new wt(this,t,t.stack,e.key)}return o},e.prototype._getByReflectiveDependency=function(e){return this._getByKey(e.key,e.visibility,e.optional?null:pt)},e.prototype._getByKey=function(e,t,n){return e===Bt?this:t instanceof Te?this._getByKeySelf(e,n):this._getByKeyDefault(e,n,t)},e.prototype._getObjByKeyId=function(e){for(var t=0;t<this.keyIds.length;t++)if(this.keyIds[t]===e)return this.objs[t]===Vt&&(this.objs[t]=this._new(this._providers[t])),this.objs[t];return Vt},e.prototype._throwOrNull=function(e,t){if(t!==pt)return t;throw new _t(this,e)},e.prototype._getByKeySelf=function(e,t){var n=this._getObjByKeyId(e.id);return n!==Vt?n:this._throwOrNull(e,t)},e.prototype._getByKeyDefault=function(t,n,r){var i;for(i=r instanceof Oe?this._parent:this;i instanceof e;){var o=i,a=o._getObjByKeyId(t.id);if(a!==Vt)return a;i=o._parent}return null!==i?i.get(t.token,n):this._throwOrNull(t,n)},Object.defineProperty(e.prototype,"displayName",{get:function(){return"ReflectiveInjector(providers: ["+F(this,function(e){return' "'+e.key.displayName+'" '}).join(", ")+"])"},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return this.displayName},e}(),Bt=Et.get(ht),Ht=function(){function e(e){void 0===e&&(e=!0),this._console=console,this.rethrowError=e}return e.prototype.handleError=function(e){var t=this._findOriginalError(e),n=this._findOriginalStack(e),r=this._findContext(e);if(this._console.error("EXCEPTION: "+this._extractMessage(e)),t&&this._console.error("ORIGINAL EXCEPTION: "+this._extractMessage(t)),n&&(this._console.error("ORIGINAL STACKTRACE:"),this._console.error(n)),r&&(this._console.error("ERROR CONTEXT:"),this._console.error(r)),this.rethrowError)throw e},e.prototype._extractMessage=function(e){return e instanceof Error?e.message:e.toString()},e.prototype._findContext=function(e){return e?e.context?e.context:this._findContext(e.originalError):null},e.prototype._findOriginalError=function(e){for(var t=e.originalError;t&&t.originalError;)t=t.originalError;return t},e.prototype._findOriginalStack=function(e){if(!(e instanceof Error))return null;for(var t=e,n=t.stack;t instanceof Error&&t.originalError;)(t=t.originalError)instanceof Error&&t.stack&&(n=t.stack);return n},e}(),qt=function(){function e(){}return e.merge=function(e,t){for(var n={},r=0,i=Object.keys(e);r<i.length;r++)n[s=i[r]]=e[s];for(var o=0,a=Object.keys(t);o<a.length;o++){var s=a[o];n[s]=t[s]}return n},e.equals=function(e,t){var n=Object.keys(e),r=Object.keys(t);if(n.length!=r.length)return!1;for(var i=0;i<n.length;i++){var o=n[i];if(e[o]!==t[o])return!1}return!0},e}(),Wt=function(){function e(){}return e.findLast=function(e,t){for(var n=e.length-1;n>=0;n--)if(t(e[n]))return e[n];return null},e.removeAll=function(e,t){for(var n=0;n<t.length;++n){var r=e.indexOf(t[n]);r>-1&&e.splice(r,1)}},e.remove=function(e,t){var n=e.indexOf(t);return n>-1&&(e.splice(n,1),!0)},e.equals=function(e,t){if(e.length!=t.length)return!1;for(var n=0;n<e.length;++n)if(e[n]!==t[n])return!1;return!0},e.flatten=function(t){return t.reduce(function(t,n){var r=Array.isArray(n)?e.flatten(n):n;return t.concat(r)},[])},e}(),Gt=new Me("Application Initializer"),Yt=function(){function e(e){var t=this;this._done=!1;var n=[];if(e)for(var r=0;r<e.length;r++){var i=e[r]();B(i)&&n.push(i)}this._donePromise=Promise.all(n).then(function(){t._done=!0}),0===n.length&&(this._done=!0)}return Object.defineProperty(e.prototype,"done",{get:function(){return this._done},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"donePromise",{get:function(){return this._donePromise},enumerable:!0,configurable:!0}),e.decorators=[{type:Ee}],e.ctorParameters=function(){return[{type:Array,decorators:[{type:Ce,args:[Gt]},{type:Se}]}]},e}(),Zt=new Me("AppId"),Kt={provide:Zt,useFactory:function(){return""+H()+H()+H()},deps:[]},Xt=new Me("Platform Initializer"),Jt=new Me("appBootstrapListener"),Qt=new Me("Application Packages Root URL"),$t=function(){function e(){}return e.prototype.log=function(e){p(e)},e.prototype.warn=function(e){d(e)},e.decorators=[{type:Ee}],e.ctorParameters=function(){return[]},e}(),en=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},tn=function(e){function t(t){e.call(this,"Can't compile synchronously as "+u(t)+" is still being loaded!"),this.compType=t}return en(t,e),t}(mt),nn=function(){return function(e,t){this.ngModuleFactory=e,this.componentFactories=t}}(),rn=function(){function e(){}return e.prototype.compileModuleSync=function(e){throw q()},e.prototype.compileModuleAsync=function(e){throw q()},e.prototype.compileModuleAndAllComponentsSync=function(e){throw q()},e.prototype.compileModuleAndAllComponentsAsync=function(e){throw q()},e.prototype.getNgContentSelectors=function(e){throw q()},e.prototype.clearCache=function(){},e.prototype.clearCacheFor=function(e){},e.decorators=[{type:Ee}],e.ctorParameters=function(){return[]},e}(),on=new Me("compilerOptions"),an=function(){function e(){}return e.prototype.createCompiler=function(e){},e}(),sn=function(){return function(e){this.nativeElement=e}}(),un=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},cn=function(e){function t(t){void 0===t&&(t=!1),e.call(this),this.__isAsync=t}return un(t,e),t.prototype.emit=function(t){e.prototype.next.call(this,t)},t.prototype.subscribe=function(t,n,r){var i,o=function(e){return null},a=function(){return null};return t&&"object"==typeof t?(i=this.__isAsync?function(e){setTimeout(function(){return t.next(e)})}:function(e){t.next(e)},t.error&&(o=this.__isAsync?function(e){setTimeout(function(){return t.error(e)})}:function(e){t.error(e)}),t.complete&&(a=this.__isAsync?function(){setTimeout(function(){return t.complete()})}:function(){t.complete()})):(i=this.__isAsync?function(e){setTimeout(function(){return t(e)})}:function(e){t(e)},n&&(o=this.__isAsync?function(e){setTimeout(function(){return n(e)})}:function(e){n(e)}),r&&(a=this.__isAsync?function(){setTimeout(function(){return r()})}:function(){r()})),e.prototype.subscribe.call(this,i,o,a)},t}(n.Subject),ln=function(){function e(e){var t=e.enableLongStackTrace,n=void 0!==t&&t;if(this._hasPendingMicrotasks=!1,this._hasPendingMacrotasks=!1,this._isStable=!0,this._nesting=0,this._onUnstable=new cn(!1),this._onMicrotaskEmpty=new cn(!1),this._onStable=new cn(!1),this._onErrorEvents=new cn(!1),"undefined"==typeof Zone)throw new Error("Angular requires Zone.js prolyfill.");Zone.assertZonePatched(),this.outer=this.inner=Zone.current,Zone.wtfZoneSpec&&(this.inner=this.inner.fork(Zone.wtfZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(this.inner=this.inner.fork(Zone.longStackTraceZoneSpec)),this.forkInnerZoneWithAngularBehavior()}return e.isInAngularZone=function(){return!0===Zone.current.get("isAngularZone")},e.assertInAngularZone=function(){if(!e.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")},e.assertNotInAngularZone=function(){if(e.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")},e.prototype.run=function(e){return this.inner.run(e)},e.prototype.runGuarded=function(e){return this.inner.runGuarded(e)},e.prototype.runOutsideAngular=function(e){return this.outer.run(e)},Object.defineProperty(e.prototype,"onUnstable",{get:function(){return this._onUnstable},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMicrotaskEmpty",{get:function(){return this._onMicrotaskEmpty},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onStable",{get:function(){return this._onStable},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onError",{get:function(){return this._onErrorEvents},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isStable",{get:function(){return this._isStable},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasPendingMicrotasks",{get:function(){return this._hasPendingMicrotasks},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasPendingMacrotasks",{get:function(){return this._hasPendingMacrotasks},enumerable:!0,configurable:!0}),e.prototype.checkStable=function(){var e=this;if(0==this._nesting&&!this._hasPendingMicrotasks&&!this._isStable)try{this._nesting++,this._onMicrotaskEmpty.emit(null)}finally{if(this._nesting--,!this._hasPendingMicrotasks)try{this.runOutsideAngular(function(){return e._onStable.emit(null)})}finally{this._isStable=!0}}},e.prototype.forkInnerZoneWithAngularBehavior=function(){var e=this;this.inner=this.inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(t,n,r,i,o,a){try{return e.onEnter(),t.invokeTask(r,i,o,a)}finally{e.onLeave()}},onInvoke:function(t,n,r,i,o,a,s){try{return e.onEnter(),t.invoke(r,i,o,a,s)}finally{e.onLeave()}},onHasTask:function(t,n,r,i){t.hasTask(r,i),n===r&&("microTask"==i.change?e.setHasMicrotask(i.microTask):"macroTask"==i.change&&e.setHasMacrotask(i.macroTask))},onHandleError:function(t,n,r,i){return t.handleError(r,i),e.triggerError(i),!1}})},e.prototype.onEnter=function(){this._nesting++,this._isStable&&(this._isStable=!1,this._onUnstable.emit(null))},e.prototype.onLeave=function(){this._nesting--,this.checkStable()},e.prototype.setHasMicrotask=function(e){this._hasPendingMicrotasks=e,this.checkStable()},e.prototype.setHasMacrotask=function(e){this._hasPendingMacrotasks=e},e.prototype.triggerError=function(e){this._onErrorEvents.emit(e)},e}(),pn=function(){function e(e){this._zone=e,this.entries=[]}return e.prototype.enqueue=function(e){this.entries.push(e)},e.prototype.flush=function(){var e=this;this.entries.length&&this._zone.runOutsideAngular(function(){Promise.resolve(null).then(function(){return e._triggerAnimations()})})},e.prototype._triggerAnimations=function(){for(ln.assertNotInAngularZone();this.entries.length;){var e=this.entries.shift();e.hasStarted()||e.play()}},e.decorators=[{type:Ee}],e.ctorParameters=function(){return[{type:ln}]},e}(),dn=function(){function e(){}return e.prototype.supports=function(e){return V(e)},e.prototype.create=function(e,t){return new fn(t)},e}(),hn=function(e,t){return t},fn=function(){function e(e){this._trackByFn=e,this._length=null,this._collection=null,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=this._trackByFn||hn}return Object.defineProperty(e.prototype,"collection",{get:function(){return this._collection},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._length},enumerable:!0,configurable:!0}),e.prototype.forEachItem=function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)},e.prototype.forEachOperation=function(e){for(var t=this._itHead,n=this._removalsHead,r=0,i=null;t||n;){var o=!n||t&&t.currentIndex<W(n,r,i)?t:n,a=W(o,r,i),s=o.currentIndex;if(o===n)r--,n=n._nextRemoved;else if(t=t._next,null==o.previousIndex)r++;else{i||(i=[]);var u=a-r,c=s-r;if(u!=c){for(var l=0;l<u;l++){var p=l<i.length?i[l]:i[l]=0,d=p+l;c<=d&&d<u&&(i[l]=p+1)}i[o.previousIndex]=c-u}}a!==s&&e(o,a,s)}},e.prototype.forEachPreviousItem=function(e){var t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)},e.prototype.forEachAddedItem=function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)},e.prototype.forEachMovedItem=function(e){var t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)},e.prototype.forEachRemovedItem=function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)},e.prototype.forEachIdentityChange=function(e){var t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)},e.prototype.diff=function(e){if(s(e)&&(e=[]),!V(e))throw new Error("Error trying to diff '"+e+"'");return this.check(e)?this:null},e.prototype.onDestroy=function(){},e.prototype.check=function(e){var t=this;this._reset();var n,r,i,o=this._itHead,a=!1;if(Array.isArray(e)){var s=e;this._length=e.length;for(var u=0;u<this._length;u++)r=s[u],i=this._trackByFn(u,r),null!==o&&c(o.trackById,i)?(a&&(o=this._verifyReinsertion(o,r,i,u)),c(o.item,r)||this._addIdentityChange(o,r)):(o=this._mismatch(o,r,i,u),a=!0),o=o._next}else n=0,U(e,function(e){i=t._trackByFn(n,e),null!==o&&c(o.trackById,i)?(a&&(o=t._verifyReinsertion(o,e,i,n)),c(o.item,e)||t._addIdentityChange(o,e)):(o=t._mismatch(o,e,i,n),a=!0),o=o._next,n++}),this._length=n;return this._truncate(o),this._collection=e,this.isDirty},Object.defineProperty(e.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead},enumerable:!0,configurable:!0}),e.prototype._reset=function(){if(this.isDirty){var e=void 0,t=void 0;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=t)e.previousIndex=e.currentIndex,t=e._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}},e.prototype._mismatch=function(e,t,n,r){var i;return null===e?i=this._itTail:(i=e._prev,this._remove(e)),null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(c(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,i,r)):null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n))?(c(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,i,r)):e=this._addAfter(new mn(t,n),i,r),e},e.prototype._verifyReinsertion=function(e,t,n,r){var i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n);return null!==i?e=this._reinsertAfter(i,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e},e.prototype._truncate=function(e){for(;null!==e;){var t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)},e.prototype._reinsertAfter=function(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);var r=e._prevRemoved,i=e._nextRemoved;return null===r?this._removalsHead=i:r._nextRemoved=i,null===i?this._removalsTail=r:i._prevRemoved=r,this._insertAfter(e,t,n),this._addToMoves(e,n),e},e.prototype._moveAfter=function(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e},e.prototype._addAfter=function(e,t,n){return this._insertAfter(e,t,n),null===this._additionsTail?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e},e.prototype._insertAfter=function(e,t,n){var r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new yn),this._linkedRecords.put(e),e.currentIndex=n,e},e.prototype._remove=function(e){return this._addToRemovals(this._unlink(e))},e.prototype._unlink=function(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);var t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e},e.prototype._addToMoves=function(e,t){return e.previousIndex===t?e:(null===this._movesTail?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e,e)},e.prototype._addToRemovals=function(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new yn),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e},e.prototype._addIdentityChange=function(e,t){return e.item=t,null===this._identityChangesTail?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e},e.prototype.toString=function(){var e=[];this.forEachItem(function(t){return e.push(t)});var t=[];this.forEachPreviousItem(function(e){return t.push(e)});var n=[];this.forEachAddedItem(function(e){return n.push(e)});var r=[];this.forEachMovedItem(function(e){return r.push(e)});var i=[];this.forEachRemovedItem(function(e){return i.push(e)});var o=[];return this.forEachIdentityChange(function(e){return o.push(e)}),"collection: "+e.join(", ")+"\nprevious: "+t.join(", ")+"\nadditions: "+n.join(", ")+"\nmoves: "+r.join(", ")+"\nremovals: "+i.join(", ")+"\nidentityChanges: "+o.join(", ")+"\n"},e}(),mn=function(){function e(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}return e.prototype.toString=function(){return this.previousIndex===this.currentIndex?u(this.item):u(this.item)+"["+u(this.previousIndex)+"->"+u(this.currentIndex)+"]"},e}(),vn=function(){function e(){this._head=null,this._tail=null}return e.prototype.add=function(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)},e.prototype.get=function(e,t){var n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<n.currentIndex)&&c(n.trackById,e))return n;return null},e.prototype.remove=function(e){var t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head},e}(),yn=function(){function e(){this.map=new Map}return e.prototype.put=function(e){var t=e.trackById,n=this.map.get(t);n||(n=new vn,this.map.set(t,n)),n.add(e)},e.prototype.get=function(e,t){void 0===t&&(t=null);var n=e,r=this.map.get(n);return r?r.get(e,t):null},e.prototype.remove=function(e){var t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e},Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0===this.map.size},enumerable:!0,configurable:!0}),e.prototype.clear=function(){this.map.clear()},e.prototype.toString=function(){return"_DuplicateMap("+u(this.map)+")"},e}(),gn=function(){function e(){}return e.prototype.supports=function(e){return e instanceof Map||l(e)},e.prototype.create=function(e){return new _n},e}(),_n=function(){function e(){this._records=new Map,this._mapHead=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return Object.defineProperty(e.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead},enumerable:!0,configurable:!0}),e.prototype.forEachItem=function(e){var t;for(t=this._mapHead;null!==t;t=t._next)e(t)},e.prototype.forEachPreviousItem=function(e){var t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)},e.prototype.forEachChangedItem=function(e){var t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)},e.prototype.forEachAddedItem=function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)},e.prototype.forEachRemovedItem=function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)},e.prototype.diff=function(e){if(e){if(!(e instanceof Map||l(e)))throw new Error("Error trying to diff '"+e+"'")}else e=new Map;return this.check(e)?this:null},e.prototype.onDestroy=function(){},e.prototype.check=function(e){var t=this;this._reset();var n=this._records,r=this._mapHead,i=null,o=null,a=!1;return this._forEach(e,function(e,s){var u;r&&s===r.key?(u=r,t._maybeAddToChanges(u,e)):(a=!0,null!==r&&(t._removeFromSeq(i,r),t._addToRemovals(r)),n.has(s)?(u=n.get(s),t._maybeAddToChanges(u,e)):(u=new bn(s),n.set(s,u),u.currentValue=e,t._addToAdditions(u))),a&&(t._isInRemovals(u)&&t._removeFromRemovals(u),null==o?t._mapHead=u:o._next=u),i=r,o=u,r=r&&r._next}),this._truncate(i,r),this.isDirty},e.prototype._reset=function(){if(this.isDirty){var e=void 0;for(e=this._previousMapHead=this._mapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=this._removalsTail=null}},e.prototype._truncate=function(e,t){for(;null!==t;){null===e?this._mapHead=null:e._next=null;var n=t._next;this._addToRemovals(t),e=t,t=n}for(var r=this._removalsHead;null!==r;r=r._nextRemoved)r.previousValue=r.currentValue,r.currentValue=null,this._records.delete(r.key)},e.prototype._maybeAddToChanges=function(e,t){c(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))},e.prototype._isInRemovals=function(e){return e===this._removalsHead||null!==e._nextRemoved||null!==e._prevRemoved},e.prototype._addToRemovals=function(e){null===this._removalsHead?this._removalsHead=this._removalsTail=e:(this._removalsTail._nextRemoved=e,e._prevRemoved=this._removalsTail,this._removalsTail=e)},e.prototype._removeFromSeq=function(e,t){var n=t._next;null===e?this._mapHead=n:e._next=n,t._next=null},e.prototype._removeFromRemovals=function(e){var t=e._prevRemoved,n=e._nextRemoved;null===t?this._removalsHead=n:t._nextRemoved=n,null===n?this._removalsTail=t:n._prevRemoved=t,e._prevRemoved=e._nextRemoved=null},e.prototype._addToAdditions=function(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)},e.prototype._addToChanges=function(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)},e.prototype.toString=function(){var e,t=[],n=[],r=[],i=[],o=[];for(e=this._mapHead;null!==e;e=e._next)t.push(u(e));for(e=this._previousMapHead;null!==e;e=e._nextPrevious)n.push(u(e));for(e=this._changesHead;null!==e;e=e._nextChanged)r.push(u(e));for(e=this._additionsHead;null!==e;e=e._nextAdded)i.push(u(e));for(e=this._removalsHead;null!==e;e=e._nextRemoved)o.push(u(e));return"map: "+t.join(", ")+"\nprevious: "+n.join(", ")+"\nadditions: "+i.join(", ")+"\nchanges: "+r.join(", ")+"\nremovals: "+o.join(", ")+"\n"},e.prototype._forEach=function(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(function(n){return t(e[n],n)})},e}(),bn=function(){function e(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._nextAdded=null,this._nextRemoved=null,this._prevRemoved=null,this._nextChanged=null}return e.prototype.toString=function(){return c(this.previousValue,this.currentValue)?u(this.key):u(this.key)+"["+u(this.previousValue)+"->"+u(this.currentValue)+"]"},e}(),wn=function(){function e(e){this.factories=e}return e.create=function(t,n){if(a(n)){var r=n.factories.slice();return t=t.concat(r),new e(t)}return new e(t)},e.extend=function(t){return{provide:e,useFactory:function(n){if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return e.create(t,n)},deps:[[e,new Oe,new Se]]}},e.prototype.find=function(e){var t=this.factories.find(function(t){return t.supports(e)});if(a(t))return t;throw new Error("Cannot find a differ supporting object '"+e+"' of type '"+o(e)+"'")},e}(),kn=function(){function e(e){this.factories=e}return e.create=function(t,n){if(a(n)){var r=n.factories.slice();return t=t.concat(r),new e(t)}return new e(t)},e.extend=function(t){return{provide:e,useFactory:function(n){if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return e.create(t,n)},deps:[[e,new Oe,new Se]]}},e.prototype.find=function(e){var t=this.factories.find(function(t){return t.supports(e)});if(a(t))return t;throw new Error("Cannot find a differ supporting object '"+e+"'")},e}(),xn={toString:function(){return"CD_INIT_VALUE"}},Cn=function(){function e(e){this.wrapped=e}return e.wrap=function(t){return new e(t)},e}(),Sn=function(){function e(){this.hasWrappedValue=!1}return e.prototype.unwrap=function(e){return e instanceof Cn?(this.hasWrappedValue=!0,e.wrapped):e},e.prototype.reset=function(){this.hasWrappedValue=!1},e}(),En=function(){function e(e,t){this.previousValue=e,this.currentValue=t}return e.prototype.isFirstChange=function(){return this.previousValue===xn},e}(),Tn=function(){function e(){}return e.prototype.markForCheck=function(){},e.prototype.detach=function(){},e.prototype.detectChanges=function(){},e.prototype.checkNoChanges=function(){},e.prototype.reattach=function(){},e}(),On=[new gn],Pn=[new dn],Mn=new wn(Pn),An=new kn(On),Dn=function(){return function(e,t,n,r,i,o){this.id=e,this.templateUrl=t,this.slotCount=n,this.encapsulation=r,this.styles=i,this.animations=o}}(),In=function(){function e(){}return e.prototype.injector=function(){},e.prototype.component=function(){},e.prototype.providerTokens=function(){},e.prototype.references=function(){},e.prototype.context=function(){},e.prototype.source=function(){},e}(),Rn=function(){function e(){}return e.prototype.selectRootElement=function(e,t){},e.prototype.createElement=function(e,t,n){},e.prototype.createViewRoot=function(e){},e.prototype.createTemplateAnchor=function(e,t){},e.prototype.createText=function(e,t,n){},e.prototype.projectNodes=function(e,t){},e.prototype.attachViewAfter=function(e,t){},e.prototype.detachView=function(e){},e.prototype.destroyView=function(e,t){},e.prototype.listen=function(e,t,n){},e.prototype.listenGlobal=function(e,t,n){},e.prototype.setElementProperty=function(e,t,n){},e.prototype.setElementAttribute=function(e,t,n){},e.prototype.setBindingDebugInfo=function(e,t,n){},e.prototype.setElementClass=function(e,t,n){},e.prototype.setElementStyle=function(e,t,n){},e.prototype.invokeElementMethod=function(e,t,n){},e.prototype.setText=function(e,t){},e.prototype.animate=function(e,t,n,r,i,o,a){},e}(),jn=function(){function e(){}return e.prototype.renderComponent=function(e){},e}(),Nn={};Nn.NONE=0,Nn.HTML=1,Nn.STYLE=2,Nn.SCRIPT=3,Nn.URL=4,Nn.RESOURCE_URL=5,Nn[Nn.NONE]="NONE",Nn[Nn.HTML]="HTML",Nn[Nn.STYLE]="STYLE",Nn[Nn.SCRIPT]="SCRIPT",Nn[Nn.URL]="URL",Nn[Nn.RESOURCE_URL]="RESOURCE_URL";var Ln,Fn,Vn,zn=function(){function e(){}return e.prototype.sanitize=function(e,t){},e}(),Un=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},Bn=function(e){function t(t,n){var r="Expression has changed after it was checked. Previous value: '"+t+"'. Current value: '"+n+"'.";t===xn&&(r+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),e.call(this,r)}return Un(t,e),t}(mt),Hn=function(e){function t(t,n){e.call(this,"Error in "+n.source,t),this.context=n}return Un(t,e),t}(vt),qn=function(e){function t(t){e.call(this,"Attempt to use a destroyed view: "+t)}return Un(t,e),t}(mt),Wn=function(){function e(e,t,n){this._renderer=e,this.animationQueue=n,this.sanitizer=t}return e.prototype.renderComponent=function(e){return this._renderer.renderComponent(e)},e.decorators=[{type:Ee}],e.ctorParameters=function(){return[{type:jn},{type:zn},{type:pn}]},e}(),Gn=0,Yn=[],Zn={},Kn=/([A-Z])/g,Xn=function(){function e(){this.length=0}return e.prototype.get=function(e){},e.prototype.set=function(e,t){},e}(),Jn=function(){function e(e,t,n){this.length=e,this._v0=t,this._v1=n}return e.prototype.get=function(e){switch(e){case 0:return this._v0;case 1:return this._v1;default:return}},e.prototype.set=function(e,t){switch(e){case 0:this._v0=t;break;case 1:this._v1=t}},e}(),Qn=function(){function e(e,t,n,r,i){this.length=e,this._v0=t,this._v1=n,this._v2=r,this._v3=i}return e.prototype.get=function(e){switch(e){case 0:return this._v0;case 1:return this._v1;case 2:return this._v2;case 3:return this._v3;default:return}},e.prototype.set=function(e,t){switch(e){case 0:this._v0=t;break;case 1:this._v1=t;break;case 2:this._v2=t;break;case 3:this._v3=t}},e}(),$n=function(){function e(e,t,n,r,i,o,a,s,u){this.length=e,this._v0=t,this._v1=n,this._v2=r,this._v3=i,this._v4=o,this._v5=a,this._v6=s,this._v7=u}return e.prototype.get=function(e){switch(e){case 0:return this._v0;case 1:return this._v1;case 2:return this._v2;case 3:return this._v3;case 4:return this._v4;case 5:return this._v5;case 6:return this._v6;case 7:return this._v7;default:return}},e.prototype.set=function(e,t){switch(e){case 0:this._v0=t;break;case 1:this._v1=t;break;case 2:this._v2=t;break;case 3:this._v3=t;break;case 4:this._v4=t;break;case 5:this._v5=t;break;case 6:this._v6=t;break;case 7:this._v7=t}},e}(),er=function(){function e(e,t,n,r,i,o,a,s,u,c,l,p,d,h,f,m,v){this.length=e,this._v0=t,this._v1=n,this._v2=r,this._v3=i,this._v4=o,this._v5=a,this._v6=s,this._v7=u,this._v8=c,this._v9=l,this._v10=p,this._v11=d,this._v12=h,this._v13=f,this._v14=m,this._v15=v}return e.prototype.get=function(e){switch(e){case 0:return this._v0;case 1:return this._v1;case 2:return this._v2;case 3:return this._v3;case 4:return this._v4;case 5:return this._v5;case 6:return this._v6;case 7:return this._v7;case 8:return this._v8;case 9:return this._v9;case 10:return this._v10;case 11:return this._v11;case 12:return this._v12;case 13:return this._v13;case 14:return this._v14;case 15:return this._v15;default:return}},e.prototype.set=function(e,t){switch(e){case 0:this._v0=t;break;case 1:this._v1=t;break;case 2:this._v2=t;break;case 3:this._v3=t;break;case 4:this._v4=t;break;case 5:this._v5=t;break;case 6:this._v6=t;break;case 7:this._v7=t;break;case 8:this._v8=t;break;case 9:this._v9=t;break;case 10:this._v10=t;break;case 11:this._v11=t;break;case 12:this._v12=t;break;case 13:this._v13=t;break;case 14:this._v14=t;break;case 15:this._v15=t}},e}(),tr=function(){function e(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.length=e,this._values=t}return e.prototype.get=function(e){return this._values[e]},e.prototype.set=function(e,t){this._values[e]=t},e}(),nr=new Xn,rr=Object.freeze({ViewUtils:Wn,createRenderComponentType:function(e,t,n,r,i){return new Dn(""+Gn++,e,t,n,r,i)},addToArray:Y,interpolate:function(e,t){for(var n="",r=0;r<2*e;r+=2)n=n+t[r]+Z(t[r+1]);return n+t[2*e]},inlineInterpolate:function(e,t,n,r,i,o,a,s,u,c,l,p,d,h,f,m,v,y,g,_){switch(e){case 1:return t+Z(n)+r;case 2:return t+Z(n)+r+Z(i)+o;case 3:return t+Z(n)+r+Z(i)+o+Z(a)+s;case 4:return t+Z(n)+r+Z(i)+o+Z(a)+s+Z(u)+c;case 5:return t+Z(n)+r+Z(i)+o+Z(a)+s+Z(u)+c+Z(l)+p;case 6:return t+Z(n)+r+Z(i)+o+Z(a)+s+Z(u)+c+Z(l)+p+Z(d)+h;case 7:return t+Z(n)+r+Z(i)+o+Z(a)+s+Z(u)+c+Z(l)+p+Z(d)+h+Z(f)+m;case 8:return t+Z(n)+r+Z(i)+o+Z(a)+s+Z(u)+c+Z(l)+p+Z(d)+h+Z(f)+m+Z(v)+y;case 9:return t+Z(n)+r+Z(i)+o+Z(a)+s+Z(u)+c+Z(l)+p+Z(d)+h+Z(f)+m+Z(v)+y+Z(g)+_;default:throw new Error("Does not support more than 9 expressions")}},checkBinding:function(e,t,n){if(e){if(!G(t,n))throw new Bn(t,n);return!1}return!c(t,n)},castByValue:function(e,t){return e},EMPTY_ARRAY:Yn,EMPTY_MAP:Zn,pureProxy1:function(e){var t,n=xn;return function(r){return c(n,r)||(n=r,t=e(r)),t}},pureProxy2:function(e){var t,n=xn,r=xn;return function(i,o){return c(n,i)&&c(r,o)||(n=i,r=o,t=e(i,o)),t}},pureProxy3:function(e){var t,n=xn,r=xn,i=xn;return function(o,a,s){return c(n,o)&&c(r,a)&&c(i,s)||(n=o,r=a,i=s,t=e(o,a,s)),t}},pureProxy4:function(e){var t,n,r,i,o;return n=r=i=o=xn,function(a,s,u,l){return c(n,a)&&c(r,s)&&c(i,u)&&c(o,l)||(n=a,r=s,i=u,o=l,t=e(a,s,u,l)),t}},pureProxy5:function(e){var t,n,r,i,o,a;return n=r=i=o=a=xn,function(s,u,l,p,d){return c(n,s)&&c(r,u)&&c(i,l)&&c(o,p)&&c(a,d)||(n=s,r=u,i=l,o=p,a=d,t=e(s,u,l,p,d)),t}},pureProxy6:function(e){var t,n,r,i,o,a,s;return n=r=i=o=a=s=xn,function(u,l,p,d,h,f){return c(n,u)&&c(r,l)&&c(i,p)&&c(o,d)&&c(a,h)&&c(s,f)||(n=u,r=l,i=p,o=d,a=h,s=f,t=e(u,l,p,d,h,f)),t}},pureProxy7:function(e){var t,n,r,i,o,a,s,u;return n=r=i=o=a=s=u=xn,function(l,p,d,h,f,m,v){return c(n,l)&&c(r,p)&&c(i,d)&&c(o,h)&&c(a,f)&&c(s,m)&&c(u,v)||(n=l,r=p,i=d,o=h,a=f,s=m,u=v,t=e(l,p,d,h,f,m,v)),t}},pureProxy8:function(e){var t,n,r,i,o,a,s,u,l;return n=r=i=o=a=s=u=l=xn,function(p,d,h,f,m,v,y,g){return c(n,p)&&c(r,d)&&c(i,h)&&c(o,f)&&c(a,m)&&c(s,v)&&c(u,y)&&c(l,g)||(n=p,r=d,i=h,o=f,a=m,s=v,u=y,l=g,t=e(p,d,h,f,m,v,y,g)),t}},pureProxy9:function(e){var t,n,r,i,o,a,s,u,l,p;return n=r=i=o=a=s=u=l=p=xn,function(d,h,f,m,v,y,g,_,b){return c(n,d)&&c(r,h)&&c(i,f)&&c(o,m)&&c(a,v)&&c(s,y)&&c(u,g)&&c(l,_)&&c(p,b)||(n=d,r=h,i=f,o=m,a=v,s=y,u=g,l=_,p=b,t=e(d,h,f,m,v,y,g,_,b)),t}},pureProxy10:function(e){var t,n,r,i,o,a,s,u,l,p,d;return n=r=i=o=a=s=u=l=p=d=xn,function(h,f,m,v,y,g,_,b,w,k){return c(n,h)&&c(r,f)&&c(i,m)&&c(o,v)&&c(a,y)&&c(s,g)&&c(u,_)&&c(l,b)&&c(p,w)&&c(d,k)||(n=h,r=f,i=m,o=v,a=y,s=g,u=_,l=b,p=w,d=k,t=e(h,f,m,v,y,g,_,b,w,k)),t}},setBindingDebugInfoForChanges:function(e,t,n){Object.keys(n).forEach(function(r){K(e,t,r,n[r].currentValue)})},setBindingDebugInfo:K,createRenderElement:J,selectOrCreateRenderHostElement:function(e,t,n,r,i){var o;if(a(r)){o=e.selectRootElement(r,i);for(var s=0;s<n.length;s+=2)e.setElementAttribute(o,n.get(s),n.get(s+1));e.setElementAttribute(o,"ng-version",ct.full)}else o=J(e,null,t,n,i);return o},subscribeToRenderElement:function(e,t,n,r){for(var i=$(n.length/2),o=0;o<n.length;o+=2){var a=n.get(o),s=n.get(o+1),u=void 0;u=s?e.renderer.listenGlobal(s,a,r.bind(e,s+":"+a)):e.renderer.listen(t,a,r.bind(e,a)),i.set(o/2,u)}return Q.bind(null,i)},noop:function(){},InlineArray2:Jn,InlineArray4:Qn,InlineArray8:$n,InlineArray16:er,InlineArrayDynamic:tr,EMPTY_INLINE_ARRAY:nr}),ir=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},or=function(){function e(){}return e.prototype.location=function(){},e.prototype.injector=function(){},e.prototype.instance=function(){},e.prototype.hostView=function(){},e.prototype.changeDetectorRef=function(){},e.prototype.componentType=function(){},e.prototype.destroy=function(){},e.prototype.onDestroy=function(e){},e}(),ar=function(e){function t(t,n,r,i){e.call(this),this._index=t,this._parentView=n,this._nativeElement=r,this._component=i}return ir(t,e),Object.defineProperty(t.prototype,"location",{get:function(){return new sn(this._nativeElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return this._parentView.injector(this._index)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"instance",{get:function(){return this._component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hostView",{get:function(){return this._parentView.ref},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"changeDetectorRef",{get:function(){return this._parentView.ref},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this._parentView.detachAndDestroy()},t.prototype.onDestroy=function(e){this.hostView.onDestroy(e)},t}(or),sr=function(){function e(e,t,n){this.selector=e,this._viewClass=t,this._componentType=n}return Object.defineProperty(e.prototype,"componentType",{get:function(){return this._componentType},enumerable:!0,configurable:!0}),e.prototype.create=function(e,t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.get(Wn);return t||(t=[]),new this._viewClass(r,null,null,null).createHostView(n,e,t)},e}(),ur=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},cr=function(e){function t(t){e.call(this,"No component factory found for "+u(t)+". Did you add it to @NgModule.entryComponents?"),this.component=t}return ur(t,e),t}(mt),lr=function(){function e(){}return e.prototype.resolveComponentFactory=function(e){throw new cr(e)},e}(),pr=function(){function e(){}return e.prototype.resolveComponentFactory=function(e){},e.NULL=new lr,e}(),dr=function(){function e(e,t){this._parent=t,this._factories=new Map;for(var n=0;n<e.length;n++){var r=e[n];this._factories.set(r.componentType,r)}}return e.prototype.resolveComponentFactory=function(e){var t=this._factories.get(e);return t||(t=this._parent.resolveComponentFactory(e)),t},e}(),hr=function(){var e=be.wtf;return!(!e||!(Ln=e.trace)||(Fn=Ln.events,0))}(),fr=hr?function(e,t){return void 0===t&&(t=null),Fn.createScope(e,t)}:function(e,t){return ee},mr=hr?function(e,t){return Ln.leaveScope(e,t),t}:function(e,t){return t},vr=hr?function(e,t){return Ln.beginTimeRange(e,t)}:function(e,t){return null},yr=hr?function(e){Ln.endTimeRange(e)}:function(e){return null},gr=function(){function e(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this._watchAngularEvents()}return e.prototype._watchAngularEvents=function(){var e=this;this._ngZone.onUnstable.subscribe({next:function(){e._didWork=!0,e._isZoneStable=!1}}),this._ngZone.runOutsideAngular(function(){e._ngZone.onStable.subscribe({next:function(){ln.assertNotInAngularZone(),i(function(){e._isZoneStable=!0,e._runCallbacksIfReady()})}})})},e.prototype.increasePendingRequestCount=function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount},e.prototype.decreasePendingRequestCount=function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount},e.prototype.isStable=function(){return this._isZoneStable&&0==this._pendingCount&&!this._ngZone.hasPendingMacrotasks},e.prototype._runCallbacksIfReady=function(){var e=this;this.isStable()?i(function(){for(;0!==e._callbacks.length;)e._callbacks.pop()(e._didWork);e._didWork=!1}):this._didWork=!0},e.prototype.whenStable=function(e){this._callbacks.push(e),this._runCallbacksIfReady()},e.prototype.getPendingRequestCount=function(){return this._pendingCount},e.prototype.findBindings=function(e,t,n){return[]},e.prototype.findProviders=function(e,t,n){return[]},e.decorators=[{type:Ee}],e.ctorParameters=function(){return[{type:ln}]},e}(),_r=function(){function e(){this._applications=new Map,br.addToWindow(this)}return e.prototype.registerApplication=function(e,t){this._applications.set(e,t)},e.prototype.getTestability=function(e){return this._applications.get(e)},e.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},e.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},e.prototype.findTestabilityInTree=function(e,t){return void 0===t&&(t=!0),br.findTestabilityInTree(this,e,t)},e.decorators=[{type:Ee}],e.ctorParameters=function(){return[]},e}(),br=new(function(){function e(){}return e.prototype.addToWindow=function(e){},e.prototype.findTestabilityInTree=function(e,t,n){return null},e}()),wr=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},kr=!0,xr=!1,Cr=function(){return function(e,t){this.name=e,this.token=t}}(),Sr=function(){function e(){}return e.prototype.bootstrapModuleFactory=function(e){},e.prototype.bootstrapModule=function(e,t){},e.prototype.onDestroy=function(e){},e.prototype.injector=function(){},e.prototype.destroy=function(){},e.prototype.destroyed=function(){},e}(),Er=function(e){function t(t){e.call(this),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return wr(t,e),t.prototype.onDestroy=function(e){this._destroyListeners.push(e)},Object.defineProperty(t.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0},t.prototype.bootstrapModuleFactory=function(e){return this._bootstrapModuleFactoryWithZone(e,null)},t.prototype._bootstrapModuleFactoryWithZone=function(e,t){var n=this;return t||(t=new ln({enableLongStackTrace:te()})),t.run(function(){var r=zt.resolveAndCreate([{provide:ln,useValue:t}],n.injector),i=e.create(r),o=i.injector.get(Ht,null);if(!o)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.onDestroy(function(){return Wt.remove(n._modules,i)}),t.onError.subscribe({next:function(e){o.handleError(e)}}),ae(o,function(){return i.injector.get(Yt).donePromise.then(function(){return n._moduleDoBootstrap(i),i})})})},t.prototype.bootstrapModule=function(e,t){return void 0===t&&(t=[]),this._bootstrapModuleWithZone(e,t,null)},t.prototype._bootstrapModuleWithZone=function(e,t,n,r){var i=this;void 0===t&&(t=[]);var o=this.injector.get(an).createCompiler(Array.isArray(t)?t:[t]);return r?o.compileModuleAndAllComponentsAsync(e).then(function(e){var t=e.ngModuleFactory,o=e.componentFactories;return r(o),i._bootstrapModuleFactoryWithZone(t,n)}):o.compileModuleAsync(e).then(function(e){return i._bootstrapModuleFactoryWithZone(e,n)})},t.prototype._moduleDoBootstrap=function(e){var t=e.injector.get(Tr);if(e.bootstrapFactories.length>0)e.bootstrapFactories.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module "+u(e.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');e.instance.ngDoBootstrap(t)}this._modules.push(e)},t.decorators=[{type:Ee}],t.ctorParameters=function(){return[{type:ht}]},t}(Sr),Tr=function(){function e(){}return e.prototype.bootstrap=function(e){},e.prototype.tick=function(){},e.prototype.componentTypes=function(){},e.prototype.components=function(){},e.prototype.attachView=function(e){},e.prototype.detachView=function(e){},e.prototype.viewCount=function(){},e}(),Or=function(e){function t(t,n,r,i,o,a,s,u){var c=this;e.call(this),this._zone=t,this._console=n,this._injector=r,this._exceptionHandler=i,this._componentFactoryResolver=o,this._initStatus=a,this._testabilityRegistry=s,this._testability=u,this._bootstrapListeners=[],this._rootComponents=[],this._rootComponentTypes=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._enforceNoNewChanges=te(),this._zone.onMicrotaskEmpty.subscribe({next:function(){c._zone.run(function(){c.tick()})}})}return wr(t,e),t.prototype.attachView=function(e){var t=e.internalView;this._views.push(t),t.attachToAppRef(this)},t.prototype.detachView=function(e){var t=e.internalView;Wt.remove(this._views,t),t.detach()},t.prototype.bootstrap=function(e){var t=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");var n;n=e instanceof sr?e:this._componentFactoryResolver.resolveComponentFactory(e),this._rootComponentTypes.push(n.componentType);var r=n.create(this._injector,[],n.selector);r.onDestroy(function(){t._unloadComponent(r)});var i=r.injector.get(gr,null);return i&&r.injector.get(_r).registerApplication(r.location.nativeElement,i),this._loadComponent(r),te()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),r},t.prototype._loadComponent=function(e){this.attachView(e.hostView),this.tick(),this._rootComponents.push(e),this._injector.get(Jt,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})},t.prototype._unloadComponent=function(e){this.detachView(e.hostView),Wt.remove(this._rootComponents,e)},t.prototype.tick=function(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var e=t._tickScope();try{this._runningTick=!0,this._views.forEach(function(e){return e.ref.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(e){return e.ref.checkNoChanges()})}finally{this._runningTick=!1,mr(e)}},t.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(e){return e.destroy()})},Object.defineProperty(t.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentTypes",{get:function(){return this._rootComponentTypes},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"components",{get:function(){return this._rootComponents},enumerable:!0,configurable:!0}),t._tickScope=fr("ApplicationRef#tick()"),t.decorators=[{type:Ee}],t.ctorParameters=function(){return[{type:ln},{type:$t},{type:ht},{type:Ht},{type:pr},{type:Yt},{type:_r,decorators:[{type:Se}]},{type:gr,decorators:[{type:Se}]}]},t}(Tr),Pr=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},Mr=function(){function e(){}return e.prototype.injector=function(){},e.prototype.componentFactoryResolver=function(){},e.prototype.instance=function(){},e.prototype.destroy=function(){},e.prototype.onDestroy=function(e){},e}(),Ar=function(){function e(e,t){this._injectorClass=e,this._moduleType=t}return Object.defineProperty(e.prototype,"moduleType",{get:function(){return this._moduleType},enumerable:!0,configurable:!0}),e.prototype.create=function(e){e||(e=ht.NULL);var t=new this._injectorClass(e);return t.create(),t},e}(),Dr=new Object,Ir=function(e){function t(t,n,r){e.call(this,n,t.get(pr,pr.NULL)),this.parent=t,this.bootstrapFactories=r,this._destroyListeners=[],this._destroyed=!1}return Pr(t,e),t.prototype.create=function(){this.instance=this.createInternal()},t.prototype.createInternal=function(){},t.prototype.get=function(e,t){if(void 0===t&&(t=pt),e===ht||e===pr)return this;var n=this.getInternal(e,Dr);return n===Dr?this.parent.get(e,t):n},t.prototype.getInternal=function(e,t){},Object.defineProperty(t.prototype,"injector",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentFactoryResolver",{get:function(){return this},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The ng module "+u(this.instance.constructor)+" has already been destroyed.");this._destroyed=!0,this.destroyInternal(),this._destroyListeners.forEach(function(e){return e()})},t.prototype.onDestroy=function(e){this._destroyListeners.push(e)},t.prototype.destroyInternal=function(){},t}(dr),Rr=function(){function e(){}return e.prototype.load=function(e){},e}(),jr=new Map,Nr=function(){function e(){this._dirty=!0,this._results=[],this._emitter=new cn}return Object.defineProperty(e.prototype,"changes",{get:function(){return this._emitter},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._results.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"first",{get:function(){return this._results[0]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"last",{get:function(){return this._results[this.length-1]},enumerable:!0,configurable:!0}),e.prototype.map=function(e){return this._results.map(e)},e.prototype.filter=function(e){return this._results.filter(e)},e.prototype.find=function(e){return this._results.find(e)},e.prototype.reduce=function(e,t){return this._results.reduce(e,t)},e.prototype.forEach=function(e){this._results.forEach(e)},e.prototype.some=function(e){return this._results.some(e)},e.prototype.toArray=function(){return this._results.slice()},e.prototype[h()]=function(){return this._results[h()]()},e.prototype.toString=function(){return this._results.toString()},e.prototype.reset=function(e){this._results=Wt.flatten(e),this._dirty=!1},e.prototype.notifyOnChanges=function(){this._emitter.emit(this)},e.prototype.setDirty=function(){this._dirty=!0},Object.defineProperty(e.prototype,"dirty",{get:function(){return this._dirty},enumerable:!0,configurable:!0}),e}(),Lr=function(){return function(){}}(),Fr={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Vr=function(){function e(e,t){this._compiler=e,this._config=t||Fr}return e.prototype.load=function(e){return this._compiler instanceof rn?this.loadFactory(e):this.loadAndCompile(e)},e.prototype.loadAndCompile=function(e){var t=this,n=e.split("#"),r=n[0],i=n[1];return void 0===i&&(i="default"),System.import(r).then(function(e){return e[i]}).then(function(e){return se(e,r,i)}).then(function(e){return t._compiler.compileModuleAsync(e)})},e.prototype.loadFactory=function(e){var t=e.split("#"),n=t[0],r=t[1],i="NgFactory";return void 0===r&&(r="default",i=""),System.import(this._config.factoryPathPrefix+n+this._config.factoryPathSuffix).then(function(e){return e[r+i]}).then(function(e){return se(e,n,r)})},e.decorators=[{type:Ee}],e.ctorParameters=function(){return[{type:rn},{type:Lr,decorators:[{type:Se}]}]},e}(),zr=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},Ur=function(){function e(){}return e.prototype.elementRef=function(){},e.prototype.createEmbeddedView=function(e){},e}(),Br=function(e){function t(t,n,r){e.call(this),this._parentView=t,this._nodeIndex=n,this._nativeElement=r}return zr(t,e),t.prototype.createEmbeddedView=function(e){var t=this._parentView.createEmbeddedViewInternal(this._nodeIndex);return t.create(e||{}),t.ref},Object.defineProperty(t.prototype,"elementRef",{get:function(){return new sn(this._nativeElement)},enumerable:!0,configurable:!0}),t}(Ur),Hr=function(){function e(){}return e.prototype.element=function(){},e.prototype.injector=function(){},e.prototype.parentInjector=function(){},e.prototype.clear=function(){},e.prototype.get=function(e){},e.prototype.length=function(){},e.prototype.createEmbeddedView=function(e,t,n){},e.prototype.createComponent=function(e,t,n,r){},e.prototype.insert=function(e,t){},e.prototype.move=function(e,t){},e.prototype.indexOf=function(e){},e.prototype.remove=function(e){},e.prototype.detach=function(e){},e}(),qr=function(){function e(e){this._element=e,this._createComponentInContainerScope=fr("ViewContainerRef#createComponent()"),this._insertScope=fr("ViewContainerRef#insert()"),this._removeScope=fr("ViewContainerRef#remove()"),this._detachScope=fr("ViewContainerRef#detach()")}return e.prototype.get=function(e){return this._element.nestedViews[e].ref},Object.defineProperty(e.prototype,"length",{get:function(){var e=this._element.nestedViews;return a(e)?e.length:0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this._element.elementRef},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return this._element.injector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentInjector",{get:function(){return this._element.parentInjector},enumerable:!0,configurable:!0}),e.prototype.createEmbeddedView=function(e,t,n){void 0===t&&(t=null),void 0===n&&(n=-1);var r=e.createEmbeddedView(t);return this.insert(r,n),r},e.prototype.createComponent=function(e,t,n,r){void 0===t&&(t=-1),void 0===n&&(n=null),void 0===r&&(r=null);var i=this._createComponentInContainerScope(),o=n||this._element.parentInjector,a=e.create(o,r);return this.insert(a.hostView,t),mr(i,a)},e.prototype.insert=function(e,t){void 0===t&&(t=-1);var n=this._insertScope();-1==t&&(t=this.length);var r=e;return this._element.attachView(r.internalView,t),mr(n,r)},e.prototype.move=function(e,t){var n=this._insertScope();if(-1!=t){var r=e;return this._element.moveView(r.internalView,t),mr(n,r)}},e.prototype.indexOf=function(e){return this.length?this._element.nestedViews.indexOf(e.internalView):-1},e.prototype.remove=function(e){void 0===e&&(e=-1);var t=this._removeScope();-1==e&&(e=this.length-1),this._element.detachView(e).destroy(),mr(t)},e.prototype.detach=function(e){void 0===e&&(e=-1);var t=this._detachScope();-1==e&&(e=this.length-1);var n=this._element.detachView(e);return mr(t,n.ref)},e.prototype.clear=function(){for(var e=this.length-1;e>=0;e--)this.remove(e)},e}(),Wr=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},Gr=function(e){function t(){e.apply(this,arguments)}return Wr(t,e),t.prototype.destroy=function(){},t.prototype.destroyed=function(){},t.prototype.onDestroy=function(e){},t}(Tn),Yr=function(e){function t(){e.apply(this,arguments)}return Wr(t,e),t.prototype.context=function(){},t.prototype.rootNodes=function(){},t}(Gr),Zr=function(){function e(e,t){this._view=e,this.animationQueue=t,this._view=e,this._originalMode=this._view.cdMode}return Object.defineProperty(e.prototype,"internalView",{get:function(){return this._view},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rootNodes",{get:function(){return this._view.flatRootNodes},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._view.destroyed},enumerable:!0,configurable:!0}),e.prototype.markForCheck=function(){this._view.markPathToRootAsCheckOnce()},e.prototype.detach=function(){this._view.cdMode=Ve.Detached},e.prototype.detectChanges=function(){this._view.detectChanges(!1),this.animationQueue.flush()},e.prototype.checkNoChanges=function(){this._view.detectChanges(!0)},e.prototype.reattach=function(){this._view.cdMode=this._originalMode,this.markForCheck()},e.prototype.onDestroy=function(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)},e.prototype.destroy=function(){this._view.detachAndDestroy()},e}(),Kr=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},Xr=function(){return function(e,t){this.name=e,this.callback=t}}(),Jr=function(){function e(e,t,n){this._debugInfo=n,this.nativeNode=e,t&&t instanceof Qr?t.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(e.prototype,"injector",{get:function(){return this._debugInfo?this._debugInfo.injector:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentInstance",{get:function(){return this._debugInfo?this._debugInfo.component:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._debugInfo?this._debugInfo.context:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"references",{get:function(){return this._debugInfo?this._debugInfo.references:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"providerTokens",{get:function(){return this._debugInfo?this._debugInfo.providerTokens:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"source",{get:function(){return this._debugInfo?this._debugInfo.source:null},enumerable:!0,configurable:!0}),e}(),Qr=function(e){function t(t,n,r){e.call(this,t,n,r),this.properties={},this.attributes={},this.classes={},this.styles={},this.childNodes=[],this.nativeElement=t}return Kr(t,e),t.prototype.addChild=function(e){e&&(this.childNodes.push(e),e.parent=this)},t.prototype.removeChild=function(e){var t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))},t.prototype.insertChildrenAfter=function(e,t){var n=this.childNodes.indexOf(e);if(-1!==n){var r=this.childNodes.slice(0,n+1),i=this.childNodes.slice(n+1);this.childNodes=r.concat(t,i);for(var o=0;o<t.length;++o){var a=t[o];a.parent&&a.parent.removeChild(a),a.parent=this}}},t.prototype.query=function(e){return this.queryAll(e)[0]||null},t.prototype.queryAll=function(e){var t=[];return ue(this,e,t),t},t.prototype.queryAllNodes=function(e){var t=[];return ce(this,e,t),t},Object.defineProperty(t.prototype,"children",{get:function(){return this.childNodes.filter(function(e){return e instanceof t})},enumerable:!0,configurable:!0}),t.prototype.triggerEventHandler=function(e,t){this.listeners.forEach(function(n){n.name==e&&n.callback(t)})},t}(Jr),$r=new Map,ei=re(null,"core",[Er,{provide:Sr,useExisting:Er},{provide:It,useFactory:function(){return Rt},deps:[]},{provide:At,useExisting:It},_r,$t]),ti=new Me("LocaleId"),ni=new Me("Translations"),ri=new Me("TranslationsFormat"),ii=function(){function e(){}return e.decorators=[{type:ot,args:[{providers:[Or,{provide:Tr,useExisting:Or},Yt,rn,Kt,Wn,pn,{provide:wn,useFactory:he},{provide:kn,useFactory:fe},{provide:ti,useFactory:me,deps:[[new Ce(ti),new Se,new Oe]]}]}]}],e.ctorParameters=function(){return[]},e}(),oi="true",ai=function(){function e(e){var t=this;this._players=e,this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this.parentPlayer=null;var n=0,r=this._players.length;0==r?i(function(){return t._onFinish()}):this._players.forEach(function(e){e.parentPlayer=t,e.onDone(function(){++n>=r&&t._onFinish()})})}return e.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])},e.prototype.init=function(){this._players.forEach(function(e){return e.init()})},e.prototype.onStart=function(e){this._onStartFns.push(e)},e.prototype.onDone=function(e){this._onDoneFns.push(e)},e.prototype.hasStarted=function(){return this._started},e.prototype.play=function(){a(this.parentPlayer)||this.init(),this.hasStarted()||(this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[],this._started=!0),this._players.forEach(function(e){return e.play()})},e.prototype.pause=function(){this._players.forEach(function(e){return e.pause()})},e.prototype.restart=function(){this._players.forEach(function(e){return e.restart()})},e.prototype.finish=function(){this._onFinish(),this._players.forEach(function(e){return e.finish()})},e.prototype.destroy=function(){this._destroyed||(this._onFinish(),this._players.forEach(function(e){return e.destroy()}),this._destroyed=!0)},e.prototype.reset=function(){this._players.forEach(function(e){return e.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1},e.prototype.setPosition=function(e){this._players.forEach(function(t){t.setPosition(e)})},e.prototype.getPosition=function(){var e=0;return this._players.forEach(function(t){var n=t.getPosition();e=Math.min(n,e)}),e},Object.defineProperty(e.prototype,"players",{get:function(){return this._players},enumerable:!0,configurable:!0}),e}(),si=function(){return function(e,t){this.offset=e,this.styles=t}}(),ui=function(){function e(){}return e.prototype.onDone=function(e){},e.prototype.onStart=function(e){},e.prototype.init=function(){},e.prototype.hasStarted=function(){},e.prototype.play=function(){},e.prototype.pause=function(){},e.prototype.restart=function(){},e.prototype.finish=function(){},e.prototype.destroy=function(){},e.prototype.reset=function(){},e.prototype.setPosition=function(e){},e.prototype.getPosition=function(){},Object.defineProperty(e.prototype,"parentPlayer",{get:function(){throw new Error("NOT IMPLEMENTED: Base Class")},set:function(e){throw new Error("NOT IMPLEMENTED: Base Class")},enumerable:!0,configurable:!0}),e}(),ci=function(){function e(){var e=this;this._onDoneFns=[],this._onStartFns=[],this._started=!1,this.parentPlayer=null,i(function(){return e._onFinish()})}return e.prototype._onFinish=function(){this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[]},e.prototype.onStart=function(e){this._onStartFns.push(e)},e.prototype.onDone=function(e){this._onDoneFns.push(e)},e.prototype.hasStarted=function(){return this._started},e.prototype.init=function(){},e.prototype.play=function(){this.hasStarted()||(this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]),this._started=!0},e.prototype.pause=function(){},e.prototype.restart=function(){},e.prototype.finish=function(){this._onFinish()},e.prototype.destroy=function(){},e.prototype.reset=function(){},e.prototype.setPosition=function(e){},e.prototype.getPosition=function(){return 0},e}(),li=function(){function e(e){var t=this;this._players=e,this._currentIndex=0,this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this.parentPlayer=null,this._players.forEach(function(e){e.parentPlayer=t}),this._onNext(!1)}return e.prototype._onNext=function(e){var t=this;if(!this._finished)if(0==this._players.length)this._activePlayer=new ci,i(function(){return t._onFinish()});else if(this._currentIndex>=this._players.length)this._activePlayer=new ci,this._onFinish();else{var n=this._players[this._currentIndex++];n.onDone(function(){return t._onNext(!0)}),this._activePlayer=n,e&&n.play()}},e.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])},e.prototype.init=function(){this._players.forEach(function(e){return e.init()})},e.prototype.onStart=function(e){this._onStartFns.push(e)},e.prototype.onDone=function(e){this._onDoneFns.push(e)},e.prototype.hasStarted=function(){return this._started},e.prototype.play=function(){a(this.parentPlayer)||this.init(),this.hasStarted()||(this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[],this._started=!0),this._activePlayer.play()},e.prototype.pause=function(){this._activePlayer.pause()},e.prototype.restart=function(){this.reset(),this._players.length>0&&this._players[0].restart()},e.prototype.reset=function(){this._players.forEach(function(e){return e.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1},e.prototype.finish=function(){this._onFinish(),this._players.forEach(function(e){return e.finish()})},e.prototype.destroy=function(){this._destroyed||(this._onFinish(),this._players.forEach(function(e){return e.destroy()}),this._destroyed=!0,this._activePlayer=new ci)},e.prototype.setPosition=function(e){this._players[0].setPosition(e)},e.prototype.getPosition=function(){return this._players[0].getPosition()},Object.defineProperty(e.prototype,"players",{get:function(){return this._players},enumerable:!0,configurable:!0}),e}(),pi=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},di="*",hi=function(){return function(e,t){this.name=e,this.definitions=t}}(),fi=function(){return function(){}}(),mi=function(e){function t(t,n){e.call(this),this.stateNameExpr=t,this.styles=n}return pi(t,e),t}(fi),vi=function(e){function t(t,n){e.call(this),this.stateChangeExpr=t,this.steps=n}return pi(t,e),t}(fi),yi=function(){return function(){}}(),gi=function(e){function t(t){e.call(this),this.steps=t}return pi(t,e),t}(yi),_i=function(e){function t(t,n){void 0===n&&(n=null),e.call(this),this.styles=t,this.offset=n}return pi(t,e),t}(yi),bi=function(e){function t(t,n){e.call(this),this.timings=t,this.styles=n}return pi(t,e),t}(yi),wi=function(e){function t(){e.call(this)}return pi(t,e),Object.defineProperty(t.prototype,"steps",{get:function(){throw new Error("NOT IMPLEMENTED: Base Class")},enumerable:!0,configurable:!0}),t}(yi),ki=function(e){function t(t){e.call(this),this._steps=t}return pi(t,e),Object.defineProperty(t.prototype,"steps",{get:function(){return this._steps},enumerable:!0,configurable:!0}),t}(wi),xi=function(e){function t(t){e.call(this),this._steps=t}return pi(t,e),Object.defineProperty(t.prototype,"steps",{get:function(){return this._steps},enumerable:!0,configurable:!0}),t}(wi),Ci=function(){return function(e){this.styles=e}}(),Si=function(){return function(e){var t=e.fromState,n=e.toState,r=e.totalTime,i=e.phaseName;this.fromState=t,this.toState=n,this.totalTime=r,this.phaseName=i}}(),Ei=function(){function e(e,t,n,r){this._player=e,this._fromState=t,this._toState=n,this._totalTime=r}return e.prototype._createEvent=function(e){return new Si({fromState:this._fromState,toState:this._toState,totalTime:this._totalTime,phaseName:e})},e.prototype.onStart=function(e){var t=this,n=Zone.current.wrap(function(){return e(t._createEvent("start"))},"player.onStart");this._player.onStart(n)},e.prototype.onDone=function(e){var t=this,n=Zone.current.wrap(function(){return e(t._createEvent("done"))},"player.onDone");this._player.onDone(n)},e}(),Ti=function(){function e(e){this._delegate=e}return e.prototype.renderComponent=function(e){return new Oi(this._delegate.renderComponent(e))},e}(),Oi=function(){function e(e){this._delegate=e}return e.prototype.selectRootElement=function(e,t){var n=this._delegate.selectRootElement(e,t);return pe(new Qr(n,null,t)),n},e.prototype.createElement=function(e,t,n){var r=this._delegate.createElement(e,t,n),i=new Qr(r,le(e),n);return i.name=t,pe(i),r},e.prototype.createViewRoot=function(e){return this._delegate.createViewRoot(e)},e.prototype.createTemplateAnchor=function(e,t){var n=this._delegate.createTemplateAnchor(e,t);return pe(new Jr(n,le(e),t)),n},e.prototype.createText=function(e,t,n){var r=this._delegate.createText(e,t,n);return pe(new Jr(r,le(e),n)),r},e.prototype.projectNodes=function(e,t){var n=le(e);if(a(n)&&n instanceof Qr){var r=n;t.forEach(function(e){r.addChild(le(e))})}this._delegate.projectNodes(e,t)},e.prototype.attachViewAfter=function(e,t){var n=le(e);if(a(n)){var r=n.parent;if(t.length>0&&a(r)){var i=[];t.forEach(function(e){return i.push(le(e))}),r.insertChildrenAfter(n,i)}}this._delegate.attachViewAfter(e,t)},e.prototype.detachView=function(e){e.forEach(function(e){var t=le(e);a(t)&&a(t.parent)&&t.parent.removeChild(t)}),this._delegate.detachView(e)},e.prototype.destroyView=function(e,t){(t=t||[]).forEach(function(e){de(le(e))}),this._delegate.destroyView(e,t)},e.prototype.listen=function(e,t,n){var r=le(e);return a(r)&&r.listeners.push(new Xr(t,n)),this._delegate.listen(e,t,n)},e.prototype.listenGlobal=function(e,t,n){return this._delegate.listenGlobal(e,t,n)},e.prototype.setElementProperty=function(e,t,n){var r=le(e);a(r)&&r instanceof Qr&&(r.properties[t]=n),this._delegate.setElementProperty(e,t,n)},e.prototype.setElementAttribute=function(e,t,n){var r=le(e);a(r)&&r instanceof Qr&&(r.attributes[t]=n),this._delegate.setElementAttribute(e,t,n)},e.prototype.setBindingDebugInfo=function(e,t,n){this._delegate.setBindingDebugInfo(e,t,n)},e.prototype.setElementClass=function(e,t,n){var r=le(e);a(r)&&r instanceof Qr&&(r.classes[t]=n),this._delegate.setElementClass(e,t,n)},e.prototype.setElementStyle=function(e,t,n){var r=le(e);a(r)&&r instanceof Qr&&(r.styles[t]=n),this._delegate.setElementStyle(e,t,n)},e.prototype.invokeElementMethod=function(e,t,n){this._delegate.invokeElementMethod(e,t,n)},e.prototype.setText=function(e,t){this._delegate.setText(e,t)},e.prototype.animate=function(e,t,n,r,i,o,a){return void 0===a&&(a=[]),this._delegate.animate(e,t,n,r,i,o,a)},e}(),Pi={};Pi.HOST=0,Pi.COMPONENT=1,Pi.EMBEDDED=2,Pi[Pi.HOST]="HOST",Pi[Pi.COMPONENT]="COMPONENT",Pi[Pi.EMBEDDED]="EMBEDDED";var Mi=function(){return function(e,t,n){this.providerTokens=e,this.componentToken=t,this.refTokens=n}}(),Ai=function(){function e(e,t,n,r){this._view=e,this._nodeIndex=t,this._tplRow=n,this._tplCol=r}return Object.defineProperty(e.prototype,"_staticNodeInfo",{get:function(){return a(this._nodeIndex)?this._view.staticNodeDebugInfos[this._nodeIndex]:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"component",{get:function(){var e=this._staticNodeInfo;return a(e)&&a(e.componentToken)?this.injector.get(e.componentToken):null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentRenderElement",{get:function(){for(var e=this._view;a(e.parentView)&&e.type!==Pi.COMPONENT;)e=e.parentView;return e.parentElement},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return this._view.injector(this._nodeIndex)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"renderNode",{get:function(){return a(this._nodeIndex)&&this._view.allNodes?this._view.allNodes[this._nodeIndex]:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"providerTokens",{get:function(){var e=this._staticNodeInfo;return a(e)?e.providerTokens:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"source",{get:function(){return this._view.componentType.templateUrl+":"+this._tplRow+":"+this._tplCol},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"references",{get:function(){var e=this,t={},n=this._staticNodeInfo;if(a(n)){var r=n.refTokens;Object.keys(r).forEach(function(n){var i,o=r[n];i=s(o)?e._view.allNodes?e._view.allNodes[e._nodeIndex]:null:e._view.injectorGet(o,e._nodeIndex,null),t[n]=i})}return t},enumerable:!0,configurable:!0}),e}(),Di=function(){function e(){this._map=new Map,this._allPlayers=[]}return e.prototype.find=function(e,t){var n=this._map.get(e);if(a(n))return n[t]},e.prototype.findAllPlayersByElement=function(e){var t=this._map.get(e);return t?Object.keys(t).map(function(e){return t[e]}):[]},e.prototype.set=function(e,t,n){var r=this._map.get(e);a(r)||(r={}),a(r[t])&&this.remove(e,t),r[t]=n,this._allPlayers.push(n),this._map.set(e,r)},e.prototype.getAllPlayers=function(){return this._allPlayers},e.prototype.remove=function(e,t,n){void 0===n&&(n=null);var r=this._map.get(e);if(r){var i=r[t];if(!n||i===n){delete r[t];var o=this._allPlayers.indexOf(i);this._allPlayers.splice(o,1),0===Object.keys(r).length&&this._map.delete(e)}}},e}(),Ii=function(){function e(e){this._animationQueue=e,this._players=new Di}return e.prototype.onAllActiveAnimationsDone=function(e){var t=this._players.getAllPlayers();t.length?new ai(t).onDone(function(){return e()}):e()},e.prototype.queueAnimation=function(e,t,n){var r=this;this._animationQueue.enqueue(n),this._players.set(e,t,n),n.onDone(function(){return r._players.remove(e,t,n)})},e.prototype.getAnimationPlayers=function(e,t){void 0===t&&(t=null);var n=[];if(t){var r=this._players.find(e,t);r&&ge(r,n)}else this._players.findAllPlayersByElement(e).forEach(function(e){return ge(e,n)});return n},e}(),Ri=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},ji=function(e){function t(t,n){e.call(this),this._view=t,this._nodeIndex=n}return Ri(t,e),t.prototype.get=function(e,t){return void 0===t&&(t=pt),this._view.injectorGet(e,this._nodeIndex,t)},t}(ht),Ni=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},Li=fr("AppView#check(ascii id)"),Fi=new Object,Vi=new Object,zi=function(){function e(e,t,n,r,i,o,a,s,u){void 0===u&&(u=null),this.clazz=e,this.componentType=t,this.type=n,this.viewUtils=r,this.parentView=i,this.parentIndex=o,this.parentElement=a,this.cdMode=s,this.declaredViewContainer=u,this.numberOfChecks=0,this.ref=new Zr(this,r.animationQueue),n===Pi.COMPONENT||n===Pi.HOST?this.renderer=r.renderComponent(t):this.renderer=i.renderer,this._directRenderer=this.renderer.directRenderer}return Object.defineProperty(e.prototype,"animationContext",{get:function(){return this._animationContext||(this._animationContext=new Ii(this.viewUtils.animationQueue)),this._animationContext},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"destroyed",{get:function(){return this.cdMode===Ve.Destroyed},enumerable:!0,configurable:!0}),e.prototype.create=function(e){return this.context=e,this.createInternal(null)},e.prototype.createHostView=function(e,t,n){return this.context=Fi,this._hasExternalHostElement=a(e),this._hostInjector=t,this._hostProjectableNodes=n,this.createInternal(e)},e.prototype.createInternal=function(e){return null},e.prototype.createEmbeddedViewInternal=function(e){return null},e.prototype.init=function(e,t,n){this.lastRootNode=e,this.allNodes=t,this.disposables=n,this.type===Pi.COMPONENT&&this.dirtyParentQueriesInternal()},e.prototype.injectorGet=function(e,t,n){void 0===n&&(n=pt);for(var r=Vi,i=this;r===Vi;)a(t)&&(r=i.injectorGetInternal(e,t,Vi)),r===Vi&&i.type===Pi.HOST&&(r=i._hostInjector.get(e,n)),t=i.parentIndex,i=i.parentView;return r},e.prototype.injectorGetInternal=function(e,t,n){return n},e.prototype.injector=function(e){return new ji(this,e)},e.prototype.detachAndDestroy=function(){this.viewContainer?this.viewContainer.detachView(this.viewContainer.nestedViews.indexOf(this)):this.appRef?this.appRef.detachView(this.ref):this._hasExternalHostElement&&this.detach(),this.destroy()},e.prototype.destroy=function(){var e=this;if(this.cdMode!==Ve.Destroyed){var t=this.type===Pi.COMPONENT?this.parentElement:null;if(this.disposables)for(var n=0;n<this.disposables.length;n++)this.disposables[n]();this.destroyInternal(),this.dirtyParentQueriesInternal(),this._animationContext?this._animationContext.onAllActiveAnimationsDone(function(){return e.renderer.destroyView(t,e.allNodes)}):this.renderer.destroyView(t,this.allNodes),this.cdMode=Ve.Destroyed}},e.prototype.destroyInternal=function(){},e.prototype.detachInternal=function(){},e.prototype.detach=function(){var e=this;if(this.detachInternal(),this._animationContext?this._animationContext.onAllActiveAnimationsDone(function(){return e._renderDetach()}):this._renderDetach(),this.declaredViewContainer&&this.declaredViewContainer!==this.viewContainer&&this.declaredViewContainer.projectedViews){var t=this.declaredViewContainer.projectedViews,n=t.indexOf(this);n>=t.length-1?t.pop():t.splice(n,1)}this.appRef=null,this.viewContainer=null,this.dirtyParentQueriesInternal()},e.prototype._renderDetach=function(){this._directRenderer?this.visitRootNodesInternal(this._directRenderer.remove,null):this.renderer.detachView(this.flatRootNodes)},e.prototype.attachToAppRef=function(e){if(this.viewContainer)throw new Error("This view is already attached to a ViewContainer!");this.appRef=e,this.dirtyParentQueriesInternal()},e.prototype.attachAfter=function(e,t){if(this.appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._renderAttach(e,t),this.viewContainer=e,this.declaredViewContainer&&this.declaredViewContainer!==e&&(this.declaredViewContainer.projectedViews||(this.declaredViewContainer.projectedViews=[]),this.declaredViewContainer.projectedViews.push(this)),this.dirtyParentQueriesInternal()},e.prototype.moveAfter=function(e,t){this._renderAttach(e,t),this.dirtyParentQueriesInternal()},e.prototype._renderAttach=function(e,t){var n=t?t.lastRootNode:e.nativeElement;if(this._directRenderer){var r=this._directRenderer.nextSibling(n);if(r)this.visitRootNodesInternal(this._directRenderer.insertBefore,r);else{var i=this._directRenderer.parentElement(n);i&&this.visitRootNodesInternal(this._directRenderer.appendChild,i)}}else this.renderer.attachViewAfter(n,this.flatRootNodes)},Object.defineProperty(e.prototype,"changeDetectorRef",{get:function(){return this.ref},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"flatRootNodes",{get:function(){var e=[];return this.visitRootNodesInternal(Y,e),e},enumerable:!0,configurable:!0}),e.prototype.projectNodes=function(e,t){if(this._directRenderer)this.visitProjectedNodes(t,this._directRenderer.appendChild,e);else{var n=[];this.visitProjectedNodes(t,Y,n),this.renderer.projectNodes(e,n)}},e.prototype.visitProjectedNodes=function(e,t,n){switch(this.type){case Pi.EMBEDDED:this.parentView.visitProjectedNodes(e,t,n);break;case Pi.COMPONENT:if(this.parentView.type===Pi.HOST)for(var r=this.parentView._hostProjectableNodes[e]||[],i=0;i<r.length;i++)t(r[i],n);else this.parentView.visitProjectableNodesInternal(this.parentIndex,e,t,n)}},e.prototype.visitRootNodesInternal=function(e,t){},e.prototype.visitProjectableNodesInternal=function(e,t,n,r){},e.prototype.dirtyParentQueriesInternal=function(){},e.prototype.internalDetectChanges=function(e){this.cdMode!==Ve.Detached&&this.detectChanges(e)},e.prototype.detectChanges=function(e){var t=Li(this.clazz);this.cdMode!==Ve.Checked&&this.cdMode!==Ve.Errored&&(this.cdMode===Ve.Destroyed&&this.throwDestroyedError("detectChanges"),this.detectChangesInternal(e),this.cdMode===Ve.CheckOnce&&(this.cdMode=Ve.Checked),this.numberOfChecks++,mr(t))},e.prototype.detectChangesInternal=function(e){},e.prototype.markAsCheckOnce=function(){this.cdMode=Ve.CheckOnce},e.prototype.markPathToRootAsCheckOnce=function(){for(var e=this;a(e)&&e.cdMode!==Ve.Detached;)e.cdMode===Ve.Checked&&(e.cdMode=Ve.CheckOnce),e=e.type===Pi.COMPONENT?e.parentView:e.viewContainer?e.viewContainer.parentView:null},e.prototype.eventHandler=function(e){return e},e.prototype.throwDestroyedError=function(e){throw new qn(e)},e}(),Ui=function(e){function t(t,n,r,i,o,a,s,u,c,l){void 0===l&&(l=null),e.call(this,t,n,r,i,o,a,s,u,l),this.staticNodeDebugInfos=c,this._currentDebugContext=null}return Ni(t,e),t.prototype.create=function(t){this._resetDebug();try{return e.prototype.create.call(this,t)}catch(e){throw this._rethrowWithContext(e),e}},t.prototype.createHostView=function(t,n,r){void 0===r&&(r=null),this._resetDebug();try{return e.prototype.createHostView.call(this,t,n,r)}catch(e){throw this._rethrowWithContext(e),e}},t.prototype.injectorGet=function(t,n,r){this._resetDebug();try{return e.prototype.injectorGet.call(this,t,n,r)}catch(e){throw this._rethrowWithContext(e),e}},t.prototype.detach=function(){this._resetDebug();try{e.prototype.detach.call(this)}catch(e){throw this._rethrowWithContext(e),e}},t.prototype.destroy=function(){this._resetDebug();try{e.prototype.destroy.call(this)}catch(e){throw this._rethrowWithContext(e),e}},t.prototype.detectChanges=function(t){this._resetDebug();try{e.prototype.detectChanges.call(this,t)}catch(e){throw this._rethrowWithContext(e),e}},t.prototype._resetDebug=function(){this._currentDebugContext=null},t.prototype.debug=function(e,t,n){return this._currentDebugContext=new Ai(this,e,t,n)},t.prototype._rethrowWithContext=function(e){if(!(e instanceof Hn)&&(e instanceof Bn||(this.cdMode=Ve.Errored),a(this._currentDebugContext)))throw new Hn(e,this._currentDebugContext)},t.prototype.eventHandler=function(t){var n=this,r=e.prototype.eventHandler.call(this,t);return function(e,t){n._resetDebug();try{return r.call(n,e,t)}catch(e){throw n._rethrowWithContext(e),e}}},t}(zi),Bi=function(){function e(e,t,n,r){this.index=e,this.parentIndex=t,this.parentView=n,this.nativeElement=r}return Object.defineProperty(e.prototype,"elementRef",{get:function(){return new sn(this.nativeElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"vcRef",{get:function(){return new qr(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentInjector",{get:function(){return this.parentView.injector(this.parentIndex)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return this.parentView.injector(this.index)},enumerable:!0,configurable:!0}),e.prototype.detectChangesInNestedViews=function(e){if(this.nestedViews)for(var t=0;t<this.nestedViews.length;t++)this.nestedViews[t].detectChanges(e)},e.prototype.destroyNestedViews=function(){if(this.nestedViews)for(var e=0;e<this.nestedViews.length;e++)this.nestedViews[e].destroy()},e.prototype.visitNestedViewRootNodes=function(e,t){if(this.nestedViews)for(var n=0;n<this.nestedViews.length;n++)this.nestedViews[n].visitRootNodesInternal(e,t)},e.prototype.mapNestedViews=function(e,t){var n=[];if(this.nestedViews)for(i=0;i<this.nestedViews.length;i++){var r=this.nestedViews[i];r.clazz===e&&n.push(t(r))}if(this.projectedViews)for(var i=0;i<this.projectedViews.length;i++){var o=this.projectedViews[i];o.clazz===e&&n.push(t(o))}return n},e.prototype.moveView=function(e,t){var n=this.nestedViews.indexOf(e);if(e.type===Pi.COMPONENT)throw new Error("Component views can't be moved!");var r=this.nestedViews;null==r&&(r=[],this.nestedViews=r),r.splice(n,1),r.splice(t,0,e);var i=t>0?r[t-1]:null;e.moveAfter(this,i)},e.prototype.attachView=function(e,t){if(e.type===Pi.COMPONENT)throw new Error("Component views can't be moved!");var n=this.nestedViews;null==n&&(n=[],this.nestedViews=n),t>=n.length?n.push(e):n.splice(t,0,e);var r=t>0?n[t-1]:null;e.attachAfter(this,r)},e.prototype.detachView=function(e){var t=this.nestedViews[e];if(e>=this.nestedViews.length-1?this.nestedViews.pop():this.nestedViews.splice(e,1),t.type===Pi.COMPONENT)throw new Error("Component views can't be moved!");return t.detach(),t},e}(),Hi={isDefaultChangeDetectionStrategy:function(e){return s(e)||e===Fe.Default},ChangeDetectorStatus:Ve,constructDependencies:R,LifecycleHooks:Ye,LIFECYCLE_HOOKS_VALUES:Ze,ReflectorReader:At,CodegenComponentFactoryResolver:dr,ComponentRef_:ar,ViewContainer:Bi,AppView:zi,DebugAppView:Ui,NgModuleInjector:Ir,registerModuleFactory:function(e,t){var n=jr.get(e);if(n)throw new Error("Duplicate module registered for "+e+" - "+n.moduleType.name+" vs "+t.moduleType.name);jr.set(e,t)},ViewType:Pi,view_utils:rr,ViewMetadata:st,DebugContext:Ai,StaticNodeDebugInfo:Mi,devModeEqual:G,UNINITIALIZED:xn,ValueUnwrapper:Sn,RenderDebugInfo:In,TemplateRef_:Br,ReflectionCapabilities:Mt,makeDecorator:g,DebugDomRootRenderer:Ti,Console:$t,reflector:Rt,Reflector:It,NoOpAnimationPlayer:ci,AnimationPlayer:ui,AnimationSequencePlayer:li,AnimationGroupPlayer:ai,AnimationKeyframe:si,prepareFinalAnimationStyles:function(e,t,n){void 0===n&&(n=null);var r={};return Object.keys(t).forEach(function(e){var i=t[e];r[e]=i==di?n:i.toString()}),Object.keys(e).forEach(function(e){a(r[e])||(r[e]=n)}),r},balanceAnimationKeyframes:function(e,t,n){var r=n.length-1,i=n[0],o=ye(i.styles.styles),s={},u=!1;Object.keys(e).forEach(function(t){var n=e[t];o[t]||(o[t]=n,s[t]=n,u=!0)});var c=qt.merge({},o),l=n[r];l.styles.styles.unshift(t);var p=ye(l.styles.styles),d={},h=!1;return Object.keys(c).forEach(function(e){a(p[e])||(d[e]=di,h=!0)}),h&&l.styles.styles.push(d),Object.keys(p).forEach(function(e){a(o[e])||(s[e]=di,u=!0)}),u&&i.styles.styles.push(s),ve(e,[t]),n},flattenStyles:ye,clearStyles:function(e){var t={};return Object.keys(e).forEach(function(e){t[e]=null}),t},renderStyles:function(e,t,n){Object.keys(n).forEach(function(r){t.setElementStyle(e,r,n[r])})},collectAndResolveStyles:ve,APP_ID_RANDOM_PROVIDER:Kt,AnimationStyles:Ci,ANY_STATE:"*",DEFAULT_STATE:"*",EMPTY_STATE:"void",FILL_STYLE_FLAG:oi,ComponentStillLoadingError:tn,isPromise:B,isObservable:function(e){return!(!e||!e[t.$$observable])},AnimationTransition:Ei};e.createPlatform=ne,e.assertPlatform=ie,e.destroyPlatform=function(){Vn&&!Vn.destroyed&&Vn.destroy()},e.getPlatform=oe,e.PlatformRef=Sr,e.ApplicationRef=Tr,e.enableProdMode=function(){if(xr)throw new Error("Cannot enable prod mode after platform setup.");kr=!1},e.isDevMode=te,e.createPlatformFactory=re,e.NgProbeToken=Cr,e.APP_ID=Zt,e.PACKAGE_ROOT_URL=Qt,e.PLATFORM_INITIALIZER=Xt,e.APP_BOOTSTRAP_LISTENER=Jt,e.APP_INITIALIZER=Gt,e.ApplicationInitStatus=Yt,e.DebugElement=Qr,e.DebugNode=Jr,e.asNativeElements=function(e){return e.map(function(e){return e.nativeElement})},e.getDebugNode=le,e.Testability=gr,e.TestabilityRegistry=_r,e.setTestabilityGetter=function(e){br=e},e.TRANSLATIONS=ni,e.TRANSLATIONS_FORMAT=ri,e.LOCALE_ID=ti,e.ApplicationModule=ii,e.wtfCreateScope=fr,e.wtfLeave=mr,e.wtfStartTimeRange=vr,e.wtfEndTimeRange=yr,e.Type=Ot,e.EventEmitter=cn,e.ErrorHandler=Ht,e.AnimationTransitionEvent=Si,e.AnimationPlayer=ui,e.AnimationStyles=Ci,e.AnimationKeyframe=si,e.Sanitizer=zn,e.SecurityContext=Nn,e.ANALYZE_FOR_ENTRY_COMPONENTS=Ae,e.Attribute=De,e.ContentChild=je,e.ContentChildren=Re,e.Query=Ie,e.ViewChild=Le,e.ViewChildren=Ne,e.Component=Ue,e.Directive=ze,e.HostBinding=We,e.HostListener=Ge,e.Input=He,e.Output=qe,e.Pipe=Be,e.AfterContentChecked=et,e.AfterContentInit=$e,e.AfterViewChecked=nt,e.AfterViewInit=tt,e.DoCheck=Je,e.OnChanges=Ke,e.OnDestroy=Qe,e.OnInit=Xe,e.CUSTOM_ELEMENTS_SCHEMA=rt,e.NO_ERRORS_SCHEMA=it,e.NgModule=ot,e.ViewEncapsulation=at,e.Version=ut,e.VERSION=ct,e.Class=y,e.forwardRef=k,e.resolveForwardRef=x,e.Injector=ht,e.ReflectiveInjector=zt,e.ResolvedReflectiveFactory=Ft,e.ReflectiveKey=Et,e.OpaqueToken=Me,e.Inject=Ce,e.Optional=Se,e.Injectable=Ee,e.Self=Te,e.SkipSelf=Oe,e.Host=Pe,e.NgZone=ln,e.RenderComponentType=Dn,e.Renderer=Rn,e.RootRenderer=jn,e.COMPILER_OPTIONS=on,e.Compiler=rn,e.CompilerFactory=an,e.ModuleWithComponentFactories=nn,e.ComponentFactory=sr,e.ComponentRef=or,e.ComponentFactoryResolver=pr,e.ElementRef=sn,e.NgModuleFactory=Ar,e.NgModuleRef=Mr,e.NgModuleFactoryLoader=Rr,e.getModuleFactory=function(e){var t=jr.get(e);if(!t)throw new Error("No module with ID "+e+" loaded");return t},e.QueryList=Nr,e.SystemJsNgModuleLoader=Vr,e.SystemJsNgModuleLoaderConfig=Lr,e.TemplateRef=Ur,e.ViewContainerRef=Hr,e.EmbeddedViewRef=Yr,e.ViewRef=Gr,e.ChangeDetectionStrategy=Fe,e.ChangeDetectorRef=Tn,e.CollectionChangeRecord=mn,e.DefaultIterableDiffer=fn,e.IterableDiffers=wn,e.KeyValueChangeRecord=bn,e.KeyValueDiffers=kn,e.SimpleChange=En,e.WrappedValue=Cn,e.platformCore=ei,e.__core_private__=Hi,e.AUTO_STYLE=di,e.AnimationEntryMetadata=hi,e.AnimationStateMetadata=fi,e.AnimationStateDeclarationMetadata=mi,e.AnimationStateTransitionMetadata=vi,e.AnimationMetadata=yi,e.AnimationKeyframesSequenceMetadata=gi,e.AnimationStyleMetadata=_i,e.AnimationAnimateMetadata=bi,e.AnimationWithStepsMetadata=wi,e.AnimationSequenceMetadata=ki,e.AnimationGroupMetadata=xi,e.animate=function(e,t){void 0===t&&(t=null);var n=t;return a(n)||(n=new _i([{}],1)),new bi(e,n)},e.group=function(e){return new xi(e)},e.sequence=function(e){return new ki(e)},e.style=function(e){var t,n=null;return"string"==typeof e?t=[e]:(t=Array.isArray(e)?e:[e]).forEach(function(e){var t=e.offset;a(t)&&(n=null==n?parseFloat(t):n)}),new _i(t,n)},e.state=function(e,t){return new mi(e,t)},e.keyframes=function(e){return new gi(e)},e.transition=function(e,t){var n=Array.isArray(t)?new ki(t):t;return new vi(e,n)},e.trigger=function(e,t){return new hi(e,t)}}),function(i,o){"object"==typeof n&&void 0!==r?o(n,t("@angular/common"),t("@angular/core")):e.registerDynamic("e",["1b","c"],!1,function(e,t,n){return"function"==typeof o?o.call(t,t,e("1b"),e("c")):o})}(0,function(e,t,n){"use strict";function r(e){return null!=e}function i(e){return null==e}function o(e){if("string"==typeof e)return e;if(null==e)return""+e;if(e.overriddenName)return""+e.overriddenName;if(e.name)return""+e.name;var t=e.toString(),n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function a(e,t,n){for(var r=t.split("."),i=e;r.length>1;){var o=r.shift();i=i.hasOwnProperty(o)&&null!=i[o]?i[o]:i[o]={}}void 0!==i&&null!==i||(i={}),i[r.shift()]=n}function s(){return K}function u(e){K||(K=e)}function c(e,t){return s().getComputedStyle(e)[t]}function l(e){var t={};return Object.keys(e).forEach(function(n){"offset"!=n&&(t[n]=e[n])}),t}function p(e,t){var n={};return e.styles.forEach(function(e){Object.keys(e).forEach(function(t){n[t]=e[t]})}),Object.keys(t).forEach(function(e){r(n[e])||(n[e]=t[e])}),n}function d(e){return e instanceof J}function h(){return ae||(ae=document.querySelector("base"))?ae.getAttribute("href"):null}function f(e){return Z||(Z=document.createElement("a")),Z.setAttribute("href",e),"/"===Z.pathname.charAt(0)?Z.pathname:"/"+Z.pathname}function m(e,t){t=encodeURIComponent(t);for(var n=0,r=e.split(";");n<r.length;n++){var i=r[n],o=i.indexOf("="),a=-1==o?[i,""]:[i.slice(0,o),i.slice(o+1)],s=a[0],u=a[1];if(s.trim()===t)return decodeURIComponent(u)}return null}function v(){return!!window.history.pushState}function y(e,t){var n=e.parentNode;if(t.length>0&&n){var r=e.nextSibling;if(r)for(i=0;i<t.length;i++)n.insertBefore(t[i],r);else for(var i=0;i<t.length;i++)n.appendChild(t[i])}}function g(e,t){for(var n=0;n<t.length;n++)e.appendChild(t[n])}function _(e){return function(t){!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}function b(e){return Oe.replace(Ee,e)}function w(e){return Te.replace(Ee,e)}function k(e,t,n){for(var r=0;r<t.length;r++){var i=t[r];Array.isArray(i)?k(e,i,n):(i=i.replace(Ee,e),n.push(i))}return n}function x(e){return":"===e[0]}function C(e){var t=e.match(Pe);return[t[1],t[2]]}function S(e){return n.getDebugNode(e)}function E(e,t){return s().setGlobalVar(Ae,S),s().setGlobalVar(De,pe.merge(Me,T(t||[]))),new H(e)}function T(e){return e.reduce(function(e,t){return e[t.name]=t.token,e},{})}function O(e){return(e=String(e)).match(Ge)||e.match(Ye)?e:(n.isDevMode()&&s().log("WARNING: sanitizing unsafe URL value "+e+" (see http://g.co/ng/security#xss)"),"unsafe:"+e)}function P(e){return(e=String(e)).split(",").map(function(e){return O(e.trim())}).join(", ")}function M(){if(Ze)return Ze;var e=(Ke=s()).createElement("template");if("content"in e)return e;var t=Ke.createHtmlDocument();if(null==(Ze=Ke.querySelector(t,"body"))){var n=Ke.createElement("html",t);Ze=Ke.createElement("body",t),Ke.appendChild(n,Ze),Ke.appendChild(t,n)}return Ze}function A(e){for(var t={},n=0,r=e.split(",");n<r.length;n++)t[r[n]]=!0;return t}function D(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];for(var n={},r=0,i=e;r<i.length;r++){var o=i[r];for(var a in o)o.hasOwnProperty(a)&&(n[a]=!0)}return n}function I(e){return e.replace(/&/g,"&amp;").replace(ut,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(ct,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function R(e){Ke.attributeMap(e).forEach(function(t,n){"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||Ke.removeAttribute(e,n)});for(var t=0,n=Ke.childNodesAsList(e);t<n.length;t++){var r=n[t];Ke.isElementNode(r)&&R(r)}}function j(e){try{var t=M(),r=e?String(e):"",i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,Ke.setInnerHTML(t,r),Ke.defaultDoc().documentMode&&R(t),o=Ke.getInnerHTML(t)}while(r!==o);for(var a=new st,s=a.sanitizeChildren(Ke.getTemplateContent(t)||t),u=Ke.getTemplateContent(t)||t,c=0,l=Ke.childNodesAsList(u);c<l.length;c++){var p=l[c];Ke.removeChild(u,p)}return n.isDevMode()&&a.sanitizedSomething&&Ke.log("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),s}catch(e){throw Ze=null,e}}function N(e){for(var t=!0,n=!0,r=0;r<e.length;r++){var i=e.charAt(r);"'"===i&&n?t=!t:'"'===i&&t&&(n=!n)}return t&&n}function L(e){if(!(e=String(e).trim()))return"";var t=e.match(pt);return t&&O(t[1])===t[1]||e.match(lt)&&N(e)?e:(n.isDevMode()&&s().log("WARNING: sanitizing unsafe style value "+e+" (see http://g.co/ng/security#xss)."),"unsafe")}function F(){oe.makeCurrent(),ce.init()}function V(){return new n.ErrorHandler}function z(){return s().defaultDoc()}function U(){return s().supportsWebAnimation()?new Q:G.NOOP}var B,H=n.__core_private__.DebugDomRootRenderer,q=n.__core_private__.NoOpAnimationPlayer,W=function(){function e(){}return e.prototype.animate=function(e,t,n,r,i,o,a){return void 0===a&&(a=[]),new q},e}(),G=function(){function e(){}return e.prototype.animate=function(e,t,n,r,i,o,a){},e.NOOP=new W,e}(),Y=B="undefined"==typeof window?"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:global:window;Y.assert=function(e){};var Z,K=null,X=function(){function e(){this.resourceLoaderType=null}return e.prototype.hasProperty=function(e,t){},e.prototype.setProperty=function(e,t,n){},e.prototype.getProperty=function(e,t){},e.prototype.invoke=function(e,t,n){},e.prototype.logError=function(e){},e.prototype.log=function(e){},e.prototype.logGroup=function(e){},e.prototype.logGroupEnd=function(){},Object.defineProperty(e.prototype,"attrToPropMap",{get:function(){return this._attrToPropMap},set:function(e){this._attrToPropMap=e},enumerable:!0,configurable:!0}),e.prototype.parse=function(e){},e.prototype.query=function(e){},e.prototype.querySelector=function(e,t){},e.prototype.querySelectorAll=function(e,t){},e.prototype.on=function(e,t,n){},e.prototype.onAndCancel=function(e,t,n){},e.prototype.dispatchEvent=function(e,t){},e.prototype.createMouseEvent=function(e){},e.prototype.createEvent=function(e){},e.prototype.preventDefault=function(e){},e.prototype.isPrevented=function(e){},e.prototype.getInnerHTML=function(e){},e.prototype.getTemplateContent=function(e){},e.prototype.getOuterHTML=function(e){},e.prototype.nodeName=function(e){},e.prototype.nodeValue=function(e){},e.prototype.type=function(e){},e.prototype.content=function(e){},e.prototype.firstChild=function(e){},e.prototype.nextSibling=function(e){},e.prototype.parentElement=function(e){},e.prototype.childNodes=function(e){},e.prototype.childNodesAsList=function(e){},e.prototype.clearNodes=function(e){},e.prototype.appendChild=function(e,t){},e.prototype.removeChild=function(e,t){},e.prototype.replaceChild=function(e,t,n){},e.prototype.remove=function(e){},e.prototype.insertBefore=function(e,t){},e.prototype.insertAllBefore=function(e,t){},e.prototype.insertAfter=function(e,t){},e.prototype.setInnerHTML=function(e,t){},e.prototype.getText=function(e){},e.prototype.setText=function(e,t){},e.prototype.getValue=function(e){},e.prototype.setValue=function(e,t){},e.prototype.getChecked=function(e){},e.prototype.setChecked=function(e,t){},e.prototype.createComment=function(e){},e.prototype.createTemplate=function(e){},e.prototype.createElement=function(e,t){},e.prototype.createElementNS=function(e,t,n){},e.prototype.createTextNode=function(e,t){},e.prototype.createScriptTag=function(e,t,n){},e.prototype.createStyleElement=function(e,t){},e.prototype.createShadowRoot=function(e){},e.prototype.getShadowRoot=function(e){},e.prototype.getHost=function(e){},e.prototype.getDistributedNodes=function(e){},e.prototype.clone=function(e){},e.prototype.getElementsByClassName=function(e,t){},e.prototype.getElementsByTagName=function(e,t){},e.prototype.classList=function(e){},e.prototype.addClass=function(e,t){},e.prototype.removeClass=function(e,t){},e.prototype.hasClass=function(e,t){},e.prototype.setStyle=function(e,t,n){},e.prototype.removeStyle=function(e,t){},e.prototype.getStyle=function(e,t){},e.prototype.hasStyle=function(e,t,n){},e.prototype.tagName=function(e){},e.prototype.attributeMap=function(e){},e.prototype.hasAttribute=function(e,t){},e.prototype.hasAttributeNS=function(e,t,n){},e.prototype.getAttribute=function(e,t){},e.prototype.getAttributeNS=function(e,t,n){},e.prototype.setAttribute=function(e,t,n){},e.prototype.setAttributeNS=function(e,t,n,r){},e.prototype.removeAttribute=function(e,t){},e.prototype.removeAttributeNS=function(e,t,n){},e.prototype.templateAwareRoot=function(e){},e.prototype.createHtmlDocument=function(){},e.prototype.defaultDoc=function(){},e.prototype.getBoundingClientRect=function(e){},e.prototype.getTitle=function(){},e.prototype.setTitle=function(e){},e.prototype.elementMatches=function(e,t){},e.prototype.isTemplateElement=function(e){},e.prototype.isTextNode=function(e){},e.prototype.isCommentNode=function(e){},e.prototype.isElementNode=function(e){},e.prototype.hasShadowRoot=function(e){},e.prototype.isShadowRoot=function(e){},e.prototype.importIntoDoc=function(e){},e.prototype.adoptNode=function(e){},e.prototype.getHref=function(e){},e.prototype.getEventKey=function(e){},e.prototype.resolveAndSetHref=function(e,t,n){},e.prototype.supportsDOMEvents=function(){},e.prototype.supportsNativeShadowDOM=function(){},e.prototype.getGlobalEventTarget=function(e){},e.prototype.getHistory=function(){},e.prototype.getLocation=function(){},e.prototype.getBaseHref=function(){},e.prototype.resetBaseElement=function(){},e.prototype.getUserAgent=function(){},e.prototype.setData=function(e,t,n){},e.prototype.getComputedStyle=function(e){},e.prototype.getData=function(e,t){},e.prototype.setGlobalVar=function(e,t){},e.prototype.supportsWebAnimation=function(){},e.prototype.performanceNow=function(){},e.prototype.getAnimationPrefix=function(){},e.prototype.getTransitionEnd=function(){},e.prototype.supportsAnimation=function(){},e.prototype.supportsCookies=function(){},e.prototype.getCookie=function(e){},e.prototype.setCookie=function(e,t){},e}(),J=function(){function e(e,t,n,r){var i=this;void 0===r&&(r=[]),this.element=e,this.keyframes=t,this.options=n,this._onDoneFns=[],this._onStartFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.parentPlayer=null,this._duration=n.duration,this.previousStyles={},r.forEach(function(e){var t=e._captureStyles();Object.keys(t).forEach(function(e){return i.previousStyles[e]=t[e]})})}return e.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])},e.prototype.init=function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes.map(function(t){var r={};return Object.keys(t).forEach(function(i,o){var a=t[i];a==n.AUTO_STYLE&&(a=c(e.element,i)),void 0!=a&&(r[i]=a)}),r}),i=Object.keys(this.previousStyles);if(i.length){var o=t[0],a=[];if(i.forEach(function(t){r(o[t])||a.push(t),o[t]=e.previousStyles[t]}),a.length)for(var s=1;s<t.length;s++)!function(n){var r=t[n];a.forEach(function(t){r[t]=c(e.element,t)})}(s)}this._player=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=l(t[t.length-1]),this._resetDomPlayerState(),this._player.addEventListener("finish",function(){return e._onFinish()})}},e.prototype._triggerWebAnimation=function(e,t,n){return e.animate(t,n)},Object.defineProperty(e.prototype,"domPlayer",{get:function(){return this._player},enumerable:!0,configurable:!0}),e.prototype.onStart=function(e){this._onStartFns.push(e)},e.prototype.onDone=function(e){this._onDoneFns.push(e)},e.prototype.play=function(){this.init(),this.hasStarted()||(this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[],this._started=!0),this._player.play()},e.prototype.pause=function(){this.init(),this._player.pause()},e.prototype.finish=function(){this.init(),this._onFinish(),this._player.finish()},e.prototype.reset=function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1},e.prototype._resetDomPlayerState=function(){this._player&&this._player.cancel()},e.prototype.restart=function(){this.reset(),this.play()},e.prototype.hasStarted=function(){return this._started},e.prototype.destroy=function(){this._destroyed||(this._resetDomPlayerState(),this._onFinish(),this._destroyed=!0)},Object.defineProperty(e.prototype,"totalTime",{get:function(){return this._duration},enumerable:!0,configurable:!0}),e.prototype.setPosition=function(e){this._player.currentTime=e*this.totalTime},e.prototype.getPosition=function(){return this._player.currentTime/this.totalTime},e.prototype._captureStyles=function(){var e=this,t={};return this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(t[n]=e._finished?e._finalKeyframe[n]:c(e.element,n))}),t},e}(),Q=function(){function e(){}return e.prototype.animate=function(e,t,n,i,o,a,s){void 0===s&&(s=[]);var u=[],c={};if(r(t)&&(c=p(t,{})),n.forEach(function(e){var t=p(e.styles,c);t.offset=Math.max(0,Math.min(1,e.offset)),u.push(t)}),0==u.length)u=[c,c];else if(1==u.length){var l=c,h=u[0];h.offset=null,u=[l,h]}var f={duration:i,delay:o,fill:"both"};return a&&(f.easing=a),s=s.filter(d),new J(e,u,f,s)},e}(),$=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},ee=function(e){function t(){var t=this;e.call(this),this._animationPrefix=null,this._transitionEnd=null;try{var n=this.createElement("div",this.defaultDoc());if(r(this.getStyle(n,"animationName")))this._animationPrefix="";else for(var i=["Webkit","Moz","O","ms"],o=0;o<i.length;o++)if(r(this.getStyle(n,i[o]+"AnimationName"))){this._animationPrefix="-"+i[o].toLowerCase()+"-";break}var a={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};Object.keys(a).forEach(function(e){r(t.getStyle(n,e))&&(t._transitionEnd=a[e])})}catch(e){this._animationPrefix=null,this._transitionEnd=null}}return $(t,e),t.prototype.getDistributedNodes=function(e){return e.getDistributedNodes()},t.prototype.resolveAndSetHref=function(e,t,n){e.href=null==n?t:t+"/../"+n},t.prototype.supportsDOMEvents=function(){return!0},t.prototype.supportsNativeShadowDOM=function(){return"function"==typeof this.defaultDoc().body.createShadowRoot},t.prototype.getAnimationPrefix=function(){return this._animationPrefix?this._animationPrefix:""},t.prototype.getTransitionEnd=function(){return this._transitionEnd?this._transitionEnd:""},t.prototype.supportsAnimation=function(){return r(this._animationPrefix)&&r(this._transitionEnd)},t}(X),te=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},ne={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},re={"\b":"Backspace","\t":"Tab","":"Delete","":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},ie={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","":"NumLock"},oe=function(e){function t(){e.apply(this,arguments)}return te(t,e),t.prototype.parse=function(e){throw new Error("parse not implemented")},t.makeCurrent=function(){u(new t)},t.prototype.hasProperty=function(e,t){return t in e},t.prototype.setProperty=function(e,t,n){e[t]=n},t.prototype.getProperty=function(e,t){return e[t]},t.prototype.invoke=function(e,t,n){(r=e)[t].apply(r,n);var r},t.prototype.logError=function(e){window.console&&(console.error?console.error(e):console.log(e))},t.prototype.log=function(e){window.console&&window.console.log&&window.console.log(e)},t.prototype.logGroup=function(e){window.console&&window.console.group&&window.console.group(e)},t.prototype.logGroupEnd=function(){window.console&&window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(t.prototype,"attrToPropMap",{get:function(){return ne},enumerable:!0,configurable:!0}),t.prototype.query=function(e){return document.querySelector(e)},t.prototype.querySelector=function(e,t){return e.querySelector(t)},t.prototype.querySelectorAll=function(e,t){return e.querySelectorAll(t)},t.prototype.on=function(e,t,n){e.addEventListener(t,n,!1)},t.prototype.onAndCancel=function(e,t,n){return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n,!1)}},t.prototype.dispatchEvent=function(e,t){e.dispatchEvent(t)},t.prototype.createMouseEvent=function(e){var t=document.createEvent("MouseEvent");return t.initEvent(e,!0,!0),t},t.prototype.createEvent=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t},t.prototype.preventDefault=function(e){e.preventDefault(),e.returnValue=!1},t.prototype.isPrevented=function(e){return e.defaultPrevented||r(e.returnValue)&&!e.returnValue},t.prototype.getInnerHTML=function(e){return e.innerHTML},t.prototype.getTemplateContent=function(e){return"content"in e&&e instanceof HTMLTemplateElement?e.content:null},t.prototype.getOuterHTML=function(e){return e.outerHTML},t.prototype.nodeName=function(e){return e.nodeName},t.prototype.nodeValue=function(e){return e.nodeValue},t.prototype.type=function(e){return e.type},t.prototype.content=function(e){return this.hasProperty(e,"content")?e.content:e},t.prototype.firstChild=function(e){return e.firstChild},t.prototype.nextSibling=function(e){return e.nextSibling},t.prototype.parentElement=function(e){return e.parentNode},t.prototype.childNodes=function(e){return e.childNodes},t.prototype.childNodesAsList=function(e){for(var t=e.childNodes,n=new Array(t.length),r=0;r<t.length;r++)n[r]=t[r];return n},t.prototype.clearNodes=function(e){for(;e.firstChild;)e.removeChild(e.firstChild)},t.prototype.appendChild=function(e,t){e.appendChild(t)},t.prototype.removeChild=function(e,t){e.removeChild(t)},t.prototype.replaceChild=function(e,t,n){e.replaceChild(t,n)},t.prototype.remove=function(e){return e.parentNode&&e.parentNode.removeChild(e),e},t.prototype.insertBefore=function(e,t){e.parentNode.insertBefore(t,e)},t.prototype.insertAllBefore=function(e,t){t.forEach(function(t){return e.parentNode.insertBefore(t,e)})},t.prototype.insertAfter=function(e,t){e.parentNode.insertBefore(t,e.nextSibling)},t.prototype.setInnerHTML=function(e,t){e.innerHTML=t},t.prototype.getText=function(e){return e.textContent},t.prototype.setText=function(e,t){e.textContent=t},t.prototype.getValue=function(e){return e.value},t.prototype.setValue=function(e,t){e.value=t},t.prototype.getChecked=function(e){return e.checked},t.prototype.setChecked=function(e,t){e.checked=t},t.prototype.createComment=function(e){return document.createComment(e)},t.prototype.createTemplate=function(e){var t=document.createElement("template");return t.innerHTML=e,t},t.prototype.createElement=function(e,t){return void 0===t&&(t=document),t.createElement(e)},t.prototype.createElementNS=function(e,t,n){return void 0===n&&(n=document),n.createElementNS(e,t)},t.prototype.createTextNode=function(e,t){return void 0===t&&(t=document),t.createTextNode(e)},t.prototype.createScriptTag=function(e,t,n){void 0===n&&(n=document);var r=n.createElement("SCRIPT");return r.setAttribute(e,t),r},t.prototype.createStyleElement=function(e,t){void 0===t&&(t=document);var n=t.createElement("style");return this.appendChild(n,this.createTextNode(e)),n},t.prototype.createShadowRoot=function(e){return e.createShadowRoot()},t.prototype.getShadowRoot=function(e){return e.shadowRoot},t.prototype.getHost=function(e){return e.host},t.prototype.clone=function(e){return e.cloneNode(!0)},t.prototype.getElementsByClassName=function(e,t){return e.getElementsByClassName(t)},t.prototype.getElementsByTagName=function(e,t){return e.getElementsByTagName(t)},t.prototype.classList=function(e){return Array.prototype.slice.call(e.classList,0)},t.prototype.addClass=function(e,t){e.classList.add(t)},t.prototype.removeClass=function(e,t){e.classList.remove(t)},t.prototype.hasClass=function(e,t){return e.classList.contains(t)},t.prototype.setStyle=function(e,t,n){e.style[t]=n},t.prototype.removeStyle=function(e,t){e.style[t]=""},t.prototype.getStyle=function(e,t){return e.style[t]},t.prototype.hasStyle=function(e,t,n){void 0===n&&(n=null);var r=this.getStyle(e,t)||"";return n?r==n:r.length>0},t.prototype.tagName=function(e){return e.tagName},t.prototype.attributeMap=function(e){for(var t=new Map,n=e.attributes,r=0;r<n.length;r++){var i=n[r];t.set(i.name,i.value)}return t},t.prototype.hasAttribute=function(e,t){return e.hasAttribute(t)},t.prototype.hasAttributeNS=function(e,t,n){return e.hasAttributeNS(t,n)},t.prototype.getAttribute=function(e,t){return e.getAttribute(t)},t.prototype.getAttributeNS=function(e,t,n){return e.getAttributeNS(t,n)},t.prototype.setAttribute=function(e,t,n){e.setAttribute(t,n)},t.prototype.setAttributeNS=function(e,t,n,r){e.setAttributeNS(t,n,r)},t.prototype.removeAttribute=function(e,t){e.removeAttribute(t)},t.prototype.removeAttributeNS=function(e,t,n){e.removeAttributeNS(t,n)},t.prototype.templateAwareRoot=function(e){return this.isTemplateElement(e)?this.content(e):e},t.prototype.createHtmlDocument=function(){return document.implementation.createHTMLDocument("fakeTitle")},t.prototype.defaultDoc=function(){return document},t.prototype.getBoundingClientRect=function(e){try{return e.getBoundingClientRect()}catch(e){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}},t.prototype.getTitle=function(){return document.title},t.prototype.setTitle=function(e){document.title=e||""},t.prototype.elementMatches=function(e,t){return e instanceof HTMLElement&&(e.matches&&e.matches(t)||e.msMatchesSelector&&e.msMatchesSelector(t)||e.webkitMatchesSelector&&e.webkitMatchesSelector(t))},t.prototype.isTemplateElement=function(e){return e instanceof HTMLElement&&"TEMPLATE"==e.nodeName},t.prototype.isTextNode=function(e){return e.nodeType===Node.TEXT_NODE},t.prototype.isCommentNode=function(e){return e.nodeType===Node.COMMENT_NODE},t.prototype.isElementNode=function(e){return e.nodeType===Node.ELEMENT_NODE},t.prototype.hasShadowRoot=function(e){return r(e.shadowRoot)&&e instanceof HTMLElement},t.prototype.isShadowRoot=function(e){return e instanceof DocumentFragment},t.prototype.importIntoDoc=function(e){return document.importNode(this.templateAwareRoot(e),!0)},t.prototype.adoptNode=function(e){return document.adoptNode(e)},t.prototype.getHref=function(e){return e.href},t.prototype.getEventKey=function(e){var t=e.key;if(i(t)){if(t=e.keyIdentifier,i(t))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&ie.hasOwnProperty(t)&&(t=ie[t]))}return re[t]||t},t.prototype.getGlobalEventTarget=function(e){return"window"===e?window:"document"===e?document:"body"===e?document.body:void 0},t.prototype.getHistory=function(){return window.history},t.prototype.getLocation=function(){return window.location},t.prototype.getBaseHref=function(){var e=h();return i(e)?null:f(e)},t.prototype.resetBaseElement=function(){ae=null},t.prototype.getUserAgent=function(){return window.navigator.userAgent},t.prototype.setData=function(e,t,n){this.setAttribute(e,"data-"+t,n)},t.prototype.getData=function(e,t){return this.getAttribute(e,"data-"+t)},t.prototype.getComputedStyle=function(e){return getComputedStyle(e)},t.prototype.setGlobalVar=function(e,t){a(Y,e,t)},t.prototype.supportsWebAnimation=function(){return"function"==typeof Element.prototype.animate},t.prototype.performanceNow=function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()},t.prototype.supportsCookies=function(){return!0},t.prototype.getCookie=function(e){return m(document.cookie,e)},t.prototype.setCookie=function(e,t){document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)},t}(ee),ae=null,se=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},ue=function(e){function t(){e.call(this),this._init()}return se(t,e),t.prototype._init=function(){this._location=s().getLocation(),this._history=s().getHistory()},Object.defineProperty(t.prototype,"location",{get:function(){return this._location},enumerable:!0,configurable:!0}),t.prototype.getBaseHrefFromDOM=function(){return s().getBaseHref()},t.prototype.onPopState=function(e){s().getGlobalEventTarget("window").addEventListener("popstate",e,!1)},t.prototype.onHashChange=function(e){s().getGlobalEventTarget("window").addEventListener("hashchange",e,!1)},Object.defineProperty(t.prototype,"pathname",{get:function(){return this._location.pathname},set:function(e){this._location.pathname=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"search",{get:function(){return this._location.search},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hash",{get:function(){return this._location.hash},enumerable:!0,configurable:!0}),t.prototype.pushState=function(e,t,n){v()?this._history.pushState(e,t,n):this._location.hash=n},t.prototype.replaceState=function(e,t,n){v()?this._history.replaceState(e,t,n):this._location.hash=n},t.prototype.forward=function(){this._history.forward()},t.prototype.back=function(){this._history.back()},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[]},t}(t.PlatformLocation),ce=function(){function e(){}return e.init=function(){n.setTestabilityGetter(new e)},e.prototype.addToWindow=function(e){Y.getAngularTestability=function(t,n){void 0===n&&(n=!0);var r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},Y.getAllAngularTestabilities=function(){return e.getAllTestabilities()},Y.getAllAngularRootElements=function(){return e.getAllRootElements()};Y.frameworkStabilizers||(Y.frameworkStabilizers=[]),Y.frameworkStabilizers.push(function(e){var t=Y.getAllAngularTestabilities(),n=t.length,r=!1,i=function(t){r=r||t,0==--n&&e(r)};t.forEach(function(e){e.whenStable(i)})})},e.prototype.findTestabilityInTree=function(e,t,n){if(null==t)return null;var i=e.getTestability(t);return r(i)?i:n?s().isShadowRoot(t)?this.findTestabilityInTree(e,s().getHost(t),!0):this.findTestabilityInTree(e,s().parentElement(t),!0):null},e}(),le=function(){function e(){}return e.prototype.getTitle=function(){return s().getTitle()},e.prototype.setTitle=function(e){s().setTitle(e)},e}(),pe=function(){function e(){}return e.merge=function(e,t){for(var n={},r=0,i=Object.keys(e);r<i.length;r++)n[s=i[r]]=e[s];for(var o=0,a=Object.keys(t);o<a.length;o++){var s=a[o];n[s]=t[s]}return n},e.equals=function(e,t){var n=Object.keys(e),r=Object.keys(t);if(n.length!=r.length)return!1;for(var i=0;i<n.length;i++){var o=n[i];if(e[o]!==t[o])return!1}return!0},e}(),de=new n.OpaqueToken("DocumentToken"),he=new n.OpaqueToken("EventManagerPlugins"),fe=function(){function e(e,t){var n=this;this._zone=t,this._eventNameToPlugin=new Map,e.forEach(function(e){return e.manager=n}),this._plugins=e.slice().reverse()}return e.prototype.addEventListener=function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)},e.prototype.addGlobalEventListener=function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)},e.prototype.getZone=function(){return this._zone},e.prototype._findPluginFor=function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,r=0;r<n.length;r++){var i=n[r];if(i.supports(e))return this._eventNameToPlugin.set(e,i),i}throw new Error("No event manager plugin found for event "+e)},e.decorators=[{type:n.Injectable}],e.ctorParameters=function(){return[{type:Array,decorators:[{type:n.Inject,args:[he]}]},{type:n.NgZone}]},e}(),me=function(){function e(){}return e.prototype.supports=function(e){},e.prototype.addEventListener=function(e,t,n){},e.prototype.addGlobalEventListener=function(e,t,n){var r=s().getGlobalEventTarget(e);if(!r)throw new Error("Unsupported event target "+r+" for event "+t);return this.addEventListener(r,t,n)},e}(),ve=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},ye=function(){function e(){this._stylesSet=new Set}return e.prototype.addStyles=function(e){var t=this,n=new Set;e.forEach(function(e){t._stylesSet.has(e)||(t._stylesSet.add(e),n.add(e))}),this.onStylesAdded(n)},e.prototype.onStylesAdded=function(e){},e.prototype.getAllStyles=function(){return Array.from(this._stylesSet)},e.decorators=[{type:n.Injectable}],e.ctorParameters=function(){return[]},e}(),ge=function(e){function t(t){e.call(this),this._doc=t,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(t.head)}return ve(t,e),t.prototype._addStylesToHost=function(e,t){var n=this;e.forEach(function(e){var r=n._doc.createElement("style");r.textContent=e,n._styleNodes.add(t.appendChild(r))})},t.prototype.addHost=function(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)},t.prototype.removeHost=function(e){this._hostNodes.delete(e)},t.prototype.onStylesAdded=function(e){var t=this;this._hostNodes.forEach(function(n){return t._addStylesToHost(e,n)})},t.prototype.ngOnDestroy=function(){this._styleNodes.forEach(function(e){return s().remove(e)})},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[de]}]}]},t}(ye),_e=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},be={xlink:"http://www.w3.org/1999/xlink",svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml"},we=/^template bindings=(.*)$/,ke=function(){function e(e,t,n,r,i){this.document=e,this.eventManager=t,this.sharedStylesHost=n,this.animationDriver=r,this.appId=i,this.registeredComponents=new Map}return e.prototype.renderComponent=function(e){var t=this.registeredComponents.get(e.id);return t||(t=new Se(this,e,this.animationDriver,this.appId+"-"+e.id),this.registeredComponents.set(e.id,t)),t},e}(),xe=function(e){function t(t,n,r,i,o){e.call(this,t,n,r,i,o)}return _e(t,e),t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[de]}]},{type:fe},{type:ge},{type:G},{type:void 0,decorators:[{type:n.Inject,args:[n.APP_ID]}]}]},t}(ke),Ce={remove:function(e){e.parentNode&&e.parentNode.removeChild(e)},appendChild:function(e,t){t.appendChild(e)},insertBefore:function(e,t){t.parentNode.insertBefore(e,t)},nextSibling:function(e){return e.nextSibling},parentElement:function(e){return e.parentNode}},Se=function(){function e(e,t,r,i){this._rootRenderer=e,this.componentProto=t,this._animationDriver=r,this.directRenderer=Ce,this._styles=k(i,t.styles,[]),t.encapsulation!==n.ViewEncapsulation.Native&&this._rootRenderer.sharedStylesHost.addStyles(this._styles),this.componentProto.encapsulation===n.ViewEncapsulation.Emulated?(this._contentAttr=b(i),this._hostAttr=w(i)):(this._contentAttr=null,this._hostAttr=null)}return e.prototype.selectRootElement=function(e,t){var n;if("string"==typeof e){if(!(n=this._rootRenderer.document.querySelector(e)))throw new Error('The selector "'+e+'" did not match any elements')}else n=e;for(;n.firstChild;)n.removeChild(n.firstChild);return n},e.prototype.createElement=function(e,t,n){var r;if(x(t)){var i=C(t);r=document.createElementNS(be[i[0]],i[1])}else r=document.createElement(t);return this._contentAttr&&r.setAttribute(this._contentAttr,""),e&&e.appendChild(r),r},e.prototype.createViewRoot=function(e){var t;if(this.componentProto.encapsulation===n.ViewEncapsulation.Native){t=e.createShadowRoot();for(var r=0;r<this._styles.length;r++){var i=document.createElement("style");i.textContent=this._styles[r],t.appendChild(i)}}else this._hostAttr&&e.setAttribute(this._hostAttr,""),t=e;return t},e.prototype.createTemplateAnchor=function(e,t){var n=document.createComment("template bindings={}");return e&&e.appendChild(n),n},e.prototype.createText=function(e,t,n){var r=document.createTextNode(t);return e&&e.appendChild(r),r},e.prototype.projectNodes=function(e,t){e&&g(e,t)},e.prototype.attachViewAfter=function(e,t){y(e,t)},e.prototype.detachView=function(e){for(var t=0;t<e.length;t++){var n=e[t];n.parentNode&&n.parentNode.removeChild(n)}},e.prototype.destroyView=function(e,t){this.componentProto.encapsulation===n.ViewEncapsulation.Native&&e&&this._rootRenderer.sharedStylesHost.removeHost(e.shadowRoot)},e.prototype.listen=function(e,t,n){return this._rootRenderer.eventManager.addEventListener(e,t,_(n))},e.prototype.listenGlobal=function(e,t,n){return this._rootRenderer.eventManager.addGlobalEventListener(e,t,_(n))},e.prototype.setElementProperty=function(e,t,n){e[t]=n},e.prototype.setElementAttribute=function(e,t,n){var i,o=t;if(x(t)){var a=C(t);o=a[1],t=a[0]+":"+a[1],i=be[a[0]]}r(n)?i?e.setAttributeNS(i,t,n):e.setAttribute(t,n):r(i)?e.removeAttributeNS(i,o):e.removeAttribute(t)},e.prototype.setBindingDebugInfo=function(e,t,n){if(e.nodeType===Node.COMMENT_NODE){var r=e.nodeValue.replace(/\n/g,"").match(we),i=JSON.parse(r[1]);i[t]=n,e.nodeValue="template bindings={}".replace("{}",JSON.stringify(i,null,2))}else this.setElementAttribute(e,t,n)},e.prototype.setElementClass=function(e,t,n){n?e.classList.add(t):e.classList.remove(t)},e.prototype.setElementStyle=function(e,t,n){r(n)?e.style[t]=o(n):e.style[t]=""},e.prototype.invokeElementMethod=function(e,t,n){e[t].apply(e,n)},e.prototype.setText=function(e,t){e.nodeValue=t},e.prototype.animate=function(e,t,n,r,i,o,a){return void 0===a&&(a=[]),this._rootRenderer.document.body.contains(e)?this._animationDriver.animate(e,t,n,r,i,o,a):new q},e}(),Ee=/%COMP%/g,Te="_nghost-%COMP%",Oe="_ngcontent-%COMP%",Pe=/^:([^:]+):(.+)$/,Me={ApplicationRef:n.ApplicationRef,NgZone:n.NgZone},Ae="ng.probe",De="ng.coreTokens",Ie=function(){return function(e,t){this.name=e,this.token=t}}(),Re=[{provide:n.RootRenderer,useFactory:function(e,t,r){return n.isDevMode()?E(e,(t||[]).concat(r||[])):e},deps:[ke,[Ie,new n.Optional],[n.NgProbeToken,new n.Optional]]}],je=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},Ne=function(e){function t(){e.apply(this,arguments)}return je(t,e),t.prototype.supports=function(e){return!0},t.prototype.addEventListener=function(e,t,n){return e.addEventListener(t,n,!1),function(){return e.removeEventListener(t,n,!1)}},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[]},t}(me),Le=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},Fe={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0},Ve=new n.OpaqueToken("HammerGestureConfig"),ze=function(){function e(){this.events=[],this.overrides={}}return e.prototype.buildHammer=function(e){var t=new Hammer(e);t.get("pinch").set({enable:!0}),t.get("rotate").set({enable:!0});for(var n in this.overrides)t.get(n).set(this.overrides[n]);return t},e.decorators=[{type:n.Injectable}],e.ctorParameters=function(){return[]},e}(),Ue=function(e){function t(t){e.call(this),this._config=t}return Le(t,e),t.prototype.supports=function(e){if(!Fe.hasOwnProperty(e.toLowerCase())&&!this.isCustomEvent(e))return!1;if(!window.Hammer)throw new Error("Hammer.js is not loaded, can not bind "+e+" event");return!0},t.prototype.addEventListener=function(e,t,n){var r=this,i=this.manager.getZone();return t=t.toLowerCase(),i.runOutsideAngular(function(){var o=r._config.buildHammer(e),a=function(e){i.runGuarded(function(){n(e)})};return o.on(t,a),function(){return o.off(t,a)}})},t.prototype.isCustomEvent=function(e){return this._config.events.indexOf(e)>-1},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[{type:ze,decorators:[{type:n.Inject,args:[Ve]}]}]},t}(me),Be=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},He=["alt","control","meta","shift"],qe={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},We=function(e){function t(){e.call(this)}return Be(t,e),t.prototype.supports=function(e){return null!=t.parseEventName(e)},t.prototype.addEventListener=function(e,n,r){var i=t.parseEventName(n),o=t.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return s().onAndCancel(e,i.domEventName,o)})},t.parseEventName=function(e){var n=e.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;var i=t._normalizeKey(n.pop()),o="";if(He.forEach(function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),o+=e+".")}),o+=i,0!=n.length||0===i.length)return null;var a={};return a.domEventName=r,a.fullKey=o,a},t.getEventFullKey=function(e){var t="",n=s().getEventKey(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),He.forEach(function(r){r!=n&&(0,qe[r])(e)&&(t+=r+".")}),t+=n},t.eventCallback=function(e,n,r){return function(i){t.getEventFullKey(i)===e&&r.runGuarded(function(){return n(i)})}},t._normalizeKey=function(e){switch(e){case"esc":return"escape";default:return e}},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[]},t}(me),Ge=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,Ye=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i,Ze=null,Ke=null,Xe=A("area,br,col,hr,img,wbr"),Je=A("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Qe=A("rp,rt"),$e=D(Qe,Je),et=D(Je,A("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),tt=D(Qe,A("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),nt=D(Xe,et,tt,$e),rt=A("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),it=A("srcset"),ot=A("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),at=D(rt,it,ot),st=function(){function e(){this.sanitizedSomething=!1,this.buf=[]}return e.prototype.sanitizeChildren=function(e){for(var t=e.firstChild;t;)if(Ke.isElementNode(t)?this.startElement(t):Ke.isTextNode(t)?this.chars(Ke.nodeValue(t)):this.sanitizedSomething=!0,Ke.firstChild(t))t=Ke.firstChild(t);else for(;t;){if(Ke.isElementNode(t)&&this.endElement(t),Ke.nextSibling(t)){t=Ke.nextSibling(t);break}t=Ke.parentElement(t)}return this.buf.join("")},e.prototype.startElement=function(e){var t=this,n=Ke.nodeName(e).toLowerCase();nt.hasOwnProperty(n)?(this.buf.push("<"),this.buf.push(n),Ke.attributeMap(e).forEach(function(e,n){var r=n.toLowerCase();at.hasOwnProperty(r)?(rt[r]&&(e=O(e)),it[r]&&(e=P(e)),t.buf.push(" "),t.buf.push(n),t.buf.push('="'),t.buf.push(I(e)),t.buf.push('"')):t.sanitizedSomething=!0}),this.buf.push(">")):this.sanitizedSomething=!0},e.prototype.endElement=function(e){var t=Ke.nodeName(e).toLowerCase();nt.hasOwnProperty(t)&&!Xe.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))},e.prototype.chars=function(e){this.buf.push(I(e))},e}(),ut=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ct=/([^\#-~ |!])/g,lt=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),pt=/^url\(([^)]+)\)$/,dt=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},ht=function(){function e(){}return e.prototype.sanitize=function(e,t){},e.prototype.bypassSecurityTrustHtml=function(e){},e.prototype.bypassSecurityTrustStyle=function(e){},e.prototype.bypassSecurityTrustScript=function(e){},e.prototype.bypassSecurityTrustUrl=function(e){},e.prototype.bypassSecurityTrustResourceUrl=function(e){},e}(),ft=function(e){function t(){e.apply(this,arguments)}return dt(t,e),t.prototype.sanitize=function(e,t){if(null==t)return null;switch(e){case n.SecurityContext.NONE:return t;case n.SecurityContext.HTML:return t instanceof vt?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"HTML"),j(String(t)));case n.SecurityContext.STYLE:return t instanceof yt?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"Style"),L(t));case n.SecurityContext.SCRIPT:if(t instanceof gt)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"Script"),new Error("unsafe value used in a script context");case n.SecurityContext.URL:return t instanceof bt||t instanceof _t?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"URL"),O(String(t)));case n.SecurityContext.RESOURCE_URL:if(t instanceof bt)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+e+" (see http://g.co/ng/security#xss)")}},t.prototype.checkNotSafeValue=function(e,t){if(e instanceof mt)throw new Error("Required a safe "+t+", got a "+e.getTypeName()+" (see http://g.co/ng/security#xss)")},t.prototype.bypassSecurityTrustHtml=function(e){return new vt(e)},t.prototype.bypassSecurityTrustStyle=function(e){return new yt(e)},t.prototype.bypassSecurityTrustScript=function(e){return new gt(e)},t.prototype.bypassSecurityTrustUrl=function(e){return new _t(e)},t.prototype.bypassSecurityTrustResourceUrl=function(e){return new bt(e)},t.decorators=[{type:n.Injectable}],t.ctorParameters=function(){return[]},t}(ht),mt=function(){function e(e){this.changingThisBreaksApplicationSecurity=e}return e.prototype.getTypeName=function(){},e.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},e}(),vt=function(e){function t(){e.apply(this,arguments)}return dt(t,e),t.prototype.getTypeName=function(){return"HTML"},t}(mt),yt=function(e){function t(){e.apply(this,arguments)}return dt(t,e),t.prototype.getTypeName=function(){return"Style"},t}(mt),gt=function(e){function t(){e.apply(this,arguments)}return dt(t,e),t.prototype.getTypeName=function(){return"Script"},t}(mt),_t=function(e){function t(){e.apply(this,arguments)}return dt(t,e),t.prototype.getTypeName=function(){return"URL"},t}(mt),bt=function(e){function t(){e.apply(this,arguments)}return dt(t,e),t.prototype.getTypeName=function(){return"ResourceURL"},t}(mt),wt=[{provide:n.PLATFORM_INITIALIZER,useValue:F,multi:!0},{provide:t.PlatformLocation,useClass:ue}],kt=[{provide:n.Sanitizer,useExisting:ht},{provide:ht,useClass:ft}],xt=n.createPlatformFactory(n.platformCore,"browser",wt),Ct=function(){function e(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return e.decorators=[{type:n.NgModule,args:[{providers:[kt,{provide:n.ErrorHandler,useFactory:V,deps:[]},{provide:de,useFactory:z,deps:[]},{provide:he,useClass:Ne,multi:!0},{provide:he,useClass:We,multi:!0},{provide:he,useClass:Ue,multi:!0},{provide:Ve,useClass:ze},{provide:ke,useClass:xe},{provide:n.RootRenderer,useExisting:ke},{provide:ye,useExisting:ge},{provide:G,useFactory:U},ge,n.Testability,fe,Re,le],exports:[t.CommonModule,n.ApplicationModule]}]}],e.ctorParameters=function(){return[{type:e,decorators:[{type:n.Optional},{type:n.SkipSelf}]}]},e}(),St="undefined"!=typeof window&&window||{},Et=function(){return function(e,t){this.msPerTick=e,this.numTicks=t}}(),Tt=function(){return function(e){this.profiler=new Ot(e)}}(),Ot=function(){function e(e){this.appRef=e.injector.get(n.ApplicationRef)}return e.prototype.timeChangeDetection=function(e){var t=e&&e.record,n=r(St.console.profile);t&&n&&St.console.profile("Change Detection");for(var i=s().performanceNow(),o=0;o<5||s().performanceNow()-i<500;)this.appRef.tick(),o++;var a=s().performanceNow();t&&n&&St.console.profileEnd("Change Detection");var u=(a-i)/o;return St.console.log("ran "+o+" change detection cycles"),St.console.log(u.toFixed(2)+" ms per check"),new Et(u,o)},e}(),Pt=Y,Mt=function(){function e(){}return e.all=function(){return function(e){return!0}},e.css=function(e){return function(t){return!!r(t.nativeElement)&&s().elementMatches(t.nativeElement,e)}},e.directive=function(e){return function(t){return-1!==t.providerTokens.indexOf(e)}},e}(),At={BrowserPlatformLocation:ue,DomAdapter:X,BrowserDomAdapter:oe,BrowserGetTestability:ce,getDOM:s,setRootDomAdapter:u,DomRootRenderer_:xe,DomRootRenderer:ke,NAMESPACE_URIS:be,shimContentAttribute:b,shimHostAttribute:w,flattenStyles:k,splitNamespace:C,isNamespaced:x,DomSharedStylesHost:ge,SharedStylesHost:ye,ELEMENT_PROBE_PROVIDERS:Re,DomEventsPlugin:Ne,KeyEventsPlugin:We,HammerGesturesPlugin:Ue,initDomAdapter:F,INTERNAL_BROWSER_PLATFORM_PROVIDERS:wt,BROWSER_SANITIZATION_PROVIDERS:kt,WebAnimationsDriver:Q},Dt=new n.Version("2.4.10");e.BrowserModule=Ct,e.platformBrowser=xt,e.Title=le,e.disableDebugTools=function(){Pt.ng&&delete Pt.ng.profiler},e.enableDebugTools=function(e){return Object.assign(Pt.ng,new Tt(e)),e},e.AnimationDriver=G,e.By=Mt,e.NgProbeToken=Ie,e.DOCUMENT=de,e.EVENT_MANAGER_PLUGINS=he,e.EventManager=fe,e.HAMMER_GESTURE_CONFIG=Ve,e.HammerGestureConfig=ze,e.DomSanitizer=ht,e.VERSION=Dt,e.__platform_browser_private__=At}),e.registerDynamic("9d",[],!0,function(e,t,n){"use strict";this||self;t.isArray=Array.isArray||function(e){return e&&"number"==typeof e.length}}),e.registerDynamic("ae",[],!0,function(e,t,n){"use strict";this||self;t.isObject=function(e){return null!=e&&"object"==typeof e}}),e.registerDynamic("b3",[],!0,function(e,t,n){"use strict";this||self;t.isFunction=function(e){return"function"==typeof e}}),e.registerDynamic("b4",["b5"],!0,function(e,t,n){"use strict";function r(){try{return i.apply(this,arguments)}catch(e){return o.errorObject.e=e,o.errorObject}}this||self;var i,o=e("b5");t.tryCatch=function(e){return i=e,r}}),e.registerDynamic("b5",[],!0,function(e,t,n){"use strict";this||self;t.errorObject={e:{}}}),e.registerDynamic("b6",[],!0,function(e,t,n){"use strict";this||self;var r=t&&t.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=function(e){function t(t){e.call(this),this.errors=t;var n=Error.call(this,t?t.length+" errors occurred during unsubscription:\n  "+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n  "):"");this.name=n.name="UnsubscriptionError",this.stack=n.stack,this.message=n.message}return r(t,e),t}(Error);t.UnsubscriptionError=i}),e.registerDynamic("6b",["9d","ae","b3","b4","b5","b6"],!0,function(e,t,n){"use strict";function r(e){return e.reduce(function(e,t){return e.concat(t instanceof c.UnsubscriptionError?t.errors:t)},[])}this||self;var i=e("9d"),o=e("ae"),a=e("b3"),s=e("b4"),u=e("b5"),c=e("b6"),l=function(){function e(e){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}return e.prototype.unsubscribe=function(){var e,t=!1;if(!this.closed){var n=this,l=n._parent,p=n._parents,d=n._unsubscribe,h=n._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var f=-1,m=p?p.length:0;l;)l.remove(this),l=++f<m&&p[f]||null;if(a.isFunction(d)&&(y=s.tryCatch(d).call(this))===u.errorObject&&(t=!0,e=e||(u.errorObject.e instanceof c.UnsubscriptionError?r(u.errorObject.e.errors):[u.errorObject.e])),i.isArray(h))for(f=-1,m=h.length;++f<m;){var v=h[f];if(o.isObject(v)){var y=s.tryCatch(v.unsubscribe).call(v);if(y===u.errorObject){t=!0,e=e||[];var g=u.errorObject.e;g instanceof c.UnsubscriptionError?e=e.concat(r(g.errors)):e.push(g)}}}if(t)throw new c.UnsubscriptionError(e)}},e.prototype.add=function(t){if(!t||t===e.EMPTY)return e.EMPTY;if(t===this)return this;var n=t;switch(typeof t){case"function":n=new e(t);case"object":if(n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if("function"!=typeof n._addParent){var r=n;(n=new e)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}return(this._subscriptions||(this._subscriptions=[])).push(n),n._addParent(this),n},e.prototype.remove=function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},e.prototype._addParent=function(e){var t=this,n=t._parent,r=t._parents;n&&n!==e?r?-1===r.indexOf(e)&&r.push(e):this._parents=[e]:this._parent=e},e.EMPTY=function(e){return e.closed=!0,e}(new e),e}();t.Subscription=l}),e.registerDynamic("b2",[],!0,function(e,t,n){"use strict";this||self;t.empty={closed:!0,next:function(e){},error:function(e){throw e},complete:function(){}}}),e.registerDynamic("52",[],!0,function(e,t,n){"use strict";var r=this||self,i="undefined"!=typeof window&&window,o="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,a=void 0!==r&&r,s=i||a||o;t.root=s,function(){if(!s)throw new Error("RxJS could not find any global context (window, self, global)")}()}),e.registerDynamic("b0",["52"],!0,function(e,t,n){"use strict";this||self;var r=e("52").root.Symbol;t.rxSubscriber="function"==typeof r&&"function"==typeof r.for?r.for("rxSubscriber"):"@@rxSubscriber",t.$$rxSubscriber=t.rxSubscriber}),e.registerDynamic("6a",["b3","6b","b2","b0"],!0,function(e,t,n){"use strict";this||self;var r=t&&t.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=e("b3"),o=e("6b"),a=e("b2"),s=e("b0"),u=function(e){function t(n,r,i){switch(e.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a.empty;break;case 1:if(!n){this.destination=a.empty;break}if("object"==typeof n){n instanceof t?(this.destination=n,this.destination.add(this)):(this.syncErrorThrowable=!0,this.destination=new c(this,n));break}default:this.syncErrorThrowable=!0,this.destination=new c(this,n,r,i)}}return r(t,e),t.prototype[s.rxSubscriber]=function(){return this},t.create=function(e,n,r){var i=new t(e,n,r);return i.syncErrorThrowable=!1,i},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var e=this,t=e._parent,n=e._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=t,this._parents=n,this},t}(o.Subscription);t.Subscriber=u;var c=function(e){function t(t,n,r,o){e.call(this),this._parentSubscriber=t;var s,u=this;i.isFunction(n)?s=n:n&&(s=n.next,r=n.error,o=n.complete,n!==a.empty&&(u=Object.create(n),i.isFunction(u.unsubscribe)&&this.add(u.unsubscribe.bind(u)),u.unsubscribe=this.unsubscribe.bind(this))),this._context=u,this._next=s,this._error=r,this._complete=o}return r(t,e),t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},t.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber;if(this._error)t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else{if(!t.syncErrorThrowable)throw this.unsubscribe(),e;t.syncErrorValue=e,t.syncErrorThrown=!0,this.unsubscribe()}}},t.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(e){throw this.unsubscribe(),e}},t.prototype.__tryOrSetError=function(e,t,n){try{t.call(this._context,n)}catch(t){return e.syncErrorValue=t,e.syncErrorThrown=!0,!0}return!1},t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},t}(u)}),e.registerDynamic("b7",["6a"],!0,function(e,t,n){"use strict";this||self;var r=t&&t.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=e("6a");t.filter=function(e,t){return this.lift(new o(e,t))};var o=function(){function e(e,t){this.predicate=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.predicate,this.thisArg))},e}(),a=function(e){function t(t,n,r){e.call(this,t),this.predicate=n,this.thisArg=r,this.count=0}return r(t,e),t.prototype._next=function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}t&&this.destination.next(e)},t}(i.Subscriber)}),function(i,o){"object"==typeof n&&void 0!==r?o(n,t("@angular/common"),t("@angular/core"),t("rxjs/BehaviorSubject"),t("rxjs/Subject"),t("rxjs/observable/from"),t("rxjs/observable/of"),t("rxjs/operator/concatMap"),t("rxjs/operator/every"),t("rxjs/operator/first"),t("rxjs/operator/map"),t("rxjs/operator/mergeMap"),t("rxjs/operator/reduce"),t("rxjs/Observable"),t("rxjs/operator/catch"),t("rxjs/operator/concatAll"),t("rxjs/util/EmptyError"),t("rxjs/observable/fromPromise"),t("rxjs/operator/last"),t("rxjs/operator/mergeAll"),t("@angular/platform-browser"),t("rxjs/operator/filter")):e.registerDynamic("24",["1b","c","94","53","a2","68","a3","a5","a6","82","a4","aa","54","81","ab","a7","55","ac","71","e","b7"],!1,function(e,t,n){return"function"==typeof o?o.call(t,t,e("1b"),e("c"),e("94"),e("53"),e("a2"),e("68"),e("a3"),e("a5"),e("a6"),e("82"),e("a4"),e("aa"),e("54"),e("81"),e("ab"),e("a7"),e("55"),e("ac"),e("71"),e("e"),e("b7")):o})}(0,function(e,t,n,r,i,o,a,s,u,c,l,p,d,h,f,m,v,y,g,_,b,w){"use strict";function k(e,t,n){for(var r=n.path.split("/"),i={},o=[],a=0,s=0;s<r.length;++s){if(a>=e.length)return null;var u=e[a],c=r[s],l=c.startsWith(":");if(!l&&c!==u.path)return null;l&&(i[c.substring(1)]=u),o.push(u),a++}return"full"===n.pathMatch&&(t.hasChildren()||a<e.length)?null:{consumed:o,posParams:i}}function x(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;++n)if(!C(e[n],t[n]))return!1;return!0}function C(e,t){var n=Object.keys(e),r=Object.keys(t);if(n.length!=r.length)return!1;for(var i,o=0;o<n.length;o++)if(i=n[o],e[i]!==t[i])return!1;return!0}function S(e){for(var t=[],n=0;n<e.length;++n)for(var r=0;r<e[n].length;++r)t.push(e[n][r]);return t}function E(e){return e.length>0?e[e.length-1]:null}function T(e,t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return n}function O(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function P(e,t){var n=[],r={};if(O(e,function(e,i){i===Ot&&n.push(l.map.call(t(i,e),function(e){return r[i]=e,e}))}),O(e,function(e,i){i!==Ot&&n.push(l.map.call(t(i,e),function(e){return r[i]=e,e}))}),n.length>0){var i=m.concatAll.call(a.of.apply(void 0,n)),o=g.last.call(i);return l.map.call(o,function(){return r})}return a.of(r)}function M(e){var t=_.mergeAll.call(e);return u.every.call(t,function(e){return!0===e})}function A(e){return Et(e)?e:St(e)?y.fromPromise(e):a.of(e)}function D(){return new It(new Rt([],{}),{},null)}function I(e,t,n){return n?R(e.queryParams,t.queryParams)&&j(e.root,t.root):N(e.queryParams,t.queryParams)&&L(e.root,t.root)}function R(e,t){return C(e,t)}function j(e,t){if(!z(e.segments,t.segments))return!1;if(e.numberOfChildren!==t.numberOfChildren)return!1;for(var n in t.children){if(!e.children[n])return!1;if(!j(e.children[n],t.children[n]))return!1}return!0}function N(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(function(n){return t[n]===e[n]})}function L(e,t){return F(e,t,t.segments)}function F(e,t,n){if(e.segments.length>n.length)return!!z(i=e.segments.slice(0,n.length),n)&&!t.hasChildren();if(e.segments.length===n.length){if(!z(e.segments,n))return!1;for(var r in t.children){if(!e.children[r])return!1;if(!L(e.children[r],t.children[r]))return!1}return!0}var i=n.slice(0,e.segments.length),o=n.slice(e.segments.length);return!!z(e.segments,i)&&(!!e.children[Ot]&&F(e.children[Ot],t,o))}function V(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;++n){if(e[n].path!==t[n].path)return!1;if(!C(e[n].parameters,t[n].parameters))return!1}return!0}function z(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;++n)if(e[n].path!==t[n].path)return!1;return!0}function U(e,t){var n=[];return O(e.children,function(e,r){r===Ot&&(n=n.concat(t(e,r)))}),O(e.children,function(e,r){r!==Ot&&(n=n.concat(t(e,r)))}),n}function B(e){return e.segments.map(function(e){return G(e)}).join("/")}function H(e,t){if(e.hasChildren()&&t){var n=e.children[Ot]?H(e.children[Ot],!1):"",r=[];return O(e.children,function(e,t){t!==Ot&&r.push(t+":"+H(e,!1))}),r.length>0?n+"("+r.join("//")+")":""+n}if(e.hasChildren()&&!t){var i=U(e,function(t,n){return n===Ot?[H(e.children[Ot],!1)]:[n+":"+H(t,!1)]});return B(e)+"/("+i.join("//")+")"}return B(e)}function q(e){return encodeURIComponent(e)}function W(e){return decodeURIComponent(e)}function G(e){return""+q(e.path)+Y(e.parameters)}function Y(e){return K(e).map(function(e){return";"+q(e.first)+"="+q(e.second)}).join("")}function Z(e){var t=Object.keys(e).map(function(t){var n=e[t];return Array.isArray(n)?n.map(function(e){return q(t)+"="+q(e)}).join("&"):q(t)+"="+q(n)});return t.length?"?"+t.join("&"):""}function K(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(new Ft(n,e[n]));return t}function X(e){Vt.lastIndex=0;var t=e.match(Vt);return t?t[0]:""}function J(e){zt.lastIndex=0;var t=e.match(Vt);return t?t[0]:""}function Q(e){Ut.lastIndex=0;var t=e.match(Ut);return t?t[0]:""}function $(e){return new h.Observable(function(t){return t.error(new Ht(e))})}function ee(e){return new h.Observable(function(t){return t.error(new qt(e))})}function te(e){return new h.Observable(function(t){return t.error(new Error("Only absolute redirects can have named outlets. redirectTo: '"+e+"'"))})}function ne(e){return new h.Observable(function(t){return t.error(new Pt("Cannot load children because the guard of the route \"path: '"+e.path+"'\" returned false"))})}function re(e,t,n,r,i){return new Wt(e,t,n,r,i).apply()}function ie(e,t){var n=t.canLoad;return n&&0!==n.length?M(l.map.call(o.from(n),function(n){var r=e.get(n);return A(r.canLoad?r.canLoad(t):r(t))})):a.of(!0)}function oe(e,t,n){var r={matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}};if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var i=(t.matcher||k)(n,e,t);return i?{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,positionalParamSegments:i.posParams}:r}function ae(e,t,n,r){if(n.length>0&&le(e,n,r))return{segmentGroup:se(i=new Rt(t,ce(r,new Rt(n,e.children)))),slicedSegments:[]};if(0===n.length&&pe(e,n,r)){var i=new Rt(e.segments,ue(e,n,r,e.children));return{segmentGroup:se(i),slicedSegments:n}}return{segmentGroup:e,slicedSegments:n}}function se(e){if(1===e.numberOfChildren&&e.children[Ot]){var t=e.children[Ot];return new Rt(e.segments.concat(t.segments),t.children)}return e}function ue(e,t,n,r){for(var i={},o=0,a=n;o<a.length;o++){var s=a[o];de(e,t,s)&&!r[he(s)]&&(i[he(s)]=new Rt([],{}))}return T(r,i)}function ce(e,t){var n={};n[Ot]=t;for(var r=0,i=e;r<i.length;r++){var o=i[r];""===o.path&&he(o)!==Ot&&(n[he(o)]=new Rt([],{}))}return n}function le(e,t,n){return n.filter(function(n){return de(e,t,n)&&he(n)!==Ot}).length>0}function pe(e,t,n){return n.filter(function(n){return de(e,t,n)}).length>0}function de(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&(""===n.path&&void 0!==n.redirectTo)}function he(e){return e.outlet?e.outlet:Ot}function fe(e,t){void 0===t&&(t="");for(var n=0;n<e.length;n++){var r=e[n];me(r,ve(t,r))}}function me(e,t){if(!e)throw new Error("\n      Invalid configuration of route '"+t+"': Encountered undefined route.\n      The reason might be an extra comma.\n       \n      Example: \n      const routes: Routes = [\n        { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n        { path: 'dashboard',  component: DashboardComponent },, << two commas\n        { path: 'detail/:id', component: HeroDetailComponent }\n      ];\n    ");if(Array.isArray(e))throw new Error("Invalid configuration of route '"+t+"': Array cannot be specified");if(!e.component&&e.outlet&&e.outlet!==Ot)throw new Error("Invalid configuration of route '"+t+"': a componentless route cannot have a named outlet set");if(e.redirectTo&&e.children)throw new Error("Invalid configuration of route '"+t+"': redirectTo and children cannot be used together");if(e.redirectTo&&e.loadChildren)throw new Error("Invalid configuration of route '"+t+"': redirectTo and loadChildren cannot be used together");if(e.children&&e.loadChildren)throw new Error("Invalid configuration of route '"+t+"': children and loadChildren cannot be used together");if(e.redirectTo&&e.component)throw new Error("Invalid configuration of route '"+t+"': redirectTo and component cannot be used together");if(e.path&&e.matcher)throw new Error("Invalid configuration of route '"+t+"': path and matcher cannot be used together");if(void 0===e.redirectTo&&!e.component&&!e.children&&!e.loadChildren)throw new Error("Invalid configuration of route '"+t+"'. One of the following must be provided: component, redirectTo, children or loadChildren");if(void 0===e.path&&void 0===e.matcher)throw new Error("Invalid configuration of route '"+t+"': routes must have either a path or a matcher specified");if("string"==typeof e.path&&"/"===e.path.charAt(0))throw new Error("Invalid configuration of route '"+t+"': path cannot start with a slash");if(""===e.path&&void 0!==e.redirectTo&&void 0===e.pathMatch){throw new Error("Invalid configuration of route '{path: \""+t+'", redirectTo: "'+e.redirectTo+"\"}': please provide 'pathMatch'. The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.")}if(void 0!==e.pathMatch&&"full"!==e.pathMatch&&"prefix"!==e.pathMatch)throw new Error("Invalid configuration of route '"+t+"': pathMatch can only be set to 'prefix' or 'full'");e.children&&fe(e.children,t)}function ve(e,t){return t?e||t.path?e&&!t.path?e+"/":!e&&t.path?t.path:e+"/"+t.path:"":e}function ye(e,t){if(e===t.value)return t;for(var n=0,r=t.children;n<r.length;n++){var i=ye(e,r[n]);if(i)return i}return null}function ge(e,t,n){if(n.push(t),e===t.value)return n;for(var r=0,i=t.children;r<i.length;r++){var o=ge(e,i[r],n.slice(0));if(o.length>0)return o}return[]}function _e(e,t){var n=be(e,t),i=new r.BehaviorSubject([new jt("",{})]),o=new r.BehaviorSubject({}),a=new r.BehaviorSubject({}),s=new r.BehaviorSubject({}),u=new r.BehaviorSubject(""),c=new Xt(i,o,s,u,a,Ot,t,n.root);return c.snapshot=n.root,new Kt(new Yt(c,[]),n)}function be(e,t){var n=new Jt([],{},{},"",{},Ot,t,null,e.root,-1,{});return new Qt("",new Yt(n,[]))}function we(e){for(var t=e.pathFromRoot,n=t.length-1;n>=1;){var r=t[n],i=t[n-1];if(r.routeConfig&&""===r.routeConfig.path)n--;else{if(i.component)break;n--}}return t.slice(n).reduce(function(e,t){return{params:T(e.params,t.params),data:T(e.data,t.data),resolve:T(e.resolve,t._resolvedData)}},{params:{},data:{},resolve:{}})}function ke(e,t){t.value._routerState=e,t.children.forEach(function(t){return ke(e,t)})}function xe(e){var t=e.children.length>0?" { "+e.children.map(xe).join(", ")+" } ":"";return""+e.value+t}function Ce(e){if(e.snapshot){var t=e.snapshot;e.snapshot=e._futureSnapshot,C(t.queryParams,e._futureSnapshot.queryParams)||e.queryParams.next(e._futureSnapshot.queryParams),t.fragment!==e._futureSnapshot.fragment&&e.fragment.next(e._futureSnapshot.fragment),C(t.params,e._futureSnapshot.params)||e.params.next(e._futureSnapshot.params),x(t.url,e._futureSnapshot.url)||e.url.next(e._futureSnapshot.url),Se(t,e._futureSnapshot)||e.data.next(e._futureSnapshot.data)}else e.snapshot=e._futureSnapshot,e.data.next(e._futureSnapshot.data)}function Se(e,t){return C(e.params,t.params)&&V(e.url,t.url)}function Ee(e,t,n){var r=Te(e,t._root,n?n._root:void 0);return new Kt(r,t)}function Te(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){(i=n.value)._futureSnapshot=t.value;o=Pe(e,t,n);return new Yt(i,o)}if(e.retrieve(t.value)){var r=e.retrieve(t.value).route;return Oe(t,r),r}var i=Me(t.value),o=t.children.map(function(t){return Te(e,t)});return new Yt(i,o)}function Oe(e,t){if(e.value.routeConfig!==t.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==t.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");t.value._futureSnapshot=e.value;for(var n=0;n<e.children.length;++n)Oe(e.children[n],t.children[n])}function Pe(e,t,n){return t.children.map(function(t){for(var r=0,i=n.children;r<i.length;r++){var o=i[r];if(e.shouldReuseRoute(o.value.snapshot,t.value))return Te(e,t,o)}return Te(e,t)})}function Me(e){return new Xt(new r.BehaviorSubject(e.url),new r.BehaviorSubject(e.params),new r.BehaviorSubject(e.queryParams),new r.BehaviorSubject(e.fragment),new r.BehaviorSubject(e.data),e.outlet,e.component,e)}function Ae(e,t,n,r,i){if(0===n.length)return Ie(t.root,t.root,t,r,i);var o=je(n);if(o.toRoot())return Ie(t.root,new Rt([],{}),t,r,i);var a=Ne(o,t,e),s=a.processChildren?Ue(a.segmentGroup,a.index,o.commands):ze(a.segmentGroup,a.index,o.commands);return Ie(a.segmentGroup,s,t,r,i)}function De(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function Ie(e,t,n,r,i){return n.root===e?new It(t,We(r),i):new It(Re(n.root,e,t),We(r),i)}function Re(e,t,n){var r={};return O(e.children,function(e,i){r[i]=e===t?n:Re(e,t,n)}),new Rt(e.segments,r)}function je(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new $t(!0,0,e);var t=0,n=!1,r=e.reduce(function(e,r,i){if("object"==typeof r&&null!=r){if(r.outlets){var o={};return O(r.outlets,function(e,t){o[t]="string"==typeof e?e.split("/"):e}),e.concat([{outlets:o}])}if(r.segmentPath)return e.concat([r.segmentPath])}return"string"!=typeof r?e.concat([r]):0===i?(r.split("/").forEach(function(r,i){0==i&&"."===r||(0==i&&""===r?n=!0:".."===r?t++:""!=r&&e.push(r))}),e):e.concat([r])},[]);return new $t(n,t,r)}function Ne(e,t,n){if(e.isAbsolute)return new en(t.root,!0,0);if(-1===n.snapshot._lastPathIndex)return new en(n.snapshot._urlSegment,!0,0);var r=De(e.commands[0])?0:1,i=n.snapshot._lastPathIndex+r;return Le(n.snapshot._urlSegment,i,e.numberOfDoubleDots)}function Le(e,t,n){for(var r=e,i=t,o=n;o>i;){if(o-=i,!(r=r.parent))throw new Error("Invalid number of '../'");i=r.segments.length}return new en(r,!1,i-o)}function Fe(e){return"object"==typeof e&&null!=e&&e.outlets?e.outlets[Ot]:""+e}function Ve(e){return"object"!=typeof e[0]?(t={},t[Ot]=e,t):void 0===e[0].outlets?(n={},n[Ot]=e,n):e[0].outlets;var t,n}function ze(e,t,n){if(e||(e=new Rt([],{})),0===e.segments.length&&e.hasChildren())return Ue(e,t,n);var r=Be(e,t,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){var o=new Rt(e.segments.slice(0,r.pathIndex),{});return o.children[Ot]=new Rt(e.segments.slice(r.pathIndex),e.children),Ue(o,0,i)}return r.match&&0===i.length?new Rt(e.segments,{}):r.match&&!e.hasChildren()?He(e,t,n):r.match?Ue(e,0,i):He(e,t,n)}function Ue(e,t,n){if(0===n.length)return new Rt(e.segments,{});var r=Ve(n),i={};return O(r,function(n,r){null!==n&&(i[r]=ze(e.children[r],t,n))}),O(e.children,function(e,t){void 0===r[t]&&(i[t]=e)}),new Rt(e.segments,i)}function Be(e,t,n){for(var r=0,i=t,o={match:!1,pathIndex:0,commandIndex:0};i<e.segments.length;){if(r>=n.length)return o;var a=e.segments[i],s=Fe(n[r]),u=r<n.length-1?n[r+1]:null;if(i>0&&void 0===s)break;if(s&&u&&"object"==typeof u&&void 0===u.outlets){if(!Ge(s,u,a))return o;r+=2}else{if(!Ge(s,{},a))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function He(e,t,n){for(var r=e.segments.slice(0,t),i=0;i<n.length;){if("object"==typeof n[i]&&void 0!==n[i].outlets){var o=qe(n[i].outlets);return new Rt(r,o)}if(0===i&&De(n[0])){var a=e.segments[t];r.push(new jt(a.path,n[0])),i++}else{var s=Fe(n[i]),u=i<n.length-1?n[i+1]:null;s&&u&&De(u)?(r.push(new jt(s,We(u))),i+=2):(r.push(new jt(s,{})),i++)}}return new Rt(r,{})}function qe(e){var t={};return O(e,function(e,n){null!==e&&(t[n]=He(new Rt([],{}),0,e))}),t}function We(e){var t={};return O(e,function(e,n){return t[n]=""+e}),t}function Ge(e,t,n){return e==n.path&&C(t,n.parameters)}function Ye(e,t,n,r){return new nn(e,t,n,r).recognize()}function Ze(e){e.sort(function(e,t){return e.value.outlet===Ot?-1:t.value.outlet===Ot?1:e.value.outlet.localeCompare(t.value.outlet)})}function Ke(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}function Xe(e,t,n){if(""===t.path){if("full"===t.pathMatch&&(e.hasChildren()||n.length>0))throw new tn;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=(t.matcher||k)(n,e,t);if(!r)throw new tn;var i={};O(r.posParams,function(e,t){i[t]=e.path});var o=T(i,r.consumed[r.consumed.length-1].parameters);return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:o}}function Je(e){var t={};e.forEach(function(e){var n=t[e.value.outlet];if(n){var r=n.url.map(function(e){return e.toString()}).join("/"),i=e.value.url.map(function(e){return e.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '"+r+"' and '"+i+"'.")}t[e.value.outlet]=e.value})}function Qe(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function $e(e){for(var t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function et(e,t,n,r){if(n.length>0&&rt(e,n,r))return(i=new Rt(t,nt(e,t,r,new Rt(n,e.children))))._sourceSegment=e,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:[]};if(0===n.length&&it(e,n,r))return(i=new Rt(e.segments,tt(e,n,r,e.children)))._sourceSegment=e,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:n};var i=new Rt(e.segments,e.children);return i._sourceSegment=e,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:n}}function tt(e,t,n,r){for(var i={},o=0,a=n;o<a.length;o++){var s=a[o];if(ot(e,t,s)&&!r[at(s)]){var u=new Rt([],{});u._sourceSegment=e,u._segmentIndexShift=e.segments.length,i[at(s)]=u}}return T(r,i)}function nt(e,t,n,r){var i={};i[Ot]=r,r._sourceSegment=e,r._segmentIndexShift=t.length;for(var o=0,a=n;o<a.length;o++){var s=a[o];if(""===s.path&&at(s)!==Ot){var u=new Rt([],{});u._sourceSegment=e,u._segmentIndexShift=t.length,i[at(s)]=u}}return i}function rt(e,t,n){return n.filter(function(n){return ot(e,t,n)&&at(n)!==Ot}).length>0}function it(e,t,n){return n.filter(function(n){return ot(e,t,n)}).length>0}function ot(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&(""===n.path&&void 0===n.redirectTo)}function at(e){return e.outlet?e.outlet:Ot}function st(e){return e.data?e.data:{}}function ut(e){return e.resolve?e.resolve:{}}function ct(e){throw e}function lt(e){return a.of(null)}function pt(e){Ce(e.value),e.children.forEach(pt)}function dt(e){for(var t=e.parent;t;){var n=t._routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;if(n&&n.component)return null;t=t.parent}return null}function ht(e){if(!e)return null;for(var t=e.parent;t;){var n=t._routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;t=t.parent}return null}function ft(e){return e?e.children.reduce(function(e,t){return e[t.value.outlet]=t,e},{}):{}}function mt(e,t){var n=e._outlets[t.outlet];if(!n){var r=t.component.name;throw t.outlet===Ot?new Error("Cannot find primary outlet to load '"+r+"'"):new Error("Cannot find the outlet "+t.outlet+" to load '"+r+"'")}return n}function vt(e){for(var t=0;t<e.length;t++){var n=e[t];if(null==n)throw new Error("The requested path contains "+n+" segment at index "+t)}}function yt(e){return""===e||!!e}function gt(){return new n.NgProbeToken("Router",hn)}function _t(e,n,r){return void 0===r&&(r={}),r.useHash?new t.HashLocationStrategy(e,n):new t.PathLocationStrategy(e,n)}function bt(e){if(e)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function wt(e){return[{provide:n.ANALYZE_FOR_ENTRY_COMPONENTS,multi:!0,useValue:e},{provide:Mt,multi:!0,useValue:e}]}function kt(e){return e.appInitializer.bind(e)}function xt(e){return e.bootstrapListener.bind(e)}function Ct(){return[In,{provide:n.APP_INITIALIZER,multi:!0,useFactory:kt,deps:[In]},{provide:Rn,useFactory:xt,deps:[In]},{provide:n.APP_BOOTSTRAP_LISTENER,multi:!0,useExisting:Rn}]}var St=n.__core_private__.isPromise,Et=n.__core_private__.isObservable,Tt=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},Ot="primary",Pt=function(e){function t(t){e.call(this,t),this.message=t,this.stack=new Error(t).stack}return Tt(t,e),t.prototype.toString=function(){return this.message},t}(Error),Mt=new n.OpaqueToken("ROUTES"),At=function(){return function(e,t,n,r){this.routes=e,this.injector=t,this.factoryResolver=n,this.injectorFactory=r}}(),Dt=function(){function e(e,t){this.loader=e,this.compiler=t}return e.prototype.load=function(e,t){return l.map.call(this.loadModuleFactory(t),function(t){var n=t.create(e);return new At(S(n.injector.get(Mt)),n.injector,n.componentFactoryResolver,function(e){return t.create(e).injector})})},e.prototype.loadModuleFactory=function(e){var t=this;return"string"==typeof e?y.fromPromise(this.loader.load(e)):p.mergeMap.call(A(e()),function(e){return e instanceof n.NgModuleFactory?a.of(e):y.fromPromise(t.compiler.compileModuleAsync(e))})},e}(),It=function(){function e(e,t,n){this.root=e,this.queryParams=t,this.fragment=n}return e.prototype.toString=function(){return(new Lt).serialize(this)},e}(),Rt=function(){function e(e,t){var n=this;this.segments=e,this.children=t,this.parent=null,O(t,function(e,t){return e.parent=n})}return e.prototype.hasChildren=function(){return this.numberOfChildren>0},Object.defineProperty(e.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return B(this)},e}(),jt=function(){function e(e,t){this.path=e,this.parameters=t}return e.prototype.toString=function(){return G(this)},e}(),Nt=function(){function e(){}return e.prototype.parse=function(e){},e.prototype.serialize=function(e){},e}(),Lt=function(){function e(){}return e.prototype.parse=function(e){var t=new Bt(e);return new It(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())},e.prototype.serialize=function(e){return""+("/"+H(e.root,!0))+Z(e.queryParams)+(null!==e.fragment&&void 0!==e.fragment?"#"+encodeURI(e.fragment):"")},e}(),Ft=function(){return function(e,t){this.first=e,this.second=t}}(),Vt=/^[^\/()?;=&#]+/,zt=/^[^=?&#]+/,Ut=/^[^?&#]+/,Bt=function(){function e(e){this.url=e,this.remaining=e}return e.prototype.peekStartsWith=function(e){return this.remaining.startsWith(e)},e.prototype.capture=function(e){if(!this.remaining.startsWith(e))throw new Error('Expected "'+e+'".');this.remaining=this.remaining.substring(e.length)},e.prototype.parseRootSegment=function(){return this.remaining.startsWith("/")&&this.capture("/"),""===this.remaining||this.remaining.startsWith("?")||this.remaining.startsWith("#")?new Rt([],{}):new Rt([],this.parseChildren())},e.prototype.parseChildren=function(){if(0==this.remaining.length)return{};this.peekStartsWith("/")&&this.capture("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegments());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegments());var t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n[Ot]=new Rt(e,t)),n},e.prototype.parseSegments=function(){var e=X(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");this.capture(e);var t={};return this.peekStartsWith(";")&&(t=this.parseMatrixParams()),new jt(W(e),t)},e.prototype.parseQueryParams=function(){var e={};if(this.peekStartsWith("?"))for(this.capture("?"),this.parseQueryParam(e);this.remaining.length>0&&this.peekStartsWith("&");)this.capture("&"),this.parseQueryParam(e);return e},e.prototype.parseFragment=function(){return this.peekStartsWith("#")?decodeURI(this.remaining.substring(1)):null},e.prototype.parseMatrixParams=function(){for(var e={};this.remaining.length>0&&this.peekStartsWith(";");)this.capture(";"),this.parseParam(e);return e},e.prototype.parseParam=function(e){var t=X(this.remaining);if(t){this.capture(t);var n="";if(this.peekStartsWith("=")){this.capture("=");var r=X(this.remaining);r&&(n=r,this.capture(n))}e[W(t)]=W(n)}},e.prototype.parseQueryParam=function(e){var t=J(this.remaining);if(t){this.capture(t);var n="";if(this.peekStartsWith("=")){this.capture("=");var r=Q(this.remaining);r&&(n=r,this.capture(n))}var i=W(t),o=W(n);if(e.hasOwnProperty(i)){var a=e[i];Array.isArray(a)||(a=[a],e[i]=a),a.push(o)}else e[i]=o}},e.prototype.parseParens=function(e){var t={};for(this.capture("(");!this.peekStartsWith(")")&&this.remaining.length>0;){var n=X(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '"+this.url+"'");var i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):e&&(i=Ot);var o=this.parseChildren();t[i]=1===Object.keys(o).length?o[Ot]:new Rt([],o),this.peekStartsWith("//")&&this.capture("//")}return this.capture(")"),t},e}(),Ht=function(){return function(e){void 0===e&&(e=null),this.segmentGroup=e}}(),qt=function(){return function(e){this.urlTree=e}}(),Wt=function(){function e(e,t,n,r,i){this.injector=e,this.configLoader=t,this.urlSerializer=n,this.urlTree=r,this.config=i,this.allowRedirects=!0}return e.prototype.apply=function(){var e=this,t=this.expandSegmentGroup(this.injector,this.config,this.urlTree.root,Ot),n=l.map.call(t,function(t){return e.createUrlTree(t,e.urlTree.queryParams,e.urlTree.fragment)});return f._catch.call(n,function(t){if(t instanceof qt)return e.allowRedirects=!1,e.match(t.urlTree);throw t instanceof Ht?e.noMatchError(t):t})},e.prototype.match=function(e){var t=this,n=this.expandSegmentGroup(this.injector,this.config,e.root,Ot),r=l.map.call(n,function(n){return t.createUrlTree(n,e.queryParams,e.fragment)});return f._catch.call(r,function(e){throw e instanceof Ht?t.noMatchError(e):e})},e.prototype.noMatchError=function(e){return new Error("Cannot match any routes. URL Segment: '"+e.segmentGroup+"'")},e.prototype.createUrlTree=function(e,t,n){var r=e.segments.length>0?new Rt([],(i={},i[Ot]=e,i)):e;return new It(r,t,n);var i},e.prototype.expandSegmentGroup=function(e,t,n,r){return 0===n.segments.length&&n.hasChildren()?l.map.call(this.expandChildren(e,t,n),function(e){return new Rt([],e)}):this.expandSegment(e,n,t,n.segments,r,!0)},e.prototype.expandChildren=function(e,t,n){var r=this;return P(n.children,function(n,i){return r.expandSegmentGroup(e,t,i,n)})},e.prototype.expandSegment=function(e,t,n,r,i,o){var s=this,u=a.of.apply(void 0,n),p=l.map.call(u,function(u){var c=s.expandSegmentAgainstRoute(e,t,n,u,r,i,o);return f._catch.call(c,function(e){if(e instanceof Ht)return a.of(null);throw e})}),d=m.concatAll.call(p),h=c.first.call(d,function(e){return!!e});return f._catch.call(h,function(e,n){if(e instanceof v.EmptyError){if(s.noLeftoversInUrl(t,r,i))return a.of(new Rt([],{}));throw new Ht(t)}throw e})},e.prototype.noLeftoversInUrl=function(e,t,n){return 0===t.length&&!e.children[n]},e.prototype.expandSegmentAgainstRoute=function(e,t,n,r,i,o,a){return he(r)!==o?$(t):void 0===r.redirectTo||a&&this.allowRedirects?void 0===r.redirectTo?this.matchSegmentAgainstRoute(e,t,r,i):this.expandSegmentAgainstRouteUsingRedirect(e,t,n,r,i,o):$(t)},e.prototype.expandSegmentAgainstRouteUsingRedirect=function(e,t,n,r,i,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,i,o)},e.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(e,t,n,r){var i=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?ee(o):p.mergeMap.call(this.lineralizeSegments(n,o),function(n){var o=new Rt(n,{});return i.expandSegment(e,o,t,n,r,!1)})},e.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(e,t,n,r,i,o){var a=this,s=oe(t,r,i),u=s.matched,c=s.consumedSegments,l=s.lastChild,d=s.positionalParamSegments;if(!u)return $(t);var h=this.applyRedirectCommands(c,r.redirectTo,d);return r.redirectTo.startsWith("/")?ee(h):p.mergeMap.call(this.lineralizeSegments(r,h),function(r){return a.expandSegment(e,t,n,r.concat(i.slice(l)),o,!1)})},e.prototype.matchSegmentAgainstRoute=function(e,t,n,r){var i=this;if("**"===n.path)return n.loadChildren?l.map.call(this.configLoader.load(e,n.loadChildren),function(e){return n._loadedConfig=e,new Rt(r,{})}):a.of(new Rt(r,{}));var o=oe(t,n,r),s=o.matched,u=o.consumedSegments,c=o.lastChild;if(!s)return $(t);var d=r.slice(c),h=this.getChildConfig(e,n);return p.mergeMap.call(h,function(e){var n=e.injector,r=e.routes,o=ae(t,u,d,r),s=o.segmentGroup,c=o.slicedSegments;if(0===c.length&&s.hasChildren()){p=i.expandChildren(n,r,s);return l.map.call(p,function(e){return new Rt(u,e)})}if(0===r.length&&0===c.length)return a.of(new Rt(u,{}));var p=i.expandSegment(n,s,r,c,Ot,!0);return l.map.call(p,function(e){return new Rt(u.concat(e.segments),e.children)})})},e.prototype.getChildConfig=function(e,t){var n=this;return t.children?a.of(new At(t.children,e,null,null)):t.loadChildren?p.mergeMap.call(ie(e,t),function(r){return r?t._loadedConfig?a.of(t._loadedConfig):l.map.call(n.configLoader.load(e,t.loadChildren),function(e){return t._loadedConfig=e,e}):ne(t)}):a.of(new At([],e,null,null))},e.prototype.lineralizeSegments=function(e,t){for(var n=[],r=t.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return a.of(n);if(r.numberOfChildren>1||!r.children[Ot])return te(e.redirectTo);r=r.children[Ot]}},e.prototype.applyRedirectCommands=function(e,t,n){this.urlSerializer.parse(t);return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)},e.prototype.applyRedirectCreatreUrlTree=function(e,t,n,r){var i=this.createSegmentGroup(e,t.root,n,r);return new It(i,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)},e.prototype.createQueryParams=function(e,t){var n={};return O(e,function(e,r){e.startsWith(":")?n[r]=t[e.substring(1)]:n[r]=e}),n},e.prototype.createSegmentGroup=function(e,t,n,r){var i=this,o=this.createSegments(e,t.segments,n,r),a={};return O(t.children,function(t,o){a[o]=i.createSegmentGroup(e,t,n,r)}),new Rt(o,a)},e.prototype.createSegments=function(e,t,n,r){var i=this;return t.map(function(t){return t.path.startsWith(":")?i.findPosParam(e,t,r):i.findOrReturn(t,n)})},e.prototype.findPosParam=function(e,t,n){var r=n[t.path.substring(1)];if(!r)throw new Error("Cannot redirect to '"+e+"'. Cannot find '"+t.path+"'.");return r},e.prototype.findOrReturn=function(e,t){for(var n=0,r=0,i=t;r<i.length;r++){var o=i[r];if(o.path===e.path)return t.splice(n),o;n++}return e},e}(),Gt=function(){function e(e){this._root=e}return Object.defineProperty(e.prototype,"root",{get:function(){return this._root.value},enumerable:!0,configurable:!0}),e.prototype.parent=function(e){var t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null},e.prototype.children=function(e){var t=ye(e,this._root);return t?t.children.map(function(e){return e.value}):[]},e.prototype.firstChild=function(e){var t=ye(e,this._root);return t&&t.children.length>0?t.children[0].value:null},e.prototype.siblings=function(e){var t=ge(e,this._root,[]);return t.length<2?[]:t[t.length-2].children.map(function(e){return e.value}).filter(function(t){return t!==e})},e.prototype.pathFromRoot=function(e){return ge(e,this._root,[]).map(function(e){return e.value})},e}(),Yt=function(){function e(e,t){this.value=e,this.children=t}return e.prototype.toString=function(){return"TreeNode("+this.value+")"},e}(),Zt=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},Kt=function(e){function t(t,n){e.call(this,t),this.snapshot=n,ke(this,t)}return Zt(t,e),t.prototype.toString=function(){return this.snapshot.toString()},t}(Gt),Xt=function(){function e(e,t,n,r,i,o,a,s){this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=a,this._futureSnapshot=s}return Object.defineProperty(e.prototype,"routeConfig",{get:function(){return this._futureSnapshot.routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},e}(),Jt=function(){function e(e,t,n,r,i,o,a,s,u,c,l){this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=a,this._routeConfig=s,this._urlSegment=u,this._lastPathIndex=c,this._resolve=l}return Object.defineProperty(e.prototype,"routeConfig",{get:function(){return this._routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return"Route(url:'"+this.url.map(function(e){return e.toString()}).join("/")+"', path:'"+(this._routeConfig?this._routeConfig.path:"")+"')"},e}(),Qt=function(e){function t(t,n){e.call(this,n),this.url=t,ke(this,n)}return Zt(t,e),t.prototype.toString=function(){return xe(this._root)},t}(Gt),$t=function(){function e(e,t,n){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=n,e&&n.length>0&&De(n[0]))throw new Error("Root segment cannot have matrix parameters");var r=n.find(function(e){return"object"==typeof e&&null!=e&&e.outlets});if(r&&r!==E(n))throw new Error("{outlets:{}} has to be the last command")}return e.prototype.toRoot=function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]},e}(),en=function(){return function(e,t,n){this.segmentGroup=e,this.processChildren=t,this.index=n}}(),tn=function(){return function(){}}(),nn=function(){function e(e,t,n,r){this.rootComponentType=e,this.config=t,this.urlTree=n,this.url=r}return e.prototype.recognize=function(){try{var e=et(this.urlTree.root,[],[],this.config).segmentGroup,t=this.processSegmentGroup(this.config,e,Ot),n=new Jt([],Object.freeze({}),Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,{},Ot,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Yt(n,t),i=new Qt(this.url,r);return this.inheriteParamsAndData(i._root),a.of(i)}catch(e){return new h.Observable(function(t){return t.error(e)})}},e.prototype.inheriteParamsAndData=function(e){var t=this,n=e.value,r=we(n);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),e.children.forEach(function(e){return t.inheriteParamsAndData(e)})},e.prototype.processSegmentGroup=function(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)},e.prototype.processChildren=function(e,t){var n=this,r=U(t,function(t,r){return n.processSegmentGroup(e,t,r)});return Je(r),Ze(r),r},e.prototype.processSegment=function(e,t,n,r){for(var i=0,o=e;i<o.length;i++){var a=o[i];try{return this.processSegmentAgainstRoute(a,t,n,r)}catch(e){if(!(e instanceof tn))throw e}}if(this.noLeftoversInUrl(t,n,r))return[];throw new tn},e.prototype.noLeftoversInUrl=function(e,t,n){return 0===t.length&&!e.children[n]},e.prototype.processSegmentAgainstRoute=function(e,t,n,r){if(e.redirectTo)throw new tn;if((e.outlet?e.outlet:Ot)!==r)throw new tn;if("**"===e.path){var i=n.length>0?E(n).parameters:{},o=new Jt(n,i,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,st(e),r,e.component,e,Qe(t),$e(t)+n.length,ut(e));return[new Yt(o,[])]}var a=Xe(t,e,n),s=a.consumedSegments,u=a.parameters,c=a.lastChild,l=n.slice(c),p=Ke(e),d=et(t,s,l,p),h=d.segmentGroup,f=d.slicedSegments,m=new Jt(s,u,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,st(e),r,e.component,e,Qe(t),$e(t)+s.length,ut(e));if(0===f.length&&h.hasChildren()){v=this.processChildren(p,h);return[new Yt(m,v)]}if(0===p.length&&0===f.length)return[new Yt(m,[])];var v=this.processSegment(p,h,f,Ot);return[new Yt(m,v)]},e}(),rn=function(){function e(){this._outlets={}}return e.prototype.registerOutlet=function(e,t){this._outlets[e]=t},e.prototype.removeOutlet=function(e){this._outlets[e]=void 0},e}(),on=function(){function e(){}return e.prototype.shouldProcessUrl=function(e){},e.prototype.extract=function(e){},e.prototype.merge=function(e,t){},e}(),an=function(){function e(){}return e.prototype.shouldProcessUrl=function(e){return!0},e.prototype.extract=function(e){return e},e.prototype.merge=function(e,t){return e},e}(),sn=function(){function e(e,t){this.id=e,this.url=t}return e.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"},e}(),un=function(){function e(e,t,n){this.id=e,this.url=t,this.urlAfterRedirects=n}return e.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"},e}(),cn=function(){function e(e,t,n){this.id=e,this.url=t,this.reason=n}return e.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"},e}(),ln=function(){function e(e,t,n){this.id=e,this.url=t,this.error=n}return e.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"},e}(),pn=function(){function e(e,t,n,r){this.id=e,this.url=t,this.urlAfterRedirects=n,this.state=r}return e.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(),dn=function(){function e(){}return e.prototype.shouldDetach=function(e){return!1},e.prototype.store=function(e,t){},e.prototype.shouldAttach=function(e){return!1},e.prototype.retrieve=function(e){return null},e.prototype.shouldReuseRoute=function(e,t){return e.routeConfig===t.routeConfig},e}(),hn=function(){function e(e,t,n,o,a,s,u,c){this.rootComponentType=e,this.urlSerializer=t,this.outletMap=n,this.location=o,this.injector=a,this.config=c,this.navigations=new r.BehaviorSubject(null),this.routerEvents=new i.Subject,this.navigationId=0,this.errorHandler=ct,this.navigated=!1,this.hooks={beforePreactivation:lt,afterPreactivation:lt},this.urlHandlingStrategy=new an,this.routeReuseStrategy=new dn,this.resetConfig(c),this.currentUrlTree=D(),this.rawUrlTree=this.currentUrlTree,this.configLoader=new Dt(s,u),this.currentRouterState=_e(this.currentUrlTree,this.rootComponentType),this.processNavigations()}return e.prototype.resetRootComponentType=function(e){this.rootComponentType=e,this.currentRouterState.root.component=this.rootComponentType},e.prototype.initialNavigation=function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})},e.prototype.setUpLocationChangeListener=function(){var e=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(Zone.current.wrap(function(t){var n=e.urlSerializer.parse(t.url),r="popstate"===t.type?"popstate":"hashchange";setTimeout(function(){e.scheduleNavigation(n,r,{replaceUrl:!0})},0)})))},Object.defineProperty(e.prototype,"routerState",{get:function(){return this.currentRouterState},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this.serializeUrl(this.currentUrlTree)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"events",{get:function(){return this.routerEvents},enumerable:!0,configurable:!0}),e.prototype.resetConfig=function(e){fe(e),this.config=e},e.prototype.ngOnDestroy=function(){this.dispose()},e.prototype.dispose=function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)},e.prototype.createUrlTree=function(e,t){var n=void 0===t?{}:t,r=n.relativeTo,i=n.queryParams,o=n.fragment,a=n.preserveQueryParams,s=n.preserveFragment,u=r||this.routerState.root,c=a?this.currentUrlTree.queryParams:i,l=s?this.currentUrlTree.fragment:o;return Ae(u,this.currentUrlTree,e,c,l)},e.prototype.navigateByUrl=function(e,t){if(void 0===t&&(t={skipLocationChange:!1}),e instanceof It)return this.scheduleNavigation(this.urlHandlingStrategy.merge(e,this.rawUrlTree),"imperative",t);var n=this.urlSerializer.parse(e);return this.scheduleNavigation(this.urlHandlingStrategy.merge(n,this.rawUrlTree),"imperative",t)},e.prototype.navigate=function(e,t){return void 0===t&&(t={skipLocationChange:!1}),vt(e),"object"==typeof t.queryParams&&null!==t.queryParams&&(t.queryParams=this.removeEmptyProps(t.queryParams)),this.navigateByUrl(this.createUrlTree(e,t),t)},e.prototype.serializeUrl=function(e){return this.urlSerializer.serialize(e)},e.prototype.parseUrl=function(e){return this.urlSerializer.parse(e)},e.prototype.isActive=function(e,t){if(e instanceof It)return I(this.currentUrlTree,e,t);var n=this.urlSerializer.parse(e);return I(this.currentUrlTree,n,t)},e.prototype.removeEmptyProps=function(e){return Object.keys(e).reduce(function(t,n){var r=e[n];return null!==r&&void 0!==r&&(t[n]=r),t},{})},e.prototype.processNavigations=function(){var e=this;s.concatMap.call(this.navigations,function(t){return t?(e.executeScheduledNavigation(t),t.promise.catch(function(){})):a.of(null)}).subscribe(function(){})},e.prototype.scheduleNavigation=function(e,t,n){var r=this.navigations.value;if(r&&"imperative"!==t&&"imperative"===r.source&&r.rawUrl.toString()===e.toString())return null;if(r&&"hashchange"==t&&"popstate"===r.source&&r.rawUrl.toString()===e.toString())return null;var i=null,o=null,a=new Promise(function(e,t){i=e,o=t}),s=++this.navigationId;return this.navigations.next({id:s,source:t,rawUrl:e,extras:n,resolve:i,reject:o,promise:a}),a.catch(function(e){return Promise.reject(e)})},e.prototype.executeScheduledNavigation=function(e){var t=this,n=e.id,r=e.rawUrl,i=e.extras,o=e.resolve,a=e.reject,s=this.urlHandlingStrategy.extract(r),u=!this.navigated||s.toString()!==this.currentUrlTree.toString();u&&this.urlHandlingStrategy.shouldProcessUrl(r)?(this.routerEvents.next(new sn(n,this.serializeUrl(s))),Promise.resolve().then(function(e){return t.runNavigate(s,r,i.skipLocationChange,i.replaceUrl,n,null)}).then(o,a)):u&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)?(this.routerEvents.next(new sn(n,this.serializeUrl(s))),Promise.resolve().then(function(e){return t.runNavigate(s,r,!1,!1,n,_e(s,t.rootComponentType).snapshot)}).then(o,a)):(this.rawUrlTree=r,o(null))},e.prototype.runNavigate=function(e,t,n,r,i,o){var s=this;return i!==this.navigationId?(this.location.go(this.urlSerializer.serialize(this.currentUrlTree)),this.routerEvents.next(new cn(i,this.serializeUrl(e),"Navigation ID "+i+" is not equal to the current navigation id "+this.navigationId)),Promise.resolve(!1)):new Promise(function(u,c){var d;if(o)d=a.of({appliedUrl:e,snapshot:o});else{var h=re(s.injector,s.configLoader,s.urlSerializer,e,s.config);d=p.mergeMap.call(h,function(t){return l.map.call(Ye(s.rootComponentType,s.config,t,s.serializeUrl(t)),function(n){return s.routerEvents.next(new pn(i,s.serializeUrl(e),s.serializeUrl(t),n)),{appliedUrl:t,snapshot:n}})})}var f,m,v=p.mergeMap.call(d,function(e){return l.map.call(s.hooks.beforePreactivation(e.snapshot),function(){return e})}),y=l.map.call(v,function(e){var t=e.appliedUrl,n=e.snapshot;return(f=new vn(n,s.currentRouterState.snapshot,s.injector)).traverse(s.outletMap),{appliedUrl:t,snapshot:n}}),g=p.mergeMap.call(y,function(e){var t=e.appliedUrl,n=e.snapshot;return s.navigationId!==i?a.of(!1):l.map.call(f.checkGuards(),function(e){return{appliedUrl:t,snapshot:n,shouldActivate:e}})}),_=p.mergeMap.call(g,function(e){return s.navigationId!==i?a.of(!1):e.shouldActivate?l.map.call(f.resolveData(),function(){return e}):a.of(e)}),b=p.mergeMap.call(_,function(e){return l.map.call(s.hooks.afterPreactivation(e.snapshot),function(){return e})}),w=l.map.call(b,function(e){var t=e.appliedUrl,n=e.snapshot,r=e.shouldActivate;return r?{appliedUrl:t,state:Ee(s.routeReuseStrategy,n,s.currentRouterState),shouldActivate:r}:{appliedUrl:t,state:null,shouldActivate:r}}),k=s.currentRouterState,x=s.currentUrlTree;w.forEach(function(e){var o=e.appliedUrl,a=e.state;if(e.shouldActivate&&i===s.navigationId){if(s.currentUrlTree=o,s.rawUrlTree=s.urlHandlingStrategy.merge(s.currentUrlTree,t),s.currentRouterState=a,!n){var u=s.urlSerializer.serialize(s.rawUrlTree);s.location.isCurrentPathEqualTo(u)||r?s.location.replaceState(u):s.location.go(u)}new yn(s.routeReuseStrategy,a,k).activate(s.outletMap),m=!0}else m=!1}).then(function(){m?(s.navigated=!0,s.routerEvents.next(new un(i,s.serializeUrl(e),s.serializeUrl(s.currentUrlTree))),u(!0)):(s.resetUrlToCurrentUrlTree(),s.routerEvents.next(new cn(i,s.serializeUrl(e),"")),u(!1))},function(n){if(n instanceof Pt)s.resetUrlToCurrentUrlTree(),s.navigated=!0,s.routerEvents.next(new cn(i,s.serializeUrl(e),n.message)),u(!1);else{s.routerEvents.next(new ln(i,s.serializeUrl(e),n));try{u(s.errorHandler(n))}catch(e){c(e)}}s.currentRouterState=k,s.currentUrlTree=x,s.rawUrlTree=s.urlHandlingStrategy.merge(s.currentUrlTree,t),s.location.replaceState(s.serializeUrl(s.rawUrlTree))})})},e.prototype.resetUrlToCurrentUrlTree=function(){var e=this.urlSerializer.serialize(this.rawUrlTree);this.location.replaceState(e)},e}(),fn=function(){function e(e){this.path=e}return Object.defineProperty(e.prototype,"route",{get:function(){return this.path[this.path.length-1]},enumerable:!0,configurable:!0}),e}(),mn=function(){return function(e,t){this.component=e,this.route=t}}(),vn=function(){function e(e,t,n){this.future=e,this.curr=t,this.injector=n,this.checks=[]}return e.prototype.traverse=function(e){var t=this.future._root,n=this.curr?this.curr._root:null;this.traverseChildRoutes(t,n,e,[t.value])},e.prototype.checkGuards=function(){var e=this;if(0===this.checks.length)return a.of(!0);var t=o.from(this.checks),n=p.mergeMap.call(t,function(t){if(t instanceof fn)return M(o.from([e.runCanActivateChild(t.path),e.runCanActivate(t.route)]));if(t instanceof mn){var n=t;return e.runCanDeactivate(n.component,n.route)}throw new Error("Cannot be reached")});return u.every.call(n,function(e){return!0===e})},e.prototype.resolveData=function(){var e=this;if(0===this.checks.length)return a.of(null);var t=o.from(this.checks),n=s.concatMap.call(t,function(t){return t instanceof fn?e.runResolve(t.route):a.of(null)});return d.reduce.call(n,function(e,t){return e})},e.prototype.traverseChildRoutes=function(e,t,n,r){var i=this,o=ft(t);e.children.forEach(function(e){i.traverseRoutes(e,o[e.value.outlet],n,r.concat([e.value])),delete o[e.value.outlet]}),O(o,function(e,t){return i.deactiveRouteAndItsChildren(e,n._outlets[t])})},e.prototype.traverseRoutes=function(e,t,n,r){var i=e.value,o=t?t.value:null,a=n?n._outlets[e.value.outlet]:null;o&&i._routeConfig===o._routeConfig?(Se(i,o)?(i.data=o.data,i._resolvedData=o._resolvedData):this.checks.push(new mn(a.component,o),new fn(r)),i.component?this.traverseChildRoutes(e,t,a?a.outletMap:null,r):this.traverseChildRoutes(e,t,n,r)):(o&&this.deactiveRouteAndItsChildren(t,a),this.checks.push(new fn(r)),i.component?this.traverseChildRoutes(e,null,a?a.outletMap:null,r):this.traverseChildRoutes(e,null,n,r))},e.prototype.deactiveRouteAndItsChildren=function(e,t){var n=this,r=ft(e),i=e.value;O(r,function(e,r){i.component?t?n.deactiveRouteAndItsChildren(e,t.outletMap._outlets[r]):n.deactiveRouteAndItsChildren(e,null):n.deactiveRouteAndItsChildren(e,t)}),i.component&&t&&t.isActivated?this.checks.push(new mn(t.component,i)):this.checks.push(new mn(null,i))},e.prototype.runCanActivate=function(e){var t=this,n=e._routeConfig?e._routeConfig.canActivate:null;return n&&0!==n.length?M(l.map.call(o.from(n),function(n){var r,i=t.getToken(n,e);return r=A(i.canActivate?i.canActivate(e,t.future):i(e,t.future)),c.first.call(r)})):a.of(!0)},e.prototype.runCanActivateChild=function(e){var t=this,n=e[e.length-1],r=e.slice(0,e.length-1).reverse().map(function(e){return t.extractCanActivateChild(e)}).filter(function(e){return null!==e});return M(l.map.call(o.from(r),function(e){return M(l.map.call(o.from(e.guards),function(r){var i,o=t.getToken(r,e.node);return i=A(o.canActivateChild?o.canActivateChild(n,t.future):o(n,t.future)),c.first.call(i)}))}))},e.prototype.extractCanActivateChild=function(e){var t=e._routeConfig?e._routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null},e.prototype.runCanDeactivate=function(e,t){var n=this,r=t&&t._routeConfig?t._routeConfig.canDeactivate:null;if(!r||0===r.length)return a.of(!0);var i=p.mergeMap.call(o.from(r),function(r){var i,o=n.getToken(r,t);return i=A(o.canDeactivate?o.canDeactivate(e,t,n.curr):o(e,t,n.curr)),c.first.call(i)});return u.every.call(i,function(e){return!0===e})},e.prototype.runResolve=function(e){var t=e._resolve;return l.map.call(this.resolveNode(t,e),function(t){return e._resolvedData=t,e.data=T(e.data,we(e).resolve),null})},e.prototype.resolveNode=function(e,t){var n=this;return P(e,function(e,r){var i=n.getToken(r,t);return A(i.resolve?i.resolve(t,n.future):i(t,n.future))})},e.prototype.getToken=function(e,t){var n=ht(t);return(n?n.injector:this.injector).get(e)},e}(),yn=function(){function e(e,t,n){this.routeReuseStrategy=e,this.futureState=t,this.currState=n}return e.prototype.activate=function(e){var t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,e),Ce(this.futureState.root),this.activateChildRoutes(t,n,e)},e.prototype.deactivateChildRoutes=function(e,t,n){var r=this,i=ft(t);e.children.forEach(function(e){r.deactivateRoutes(e,i[e.value.outlet],n),delete i[e.value.outlet]}),O(i,function(e,t){return r.deactiveRouteAndItsChildren(e,n)})},e.prototype.activateChildRoutes=function(e,t,n){var r=this,i=ft(t);e.children.forEach(function(e){r.activateRoutes(e,i[e.value.outlet],n)})},e.prototype.deactivateRoutes=function(e,t,n){var r=e.value,i=t?t.value:null;if(r===i)if(r.component){var o=mt(n,r);this.deactivateChildRoutes(e,t,o.outletMap)}else this.deactivateChildRoutes(e,t,n);else i&&this.deactiveRouteAndItsChildren(t,n)},e.prototype.activateRoutes=function(e,t,n){var r=e.value;if(r===(t?t.value:null))if(Ce(r),r.component){i=mt(n,r);this.activateChildRoutes(e,t,i.outletMap)}else this.activateChildRoutes(e,t,n);else if(r.component){Ce(r);var i=mt(n,e.value);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){var o=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),i.attach(o.componentRef,o.route.value),pt(o.route)}else{var a=new rn;this.placeComponentIntoOutlet(a,r,i),this.activateChildRoutes(e,null,a)}}else Ce(r),this.activateChildRoutes(e,null,n)},e.prototype.placeComponentIntoOutlet=function(e,t,r){var i=[{provide:Xt,useValue:t},{provide:rn,useValue:e}],o=dt(t.snapshot),a=null,s=null;o?(s=o.injectorFactory(r.locationInjector),a=o.factoryResolver,i.push({provide:n.ComponentFactoryResolver,useValue:a})):(s=r.locationInjector,a=r.locationFactoryResolver),r.activate(t,a,s,n.ReflectiveInjector.resolve(i),e)},e.prototype.deactiveRouteAndItsChildren=function(e,t){this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactiveRouteAndOutlet(e,t)},e.prototype.detachAndStoreRouteSubtree=function(e,t){var n=mt(t,e.value).detach();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:n,route:e})},e.prototype.deactiveRouteAndOutlet=function(e,t){var n=this,r=ft(e),i=null;try{i=mt(t,e.value)}catch(e){return}var o=i.outletMap;O(r,function(r,i){e.value.component?n.deactiveRouteAndItsChildren(r,o):n.deactiveRouteAndItsChildren(r,t)}),i&&i.isActivated&&i.deactivate()},e}(),gn=function(){function e(e,t){this.router=e,this.route=t,this.commands=[]}return Object.defineProperty(e.prototype,"routerLink",{set:function(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]},enumerable:!0,configurable:!0}),e.prototype.onClick=function(){var e={skipLocationChange:yt(this.skipLocationChange),replaceUrl:yt(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,e),!0},Object.defineProperty(e.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:yt(this.preserveQueryParams),preserveFragment:yt(this.preserveFragment)})},enumerable:!0,configurable:!0}),e.decorators=[{type:n.Directive,args:[{selector:":not(a)[routerLink]"}]}],e.ctorParameters=function(){return[{type:hn},{type:Xt}]},e.propDecorators={queryParams:[{type:n.Input}],fragment:[{type:n.Input}],preserveQueryParams:[{type:n.Input}],preserveFragment:[{type:n.Input}],skipLocationChange:[{type:n.Input}],replaceUrl:[{type:n.Input}],routerLink:[{type:n.Input}],onClick:[{type:n.HostListener,args:["click"]}]},e}(),_n=function(){function e(e,t,n){var r=this;this.router=e,this.route=t,this.locationStrategy=n,this.commands=[],this.subscription=e.events.subscribe(function(e){e instanceof un&&r.updateTargetUrlAndHref()})}return Object.defineProperty(e.prototype,"routerLink",{set:function(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){this.updateTargetUrlAndHref()},e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},e.prototype.onClick=function(e,t,n){if(0!==e||t||n)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;var r={skipLocationChange:yt(this.skipLocationChange),replaceUrl:yt(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,r),!1},e.prototype.updateTargetUrlAndHref=function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))},Object.defineProperty(e.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:yt(this.preserveQueryParams),preserveFragment:yt(this.preserveFragment)})},enumerable:!0,configurable:!0}),e.decorators=[{type:n.Directive,args:[{selector:"a[routerLink]"}]}],e.ctorParameters=function(){return[{type:hn},{type:Xt},{type:t.LocationStrategy}]},e.propDecorators={target:[{type:n.HostBinding,args:["attr.target"]},{type:n.Input}],queryParams:[{type:n.Input}],fragment:[{type:n.Input}],preserveQueryParams:[{type:n.Input}],preserveFragment:[{type:n.Input}],skipLocationChange:[{type:n.Input}],replaceUrl:[{type:n.Input}],href:[{type:n.HostBinding}],routerLink:[{type:n.Input}],onClick:[{type:n.HostListener,args:["click",["$event.button","$event.ctrlKey","$event.metaKey"]]}]},e}(),bn=function(){function e(e,t,n,r){var i=this;this.router=e,this.element=t,this.renderer=n,this.cdr=r,this.classes=[],this.active=!1,this.routerLinkActiveOptions={exact:!1},this.subscription=e.events.subscribe(function(e){e instanceof un&&i.update()})}return Object.defineProperty(e.prototype,"isActive",{get:function(){return this.active},enumerable:!0,configurable:!0}),e.prototype.ngAfterContentInit=function(){var e=this;this.links.changes.subscribe(function(t){return e.update()}),this.linksWithHrefs.changes.subscribe(function(t){return e.update()}),this.update()},Object.defineProperty(e.prototype,"routerLinkActive",{set:function(e){var t=Array.isArray(e)?e:e.split(" ");this.classes=t.filter(function(e){return!!e})},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){this.update()},e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},e.prototype.update=function(){var e=this;if(this.links&&this.linksWithHrefs&&this.router.navigated){var t=this.hasActiveLinks();this.active!==t&&(this.active=t,this.classes.forEach(function(n){return e.renderer.setElementClass(e.element.nativeElement,n,t)}),this.cdr.detectChanges())}},e.prototype.isLinkActive=function(e){var t=this;return function(n){return e.isActive(n.urlTree,t.routerLinkActiveOptions.exact)}},e.prototype.hasActiveLinks=function(){return this.links.some(this.isLinkActive(this.router))||this.linksWithHrefs.some(this.isLinkActive(this.router))},e.decorators=[{type:n.Directive,args:[{selector:"[routerLinkActive]",exportAs:"routerLinkActive"}]}],e.ctorParameters=function(){return[{type:hn},{type:n.ElementRef},{type:n.Renderer},{type:n.ChangeDetectorRef}]},e.propDecorators={links:[{type:n.ContentChildren,args:[gn,{descendants:!0}]}],linksWithHrefs:[{type:n.ContentChildren,args:[_n,{descendants:!0}]}],routerLinkActiveOptions:[{type:n.Input}],routerLinkActive:[{type:n.Input}]},e}(),wn=function(){function e(e,t,r,i){this.parentOutletMap=e,this.location=t,this.resolver=r,this.name=i,this.activateEvents=new n.EventEmitter,this.deactivateEvents=new n.EventEmitter,e.registerOutlet(i||Ot,this)}return e.prototype.ngOnDestroy=function(){this.parentOutletMap.removeOutlet(this.name?this.name:Ot)},Object.defineProperty(e.prototype,"locationInjector",{get:function(){return this.location.injector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"locationFactoryResolver",{get:function(){return this.resolver},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isActivated",{get:function(){return!!this.activated},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"component",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activatedRoute",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute},enumerable:!0,configurable:!0}),e.prototype.detach=function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var e=this.activated;return this.activated=null,this._activatedRoute=null,e},e.prototype.attach=function(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView)},e.prototype.deactivate=function(){if(this.activated){var e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}},e.prototype.activate=function(e,t,r,i,o){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this.outletMap=o,this._activatedRoute=e;var a=e._futureSnapshot._routeConfig.component,s=t.resolveComponentFactory(a),u=n.ReflectiveInjector.fromResolvedProviders(i,r);this.activated=this.location.createComponent(s,this.location.length,u,[]),this.activated.changeDetectorRef.detectChanges(),this.activateEvents.emit(this.activated.instance)},e.decorators=[{type:n.Directive,args:[{selector:"router-outlet"}]}],e.ctorParameters=function(){return[{type:rn},{type:n.ViewContainerRef},{type:n.ComponentFactoryResolver},{type:void 0,decorators:[{type:n.Attribute,args:["name"]}]}]},e.propDecorators={activateEvents:[{type:n.Output,args:["activate"]}],deactivateEvents:[{type:n.Output,args:["deactivate"]}]},e}(),kn=function(){function e(){}return e.prototype.shouldDetach=function(e){},e.prototype.store=function(e,t){},e.prototype.shouldAttach=function(e){},e.prototype.retrieve=function(e){},e.prototype.shouldReuseRoute=function(e,t){},e}(),xn=b.__platform_browser_private__.getDOM,Cn=function(){function e(){}return e.prototype.preload=function(e,t){},e}(),Sn=function(){function e(){}return e.prototype.preload=function(e,t){return f._catch.call(t(),function(){return a.of(null)})},e}(),En=function(){function e(){}return e.prototype.preload=function(e,t){return a.of(null)},e}(),Tn=function(){function e(e,t,n,r,i){this.router=e,this.injector=r,this.preloadingStrategy=i,this.loader=new Dt(t,n)}return e.prototype.setUpPreloading=function(){var e=this,t=w.filter.call(this.router.events,function(e){return e instanceof un});this.subscription=s.concatMap.call(t,function(){return e.preload()}).subscribe(function(e){})},e.prototype.preload=function(){return this.processRoutes(this.injector,this.router.config)},e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},e.prototype.processRoutes=function(e,t){for(var n=[],r=0,i=t;r<i.length;r++){var a=i[r];if(a.loadChildren&&!a.canLoad&&a._loadedConfig){var s=a._loadedConfig;n.push(this.processRoutes(s.injector,s.routes))}else a.loadChildren&&!a.canLoad?n.push(this.preloadConfig(e,a)):a.children&&n.push(this.processRoutes(e,a.children))}return _.mergeAll.call(o.from(n))},e.prototype.preloadConfig=function(e,t){var n=this;return this.preloadingStrategy.preload(t,function(){var r=n.loader.load(e,t.loadChildren);return p.mergeMap.call(r,function(e){return t._loadedConfig=e,n.processRoutes(e.injector,e.routes)})})},e.decorators=[{type:n.Injectable}],e.ctorParameters=function(){return[{type:hn},{type:n.NgModuleFactoryLoader},{type:n.Compiler},{type:n.Injector},{type:Cn}]},e}(),On=[wn,gn,_n,bn],Pn=new n.OpaqueToken("ROUTER_CONFIGURATION"),Mn=new n.OpaqueToken("ROUTER_FORROOT_GUARD"),An=[t.Location,{provide:Nt,useClass:Lt},{provide:hn,useFactory:function(e,t,n,r,i,o,a,s,u,c,l){void 0===u&&(u={});var p=new hn(null,t,n,r,i,o,a,S(s));if(c&&(p.urlHandlingStrategy=c),l&&(p.routeReuseStrategy=l),u.errorHandler&&(p.errorHandler=u.errorHandler),u.enableTracing){var d=xn();p.events.subscribe(function(e){d.logGroup("Router Event: "+e.constructor.name),d.log(e.toString()),d.log(e),d.logGroupEnd()})}return p},deps:[n.ApplicationRef,Nt,rn,t.Location,n.Injector,n.NgModuleFactoryLoader,n.Compiler,Mt,Pn,[on,new n.Optional],[kn,new n.Optional]]},rn,{provide:Xt,useFactory:function(e){return e.routerState.root},deps:[hn]},{provide:n.NgModuleFactoryLoader,useClass:n.SystemJsNgModuleLoader},Tn,En,Sn,{provide:Pn,useValue:{enableTracing:!1}}],Dn=function(){function e(e){}return e.forRoot=function(r,i){return{ngModule:e,providers:[An,wt(r),{provide:Mn,useFactory:bt,deps:[[hn,new n.Optional,new n.SkipSelf]]},{provide:Pn,useValue:i||{}},{provide:t.LocationStrategy,useFactory:_t,deps:[t.PlatformLocation,[new n.Inject(t.APP_BASE_HREF),new n.Optional],Pn]},{provide:Cn,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:En},{provide:n.NgProbeToken,multi:!0,useFactory:gt},Ct()]}},e.forChild=function(t){return{ngModule:e,providers:[wt(t)]}},e.decorators=[{type:n.NgModule,args:[{declarations:On,exports:On}]}],e.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Optional},{type:n.Inject,args:[Mn]}]}]},e}(),In=function(){function e(e){this.injector=e,this.initNavigation=!1,this.resultOfPreactivationDone=new i.Subject}return e.prototype.appInitializer=function(){var e=this;return this.injector.get(t.LOCATION_INITIALIZED,Promise.resolve(null)).then(function(){var t=null,n=new Promise(function(e){return t=e}),r=e.injector.get(hn),i=e.injector.get(Pn);if(e.isLegacyDisabled(i)||e.isLegacyEnabled(i))t(!0);else if("disabled"===i.initialNavigation)r.setUpLocationChangeListener(),t(!0);else{if("enabled"!==i.initialNavigation)throw new Error("Invalid initialNavigation options: '"+i.initialNavigation+"'");r.hooks.afterPreactivation=function(){return e.initNavigation?a.of(null):(e.initNavigation=!0,t(!0),e.resultOfPreactivationDone)},r.initialNavigation()}return n})},e.prototype.bootstrapListener=function(e){var t=this.injector.get(Pn),r=this.injector.get(Tn),i=this.injector.get(hn),o=this.injector.get(n.ApplicationRef);e===o.components[0]&&(this.isLegacyEnabled(t)?i.initialNavigation():this.isLegacyDisabled(t)&&i.setUpLocationChangeListener(),r.setUpPreloading(),i.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())},e.prototype.isLegacyEnabled=function(e){return"legacy_enabled"===e.initialNavigation||!0===e.initialNavigation||void 0===e.initialNavigation},e.prototype.isLegacyDisabled=function(e){return"legacy_disabled"===e.initialNavigation||!1===e.initialNavigation},e.decorators=[{type:n.Injectable}],e.ctorParameters=function(){return[{type:n.Injector}]},e}(),Rn=new n.OpaqueToken("Router Initializer"),jn=new n.Version("3.4.10"),Nn={ROUTER_PROVIDERS:An,ROUTES:Mt,flatten:S};e.RouterLink=gn,e.RouterLinkWithHref=_n,e.RouterLinkActive=bn,e.RouterOutlet=wn,e.RouteReuseStrategy=kn,e.NavigationCancel=cn,e.NavigationEnd=un,e.NavigationError=ln,e.NavigationStart=sn,e.Router=hn,e.RoutesRecognized=pn,e.ROUTER_CONFIGURATION=Pn,e.ROUTER_INITIALIZER=Rn,e.RouterModule=Dn,e.provideRoutes=wt,e.RouterOutletMap=rn,e.NoPreloading=En,e.PreloadAllModules=Sn,e.PreloadingStrategy=Cn,e.RouterPreloader=Tn,e.ActivatedRoute=Xt,e.ActivatedRouteSnapshot=Jt,e.RouterState=Kt,e.RouterStateSnapshot=Qt,e.PRIMARY_OUTLET=Ot,e.UrlHandlingStrategy=on,e.DefaultUrlSerializer=Lt,e.UrlSegment=jt,e.UrlSegmentGroup=Rt,e.UrlSerializer=Nt,e.UrlTree=It,e.VERSION=jn,e.__router_private__=Nn}),e.registerDynamic("b8",["24"],!0,function(e,t,n){"use strict";this||self;Object.defineProperty(t,"__esModule",{value:!0});var r=e("24"),i=[];t.appRoutingProviders=[],t.routing=r.RouterModule.forRoot(i,{useHash:!0})}),e.registerDynamic("b9",["c","e","78","13","12","18","14","90","15","b8"],!0,function(e,t,n){"use strict";this||self;var r=t&&t.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0});var i=e("c"),o=e("e"),a=e("78"),s=e("13"),u=e("12"),c=e("18"),l=e("14"),p=e("14"),d=e("90"),h=e("15"),f=e("b8"),m=function(){function e(){}return e=r([i.NgModule({imports:[o.BrowserModule,d.TripInsuranceModule,a.HttpModule,s.TranslateModule.forRoot({provide:s.TranslateLoader,useClass:p.CustomTranslateLoader}),f.routing],declarations:[u.RootComponent,c.HeaderComponent],providers:[l.EventBusService,l.LoggerService,l.GoogleAnalyticsService,l.CommonApiService,h.WindowContainer],bootstrap:[u.RootComponent]})],e)}();t.AppModule=m}),e.registerDynamic("a",["d","c","b9"],!0,function(e,t,n){"use strict";this||self;Object.defineProperty(t,"__esModule",{value:!0});var r=e("d"),i=e("c"),o=e("b9");i.enableProdMode(),r.platformBrowserDynamic().bootstrapModule(o.AppModule)})})(function(e){"function"==typeof define&&define.amd?define([],e):"object"==typeof module&&module.exports&&"function"==typeof require?module.exports=e():e()});

Anon7 - 2022
AnonSec Team