Ei kuvausta

index.js 503KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733
  1. /* onsenui v2.10.8 - 2019-04-01 */
  2. import ons from './ons/index.js';
  3. import './ons/platform';
  4. import './ons/microevent.js';
  5. function createCommonjsModule(fn, module) {
  6. return module = { exports: {} }, fn(module, module.exports), module.exports;
  7. }
  8. var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
  9. return typeof obj;
  10. } : function (obj) {
  11. return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
  12. };
  13. var classCallCheck = function (instance, Constructor) {
  14. if (!(instance instanceof Constructor)) {
  15. throw new TypeError("Cannot call a class as a function");
  16. }
  17. };
  18. var createClass = function () {
  19. function defineProperties(target, props) {
  20. for (var i = 0; i < props.length; i++) {
  21. var descriptor = props[i];
  22. descriptor.enumerable = descriptor.enumerable || false;
  23. descriptor.configurable = true;
  24. if ("value" in descriptor) descriptor.writable = true;
  25. Object.defineProperty(target, descriptor.key, descriptor);
  26. }
  27. }
  28. return function (Constructor, protoProps, staticProps) {
  29. if (protoProps) defineProperties(Constructor.prototype, protoProps);
  30. if (staticProps) defineProperties(Constructor, staticProps);
  31. return Constructor;
  32. };
  33. }();
  34. var fastclick = createCommonjsModule(function (module) {
  35. (function () {
  36. function FastClick(layer, options) {
  37. var oldOnClick;
  38. options = options || {};
  39. /**
  40. * Whether a click is currently being tracked.
  41. *
  42. * @type boolean
  43. */
  44. this.trackingClick = false;
  45. /**
  46. * Timestamp for when click tracking started.
  47. *
  48. * @type number
  49. */
  50. this.trackingClickStart = 0;
  51. /**
  52. * The element being tracked for a click.
  53. *
  54. * @type EventTarget
  55. */
  56. this.targetElement = null;
  57. /**
  58. * X-coordinate of touch start event.
  59. *
  60. * @type number
  61. */
  62. this.touchStartX = 0;
  63. /**
  64. * Y-coordinate of touch start event.
  65. *
  66. * @type number
  67. */
  68. this.touchStartY = 0;
  69. /**
  70. * ID of the last touch, retrieved from Touch.identifier.
  71. *
  72. * @type number
  73. */
  74. this.lastTouchIdentifier = 0;
  75. /**
  76. * Touchmove boundary, beyond which a click will be cancelled.
  77. *
  78. * @type number
  79. */
  80. this.touchBoundary = options.touchBoundary || 10;
  81. /**
  82. * The FastClick layer.
  83. *
  84. * @type Element
  85. */
  86. this.layer = layer;
  87. /**
  88. * The minimum time between tap(touchstart and touchend) events
  89. *
  90. * @type number
  91. */
  92. this.tapDelay = options.tapDelay || 200;
  93. /**
  94. * The maximum time for a tap
  95. *
  96. * @type number
  97. */
  98. this.tapTimeout = options.tapTimeout || 700;
  99. if (FastClick.notNeeded(layer)) {
  100. return;
  101. }
  102. // Some old versions of Android don't have Function.prototype.bind
  103. function bind(method, context) {
  104. return function () {
  105. return method.apply(context, arguments);
  106. };
  107. }
  108. var methods = ['onMouse', 'onClick', 'onTouchStart', 'onTouchMove', 'onTouchEnd', 'onTouchCancel'];
  109. var context = this;
  110. for (var i = 0, l = methods.length; i < l; i++) {
  111. context[methods[i]] = bind(context[methods[i]], context);
  112. }
  113. // Set up event handlers as required
  114. if (deviceIsAndroid) {
  115. layer.addEventListener('mouseover', this.onMouse, true);
  116. layer.addEventListener('mousedown', this.onMouse, true);
  117. layer.addEventListener('mouseup', this.onMouse, true);
  118. }
  119. layer.addEventListener('click', this.onClick, true);
  120. layer.addEventListener('touchstart', this.onTouchStart, false);
  121. layer.addEventListener('touchmove', this.onTouchMove, false);
  122. layer.addEventListener('touchend', this.onTouchEnd, false);
  123. layer.addEventListener('touchcancel', this.onTouchCancel, false);
  124. // Hack is required for browsers that don't support Event#stopImmediatePropagation (e.g. Android 2)
  125. // which is how FastClick normally stops click events bubbling to callbacks registered on the FastClick
  126. // layer when they are cancelled.
  127. if (!Event.prototype.stopImmediatePropagation) {
  128. layer.removeEventListener = function (type, callback, capture) {
  129. var rmv = Node.prototype.removeEventListener;
  130. if (type === 'click') {
  131. rmv.call(layer, type, callback.hijacked || callback, capture);
  132. } else {
  133. rmv.call(layer, type, callback, capture);
  134. }
  135. };
  136. layer.addEventListener = function (type, callback, capture) {
  137. var adv = Node.prototype.addEventListener;
  138. if (type === 'click') {
  139. adv.call(layer, type, callback.hijacked || (callback.hijacked = function (event) {
  140. if (!event.propagationStopped) {
  141. callback(event);
  142. }
  143. }), capture);
  144. } else {
  145. adv.call(layer, type, callback, capture);
  146. }
  147. };
  148. }
  149. // If a handler is already declared in the element's onclick attribute, it will be fired before
  150. // FastClick's onClick handler. Fix this by pulling out the user-defined handler function and
  151. // adding it as listener.
  152. if (typeof layer.onclick === 'function') {
  153. // Android browser on at least 3.2 requires a new reference to the function in layer.onclick
  154. // - the old one won't work if passed to addEventListener directly.
  155. oldOnClick = layer.onclick;
  156. layer.addEventListener('click', function (event) {
  157. oldOnClick(event);
  158. }, false);
  159. layer.onclick = null;
  160. }
  161. }
  162. /**
  163. * Windows Phone 8.1 fakes user agent string to look like Android and iPhone.
  164. *
  165. * @type boolean
  166. */
  167. var deviceIsWindowsPhone = navigator.userAgent.indexOf("Windows Phone") >= 0;
  168. /**
  169. * Android requires exceptions.
  170. *
  171. * @type boolean
  172. */
  173. var deviceIsAndroid = navigator.userAgent.indexOf('Android') > 0 && !deviceIsWindowsPhone;
  174. /**
  175. * iOS requires exceptions.
  176. *
  177. * @type boolean
  178. */
  179. var deviceIsIOS = /iP(ad|hone|od)/.test(navigator.userAgent) && !deviceIsWindowsPhone;
  180. /**
  181. * iOS 4 requires an exception for select elements.
  182. *
  183. * @type boolean
  184. */
  185. var deviceIsIOS4 = deviceIsIOS && /OS 4_\d(_\d)?/.test(navigator.userAgent);
  186. /**
  187. * iOS 6.0-7.* requires the target element to be manually derived
  188. *
  189. * @type boolean
  190. */
  191. var deviceIsIOSWithBadTarget = deviceIsIOS && /OS [6-7]_\d/.test(navigator.userAgent);
  192. /**
  193. * BlackBerry requires exceptions.
  194. *
  195. * @type boolean
  196. */
  197. var deviceIsBlackBerry10 = navigator.userAgent.indexOf('BB10') > 0;
  198. /**
  199. * Valid types for text inputs
  200. *
  201. * @type array
  202. */
  203. var textFields = ['email', 'number', 'password', 'search', 'tel', 'text', 'url'];
  204. /**
  205. * Determine whether a given element requires a native click.
  206. *
  207. * @param {EventTarget|Element} target Target DOM element
  208. * @returns {boolean} Returns true if the element needs a native click
  209. */
  210. FastClick.prototype.needsClick = function (target) {
  211. switch (target.nodeName.toLowerCase()) {
  212. // Don't send a synthetic click to disabled inputs (issue #62)
  213. case 'button':
  214. case 'select':
  215. case 'textarea':
  216. if (target.disabled) {
  217. return true;
  218. }
  219. break;
  220. case 'input':
  221. // File inputs need real clicks on iOS 6 due to a browser bug (issue #68)
  222. if (deviceIsIOS && target.type === 'file' || target.disabled) {
  223. return true;
  224. }
  225. break;
  226. case 'label':
  227. case 'iframe': // iOS8 homescreen apps can prevent events bubbling into frames
  228. case 'video':
  229. return true;
  230. }
  231. return (/\bneedsclick\b/.test(target.className)
  232. );
  233. };
  234. /**
  235. * Determine whether a given element requires a call to focus to simulate click into element.
  236. *
  237. * @param {EventTarget|Element} target Target DOM element
  238. * @returns {boolean} Returns true if the element requires a call to focus to simulate native click.
  239. */
  240. FastClick.prototype.needsFocus = function (target) {
  241. switch (target.nodeName.toLowerCase()) {
  242. case 'textarea':
  243. return true;
  244. case 'select':
  245. return !deviceIsAndroid;
  246. case 'input':
  247. switch (target.type) {
  248. case 'button':
  249. case 'checkbox':
  250. case 'file':
  251. case 'image':
  252. case 'radio':
  253. case 'submit':
  254. return false;
  255. }
  256. // No point in attempting to focus disabled inputs
  257. return !target.disabled && !target.readOnly;
  258. default:
  259. return (/\bneedsfocus\b/.test(target.className)
  260. );
  261. }
  262. };
  263. /**
  264. * Send a click event to the specified element.
  265. *
  266. * @param {EventTarget|Element} targetElement
  267. * @param {Event} event
  268. */
  269. FastClick.prototype.sendClick = function (targetElement, event) {
  270. var clickEvent, touch;
  271. // On some Android devices activeElement needs to be blurred otherwise the synthetic click will have no effect (#24)
  272. if (document.activeElement && document.activeElement !== targetElement) {
  273. document.activeElement.blur();
  274. }
  275. touch = event.changedTouches[0];
  276. // Synthesise a click event, with an extra attribute so it can be tracked
  277. clickEvent = document.createEvent('MouseEvents');
  278. clickEvent.initMouseEvent(this.determineEventType(targetElement), true, true, window, 1, touch.screenX, touch.screenY, touch.clientX, touch.clientY, false, false, false, false, 0, null);
  279. clickEvent.forwardedTouchEvent = true;
  280. targetElement.dispatchEvent(clickEvent);
  281. };
  282. FastClick.prototype.determineEventType = function (targetElement) {
  283. //Issue #159: Android Chrome Select Box does not open with a synthetic click event
  284. if (deviceIsAndroid && targetElement.tagName.toLowerCase() === 'select') {
  285. return 'mousedown';
  286. }
  287. return 'click';
  288. };
  289. /**
  290. * @param {EventTarget|Element} targetElement
  291. */
  292. FastClick.prototype.focus = function (targetElement) {
  293. var length;
  294. // Issue #160: on iOS 7, some input elements (e.g. date datetime month) throw a vague TypeError on setSelectionRange. These elements don't have an integer value for the selectionStart and selectionEnd properties, but unfortunately that can't be used for detection because accessing the properties also throws a TypeError. Just check the type instead. Filed as Apple bug #15122724.
  295. if (deviceIsIOS && targetElement.setSelectionRange && targetElement.type.indexOf('date') !== 0 && targetElement.type !== 'time' && targetElement.type !== 'month' && targetElement.type !== 'email' && targetElement.type !== 'number') {
  296. length = targetElement.value.length;
  297. targetElement.setSelectionRange(length, length);
  298. } else {
  299. targetElement.focus();
  300. }
  301. };
  302. /**
  303. * Check whether the given target element is a child of a scrollable layer and if so, set a flag on it.
  304. *
  305. * @param {EventTarget|Element} targetElement
  306. */
  307. FastClick.prototype.updateScrollParent = function (targetElement) {
  308. var scrollParent, parentElement;
  309. scrollParent = targetElement.fastClickScrollParent;
  310. // Attempt to discover whether the target element is contained within a scrollable layer. Re-check if the
  311. // target element was moved to another parent.
  312. if (!scrollParent || !scrollParent.contains(targetElement)) {
  313. parentElement = targetElement;
  314. do {
  315. if (parentElement.scrollHeight > parentElement.offsetHeight) {
  316. scrollParent = parentElement;
  317. targetElement.fastClickScrollParent = parentElement;
  318. break;
  319. }
  320. parentElement = parentElement.parentElement;
  321. } while (parentElement);
  322. }
  323. // Always update the scroll top tracker if possible.
  324. if (scrollParent) {
  325. scrollParent.fastClickLastScrollTop = scrollParent.scrollTop;
  326. }
  327. };
  328. /**
  329. * @param {EventTarget} targetElement
  330. * @returns {Element|EventTarget}
  331. */
  332. FastClick.prototype.getTargetElementFromEventTarget = function (eventTarget) {
  333. // On some older browsers (notably Safari on iOS 4.1 - see issue #56) the event target may be a text node.
  334. if (eventTarget.nodeType === Node.TEXT_NODE) {
  335. return eventTarget.parentNode;
  336. }
  337. return eventTarget;
  338. };
  339. /**
  340. * @param {EventTarget} targetElement
  341. * @returns {boolean}
  342. */
  343. FastClick.prototype.isTextField = function (targetElement) {
  344. return targetElement.tagName.toLowerCase() === 'textarea' || textFields.indexOf(targetElement.type) !== -1;
  345. };
  346. /**
  347. * On touch start, record the position and scroll offset.
  348. *
  349. * @param {Event} event
  350. * @returns {boolean}
  351. */
  352. FastClick.prototype.onTouchStart = function (event) {
  353. var targetElement, touch;
  354. // Ignore multiple touches, otherwise pinch-to-zoom is prevented if both fingers are on the FastClick element (issue #111).
  355. if (event.targetTouches.length > 1) {
  356. return true;
  357. }
  358. targetElement = this.getTargetElementFromEventTarget(event.target);
  359. touch = event.targetTouches[0];
  360. // Ignore touches on contenteditable elements to prevent conflict with text selection.
  361. // (For details: https://github.com/ftlabs/fastclick/pull/211 )
  362. if (targetElement.isContentEditable) {
  363. return true;
  364. }
  365. if (deviceIsIOS) {
  366. // Ignore touchstart in focused text field
  367. // Allows normal text selection and commands (select/paste/cut) when a field has focus, while still allowing fast tap-to-focus.
  368. // Without this fix, user needs to tap-and-hold a text field for context menu, and double-tap to select text doesn't work at all.
  369. if (targetElement === document.activeElement && this.isTextField(targetElement)) {
  370. return true;
  371. }
  372. if (!deviceIsIOS4) {
  373. // Weird things happen on iOS when an alert or confirm dialog is opened from a click event callback (issue #23):
  374. // when the user next taps anywhere else on the page, new touchstart and touchend events are dispatched
  375. // with the same identifier as the touch event that previously triggered the click that triggered the alert.
  376. // Sadly, there is an issue on iOS 4 that causes some normal touch events to have the same identifier as an
  377. // immediately preceeding touch event (issue #52), so this fix is unavailable on that platform.
  378. // Issue 120: touch.identifier is 0 when Chrome dev tools 'Emulate touch events' is set with an iOS device UA string,
  379. // which causes all touch events to be ignored. As this block only applies to iOS, and iOS identifiers are always long,
  380. // random integers, it's safe to to continue if the identifier is 0 here.
  381. if (touch.identifier && touch.identifier === this.lastTouchIdentifier) {
  382. event.preventDefault();
  383. return false;
  384. }
  385. this.lastTouchIdentifier = touch.identifier;
  386. // If the target element is a child of a scrollable layer (using -webkit-overflow-scrolling: touch) and:
  387. // 1) the user does a fling scroll on the scrollable layer
  388. // 2) the user stops the fling scroll with another tap
  389. // then the event.target of the last 'touchend' event will be the element that was under the user's finger
  390. // when the fling scroll was started, causing FastClick to send a click event to that layer - unless a check
  391. // is made to ensure that a parent layer was not scrolled before sending a synthetic click (issue #42).
  392. this.updateScrollParent(targetElement);
  393. }
  394. }
  395. this.trackingClick = true;
  396. this.trackingClickStart = event.timeStamp;
  397. this.targetElement = targetElement;
  398. this.touchStartX = touch.pageX;
  399. this.touchStartY = touch.pageY;
  400. // Prevent phantom clicks on fast double-tap (issue #36)
  401. if (event.timeStamp - this.lastClickTime < this.tapDelay && event.timeStamp - this.lastClickTime > -1) {
  402. event.preventDefault();
  403. }
  404. return true;
  405. };
  406. /**
  407. * Based on a touchmove event object, check whether the touch has moved past a boundary since it started.
  408. *
  409. * @param {Event} event
  410. * @returns {boolean}
  411. */
  412. FastClick.prototype.touchHasMoved = function (event) {
  413. var touch = event.changedTouches[0],
  414. boundary = this.touchBoundary;
  415. if (Math.abs(touch.pageX - this.touchStartX) > boundary || Math.abs(touch.pageY - this.touchStartY) > boundary) {
  416. return true;
  417. }
  418. return false;
  419. };
  420. /**
  421. * Update the last position.
  422. *
  423. * @param {Event} event
  424. * @returns {boolean}
  425. */
  426. FastClick.prototype.onTouchMove = function (event) {
  427. if (!this.trackingClick) {
  428. return true;
  429. }
  430. // If the touch has moved, cancel the click tracking
  431. if (this.targetElement !== this.getTargetElementFromEventTarget(event.target) || this.touchHasMoved(event)) {
  432. this.trackingClick = false;
  433. this.targetElement = null;
  434. }
  435. return true;
  436. };
  437. /**
  438. * Attempt to find the labelled control for the given label element.
  439. *
  440. * @param {EventTarget|HTMLLabelElement} labelElement
  441. * @returns {Element|null}
  442. */
  443. FastClick.prototype.findControl = function (labelElement) {
  444. // Fast path for newer browsers supporting the HTML5 control attribute
  445. if (labelElement.control !== undefined) {
  446. return labelElement.control;
  447. }
  448. // All browsers under test that support touch events also support the HTML5 htmlFor attribute
  449. if (labelElement.htmlFor) {
  450. return document.getElementById(labelElement.htmlFor);
  451. }
  452. // If no for attribute exists, attempt to retrieve the first labellable descendant element
  453. // the list of which is defined here: http://www.w3.org/TR/html5/forms.html#category-label
  454. return labelElement.querySelector('button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea');
  455. };
  456. /**
  457. * On touch end, determine whether to send a click event at once.
  458. *
  459. * @param {Event} event
  460. * @returns {boolean}
  461. */
  462. FastClick.prototype.onTouchEnd = function (event) {
  463. var forElement,
  464. trackingClickStart,
  465. targetTagName,
  466. scrollParent,
  467. touch,
  468. targetElement = this.targetElement;
  469. if (!this.trackingClick) {
  470. return true;
  471. }
  472. // Prevent phantom clicks on fast double-tap (issue #36)
  473. if (event.timeStamp - this.lastClickTime < this.tapDelay && event.timeStamp - this.lastClickTime > -1) {
  474. this.cancelNextClick = true;
  475. return true;
  476. }
  477. if (event.timeStamp - this.trackingClickStart > this.tapTimeout) {
  478. return true;
  479. }
  480. // Reset to prevent wrong click cancel on input (issue #156).
  481. this.cancelNextClick = false;
  482. this.lastClickTime = event.timeStamp;
  483. trackingClickStart = this.trackingClickStart;
  484. this.trackingClick = false;
  485. this.trackingClickStart = 0;
  486. // On some iOS devices, the targetElement supplied with the event is invalid if the layer
  487. // is performing a transition or scroll, and has to be re-detected manually. Note that
  488. // for this to function correctly, it must be called *after* the event target is checked!
  489. // See issue #57; also filed as rdar://13048589 .
  490. if (deviceIsIOSWithBadTarget) {
  491. touch = event.changedTouches[0];
  492. // In certain cases arguments of elementFromPoint can be negative, so prevent setting targetElement to null
  493. targetElement = document.elementFromPoint(touch.pageX - window.pageXOffset, touch.pageY - window.pageYOffset) || targetElement;
  494. targetElement.fastClickScrollParent = this.targetElement.fastClickScrollParent;
  495. }
  496. targetTagName = targetElement.tagName.toLowerCase();
  497. if (targetTagName === 'label') {
  498. forElement = this.findControl(targetElement);
  499. if (forElement) {
  500. this.focus(targetElement);
  501. if (deviceIsAndroid) {
  502. return false;
  503. }
  504. targetElement = forElement;
  505. }
  506. } else if (this.needsFocus(targetElement)) {
  507. // Case 1: If the touch started a while ago (best guess is 100ms based on tests for issue #36) then focus will be triggered anyway. Return early and unset the target element reference so that the subsequent click will be allowed through.
  508. // Case 2: Without this exception for input elements tapped when the document is contained in an iframe, then any inputted text won't be visible even though the value attribute is updated as the user types (issue #37).
  509. if (event.timeStamp - trackingClickStart > 100 || deviceIsIOS && window.top !== window && targetTagName === 'input') {
  510. this.targetElement = null;
  511. return false;
  512. }
  513. this.focus(targetElement);
  514. this.sendClick(targetElement, event);
  515. // Select elements need the event to go through on iOS 4, otherwise the selector menu won't open.
  516. // Also this breaks opening selects when VoiceOver is active on iOS6, iOS7 (and possibly others)
  517. if (!deviceIsIOS4 || targetTagName !== 'select') {
  518. this.targetElement = null;
  519. event.preventDefault();
  520. }
  521. return false;
  522. }
  523. if (deviceIsIOS && !deviceIsIOS4) {
  524. // Don't send a synthetic click event if the target element is contained within a parent layer that was scrolled
  525. // and this tap is being used to stop the scrolling (usually initiated by a fling - issue #42).
  526. scrollParent = targetElement.fastClickScrollParent;
  527. if (scrollParent && scrollParent.fastClickLastScrollTop !== scrollParent.scrollTop) {
  528. return true;
  529. }
  530. }
  531. // Prevent the actual click from going though - unless the target node is marked as requiring
  532. // real clicks or if it is in the whitelist in which case only non-programmatic clicks are permitted.
  533. if (!this.needsClick(targetElement)) {
  534. event.preventDefault();
  535. this.sendClick(targetElement, event);
  536. }
  537. return false;
  538. };
  539. /**
  540. * On touch cancel, stop tracking the click.
  541. *
  542. * @returns {void}
  543. */
  544. FastClick.prototype.onTouchCancel = function () {
  545. this.trackingClick = false;
  546. this.targetElement = null;
  547. };
  548. /**
  549. * Determine mouse events which should be permitted.
  550. *
  551. * @param {Event} event
  552. * @returns {boolean}
  553. */
  554. FastClick.prototype.onMouse = function (event) {
  555. // If a target element was never set (because a touch event was never fired) allow the event
  556. if (!this.targetElement) {
  557. return true;
  558. }
  559. if (event.forwardedTouchEvent) {
  560. return true;
  561. }
  562. // Programmatically generated events targeting a specific element should be permitted
  563. if (!event.cancelable) {
  564. return true;
  565. }
  566. // Derive and check the target element to see whether the mouse event needs to be permitted;
  567. // unless explicitly enabled, prevent non-touch click events from triggering actions,
  568. // to prevent ghost/doubleclicks.
  569. if (!this.needsClick(this.targetElement) || this.cancelNextClick) {
  570. // Prevent any user-added listeners declared on FastClick element from being fired.
  571. if (event.stopImmediatePropagation) {
  572. event.stopImmediatePropagation();
  573. } else {
  574. // Part of the hack for browsers that don't support Event#stopImmediatePropagation (e.g. Android 2)
  575. event.propagationStopped = true;
  576. }
  577. // Cancel the event
  578. event.stopPropagation();
  579. event.preventDefault();
  580. return false;
  581. }
  582. // If the mouse event is permitted, return true for the action to go through.
  583. return true;
  584. };
  585. /**
  586. * On actual clicks, determine whether this is a touch-generated click, a click action occurring
  587. * naturally after a delay after a touch (which needs to be cancelled to avoid duplication), or
  588. * an actual click which should be permitted.
  589. *
  590. * @param {Event} event
  591. * @returns {boolean}
  592. */
  593. FastClick.prototype.onClick = function (event) {
  594. var permitted;
  595. // It's possible for another FastClick-like library delivered with third-party code to fire a click event before FastClick does (issue #44). In that case, set the click-tracking flag back to false and return early. This will cause onTouchEnd to return early.
  596. if (this.trackingClick) {
  597. this.targetElement = null;
  598. this.trackingClick = false;
  599. return true;
  600. }
  601. // Very odd behaviour on iOS (issue #18): if a submit element is present inside a form and the user hits enter in the iOS simulator or clicks the Go button on the pop-up OS keyboard the a kind of 'fake' click event will be triggered with the submit-type input element as the target.
  602. if (event.target.type === 'submit' && event.detail === 0) {
  603. return true;
  604. }
  605. permitted = this.onMouse(event);
  606. // Only unset targetElement if the click is not permitted. This will ensure that the check for !targetElement in onMouse fails and the browser's click doesn't go through.
  607. if (!permitted) {
  608. this.targetElement = null;
  609. }
  610. // If clicks are permitted, return true for the action to go through.
  611. return permitted;
  612. };
  613. /**
  614. * Remove all FastClick's event listeners.
  615. *
  616. * @returns {void}
  617. */
  618. FastClick.prototype.destroy = function () {
  619. var layer = this.layer;
  620. if (deviceIsAndroid) {
  621. layer.removeEventListener('mouseover', this.onMouse, true);
  622. layer.removeEventListener('mousedown', this.onMouse, true);
  623. layer.removeEventListener('mouseup', this.onMouse, true);
  624. }
  625. layer.removeEventListener('click', this.onClick, true);
  626. layer.removeEventListener('touchstart', this.onTouchStart, false);
  627. layer.removeEventListener('touchmove', this.onTouchMove, false);
  628. layer.removeEventListener('touchend', this.onTouchEnd, false);
  629. layer.removeEventListener('touchcancel', this.onTouchCancel, false);
  630. };
  631. /**
  632. * Check whether FastClick is needed.
  633. *
  634. * @param {Element} layer The layer to listen on
  635. */
  636. FastClick.notNeeded = function (layer) {
  637. var metaViewport;
  638. var chromeVersion;
  639. var blackberryVersion;
  640. var firefoxVersion;
  641. // Devices that don't support touch don't need FastClick
  642. if (typeof window.ontouchstart === 'undefined') {
  643. return true;
  644. }
  645. // Chrome version - zero for other browsers
  646. chromeVersion = +(/Chrome\/([0-9]+)/.exec(navigator.userAgent) || [, 0])[1];
  647. if (chromeVersion) {
  648. if (deviceIsAndroid) {
  649. metaViewport = document.querySelector('meta[name=viewport]');
  650. if (metaViewport) {
  651. // Chrome on Android with user-scalable="no" doesn't need FastClick (issue #89)
  652. if (metaViewport.content.indexOf('user-scalable=no') !== -1) {
  653. return true;
  654. }
  655. // Chrome 32 and above with width=device-width or less don't need FastClick
  656. if (chromeVersion > 31 && document.documentElement.scrollWidth <= window.outerWidth) {
  657. return true;
  658. }
  659. }
  660. // Chrome desktop doesn't need FastClick (issue #15)
  661. } else {
  662. return true;
  663. }
  664. }
  665. if (deviceIsBlackBerry10) {
  666. blackberryVersion = navigator.userAgent.match(/Version\/([0-9]*)\.([0-9]*)/);
  667. // BlackBerry 10.3+ does not require Fastclick library.
  668. // https://github.com/ftlabs/fastclick/issues/251
  669. if (blackberryVersion[1] >= 10 && blackberryVersion[2] >= 3) {
  670. metaViewport = document.querySelector('meta[name=viewport]');
  671. if (metaViewport) {
  672. // user-scalable=no eliminates click delay.
  673. if (metaViewport.content.indexOf('user-scalable=no') !== -1) {
  674. return true;
  675. }
  676. // width=device-width (or less than device-width) eliminates click delay.
  677. if (document.documentElement.scrollWidth <= window.outerWidth) {
  678. return true;
  679. }
  680. }
  681. }
  682. }
  683. // IE10 with -ms-touch-action: none or manipulation, which disables double-tap-to-zoom (issue #97)
  684. if (layer.style.msTouchAction === 'none' || layer.style.touchAction === 'manipulation') {
  685. return true;
  686. }
  687. // Firefox version - zero for other browsers
  688. firefoxVersion = +(/Firefox\/([0-9]+)/.exec(navigator.userAgent) || [, 0])[1];
  689. if (firefoxVersion >= 27) {
  690. // Firefox 27+ does not have tap delay if the content is not zoomable - https://bugzilla.mozilla.org/show_bug.cgi?id=922896
  691. metaViewport = document.querySelector('meta[name=viewport]');
  692. if (metaViewport && (metaViewport.content.indexOf('user-scalable=no') !== -1 || document.documentElement.scrollWidth <= window.outerWidth)) {
  693. return true;
  694. }
  695. }
  696. // IE11: prefixed -ms-touch-action is no longer supported and it's recomended to use non-prefixed version
  697. // http://msdn.microsoft.com/en-us/library/windows/apps/Hh767313.aspx
  698. if (layer.style.touchAction === 'none' || layer.style.touchAction === 'manipulation') {
  699. return true;
  700. }
  701. return false;
  702. };
  703. /**
  704. * Factory method for creating a FastClick object
  705. *
  706. * @param {Element} layer The layer to listen on
  707. * @param {Object} [options={}] The options to override the defaults
  708. */
  709. FastClick.attach = function (layer, options) {
  710. return new FastClick(layer, options);
  711. };
  712. if (typeof undefined === 'function' && _typeof(undefined.amd) === 'object' && undefined.amd) {
  713. // AMD. Register as an anonymous module.
  714. undefined(function () {
  715. return FastClick;
  716. });
  717. } else if ('object' !== 'undefined' && module.exports) {
  718. module.exports = FastClick.attach;
  719. module.exports.FastClick = FastClick;
  720. } else {
  721. window.FastClick = FastClick;
  722. }
  723. })();
  724. });
  725. var fastclick_1 = fastclick.FastClick;
  726. // For @onsenui/custom-elements
  727. if (window.customElements) {
  728. // even if native CE1 impl exists, use polyfill
  729. window.customElements.forcePolyfill = true;
  730. }
  731. var _global = createCommonjsModule(function (module) {
  732. // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
  733. var global = module.exports = typeof window != 'undefined' && window.Math == Math ? window : typeof self != 'undefined' && self.Math == Math ? self
  734. // eslint-disable-next-line no-new-func
  735. : Function('return this')();
  736. if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
  737. });
  738. var _core = createCommonjsModule(function (module) {
  739. var core = module.exports = { version: '2.5.1' };
  740. if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
  741. });
  742. var _core_1 = _core.version;
  743. var _isObject = function _isObject(it) {
  744. return (typeof it === 'undefined' ? 'undefined' : _typeof(it)) === 'object' ? it !== null : typeof it === 'function';
  745. };
  746. var _anObject = function _anObject(it) {
  747. if (!_isObject(it)) throw TypeError(it + ' is not an object!');
  748. return it;
  749. };
  750. var _fails = function _fails(exec) {
  751. try {
  752. return !!exec();
  753. } catch (e) {
  754. return true;
  755. }
  756. };
  757. // Thank's IE8 for his funny defineProperty
  758. var _descriptors = !_fails(function () {
  759. return Object.defineProperty({}, 'a', { get: function get() {
  760. return 7;
  761. } }).a != 7;
  762. });
  763. var document$1 = _global.document;
  764. // typeof document.createElement is 'object' in old IE
  765. var is = _isObject(document$1) && _isObject(document$1.createElement);
  766. var _domCreate = function _domCreate(it) {
  767. return is ? document$1.createElement(it) : {};
  768. };
  769. var _ie8DomDefine = !_descriptors && !_fails(function () {
  770. return Object.defineProperty(_domCreate('div'), 'a', { get: function get() {
  771. return 7;
  772. } }).a != 7;
  773. });
  774. // 7.1.1 ToPrimitive(input [, PreferredType])
  775. // instead of the ES6 spec version, we didn't implement @@toPrimitive case
  776. // and the second argument - flag - preferred type is a string
  777. var _toPrimitive = function _toPrimitive(it, S) {
  778. if (!_isObject(it)) return it;
  779. var fn, val;
  780. if (S && typeof (fn = it.toString) == 'function' && !_isObject(val = fn.call(it))) return val;
  781. if (typeof (fn = it.valueOf) == 'function' && !_isObject(val = fn.call(it))) return val;
  782. if (!S && typeof (fn = it.toString) == 'function' && !_isObject(val = fn.call(it))) return val;
  783. throw TypeError("Can't convert object to primitive value");
  784. };
  785. var dP = Object.defineProperty;
  786. var f = _descriptors ? Object.defineProperty : function defineProperty(O, P, Attributes) {
  787. _anObject(O);
  788. P = _toPrimitive(P, true);
  789. _anObject(Attributes);
  790. if (_ie8DomDefine) try {
  791. return dP(O, P, Attributes);
  792. } catch (e) {/* empty */}
  793. if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
  794. if ('value' in Attributes) O[P] = Attributes.value;
  795. return O;
  796. };
  797. var _objectDp = {
  798. f: f
  799. };
  800. var _propertyDesc = function _propertyDesc(bitmap, value) {
  801. return {
  802. enumerable: !(bitmap & 1),
  803. configurable: !(bitmap & 2),
  804. writable: !(bitmap & 4),
  805. value: value
  806. };
  807. };
  808. var _hide = _descriptors ? function (object, key, value) {
  809. return _objectDp.f(object, key, _propertyDesc(1, value));
  810. } : function (object, key, value) {
  811. object[key] = value;
  812. return object;
  813. };
  814. var hasOwnProperty = {}.hasOwnProperty;
  815. var _has = function _has(it, key) {
  816. return hasOwnProperty.call(it, key);
  817. };
  818. var id = 0;
  819. var px = Math.random();
  820. var _uid = function _uid(key) {
  821. return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
  822. };
  823. var _redefine = createCommonjsModule(function (module) {
  824. var SRC = _uid('src');
  825. var TO_STRING = 'toString';
  826. var $toString = Function[TO_STRING];
  827. var TPL = ('' + $toString).split(TO_STRING);
  828. _core.inspectSource = function (it) {
  829. return $toString.call(it);
  830. };
  831. (module.exports = function (O, key, val, safe) {
  832. var isFunction = typeof val == 'function';
  833. if (isFunction) _has(val, 'name') || _hide(val, 'name', key);
  834. if (O[key] === val) return;
  835. if (isFunction) _has(val, SRC) || _hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));
  836. if (O === _global) {
  837. O[key] = val;
  838. } else if (!safe) {
  839. delete O[key];
  840. _hide(O, key, val);
  841. } else if (O[key]) {
  842. O[key] = val;
  843. } else {
  844. _hide(O, key, val);
  845. }
  846. // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
  847. })(Function.prototype, TO_STRING, function toString() {
  848. return typeof this == 'function' && this[SRC] || $toString.call(this);
  849. });
  850. });
  851. var _aFunction = function _aFunction(it) {
  852. if (typeof it != 'function') throw TypeError(it + ' is not a function!');
  853. return it;
  854. };
  855. // optional / simple context binding
  856. var _ctx = function _ctx(fn, that, length) {
  857. _aFunction(fn);
  858. if (that === undefined) return fn;
  859. switch (length) {
  860. case 1:
  861. return function (a) {
  862. return fn.call(that, a);
  863. };
  864. case 2:
  865. return function (a, b) {
  866. return fn.call(that, a, b);
  867. };
  868. case 3:
  869. return function (a, b, c) {
  870. return fn.call(that, a, b, c);
  871. };
  872. }
  873. return function () /* ...args */{
  874. return fn.apply(that, arguments);
  875. };
  876. };
  877. var PROTOTYPE = 'prototype';
  878. var $export = function $export(type, name, source) {
  879. var IS_FORCED = type & $export.F;
  880. var IS_GLOBAL = type & $export.G;
  881. var IS_STATIC = type & $export.S;
  882. var IS_PROTO = type & $export.P;
  883. var IS_BIND = type & $export.B;
  884. var target = IS_GLOBAL ? _global : IS_STATIC ? _global[name] || (_global[name] = {}) : (_global[name] || {})[PROTOTYPE];
  885. var exports = IS_GLOBAL ? _core : _core[name] || (_core[name] = {});
  886. var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});
  887. var key, own, out, exp;
  888. if (IS_GLOBAL) source = name;
  889. for (key in source) {
  890. // contains in native
  891. own = !IS_FORCED && target && target[key] !== undefined;
  892. // export native or passed
  893. out = (own ? target : source)[key];
  894. // bind timers to global for call from export context
  895. exp = IS_BIND && own ? _ctx(out, _global) : IS_PROTO && typeof out == 'function' ? _ctx(Function.call, out) : out;
  896. // extend global
  897. if (target) _redefine(target, key, out, type & $export.U);
  898. // export
  899. if (exports[key] != out) _hide(exports, key, exp);
  900. if (IS_PROTO && expProto[key] != out) expProto[key] = out;
  901. }
  902. };
  903. _global.core = _core;
  904. // type bitmap
  905. $export.F = 1; // forced
  906. $export.G = 2; // global
  907. $export.S = 4; // static
  908. $export.P = 8; // proto
  909. $export.B = 16; // bind
  910. $export.W = 32; // wrap
  911. $export.U = 64; // safe
  912. $export.R = 128; // real proto method for `library`
  913. var _export = $export;
  914. var f$2 = {}.propertyIsEnumerable;
  915. var _objectPie = {
  916. f: f$2
  917. };
  918. var toString = {}.toString;
  919. var _cof = function _cof(it) {
  920. return toString.call(it).slice(8, -1);
  921. };
  922. // fallback for non-array-like ES3 and non-enumerable old V8 strings
  923. // eslint-disable-next-line no-prototype-builtins
  924. var _iobject = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
  925. return _cof(it) == 'String' ? it.split('') : Object(it);
  926. };
  927. // 7.2.1 RequireObjectCoercible(argument)
  928. var _defined = function _defined(it) {
  929. if (it == undefined) throw TypeError("Can't call method on " + it);
  930. return it;
  931. };
  932. // to indexed object, toObject with fallback for non-array-like ES3 strings
  933. var _toIobject = function _toIobject(it) {
  934. return _iobject(_defined(it));
  935. };
  936. var gOPD = Object.getOwnPropertyDescriptor;
  937. var f$1 = _descriptors ? gOPD : function getOwnPropertyDescriptor(O, P) {
  938. O = _toIobject(O);
  939. P = _toPrimitive(P, true);
  940. if (_ie8DomDefine) try {
  941. return gOPD(O, P);
  942. } catch (e) {/* empty */}
  943. if (_has(O, P)) return _propertyDesc(!_objectPie.f.call(O, P), O[P]);
  944. };
  945. var _objectGopd = {
  946. f: f$1
  947. };
  948. // Works with __proto__ only. Old v8 can't work with null proto objects.
  949. /* eslint-disable no-proto */
  950. var check = function check(O, proto) {
  951. _anObject(O);
  952. if (!_isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as prototype!");
  953. };
  954. var _setProto = {
  955. set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line
  956. function (test, buggy, set) {
  957. try {
  958. set = _ctx(Function.call, _objectGopd.f(Object.prototype, '__proto__').set, 2);
  959. set(test, []);
  960. buggy = !(test instanceof Array);
  961. } catch (e) {
  962. buggy = true;
  963. }
  964. return function setPrototypeOf(O, proto) {
  965. check(O, proto);
  966. if (buggy) O.__proto__ = proto;else set(O, proto);
  967. return O;
  968. };
  969. }({}, false) : undefined),
  970. check: check
  971. };
  972. // 19.1.3.19 Object.setPrototypeOf(O, proto)
  973. _export(_export.S, 'Object', { setPrototypeOf: _setProto.set });
  974. var setPrototypeOf = _core.Object.setPrototypeOf;
  975. var SHARED = '__core-js_shared__';
  976. var store = _global[SHARED] || (_global[SHARED] = {});
  977. var _shared = function _shared(key) {
  978. return store[key] || (store[key] = {});
  979. };
  980. var _wks = createCommonjsModule(function (module) {
  981. var store = _shared('wks');
  982. var _Symbol = _global.Symbol;
  983. var USE_SYMBOL = typeof _Symbol == 'function';
  984. var $exports = module.exports = function (name) {
  985. return store[name] || (store[name] = USE_SYMBOL && _Symbol[name] || (USE_SYMBOL ? _Symbol : _uid)('Symbol.' + name));
  986. };
  987. $exports.store = store;
  988. });
  989. // getting tag from 19.1.3.6 Object.prototype.toString()
  990. var TAG = _wks('toStringTag');
  991. // ES3 wrong here
  992. var ARG = _cof(function () {
  993. return arguments;
  994. }()) == 'Arguments';
  995. // fallback for IE11 Script Access Denied error
  996. var tryGet = function tryGet(it, key) {
  997. try {
  998. return it[key];
  999. } catch (e) {/* empty */}
  1000. };
  1001. var _classof = function _classof(it) {
  1002. var O, T, B;
  1003. return it === undefined ? 'Undefined' : it === null ? 'Null'
  1004. // @@toStringTag case
  1005. : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T
  1006. // builtinTag case
  1007. : ARG ? _cof(O)
  1008. // ES3 arguments fallback
  1009. : (B = _cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;
  1010. };
  1011. // 19.1.3.6 Object.prototype.toString()
  1012. var test = {};
  1013. test[_wks('toStringTag')] = 'z';
  1014. if (test + '' != '[object z]') {
  1015. _redefine(Object.prototype, 'toString', function toString() {
  1016. return '[object ' + _classof(this) + ']';
  1017. }, true);
  1018. }
  1019. // 7.1.4 ToInteger
  1020. var ceil = Math.ceil;
  1021. var floor = Math.floor;
  1022. var _toInteger = function _toInteger(it) {
  1023. return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
  1024. };
  1025. // true -> String#at
  1026. // false -> String#codePointAt
  1027. var _stringAt = function _stringAt(TO_STRING) {
  1028. return function (that, pos) {
  1029. var s = String(_defined(that));
  1030. var i = _toInteger(pos);
  1031. var l = s.length;
  1032. var a, b;
  1033. if (i < 0 || i >= l) return TO_STRING ? '' : undefined;
  1034. a = s.charCodeAt(i);
  1035. return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff ? TO_STRING ? s.charAt(i) : a : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;
  1036. };
  1037. };
  1038. var _library = false;
  1039. var _iterators = {};
  1040. // 7.1.15 ToLength
  1041. var min = Math.min;
  1042. var _toLength = function _toLength(it) {
  1043. return it > 0 ? min(_toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
  1044. };
  1045. var max = Math.max;
  1046. var min$1 = Math.min;
  1047. var _toAbsoluteIndex = function _toAbsoluteIndex(index, length) {
  1048. index = _toInteger(index);
  1049. return index < 0 ? max(index + length, 0) : min$1(index, length);
  1050. };
  1051. // false -> Array#indexOf
  1052. // true -> Array#includes
  1053. var _arrayIncludes = function _arrayIncludes(IS_INCLUDES) {
  1054. return function ($this, el, fromIndex) {
  1055. var O = _toIobject($this);
  1056. var length = _toLength(O.length);
  1057. var index = _toAbsoluteIndex(fromIndex, length);
  1058. var value;
  1059. // Array#includes uses SameValueZero equality algorithm
  1060. // eslint-disable-next-line no-self-compare
  1061. if (IS_INCLUDES && el != el) while (length > index) {
  1062. value = O[index++];
  1063. // eslint-disable-next-line no-self-compare
  1064. if (value != value) return true;
  1065. // Array#indexOf ignores holes, Array#includes - not
  1066. } else for (; length > index; index++) {
  1067. if (IS_INCLUDES || index in O) {
  1068. if (O[index] === el) return IS_INCLUDES || index || 0;
  1069. }
  1070. }return !IS_INCLUDES && -1;
  1071. };
  1072. };
  1073. var shared = _shared('keys');
  1074. var _sharedKey = function _sharedKey(key) {
  1075. return shared[key] || (shared[key] = _uid(key));
  1076. };
  1077. var arrayIndexOf = _arrayIncludes(false);
  1078. var IE_PROTO$1 = _sharedKey('IE_PROTO');
  1079. var _objectKeysInternal = function _objectKeysInternal(object, names) {
  1080. var O = _toIobject(object);
  1081. var i = 0;
  1082. var result = [];
  1083. var key;
  1084. for (key in O) {
  1085. if (key != IE_PROTO$1) _has(O, key) && result.push(key);
  1086. } // Don't enum bug & hidden keys
  1087. while (names.length > i) {
  1088. if (_has(O, key = names[i++])) {
  1089. ~arrayIndexOf(result, key) || result.push(key);
  1090. }
  1091. }return result;
  1092. };
  1093. // IE 8- don't enum bug keys
  1094. var _enumBugKeys = 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'.split(',');
  1095. // 19.1.2.14 / 15.2.3.14 Object.keys(O)
  1096. var _objectKeys = Object.keys || function keys(O) {
  1097. return _objectKeysInternal(O, _enumBugKeys);
  1098. };
  1099. var _objectDps = _descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
  1100. _anObject(O);
  1101. var keys = _objectKeys(Properties);
  1102. var length = keys.length;
  1103. var i = 0;
  1104. var P;
  1105. while (length > i) {
  1106. _objectDp.f(O, P = keys[i++], Properties[P]);
  1107. }return O;
  1108. };
  1109. var document$2 = _global.document;
  1110. var _html = document$2 && document$2.documentElement;
  1111. // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
  1112. var IE_PROTO = _sharedKey('IE_PROTO');
  1113. var Empty = function Empty() {/* empty */};
  1114. var PROTOTYPE$1 = 'prototype';
  1115. // Create object with fake `null` prototype: use iframe Object with cleared prototype
  1116. var _createDict = function createDict() {
  1117. // Thrash, waste and sodomy: IE GC bug
  1118. var iframe = _domCreate('iframe');
  1119. var i = _enumBugKeys.length;
  1120. var lt = '<';
  1121. var gt = '>';
  1122. var iframeDocument;
  1123. iframe.style.display = 'none';
  1124. _html.appendChild(iframe);
  1125. iframe.src = 'javascript:'; // eslint-disable-line no-script-url
  1126. // createDict = iframe.contentWindow.Object;
  1127. // html.removeChild(iframe);
  1128. iframeDocument = iframe.contentWindow.document;
  1129. iframeDocument.open();
  1130. iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
  1131. iframeDocument.close();
  1132. _createDict = iframeDocument.F;
  1133. while (i--) {
  1134. delete _createDict[PROTOTYPE$1][_enumBugKeys[i]];
  1135. }return _createDict();
  1136. };
  1137. var _objectCreate = Object.create || function create(O, Properties) {
  1138. var result;
  1139. if (O !== null) {
  1140. Empty[PROTOTYPE$1] = _anObject(O);
  1141. result = new Empty();
  1142. Empty[PROTOTYPE$1] = null;
  1143. // add "__proto__" for Object.getPrototypeOf polyfill
  1144. result[IE_PROTO] = O;
  1145. } else result = _createDict();
  1146. return Properties === undefined ? result : _objectDps(result, Properties);
  1147. };
  1148. var def = _objectDp.f;
  1149. var TAG$1 = _wks('toStringTag');
  1150. var _setToStringTag = function _setToStringTag(it, tag, stat) {
  1151. if (it && !_has(it = stat ? it : it.prototype, TAG$1)) def(it, TAG$1, { configurable: true, value: tag });
  1152. };
  1153. var IteratorPrototype = {};
  1154. // 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
  1155. _hide(IteratorPrototype, _wks('iterator'), function () {
  1156. return this;
  1157. });
  1158. var _iterCreate = function _iterCreate(Constructor, NAME, next) {
  1159. Constructor.prototype = _objectCreate(IteratorPrototype, { next: _propertyDesc(1, next) });
  1160. _setToStringTag(Constructor, NAME + ' Iterator');
  1161. };
  1162. // 7.1.13 ToObject(argument)
  1163. var _toObject = function _toObject(it) {
  1164. return Object(_defined(it));
  1165. };
  1166. // 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
  1167. var IE_PROTO$2 = _sharedKey('IE_PROTO');
  1168. var ObjectProto = Object.prototype;
  1169. var _objectGpo = Object.getPrototypeOf || function (O) {
  1170. O = _toObject(O);
  1171. if (_has(O, IE_PROTO$2)) return O[IE_PROTO$2];
  1172. if (typeof O.constructor == 'function' && O instanceof O.constructor) {
  1173. return O.constructor.prototype;
  1174. }return O instanceof Object ? ObjectProto : null;
  1175. };
  1176. var ITERATOR = _wks('iterator');
  1177. var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`
  1178. var FF_ITERATOR = '@@iterator';
  1179. var KEYS = 'keys';
  1180. var VALUES = 'values';
  1181. var returnThis = function returnThis() {
  1182. return this;
  1183. };
  1184. var _iterDefine = function _iterDefine(Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {
  1185. _iterCreate(Constructor, NAME, next);
  1186. var getMethod = function getMethod(kind) {
  1187. if (!BUGGY && kind in proto) return proto[kind];
  1188. switch (kind) {
  1189. case KEYS:
  1190. return function keys() {
  1191. return new Constructor(this, kind);
  1192. };
  1193. case VALUES:
  1194. return function values() {
  1195. return new Constructor(this, kind);
  1196. };
  1197. }return function entries() {
  1198. return new Constructor(this, kind);
  1199. };
  1200. };
  1201. var TAG = NAME + ' Iterator';
  1202. var DEF_VALUES = DEFAULT == VALUES;
  1203. var VALUES_BUG = false;
  1204. var proto = Base.prototype;
  1205. var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];
  1206. var $default = $native || getMethod(DEFAULT);
  1207. var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;
  1208. var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;
  1209. var methods, key, IteratorPrototype;
  1210. // Fix native
  1211. if ($anyNative) {
  1212. IteratorPrototype = _objectGpo($anyNative.call(new Base()));
  1213. if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {
  1214. // Set @@toStringTag to native iterators
  1215. _setToStringTag(IteratorPrototype, TAG, true);
  1216. // fix for some old engines
  1217. if (!_library && !_has(IteratorPrototype, ITERATOR)) _hide(IteratorPrototype, ITERATOR, returnThis);
  1218. }
  1219. }
  1220. // fix Array#{values, @@iterator}.name in V8 / FF
  1221. if (DEF_VALUES && $native && $native.name !== VALUES) {
  1222. VALUES_BUG = true;
  1223. $default = function values() {
  1224. return $native.call(this);
  1225. };
  1226. }
  1227. // Define iterator
  1228. if ((!_library || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {
  1229. _hide(proto, ITERATOR, $default);
  1230. }
  1231. // Plug for library
  1232. _iterators[NAME] = $default;
  1233. _iterators[TAG] = returnThis;
  1234. if (DEFAULT) {
  1235. methods = {
  1236. values: DEF_VALUES ? $default : getMethod(VALUES),
  1237. keys: IS_SET ? $default : getMethod(KEYS),
  1238. entries: $entries
  1239. };
  1240. if (FORCED) for (key in methods) {
  1241. if (!(key in proto)) _redefine(proto, key, methods[key]);
  1242. } else _export(_export.P + _export.F * (BUGGY || VALUES_BUG), NAME, methods);
  1243. }
  1244. return methods;
  1245. };
  1246. var $at = _stringAt(true);
  1247. // 21.1.3.27 String.prototype[@@iterator]()
  1248. _iterDefine(String, 'String', function (iterated) {
  1249. this._t = String(iterated); // target
  1250. this._i = 0; // next index
  1251. // 21.1.5.2.1 %StringIteratorPrototype%.next()
  1252. }, function () {
  1253. var O = this._t;
  1254. var index = this._i;
  1255. var point;
  1256. if (index >= O.length) return { value: undefined, done: true };
  1257. point = $at(O, index);
  1258. this._i += point.length;
  1259. return { value: point, done: false };
  1260. });
  1261. // 22.1.3.31 Array.prototype[@@unscopables]
  1262. var UNSCOPABLES = _wks('unscopables');
  1263. var ArrayProto = Array.prototype;
  1264. if (ArrayProto[UNSCOPABLES] == undefined) _hide(ArrayProto, UNSCOPABLES, {});
  1265. var _addToUnscopables = function _addToUnscopables(key) {
  1266. ArrayProto[UNSCOPABLES][key] = true;
  1267. };
  1268. var _iterStep = function _iterStep(done, value) {
  1269. return { value: value, done: !!done };
  1270. };
  1271. // 22.1.3.4 Array.prototype.entries()
  1272. // 22.1.3.13 Array.prototype.keys()
  1273. // 22.1.3.29 Array.prototype.values()
  1274. // 22.1.3.30 Array.prototype[@@iterator]()
  1275. var es6_array_iterator = _iterDefine(Array, 'Array', function (iterated, kind) {
  1276. this._t = _toIobject(iterated); // target
  1277. this._i = 0; // next index
  1278. this._k = kind; // kind
  1279. // 22.1.5.2.1 %ArrayIteratorPrototype%.next()
  1280. }, function () {
  1281. var O = this._t;
  1282. var kind = this._k;
  1283. var index = this._i++;
  1284. if (!O || index >= O.length) {
  1285. this._t = undefined;
  1286. return _iterStep(1);
  1287. }
  1288. if (kind == 'keys') return _iterStep(0, index);
  1289. if (kind == 'values') return _iterStep(0, O[index]);
  1290. return _iterStep(0, [index, O[index]]);
  1291. }, 'values');
  1292. // argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)
  1293. _iterators.Arguments = _iterators.Array;
  1294. _addToUnscopables('keys');
  1295. _addToUnscopables('values');
  1296. _addToUnscopables('entries');
  1297. var ITERATOR$1 = _wks('iterator');
  1298. var TO_STRING_TAG = _wks('toStringTag');
  1299. var ArrayValues = _iterators.Array;
  1300. var DOMIterables = {
  1301. CSSRuleList: true, // TODO: Not spec compliant, should be false.
  1302. CSSStyleDeclaration: false,
  1303. CSSValueList: false,
  1304. ClientRectList: false,
  1305. DOMRectList: false,
  1306. DOMStringList: false,
  1307. DOMTokenList: true,
  1308. DataTransferItemList: false,
  1309. FileList: false,
  1310. HTMLAllCollection: false,
  1311. HTMLCollection: false,
  1312. HTMLFormElement: false,
  1313. HTMLSelectElement: false,
  1314. MediaList: true, // TODO: Not spec compliant, should be false.
  1315. MimeTypeArray: false,
  1316. NamedNodeMap: false,
  1317. NodeList: true,
  1318. PaintRequestList: false,
  1319. Plugin: false,
  1320. PluginArray: false,
  1321. SVGLengthList: false,
  1322. SVGNumberList: false,
  1323. SVGPathSegList: false,
  1324. SVGPointList: false,
  1325. SVGStringList: false,
  1326. SVGTransformList: false,
  1327. SourceBufferList: false,
  1328. StyleSheetList: true, // TODO: Not spec compliant, should be false.
  1329. TextTrackCueList: false,
  1330. TextTrackList: false,
  1331. TouchList: false
  1332. };
  1333. for (var collections = _objectKeys(DOMIterables), i = 0; i < collections.length; i++) {
  1334. var NAME = collections[i];
  1335. var explicit = DOMIterables[NAME];
  1336. var Collection = _global[NAME];
  1337. var proto = Collection && Collection.prototype;
  1338. var key;
  1339. if (proto) {
  1340. if (!proto[ITERATOR$1]) _hide(proto, ITERATOR$1, ArrayValues);
  1341. if (!proto[TO_STRING_TAG]) _hide(proto, TO_STRING_TAG, NAME);
  1342. _iterators[NAME] = ArrayValues;
  1343. if (explicit) for (key in es6_array_iterator) {
  1344. if (!proto[key]) _redefine(proto, key, es6_array_iterator[key], true);
  1345. }
  1346. }
  1347. }
  1348. var _redefineAll = function _redefineAll(target, src, safe) {
  1349. for (var key in src) {
  1350. _redefine(target, key, src[key], safe);
  1351. }return target;
  1352. };
  1353. var _anInstance = function _anInstance(it, Constructor, name, forbiddenField) {
  1354. if (!(it instanceof Constructor) || forbiddenField !== undefined && forbiddenField in it) {
  1355. throw TypeError(name + ': incorrect invocation!');
  1356. }return it;
  1357. };
  1358. // call something on iterator step with safe closing on error
  1359. var _iterCall = function _iterCall(iterator, fn, value, entries) {
  1360. try {
  1361. return entries ? fn(_anObject(value)[0], value[1]) : fn(value);
  1362. // 7.4.6 IteratorClose(iterator, completion)
  1363. } catch (e) {
  1364. var ret = iterator['return'];
  1365. if (ret !== undefined) _anObject(ret.call(iterator));
  1366. throw e;
  1367. }
  1368. };
  1369. // check on default Array iterator
  1370. var ITERATOR$2 = _wks('iterator');
  1371. var ArrayProto$1 = Array.prototype;
  1372. var _isArrayIter = function _isArrayIter(it) {
  1373. return it !== undefined && (_iterators.Array === it || ArrayProto$1[ITERATOR$2] === it);
  1374. };
  1375. var ITERATOR$3 = _wks('iterator');
  1376. var core_getIteratorMethod = _core.getIteratorMethod = function (it) {
  1377. if (it != undefined) return it[ITERATOR$3] || it['@@iterator'] || _iterators[_classof(it)];
  1378. };
  1379. var _forOf = createCommonjsModule(function (module) {
  1380. var BREAK = {};
  1381. var RETURN = {};
  1382. var exports = module.exports = function (iterable, entries, fn, that, ITERATOR) {
  1383. var iterFn = ITERATOR ? function () {
  1384. return iterable;
  1385. } : core_getIteratorMethod(iterable);
  1386. var f = _ctx(fn, that, entries ? 2 : 1);
  1387. var index = 0;
  1388. var length, step, iterator, result;
  1389. if (typeof iterFn != 'function') throw TypeError(iterable + ' is not iterable!');
  1390. // fast case for arrays with default iterator
  1391. if (_isArrayIter(iterFn)) for (length = _toLength(iterable.length); length > index; index++) {
  1392. result = entries ? f(_anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);
  1393. if (result === BREAK || result === RETURN) return result;
  1394. } else for (iterator = iterFn.call(iterable); !(step = iterator.next()).done;) {
  1395. result = _iterCall(iterator, f, step.value, entries);
  1396. if (result === BREAK || result === RETURN) return result;
  1397. }
  1398. };
  1399. exports.BREAK = BREAK;
  1400. exports.RETURN = RETURN;
  1401. });
  1402. var SPECIES = _wks('species');
  1403. var _setSpecies = function _setSpecies(KEY) {
  1404. var C = _global[KEY];
  1405. if (_descriptors && C && !C[SPECIES]) _objectDp.f(C, SPECIES, {
  1406. configurable: true,
  1407. get: function get() {
  1408. return this;
  1409. }
  1410. });
  1411. };
  1412. var _meta = createCommonjsModule(function (module) {
  1413. var META = _uid('meta');
  1414. var setDesc = _objectDp.f;
  1415. var id = 0;
  1416. var isExtensible = Object.isExtensible || function () {
  1417. return true;
  1418. };
  1419. var FREEZE = !_fails(function () {
  1420. return isExtensible(Object.preventExtensions({}));
  1421. });
  1422. var setMeta = function setMeta(it) {
  1423. setDesc(it, META, { value: {
  1424. i: 'O' + ++id, // object ID
  1425. w: {} // weak collections IDs
  1426. } });
  1427. };
  1428. var fastKey = function fastKey(it, create) {
  1429. // return primitive with prefix
  1430. if (!_isObject(it)) return (typeof it === 'undefined' ? 'undefined' : _typeof(it)) == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
  1431. if (!_has(it, META)) {
  1432. // can't set metadata to uncaught frozen object
  1433. if (!isExtensible(it)) return 'F';
  1434. // not necessary to add metadata
  1435. if (!create) return 'E';
  1436. // add missing metadata
  1437. setMeta(it);
  1438. // return object ID
  1439. }return it[META].i;
  1440. };
  1441. var getWeak = function getWeak(it, create) {
  1442. if (!_has(it, META)) {
  1443. // can't set metadata to uncaught frozen object
  1444. if (!isExtensible(it)) return true;
  1445. // not necessary to add metadata
  1446. if (!create) return false;
  1447. // add missing metadata
  1448. setMeta(it);
  1449. // return hash weak collections IDs
  1450. }return it[META].w;
  1451. };
  1452. // add metadata on freeze-family methods calling
  1453. var onFreeze = function onFreeze(it) {
  1454. if (FREEZE && meta.NEED && isExtensible(it) && !_has(it, META)) setMeta(it);
  1455. return it;
  1456. };
  1457. var meta = module.exports = {
  1458. KEY: META,
  1459. NEED: false,
  1460. fastKey: fastKey,
  1461. getWeak: getWeak,
  1462. onFreeze: onFreeze
  1463. };
  1464. });
  1465. var _meta_1 = _meta.KEY;
  1466. var _meta_2 = _meta.NEED;
  1467. var _meta_3 = _meta.fastKey;
  1468. var _meta_4 = _meta.getWeak;
  1469. var _meta_5 = _meta.onFreeze;
  1470. var _validateCollection = function _validateCollection(it, TYPE) {
  1471. if (!_isObject(it) || it._t !== TYPE) throw TypeError('Incompatible receiver, ' + TYPE + ' required!');
  1472. return it;
  1473. };
  1474. var dP$1 = _objectDp.f;
  1475. var fastKey = _meta.fastKey;
  1476. var SIZE = _descriptors ? '_s' : 'size';
  1477. var getEntry = function getEntry(that, key) {
  1478. // fast case
  1479. var index = fastKey(key);
  1480. var entry;
  1481. if (index !== 'F') return that._i[index];
  1482. // frozen object case
  1483. for (entry = that._f; entry; entry = entry.n) {
  1484. if (entry.k == key) return entry;
  1485. }
  1486. };
  1487. var _collectionStrong = {
  1488. getConstructor: function getConstructor(wrapper, NAME, IS_MAP, ADDER) {
  1489. var C = wrapper(function (that, iterable) {
  1490. _anInstance(that, C, NAME, '_i');
  1491. that._t = NAME; // collection type
  1492. that._i = _objectCreate(null); // index
  1493. that._f = undefined; // first entry
  1494. that._l = undefined; // last entry
  1495. that[SIZE] = 0; // size
  1496. if (iterable != undefined) _forOf(iterable, IS_MAP, that[ADDER], that);
  1497. });
  1498. _redefineAll(C.prototype, {
  1499. // 23.1.3.1 Map.prototype.clear()
  1500. // 23.2.3.2 Set.prototype.clear()
  1501. clear: function clear() {
  1502. for (var that = _validateCollection(this, NAME), data = that._i, entry = that._f; entry; entry = entry.n) {
  1503. entry.r = true;
  1504. if (entry.p) entry.p = entry.p.n = undefined;
  1505. delete data[entry.i];
  1506. }
  1507. that._f = that._l = undefined;
  1508. that[SIZE] = 0;
  1509. },
  1510. // 23.1.3.3 Map.prototype.delete(key)
  1511. // 23.2.3.4 Set.prototype.delete(value)
  1512. 'delete': function _delete(key) {
  1513. var that = _validateCollection(this, NAME);
  1514. var entry = getEntry(that, key);
  1515. if (entry) {
  1516. var next = entry.n;
  1517. var prev = entry.p;
  1518. delete that._i[entry.i];
  1519. entry.r = true;
  1520. if (prev) prev.n = next;
  1521. if (next) next.p = prev;
  1522. if (that._f == entry) that._f = next;
  1523. if (that._l == entry) that._l = prev;
  1524. that[SIZE]--;
  1525. }return !!entry;
  1526. },
  1527. // 23.2.3.6 Set.prototype.forEach(callbackfn, thisArg = undefined)
  1528. // 23.1.3.5 Map.prototype.forEach(callbackfn, thisArg = undefined)
  1529. forEach: function forEach(callbackfn /* , that = undefined */) {
  1530. _validateCollection(this, NAME);
  1531. var f = _ctx(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3);
  1532. var entry;
  1533. while (entry = entry ? entry.n : this._f) {
  1534. f(entry.v, entry.k, this);
  1535. // revert to the last existing entry
  1536. while (entry && entry.r) {
  1537. entry = entry.p;
  1538. }
  1539. }
  1540. },
  1541. // 23.1.3.7 Map.prototype.has(key)
  1542. // 23.2.3.7 Set.prototype.has(value)
  1543. has: function has(key) {
  1544. return !!getEntry(_validateCollection(this, NAME), key);
  1545. }
  1546. });
  1547. if (_descriptors) dP$1(C.prototype, 'size', {
  1548. get: function get() {
  1549. return _validateCollection(this, NAME)[SIZE];
  1550. }
  1551. });
  1552. return C;
  1553. },
  1554. def: function def(that, key, value) {
  1555. var entry = getEntry(that, key);
  1556. var prev, index;
  1557. // change existing entry
  1558. if (entry) {
  1559. entry.v = value;
  1560. // create new entry
  1561. } else {
  1562. that._l = entry = {
  1563. i: index = fastKey(key, true), // <- index
  1564. k: key, // <- key
  1565. v: value, // <- value
  1566. p: prev = that._l, // <- previous entry
  1567. n: undefined, // <- next entry
  1568. r: false // <- removed
  1569. };
  1570. if (!that._f) that._f = entry;
  1571. if (prev) prev.n = entry;
  1572. that[SIZE]++;
  1573. // add to index
  1574. if (index !== 'F') that._i[index] = entry;
  1575. }return that;
  1576. },
  1577. getEntry: getEntry,
  1578. setStrong: function setStrong(C, NAME, IS_MAP) {
  1579. // add .keys, .values, .entries, [@@iterator]
  1580. // 23.1.3.4, 23.1.3.8, 23.1.3.11, 23.1.3.12, 23.2.3.5, 23.2.3.8, 23.2.3.10, 23.2.3.11
  1581. _iterDefine(C, NAME, function (iterated, kind) {
  1582. this._t = _validateCollection(iterated, NAME); // target
  1583. this._k = kind; // kind
  1584. this._l = undefined; // previous
  1585. }, function () {
  1586. var that = this;
  1587. var kind = that._k;
  1588. var entry = that._l;
  1589. // revert to the last existing entry
  1590. while (entry && entry.r) {
  1591. entry = entry.p;
  1592. } // get next entry
  1593. if (!that._t || !(that._l = entry = entry ? entry.n : that._t._f)) {
  1594. // or finish the iteration
  1595. that._t = undefined;
  1596. return _iterStep(1);
  1597. }
  1598. // return step by kind
  1599. if (kind == 'keys') return _iterStep(0, entry.k);
  1600. if (kind == 'values') return _iterStep(0, entry.v);
  1601. return _iterStep(0, [entry.k, entry.v]);
  1602. }, IS_MAP ? 'entries' : 'values', !IS_MAP, true);
  1603. // add [@@species], 23.1.2.2, 23.2.2.2
  1604. _setSpecies(NAME);
  1605. }
  1606. };
  1607. var ITERATOR$4 = _wks('iterator');
  1608. var SAFE_CLOSING = false;
  1609. try {
  1610. var riter = [7][ITERATOR$4]();
  1611. riter['return'] = function () {
  1612. SAFE_CLOSING = true;
  1613. };
  1614. // eslint-disable-next-line no-throw-literal
  1615. } catch (e) {/* empty */}
  1616. var _iterDetect = function _iterDetect(exec, skipClosing) {
  1617. if (!skipClosing && !SAFE_CLOSING) return false;
  1618. var safe = false;
  1619. try {
  1620. var arr = [7];
  1621. var iter = arr[ITERATOR$4]();
  1622. iter.next = function () {
  1623. return { done: safe = true };
  1624. };
  1625. arr[ITERATOR$4] = function () {
  1626. return iter;
  1627. };
  1628. exec(arr);
  1629. } catch (e) {/* empty */}
  1630. return safe;
  1631. };
  1632. var setPrototypeOf$2 = _setProto.set;
  1633. var _inheritIfRequired = function _inheritIfRequired(that, target, C) {
  1634. var S = target.constructor;
  1635. var P;
  1636. if (S !== C && typeof S == 'function' && (P = S.prototype) !== C.prototype && _isObject(P) && setPrototypeOf$2) {
  1637. setPrototypeOf$2(that, P);
  1638. }return that;
  1639. };
  1640. var _collection = function _collection(NAME, wrapper, methods, common, IS_MAP, IS_WEAK) {
  1641. var Base = _global[NAME];
  1642. var C = Base;
  1643. var ADDER = IS_MAP ? 'set' : 'add';
  1644. var proto = C && C.prototype;
  1645. var O = {};
  1646. var fixMethod = function fixMethod(KEY) {
  1647. var fn = proto[KEY];
  1648. _redefine(proto, KEY, KEY == 'delete' ? function (a) {
  1649. return IS_WEAK && !_isObject(a) ? false : fn.call(this, a === 0 ? 0 : a);
  1650. } : KEY == 'has' ? function has(a) {
  1651. return IS_WEAK && !_isObject(a) ? false : fn.call(this, a === 0 ? 0 : a);
  1652. } : KEY == 'get' ? function get(a) {
  1653. return IS_WEAK && !_isObject(a) ? undefined : fn.call(this, a === 0 ? 0 : a);
  1654. } : KEY == 'add' ? function add(a) {
  1655. fn.call(this, a === 0 ? 0 : a);return this;
  1656. } : function set(a, b) {
  1657. fn.call(this, a === 0 ? 0 : a, b);return this;
  1658. });
  1659. };
  1660. if (typeof C != 'function' || !(IS_WEAK || proto.forEach && !_fails(function () {
  1661. new C().entries().next();
  1662. }))) {
  1663. // create collection constructor
  1664. C = common.getConstructor(wrapper, NAME, IS_MAP, ADDER);
  1665. _redefineAll(C.prototype, methods);
  1666. _meta.NEED = true;
  1667. } else {
  1668. var instance = new C();
  1669. // early implementations not supports chaining
  1670. var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance;
  1671. // V8 ~ Chromium 40- weak-collections throws on primitives, but should return false
  1672. var THROWS_ON_PRIMITIVES = _fails(function () {
  1673. instance.has(1);
  1674. });
  1675. // most early implementations doesn't supports iterables, most modern - not close it correctly
  1676. var ACCEPT_ITERABLES = _iterDetect(function (iter) {
  1677. new C(iter);
  1678. }); // eslint-disable-line no-new
  1679. // for early implementations -0 and +0 not the same
  1680. var BUGGY_ZERO = !IS_WEAK && _fails(function () {
  1681. // V8 ~ Chromium 42- fails only with 5+ elements
  1682. var $instance = new C();
  1683. var index = 5;
  1684. while (index--) {
  1685. $instance[ADDER](index, index);
  1686. }return !$instance.has(-0);
  1687. });
  1688. if (!ACCEPT_ITERABLES) {
  1689. C = wrapper(function (target, iterable) {
  1690. _anInstance(target, C, NAME);
  1691. var that = _inheritIfRequired(new Base(), target, C);
  1692. if (iterable != undefined) _forOf(iterable, IS_MAP, that[ADDER], that);
  1693. return that;
  1694. });
  1695. C.prototype = proto;
  1696. proto.constructor = C;
  1697. }
  1698. if (THROWS_ON_PRIMITIVES || BUGGY_ZERO) {
  1699. fixMethod('delete');
  1700. fixMethod('has');
  1701. IS_MAP && fixMethod('get');
  1702. }
  1703. if (BUGGY_ZERO || HASNT_CHAINING) fixMethod(ADDER);
  1704. // weak collections should not contains .clear method
  1705. if (IS_WEAK && proto.clear) delete proto.clear;
  1706. }
  1707. _setToStringTag(C, NAME);
  1708. O[NAME] = C;
  1709. _export(_export.G + _export.W + _export.F * (C != Base), O);
  1710. if (!IS_WEAK) common.setStrong(C, NAME, IS_MAP);
  1711. return C;
  1712. };
  1713. var SET = 'Set';
  1714. // 23.2 Set Objects
  1715. var es6_set = _collection(SET, function (get) {
  1716. return function Set() {
  1717. return get(this, arguments.length > 0 ? arguments[0] : undefined);
  1718. };
  1719. }, {
  1720. // 23.2.3.1 Set.prototype.add(value)
  1721. add: function add(value) {
  1722. return _collectionStrong.def(_validateCollection(this, SET), value = value === 0 ? 0 : value, value);
  1723. }
  1724. }, _collectionStrong);
  1725. var _arrayFromIterable = function _arrayFromIterable(iter, ITERATOR) {
  1726. var result = [];
  1727. _forOf(iter, false, result.push, result, ITERATOR);
  1728. return result;
  1729. };
  1730. // https://github.com/DavidBruant/Map-Set.prototype.toJSON
  1731. var _collectionToJson = function _collectionToJson(NAME) {
  1732. return function toJSON() {
  1733. if (_classof(this) != NAME) throw TypeError(NAME + "#toJSON isn't generic");
  1734. return _arrayFromIterable(this);
  1735. };
  1736. };
  1737. // https://github.com/DavidBruant/Map-Set.prototype.toJSON
  1738. _export(_export.P + _export.R, 'Set', { toJSON: _collectionToJson('Set') });
  1739. // https://tc39.github.io/proposal-setmap-offrom/
  1740. var _setCollectionOf = function _setCollectionOf(COLLECTION) {
  1741. _export(_export.S, COLLECTION, { of: function of() {
  1742. var length = arguments.length;
  1743. var A = Array(length);
  1744. while (length--) {
  1745. A[length] = arguments[length];
  1746. }return new this(A);
  1747. } });
  1748. };
  1749. // https://tc39.github.io/proposal-setmap-offrom/#sec-set.of
  1750. _setCollectionOf('Set');
  1751. // https://tc39.github.io/proposal-setmap-offrom/
  1752. var _setCollectionFrom = function _setCollectionFrom(COLLECTION) {
  1753. _export(_export.S, COLLECTION, { from: function from(source /* , mapFn, thisArg */) {
  1754. var mapFn = arguments[1];
  1755. var mapping, A, n, cb;
  1756. _aFunction(this);
  1757. mapping = mapFn !== undefined;
  1758. if (mapping) _aFunction(mapFn);
  1759. if (source == undefined) return new this();
  1760. A = [];
  1761. if (mapping) {
  1762. n = 0;
  1763. cb = _ctx(mapFn, arguments[2], 2);
  1764. _forOf(source, false, function (nextItem) {
  1765. A.push(cb(nextItem, n++));
  1766. });
  1767. } else {
  1768. _forOf(source, false, A.push, A);
  1769. }
  1770. return new this(A);
  1771. } });
  1772. };
  1773. // https://tc39.github.io/proposal-setmap-offrom/#sec-set.from
  1774. _setCollectionFrom('Set');
  1775. var set$1 = _core.Set;
  1776. var MAP = 'Map';
  1777. // 23.1 Map Objects
  1778. var es6_map = _collection(MAP, function (get) {
  1779. return function Map() {
  1780. return get(this, arguments.length > 0 ? arguments[0] : undefined);
  1781. };
  1782. }, {
  1783. // 23.1.3.6 Map.prototype.get(key)
  1784. get: function get(key) {
  1785. var entry = _collectionStrong.getEntry(_validateCollection(this, MAP), key);
  1786. return entry && entry.v;
  1787. },
  1788. // 23.1.3.9 Map.prototype.set(key, value)
  1789. set: function set(key, value) {
  1790. return _collectionStrong.def(_validateCollection(this, MAP), key === 0 ? 0 : key, value);
  1791. }
  1792. }, _collectionStrong, true);
  1793. // https://github.com/DavidBruant/Map-Set.prototype.toJSON
  1794. _export(_export.P + _export.R, 'Map', { toJSON: _collectionToJson('Map') });
  1795. // https://tc39.github.io/proposal-setmap-offrom/#sec-map.of
  1796. _setCollectionOf('Map');
  1797. // https://tc39.github.io/proposal-setmap-offrom/#sec-map.from
  1798. _setCollectionFrom('Map');
  1799. var map = _core.Map;
  1800. // 7.2.2 IsArray(argument)
  1801. var _isArray = Array.isArray || function isArray(arg) {
  1802. return _cof(arg) == 'Array';
  1803. };
  1804. var SPECIES$1 = _wks('species');
  1805. var _arraySpeciesConstructor = function _arraySpeciesConstructor(original) {
  1806. var C;
  1807. if (_isArray(original)) {
  1808. C = original.constructor;
  1809. // cross-realm fallback
  1810. if (typeof C == 'function' && (C === Array || _isArray(C.prototype))) C = undefined;
  1811. if (_isObject(C)) {
  1812. C = C[SPECIES$1];
  1813. if (C === null) C = undefined;
  1814. }
  1815. }return C === undefined ? Array : C;
  1816. };
  1817. // 9.4.2.3 ArraySpeciesCreate(originalArray, length)
  1818. var _arraySpeciesCreate = function _arraySpeciesCreate(original, length) {
  1819. return new (_arraySpeciesConstructor(original))(length);
  1820. };
  1821. // 0 -> Array#forEach
  1822. // 1 -> Array#map
  1823. // 2 -> Array#filter
  1824. // 3 -> Array#some
  1825. // 4 -> Array#every
  1826. // 5 -> Array#find
  1827. // 6 -> Array#findIndex
  1828. var _arrayMethods = function _arrayMethods(TYPE, $create) {
  1829. var IS_MAP = TYPE == 1;
  1830. var IS_FILTER = TYPE == 2;
  1831. var IS_SOME = TYPE == 3;
  1832. var IS_EVERY = TYPE == 4;
  1833. var IS_FIND_INDEX = TYPE == 6;
  1834. var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
  1835. var create = $create || _arraySpeciesCreate;
  1836. return function ($this, callbackfn, that) {
  1837. var O = _toObject($this);
  1838. var self = _iobject(O);
  1839. var f = _ctx(callbackfn, that, 3);
  1840. var length = _toLength(self.length);
  1841. var index = 0;
  1842. var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;
  1843. var val, res;
  1844. for (; length > index; index++) {
  1845. if (NO_HOLES || index in self) {
  1846. val = self[index];
  1847. res = f(val, index, O);
  1848. if (TYPE) {
  1849. if (IS_MAP) result[index] = res; // map
  1850. else if (res) switch (TYPE) {
  1851. case 3:
  1852. return true; // some
  1853. case 5:
  1854. return val; // find
  1855. case 6:
  1856. return index; // findIndex
  1857. case 2:
  1858. result.push(val); // filter
  1859. } else if (IS_EVERY) return false; // every
  1860. }
  1861. }
  1862. }return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result;
  1863. };
  1864. };
  1865. var f$3 = Object.getOwnPropertySymbols;
  1866. var _objectGops = {
  1867. f: f$3
  1868. };
  1869. // 19.1.2.1 Object.assign(target, source, ...)
  1870. var $assign = Object.assign;
  1871. // should work with symbols and should have deterministic property order (V8 bug)
  1872. var _objectAssign = !$assign || _fails(function () {
  1873. var A = {};
  1874. var B = {};
  1875. // eslint-disable-next-line no-undef
  1876. var S = Symbol();
  1877. var K = 'abcdefghijklmnopqrst';
  1878. A[S] = 7;
  1879. K.split('').forEach(function (k) {
  1880. B[k] = k;
  1881. });
  1882. return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;
  1883. }) ? function assign(target, source) {
  1884. // eslint-disable-line no-unused-vars
  1885. var T = _toObject(target);
  1886. var aLen = arguments.length;
  1887. var index = 1;
  1888. var getSymbols = _objectGops.f;
  1889. var isEnum = _objectPie.f;
  1890. while (aLen > index) {
  1891. var S = _iobject(arguments[index++]);
  1892. var keys = getSymbols ? _objectKeys(S).concat(getSymbols(S)) : _objectKeys(S);
  1893. var length = keys.length;
  1894. var j = 0;
  1895. var key;
  1896. while (length > j) {
  1897. if (isEnum.call(S, key = keys[j++])) T[key] = S[key];
  1898. }
  1899. }return T;
  1900. } : $assign;
  1901. var getWeak = _meta.getWeak;
  1902. var arrayFind = _arrayMethods(5);
  1903. var arrayFindIndex = _arrayMethods(6);
  1904. var id$1 = 0;
  1905. // fallback for uncaught frozen keys
  1906. var uncaughtFrozenStore = function uncaughtFrozenStore(that) {
  1907. return that._l || (that._l = new UncaughtFrozenStore());
  1908. };
  1909. var UncaughtFrozenStore = function UncaughtFrozenStore() {
  1910. this.a = [];
  1911. };
  1912. var findUncaughtFrozen = function findUncaughtFrozen(store, key) {
  1913. return arrayFind(store.a, function (it) {
  1914. return it[0] === key;
  1915. });
  1916. };
  1917. UncaughtFrozenStore.prototype = {
  1918. get: function get(key) {
  1919. var entry = findUncaughtFrozen(this, key);
  1920. if (entry) return entry[1];
  1921. },
  1922. has: function has(key) {
  1923. return !!findUncaughtFrozen(this, key);
  1924. },
  1925. set: function set(key, value) {
  1926. var entry = findUncaughtFrozen(this, key);
  1927. if (entry) entry[1] = value;else this.a.push([key, value]);
  1928. },
  1929. 'delete': function _delete(key) {
  1930. var index = arrayFindIndex(this.a, function (it) {
  1931. return it[0] === key;
  1932. });
  1933. if (~index) this.a.splice(index, 1);
  1934. return !!~index;
  1935. }
  1936. };
  1937. var _collectionWeak = {
  1938. getConstructor: function getConstructor(wrapper, NAME, IS_MAP, ADDER) {
  1939. var C = wrapper(function (that, iterable) {
  1940. _anInstance(that, C, NAME, '_i');
  1941. that._t = NAME; // collection type
  1942. that._i = id$1++; // collection id
  1943. that._l = undefined; // leak store for uncaught frozen objects
  1944. if (iterable != undefined) _forOf(iterable, IS_MAP, that[ADDER], that);
  1945. });
  1946. _redefineAll(C.prototype, {
  1947. // 23.3.3.2 WeakMap.prototype.delete(key)
  1948. // 23.4.3.3 WeakSet.prototype.delete(value)
  1949. 'delete': function _delete(key) {
  1950. if (!_isObject(key)) return false;
  1951. var data = getWeak(key);
  1952. if (data === true) return uncaughtFrozenStore(_validateCollection(this, NAME))['delete'](key);
  1953. return data && _has(data, this._i) && delete data[this._i];
  1954. },
  1955. // 23.3.3.4 WeakMap.prototype.has(key)
  1956. // 23.4.3.4 WeakSet.prototype.has(value)
  1957. has: function has(key) {
  1958. if (!_isObject(key)) return false;
  1959. var data = getWeak(key);
  1960. if (data === true) return uncaughtFrozenStore(_validateCollection(this, NAME)).has(key);
  1961. return data && _has(data, this._i);
  1962. }
  1963. });
  1964. return C;
  1965. },
  1966. def: function def(that, key, value) {
  1967. var data = getWeak(_anObject(key), true);
  1968. if (data === true) uncaughtFrozenStore(that).set(key, value);else data[that._i] = value;
  1969. return that;
  1970. },
  1971. ufstore: uncaughtFrozenStore
  1972. };
  1973. var es6_weakMap = createCommonjsModule(function (module) {
  1974. var each = _arrayMethods(0);
  1975. var WEAK_MAP = 'WeakMap';
  1976. var getWeak = _meta.getWeak;
  1977. var isExtensible = Object.isExtensible;
  1978. var uncaughtFrozenStore = _collectionWeak.ufstore;
  1979. var tmp = {};
  1980. var InternalMap;
  1981. var wrapper = function wrapper(get) {
  1982. return function WeakMap() {
  1983. return get(this, arguments.length > 0 ? arguments[0] : undefined);
  1984. };
  1985. };
  1986. var methods = {
  1987. // 23.3.3.3 WeakMap.prototype.get(key)
  1988. get: function get(key) {
  1989. if (_isObject(key)) {
  1990. var data = getWeak(key);
  1991. if (data === true) return uncaughtFrozenStore(_validateCollection(this, WEAK_MAP)).get(key);
  1992. return data ? data[this._i] : undefined;
  1993. }
  1994. },
  1995. // 23.3.3.5 WeakMap.prototype.set(key, value)
  1996. set: function set(key, value) {
  1997. return _collectionWeak.def(_validateCollection(this, WEAK_MAP), key, value);
  1998. }
  1999. };
  2000. // 23.3 WeakMap Objects
  2001. var $WeakMap = module.exports = _collection(WEAK_MAP, wrapper, methods, _collectionWeak, true, true);
  2002. // IE11 WeakMap frozen keys fix
  2003. if (_fails(function () {
  2004. return new $WeakMap().set((Object.freeze || Object)(tmp), 7).get(tmp) != 7;
  2005. })) {
  2006. InternalMap = _collectionWeak.getConstructor(wrapper, WEAK_MAP);
  2007. _objectAssign(InternalMap.prototype, methods);
  2008. _meta.NEED = true;
  2009. each(['delete', 'has', 'get', 'set'], function (key) {
  2010. var proto = $WeakMap.prototype;
  2011. var method = proto[key];
  2012. _redefine(proto, key, function (a, b) {
  2013. // store frozen objects on internal weakmap shim
  2014. if (_isObject(a) && !isExtensible(a)) {
  2015. if (!this._f) this._f = new InternalMap();
  2016. var result = this._f[key](a, b);
  2017. return key == 'set' ? this : result;
  2018. // store all the rest on native weakmap
  2019. }return method.call(this, a, b);
  2020. });
  2021. });
  2022. }
  2023. });
  2024. // https://tc39.github.io/proposal-setmap-offrom/#sec-weakmap.of
  2025. _setCollectionOf('WeakMap');
  2026. // https://tc39.github.io/proposal-setmap-offrom/#sec-weakmap.from
  2027. _setCollectionFrom('WeakMap');
  2028. var weakMap = _core.WeakMap;
  2029. var _createProperty = function _createProperty(object, index, value) {
  2030. if (index in object) _objectDp.f(object, index, _propertyDesc(0, value));else object[index] = value;
  2031. };
  2032. _export(_export.S + _export.F * !_iterDetect(function (iter) {
  2033. }), 'Array', {
  2034. // 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined)
  2035. from: function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) {
  2036. var O = _toObject(arrayLike);
  2037. var C = typeof this == 'function' ? this : Array;
  2038. var aLen = arguments.length;
  2039. var mapfn = aLen > 1 ? arguments[1] : undefined;
  2040. var mapping = mapfn !== undefined;
  2041. var index = 0;
  2042. var iterFn = core_getIteratorMethod(O);
  2043. var length, result, step, iterator;
  2044. if (mapping) mapfn = _ctx(mapfn, aLen > 2 ? arguments[2] : undefined, 2);
  2045. // if object isn't iterable or it's array with default iterator - use simple case
  2046. if (iterFn != undefined && !(C == Array && _isArrayIter(iterFn))) {
  2047. for (iterator = iterFn.call(O), result = new C(); !(step = iterator.next()).done; index++) {
  2048. _createProperty(result, index, mapping ? _iterCall(iterator, mapfn, [step.value, index], true) : step.value);
  2049. }
  2050. } else {
  2051. length = _toLength(O.length);
  2052. for (result = new C(length); length > index; index++) {
  2053. _createProperty(result, index, mapping ? mapfn(O[index], index) : O[index]);
  2054. }
  2055. }
  2056. result.length = index;
  2057. return result;
  2058. }
  2059. });
  2060. var from$1 = _core.Array.from;
  2061. var reservedTagList = new Set(['annotation-xml', 'color-profile', 'font-face', 'font-face-src', 'font-face-uri', 'font-face-format', 'font-face-name', 'missing-glyph']);
  2062. /**
  2063. * @param {string} localName
  2064. * @returns {boolean}
  2065. */
  2066. function isValidCustomElementName(localName) {
  2067. var reserved = reservedTagList.has(localName);
  2068. var validForm = /^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(localName);
  2069. return !reserved && validForm;
  2070. }
  2071. /**
  2072. * @private
  2073. * @param {!Node} node
  2074. * @return {boolean}
  2075. */
  2076. function isConnected(node) {
  2077. // Use `Node#isConnected`, if defined.
  2078. var nativeValue = node.isConnected;
  2079. if (nativeValue !== undefined) {
  2080. return nativeValue;
  2081. }
  2082. /** @type {?Node|undefined} */
  2083. var current = node;
  2084. while (current && !(current.__CE_isImportDocument || current instanceof Document)) {
  2085. current = current.parentNode || (window.ShadowRoot && current instanceof ShadowRoot ? current.host : undefined);
  2086. }
  2087. return !!(current && (current.__CE_isImportDocument || current instanceof Document));
  2088. }
  2089. /**
  2090. * @param {!Node} root
  2091. * @param {!Node} start
  2092. * @return {?Node}
  2093. */
  2094. function nextSiblingOrAncestorSibling(root, start) {
  2095. var node = start;
  2096. while (node && node !== root && !node.nextSibling) {
  2097. node = node.parentNode;
  2098. }
  2099. return !node || node === root ? null : node.nextSibling;
  2100. }
  2101. /**
  2102. * @param {!Node} root
  2103. * @param {!Node} start
  2104. * @return {?Node}
  2105. */
  2106. function nextNode(root, start) {
  2107. return start.firstChild ? start.firstChild : nextSiblingOrAncestorSibling(root, start);
  2108. }
  2109. /**
  2110. * @param {!Node} root
  2111. * @param {!function(!Element)} callback
  2112. * @param {!Set<Node>=} visitedImports
  2113. */
  2114. function walkDeepDescendantElements(root, callback) {
  2115. var visitedImports = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : new Set();
  2116. var node = root;
  2117. while (node) {
  2118. if (node.nodeType === Node.ELEMENT_NODE) {
  2119. var element = /** @type {!Element} */node;
  2120. callback(element);
  2121. var localName = element.localName;
  2122. if (localName === 'link' && element.getAttribute('rel') === 'import') {
  2123. // If this import (polyfilled or not) has it's root node available,
  2124. // walk it.
  2125. var importNode = /** @type {!Node} */element.import;
  2126. if (importNode instanceof Node && !visitedImports.has(importNode)) {
  2127. // Prevent multiple walks of the same import root.
  2128. visitedImports.add(importNode);
  2129. for (var child = importNode.firstChild; child; child = child.nextSibling) {
  2130. walkDeepDescendantElements(child, callback, visitedImports);
  2131. }
  2132. }
  2133. // Ignore descendants of import links to prevent attempting to walk the
  2134. // elements created by the HTML Imports polyfill that we just walked
  2135. // above.
  2136. node = nextSiblingOrAncestorSibling(root, element);
  2137. continue;
  2138. } else if (localName === 'template') {
  2139. // Ignore descendants of templates. There shouldn't be any descendants
  2140. // because they will be moved into `.content` during construction in
  2141. // browsers that support template but, in case they exist and are still
  2142. // waiting to be moved by a polyfill, they will be ignored.
  2143. node = nextSiblingOrAncestorSibling(root, element);
  2144. continue;
  2145. }
  2146. // Walk shadow roots.
  2147. var shadowRoot = element.__CE_shadowRoot;
  2148. if (shadowRoot) {
  2149. for (var _child = shadowRoot.firstChild; _child; _child = _child.nextSibling) {
  2150. walkDeepDescendantElements(_child, callback, visitedImports);
  2151. }
  2152. }
  2153. }
  2154. node = nextNode(root, node);
  2155. }
  2156. }
  2157. /**
  2158. * Used to suppress Closure's "Modifying the prototype is only allowed if the
  2159. * constructor is in the same scope" warning without using
  2160. * `@suppress {newCheckTypes, duplicate}` because `newCheckTypes` is too broad.
  2161. *
  2162. * @param {!Object} destination
  2163. * @param {string} name
  2164. * @param {*} value
  2165. */
  2166. function setPropertyUnchecked(destination, name, value) {
  2167. destination[name] = value;
  2168. }
  2169. /**
  2170. * @enum {number}
  2171. */
  2172. var CustomElementState = {
  2173. custom: 1,
  2174. failed: 2
  2175. };
  2176. var CustomElementInternals = function () {
  2177. function CustomElementInternals() {
  2178. classCallCheck(this, CustomElementInternals);
  2179. /** @type {!Map<string, !CustomElementDefinition>} */
  2180. this._localNameToDefinition = new Map();
  2181. /** @type {!Map<!Function, !CustomElementDefinition>} */
  2182. this._constructorToDefinition = new Map();
  2183. /** @type {!Array<!function(!Node)>} */
  2184. this._patches = [];
  2185. /** @type {boolean} */
  2186. this._hasPatches = false;
  2187. }
  2188. /**
  2189. * @param {string} localName
  2190. * @param {!CustomElementDefinition} definition
  2191. */
  2192. createClass(CustomElementInternals, [{
  2193. key: 'setDefinition',
  2194. value: function setDefinition(localName, definition) {
  2195. this._localNameToDefinition.set(localName, definition);
  2196. this._constructorToDefinition.set(definition.constructor, definition);
  2197. }
  2198. /**
  2199. * @param {string} localName
  2200. * @return {!CustomElementDefinition|undefined}
  2201. */
  2202. }, {
  2203. key: 'localNameToDefinition',
  2204. value: function localNameToDefinition(localName) {
  2205. return this._localNameToDefinition.get(localName);
  2206. }
  2207. /**
  2208. * @param {!Function} constructor
  2209. * @return {!CustomElementDefinition|undefined}
  2210. */
  2211. }, {
  2212. key: 'constructorToDefinition',
  2213. value: function constructorToDefinition(constructor) {
  2214. return this._constructorToDefinition.get(constructor);
  2215. }
  2216. /**
  2217. * @param {!function(!Node)} listener
  2218. */
  2219. }, {
  2220. key: 'addPatch',
  2221. value: function addPatch(listener) {
  2222. this._hasPatches = true;
  2223. this._patches.push(listener);
  2224. }
  2225. /**
  2226. * @param {!Node} node
  2227. */
  2228. }, {
  2229. key: 'patchTree',
  2230. value: function patchTree(node) {
  2231. var _this = this;
  2232. if (!this._hasPatches) return;
  2233. walkDeepDescendantElements(node, function (element) {
  2234. return _this.patch(element);
  2235. });
  2236. }
  2237. /**
  2238. * @param {!Node} node
  2239. */
  2240. }, {
  2241. key: 'patch',
  2242. value: function patch(node) {
  2243. if (!this._hasPatches) return;
  2244. if (node.__CE_patched) return;
  2245. node.__CE_patched = true;
  2246. for (var i = 0; i < this._patches.length; i++) {
  2247. this._patches[i](node);
  2248. }
  2249. }
  2250. /**
  2251. * @param {!Node} root
  2252. */
  2253. }, {
  2254. key: 'connectTree',
  2255. value: function connectTree(root) {
  2256. var elements = [];
  2257. walkDeepDescendantElements(root, function (element) {
  2258. return elements.push(element);
  2259. });
  2260. for (var i = 0; i < elements.length; i++) {
  2261. var element = elements[i];
  2262. if (element.__CE_state === CustomElementState.custom) {
  2263. if (isConnected(element)) {
  2264. this.connectedCallback(element);
  2265. }
  2266. } else {
  2267. this.upgradeElement(element);
  2268. }
  2269. }
  2270. }
  2271. /**
  2272. * @param {!Node} root
  2273. */
  2274. }, {
  2275. key: 'disconnectTree',
  2276. value: function disconnectTree(root) {
  2277. var elements = [];
  2278. walkDeepDescendantElements(root, function (element) {
  2279. return elements.push(element);
  2280. });
  2281. for (var i = 0; i < elements.length; i++) {
  2282. var element = elements[i];
  2283. if (element.__CE_state === CustomElementState.custom) {
  2284. this.disconnectedCallback(element);
  2285. }
  2286. }
  2287. }
  2288. /**
  2289. * Upgrades all uncustomized custom elements at and below a root node for
  2290. * which there is a definition. When custom element reaction callbacks are
  2291. * assumed to be called synchronously (which, by the current DOM / HTML spec
  2292. * definitions, they are *not*), callbacks for both elements customized
  2293. * synchronously by the parser and elements being upgraded occur in the same
  2294. * relative order.
  2295. *
  2296. * NOTE: This function, when used to simulate the construction of a tree that
  2297. * is already created but not customized (i.e. by the parser), does *not*
  2298. * prevent the element from reading the 'final' (true) state of the tree. For
  2299. * example, the element, during truly synchronous parsing / construction would
  2300. * see that it contains no children as they have not yet been inserted.
  2301. * However, this function does not modify the tree, the element will
  2302. * (incorrectly) have children. Additionally, self-modification restrictions
  2303. * for custom element constructors imposed by the DOM spec are *not* enforced.
  2304. *
  2305. *
  2306. * The following nested list shows the steps extending down from the HTML
  2307. * spec's parsing section that cause elements to be synchronously created and
  2308. * upgraded:
  2309. *
  2310. * The "in body" insertion mode:
  2311. * https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inbody
  2312. * - Switch on token:
  2313. * .. other cases ..
  2314. * -> Any other start tag
  2315. * - [Insert an HTML element](below) for the token.
  2316. *
  2317. * Insert an HTML element:
  2318. * https://html.spec.whatwg.org/multipage/syntax.html#insert-an-html-element
  2319. * - Insert a foreign element for the token in the HTML namespace:
  2320. * https://html.spec.whatwg.org/multipage/syntax.html#insert-a-foreign-element
  2321. * - Create an element for a token:
  2322. * https://html.spec.whatwg.org/multipage/syntax.html#create-an-element-for-the-token
  2323. * - Will execute script flag is true?
  2324. * - (Element queue pushed to the custom element reactions stack.)
  2325. * - Create an element:
  2326. * https://dom.spec.whatwg.org/#concept-create-element
  2327. * - Sync CE flag is true?
  2328. * - Constructor called.
  2329. * - Self-modification restrictions enforced.
  2330. * - Sync CE flag is false?
  2331. * - (Upgrade reaction enqueued.)
  2332. * - Attributes appended to element.
  2333. * (`attributeChangedCallback` reactions enqueued.)
  2334. * - Will execute script flag is true?
  2335. * - (Element queue popped from the custom element reactions stack.
  2336. * Reactions in the popped stack are invoked.)
  2337. * - (Element queue pushed to the custom element reactions stack.)
  2338. * - Insert the element:
  2339. * https://dom.spec.whatwg.org/#concept-node-insert
  2340. * - Shadow-including descendants are connected. During parsing
  2341. * construction, there are no shadow-*excluding* descendants.
  2342. * However, the constructor may have validly attached a shadow
  2343. * tree to itself and added descendants to that shadow tree.
  2344. * (`connectedCallback` reactions enqueued.)
  2345. * - (Element queue popped from the custom element reactions stack.
  2346. * Reactions in the popped stack are invoked.)
  2347. *
  2348. * @param {!Node} root
  2349. * @param {!Set<Node>=} visitedImports
  2350. */
  2351. }, {
  2352. key: 'patchAndUpgradeTree',
  2353. value: function patchAndUpgradeTree(root) {
  2354. var _this2 = this;
  2355. var visitedImports = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : new Set();
  2356. var elements = [];
  2357. var gatherElements = function gatherElements(element) {
  2358. if (element.localName === 'link' && element.getAttribute('rel') === 'import') {
  2359. // The HTML Imports polyfill sets a descendant element of the link to
  2360. // the `import` property, specifically this is *not* a Document.
  2361. var importNode = /** @type {?Node} */element.import;
  2362. if (importNode instanceof Node && importNode.readyState === 'complete') {
  2363. importNode.__CE_isImportDocument = true;
  2364. // Connected links are associated with the registry.
  2365. importNode.__CE_hasRegistry = true;
  2366. } else {
  2367. // If this link's import root is not available, its contents can't be
  2368. // walked. Wait for 'load' and walk it when it's ready.
  2369. element.addEventListener('load', function () {
  2370. var importNode = /** @type {!Node} */element.import;
  2371. if (importNode.__CE_documentLoadHandled) return;
  2372. importNode.__CE_documentLoadHandled = true;
  2373. importNode.__CE_isImportDocument = true;
  2374. // Connected links are associated with the registry.
  2375. importNode.__CE_hasRegistry = true;
  2376. // Clone the `visitedImports` set that was populated sync during
  2377. // the `patchAndUpgradeTree` call that caused this 'load' handler to
  2378. // be added. Then, remove *this* link's import node so that we can
  2379. // walk that import again, even if it was partially walked later
  2380. // during the same `patchAndUpgradeTree` call.
  2381. visitedImports.delete(importNode);
  2382. _this2.patchAndUpgradeTree(importNode, visitedImports);
  2383. });
  2384. }
  2385. } else {
  2386. elements.push(element);
  2387. }
  2388. };
  2389. // `walkDeepDescendantElements` populates (and internally checks against)
  2390. // `visitedImports` when traversing a loaded import.
  2391. walkDeepDescendantElements(root, gatherElements, visitedImports);
  2392. if (this._hasPatches) {
  2393. for (var i = 0; i < elements.length; i++) {
  2394. this.patch(elements[i]);
  2395. }
  2396. }
  2397. for (var _i = 0; _i < elements.length; _i++) {
  2398. this.upgradeElement(elements[_i]);
  2399. }
  2400. }
  2401. /**
  2402. * @param {!Element} element
  2403. */
  2404. }, {
  2405. key: 'upgradeElement',
  2406. value: function upgradeElement(element) {
  2407. var currentState = element.__CE_state;
  2408. if (currentState !== undefined) return;
  2409. var definition = this.localNameToDefinition(element.localName);
  2410. if (!definition) return;
  2411. definition.constructionStack.push(element);
  2412. var constructor = definition.constructor;
  2413. try {
  2414. try {
  2415. var result = new constructor();
  2416. if (result !== element) {
  2417. throw new Error('The custom element constructor did not produce the element being upgraded.');
  2418. }
  2419. } finally {
  2420. definition.constructionStack.pop();
  2421. }
  2422. } catch (e) {
  2423. element.__CE_state = CustomElementState.failed;
  2424. throw e;
  2425. }
  2426. element.__CE_state = CustomElementState.custom;
  2427. element.__CE_definition = definition;
  2428. if (definition.attributeChangedCallback) {
  2429. var observedAttributes = definition.observedAttributes;
  2430. for (var i = 0; i < observedAttributes.length; i++) {
  2431. var name = observedAttributes[i];
  2432. var value = element.getAttribute(name);
  2433. if (value !== null) {
  2434. this.attributeChangedCallback(element, name, null, value, null);
  2435. }
  2436. }
  2437. }
  2438. if (isConnected(element)) {
  2439. this.connectedCallback(element);
  2440. }
  2441. }
  2442. /**
  2443. * @param {!Element} element
  2444. */
  2445. }, {
  2446. key: 'connectedCallback',
  2447. value: function connectedCallback(element) {
  2448. var definition = element.__CE_definition;
  2449. if (definition.connectedCallback) {
  2450. definition.connectedCallback.call(element);
  2451. }
  2452. element.__CE_isConnectedCallbackCalled = true;
  2453. }
  2454. /**
  2455. * @param {!Element} element
  2456. */
  2457. }, {
  2458. key: 'disconnectedCallback',
  2459. value: function disconnectedCallback(element) {
  2460. if (!element.__CE_isConnectedCallbackCalled) {
  2461. this.connectedCallback(element);
  2462. }
  2463. var definition = element.__CE_definition;
  2464. if (definition.disconnectedCallback) {
  2465. definition.disconnectedCallback.call(element);
  2466. }
  2467. element.__CE_isConnectedCallbackCalled = undefined;
  2468. }
  2469. /**
  2470. * @param {!Element} element
  2471. * @param {string} name
  2472. * @param {?string} oldValue
  2473. * @param {?string} newValue
  2474. * @param {?string} namespace
  2475. */
  2476. }, {
  2477. key: 'attributeChangedCallback',
  2478. value: function attributeChangedCallback(element, name, oldValue, newValue, namespace) {
  2479. var definition = element.__CE_definition;
  2480. if (definition.attributeChangedCallback && definition.observedAttributes.indexOf(name) > -1) {
  2481. definition.attributeChangedCallback.call(element, name, oldValue, newValue, namespace);
  2482. }
  2483. }
  2484. }]);
  2485. return CustomElementInternals;
  2486. }();
  2487. var DocumentConstructionObserver = function () {
  2488. function DocumentConstructionObserver(internals, doc) {
  2489. classCallCheck(this, DocumentConstructionObserver);
  2490. /**
  2491. * @type {!CustomElementInternals}
  2492. */
  2493. this._internals = internals;
  2494. /**
  2495. * @type {!Document}
  2496. */
  2497. this._document = doc;
  2498. /**
  2499. * @type {MutationObserver|undefined}
  2500. */
  2501. this._observer = undefined;
  2502. // Simulate tree construction for all currently accessible nodes in the
  2503. // document.
  2504. this._internals.patchAndUpgradeTree(this._document);
  2505. if (this._document.readyState === 'loading') {
  2506. this._observer = new MutationObserver(this._handleMutations.bind(this));
  2507. // Nodes created by the parser are given to the observer *before* the next
  2508. // task runs. Inline scripts are run in a new task. This means that the
  2509. // observer will be able to handle the newly parsed nodes before the inline
  2510. // script is run.
  2511. this._observer.observe(this._document, {
  2512. childList: true,
  2513. subtree: true
  2514. });
  2515. }
  2516. }
  2517. createClass(DocumentConstructionObserver, [{
  2518. key: 'disconnect',
  2519. value: function disconnect() {
  2520. if (this._observer) {
  2521. this._observer.disconnect();
  2522. }
  2523. }
  2524. /**
  2525. * @param {!Array<!MutationRecord>} mutations
  2526. */
  2527. }, {
  2528. key: '_handleMutations',
  2529. value: function _handleMutations(mutations) {
  2530. // Once the document's `readyState` is 'interactive' or 'complete', all new
  2531. // nodes created within that document will be the result of script and
  2532. // should be handled by patching.
  2533. var readyState = this._document.readyState;
  2534. if (readyState === 'interactive' || readyState === 'complete') {
  2535. this.disconnect();
  2536. }
  2537. for (var i = 0; i < mutations.length; i++) {
  2538. var addedNodes = mutations[i].addedNodes;
  2539. for (var j = 0; j < addedNodes.length; j++) {
  2540. var node = addedNodes[j];
  2541. this._internals.patchAndUpgradeTree(node);
  2542. }
  2543. }
  2544. }
  2545. }]);
  2546. return DocumentConstructionObserver;
  2547. }();
  2548. /**
  2549. * @template T
  2550. */
  2551. var Deferred = function () {
  2552. function Deferred() {
  2553. var _this = this;
  2554. classCallCheck(this, Deferred);
  2555. /**
  2556. * @private
  2557. * @type {T|undefined}
  2558. */
  2559. this._value = undefined;
  2560. /**
  2561. * @private
  2562. * @type {Function|undefined}
  2563. */
  2564. this._resolve = undefined;
  2565. /**
  2566. * @private
  2567. * @type {!Promise<T>}
  2568. */
  2569. this._promise = new Promise(function (resolve) {
  2570. _this._resolve = resolve;
  2571. if (_this._value) {
  2572. resolve(_this._value);
  2573. }
  2574. });
  2575. }
  2576. /**
  2577. * @param {T} value
  2578. */
  2579. createClass(Deferred, [{
  2580. key: 'resolve',
  2581. value: function resolve(value) {
  2582. if (this._value) {
  2583. throw new Error('Already resolved.');
  2584. }
  2585. this._value = value;
  2586. if (this._resolve) {
  2587. this._resolve(value);
  2588. }
  2589. }
  2590. /**
  2591. * @return {!Promise<T>}
  2592. */
  2593. }, {
  2594. key: 'toPromise',
  2595. value: function toPromise() {
  2596. return this._promise;
  2597. }
  2598. }]);
  2599. return Deferred;
  2600. }();
  2601. /**
  2602. * @unrestricted
  2603. */
  2604. var CustomElementRegistry = function () {
  2605. /**
  2606. * @param {!CustomElementInternals} internals
  2607. */
  2608. function CustomElementRegistry(internals) {
  2609. classCallCheck(this, CustomElementRegistry);
  2610. /**
  2611. * @private
  2612. * @type {boolean}
  2613. */
  2614. this._elementDefinitionIsRunning = false;
  2615. /**
  2616. * @private
  2617. * @type {!CustomElementInternals}
  2618. */
  2619. this._internals = internals;
  2620. /**
  2621. * @private
  2622. * @type {!Map<string, !Deferred<undefined>>}
  2623. */
  2624. this._whenDefinedDeferred = new Map();
  2625. /**
  2626. * The default flush callback triggers the document walk synchronously.
  2627. * @private
  2628. * @type {!Function}
  2629. */
  2630. this._flushCallback = function (fn) {
  2631. return fn();
  2632. };
  2633. /**
  2634. * @private
  2635. * @type {boolean}
  2636. */
  2637. this._flushPending = false;
  2638. /**
  2639. * @private
  2640. * @type {!Array<string>}
  2641. */
  2642. this._unflushedLocalNames = [];
  2643. /**
  2644. * @private
  2645. * @type {!DocumentConstructionObserver}
  2646. */
  2647. this._documentConstructionObserver = new DocumentConstructionObserver(internals, document);
  2648. }
  2649. /**
  2650. * @param {string} localName
  2651. * @param {!Function} constructor
  2652. */
  2653. createClass(CustomElementRegistry, [{
  2654. key: 'define',
  2655. value: function define(localName, constructor) {
  2656. var _this = this;
  2657. if (!(constructor instanceof Function)) {
  2658. throw new TypeError('Custom element constructors must be functions.');
  2659. }
  2660. if (!isValidCustomElementName(localName)) {
  2661. throw new SyntaxError('The element name \'' + localName + '\' is not valid.');
  2662. }
  2663. if (this._internals.localNameToDefinition(localName)) {
  2664. throw new Error('A custom element with name \'' + localName + '\' has already been defined.');
  2665. }
  2666. if (this._elementDefinitionIsRunning) {
  2667. throw new Error('A custom element is already being defined.');
  2668. }
  2669. this._elementDefinitionIsRunning = true;
  2670. var connectedCallback = void 0;
  2671. var disconnectedCallback = void 0;
  2672. var adoptedCallback = void 0;
  2673. var attributeChangedCallback = void 0;
  2674. var observedAttributes = void 0;
  2675. try {
  2676. var getCallback = function getCallback(name) {
  2677. var callbackValue = prototype[name];
  2678. if (callbackValue !== undefined && !(callbackValue instanceof Function)) {
  2679. throw new Error('The \'' + name + '\' callback must be a function.');
  2680. }
  2681. return callbackValue;
  2682. };
  2683. /** @type {!Object} */
  2684. var prototype = constructor.prototype;
  2685. if (!(prototype instanceof Object)) {
  2686. throw new TypeError('The custom element constructor\'s prototype is not an object.');
  2687. }
  2688. connectedCallback = getCallback('connectedCallback');
  2689. disconnectedCallback = getCallback('disconnectedCallback');
  2690. adoptedCallback = getCallback('adoptedCallback');
  2691. attributeChangedCallback = getCallback('attributeChangedCallback');
  2692. observedAttributes = constructor['observedAttributes'] || [];
  2693. } catch (e) {
  2694. return;
  2695. } finally {
  2696. this._elementDefinitionIsRunning = false;
  2697. }
  2698. var definition = {
  2699. localName: localName,
  2700. constructor: constructor,
  2701. connectedCallback: connectedCallback,
  2702. disconnectedCallback: disconnectedCallback,
  2703. adoptedCallback: adoptedCallback,
  2704. attributeChangedCallback: attributeChangedCallback,
  2705. observedAttributes: observedAttributes,
  2706. constructionStack: []
  2707. };
  2708. this._internals.setDefinition(localName, definition);
  2709. this._unflushedLocalNames.push(localName);
  2710. // If we've already called the flush callback and it hasn't called back yet,
  2711. // don't call it again.
  2712. if (!this._flushPending) {
  2713. this._flushPending = true;
  2714. this._flushCallback(function () {
  2715. return _this._flush();
  2716. });
  2717. }
  2718. }
  2719. }, {
  2720. key: '_flush',
  2721. value: function _flush() {
  2722. // If no new definitions were defined, don't attempt to flush. This could
  2723. // happen if a flush callback keeps the function it is given and calls it
  2724. // multiple times.
  2725. if (this._flushPending === false) return;
  2726. this._flushPending = false;
  2727. this._internals.patchAndUpgradeTree(document);
  2728. while (this._unflushedLocalNames.length > 0) {
  2729. var localName = this._unflushedLocalNames.shift();
  2730. var deferred = this._whenDefinedDeferred.get(localName);
  2731. if (deferred) {
  2732. deferred.resolve(undefined);
  2733. }
  2734. }
  2735. }
  2736. /**
  2737. * @param {string} localName
  2738. * @return {Function|undefined}
  2739. */
  2740. }, {
  2741. key: 'get',
  2742. value: function get$$1(localName) {
  2743. var definition = this._internals.localNameToDefinition(localName);
  2744. if (definition) {
  2745. return definition.constructor;
  2746. }
  2747. return undefined;
  2748. }
  2749. /**
  2750. * @param {string} localName
  2751. * @return {!Promise<undefined>}
  2752. */
  2753. }, {
  2754. key: 'whenDefined',
  2755. value: function whenDefined(localName) {
  2756. if (!isValidCustomElementName(localName)) {
  2757. return Promise.reject(new SyntaxError('\'' + localName + '\' is not a valid custom element name.'));
  2758. }
  2759. var prior = this._whenDefinedDeferred.get(localName);
  2760. if (prior) {
  2761. return prior.toPromise();
  2762. }
  2763. var deferred = new Deferred();
  2764. this._whenDefinedDeferred.set(localName, deferred);
  2765. var definition = this._internals.localNameToDefinition(localName);
  2766. // Resolve immediately only if the given local name has a definition *and*
  2767. // the full document walk to upgrade elements with that local name has
  2768. // already happened.
  2769. if (definition && this._unflushedLocalNames.indexOf(localName) === -1) {
  2770. deferred.resolve(undefined);
  2771. }
  2772. return deferred.toPromise();
  2773. }
  2774. }, {
  2775. key: 'polyfillWrapFlushCallback',
  2776. value: function polyfillWrapFlushCallback(outer) {
  2777. this._documentConstructionObserver.disconnect();
  2778. var inner = this._flushCallback;
  2779. this._flushCallback = function (flush) {
  2780. return outer(function () {
  2781. return inner(flush);
  2782. });
  2783. };
  2784. }
  2785. }]);
  2786. return CustomElementRegistry;
  2787. }();
  2788. window['CustomElementRegistry'] = CustomElementRegistry;
  2789. CustomElementRegistry.prototype['define'] = CustomElementRegistry.prototype.define;
  2790. CustomElementRegistry.prototype['get'] = CustomElementRegistry.prototype.get;
  2791. CustomElementRegistry.prototype['whenDefined'] = CustomElementRegistry.prototype.whenDefined;
  2792. CustomElementRegistry.prototype['polyfillWrapFlushCallback'] = CustomElementRegistry.prototype.polyfillWrapFlushCallback;
  2793. var Native = {
  2794. Document_createElement: window.Document.prototype.createElement,
  2795. Document_createElementNS: window.Document.prototype.createElementNS,
  2796. Document_importNode: window.Document.prototype.importNode,
  2797. Document_prepend: window.Document.prototype['prepend'],
  2798. Document_append: window.Document.prototype['append'],
  2799. Node_cloneNode: window.Node.prototype.cloneNode,
  2800. Node_appendChild: window.Node.prototype.appendChild,
  2801. Node_insertBefore: window.Node.prototype.insertBefore,
  2802. Node_removeChild: window.Node.prototype.removeChild,
  2803. Node_replaceChild: window.Node.prototype.replaceChild,
  2804. Node_textContent: Object.getOwnPropertyDescriptor(window.Node.prototype, 'textContent'),
  2805. Element_attachShadow: window.Element.prototype['attachShadow'],
  2806. Element_innerHTML: Object.getOwnPropertyDescriptor(window.Element.prototype, 'innerHTML'),
  2807. Element_getAttribute: window.Element.prototype.getAttribute,
  2808. Element_setAttribute: window.Element.prototype.setAttribute,
  2809. Element_removeAttribute: window.Element.prototype.removeAttribute,
  2810. Element_getAttributeNS: window.Element.prototype.getAttributeNS,
  2811. Element_setAttributeNS: window.Element.prototype.setAttributeNS,
  2812. Element_removeAttributeNS: window.Element.prototype.removeAttributeNS,
  2813. Element_insertAdjacentElement: window.Element.prototype['insertAdjacentElement'],
  2814. Element_prepend: window.Element.prototype['prepend'],
  2815. Element_append: window.Element.prototype['append'],
  2816. Element_before: window.Element.prototype['before'],
  2817. Element_after: window.Element.prototype['after'],
  2818. Element_replaceWith: window.Element.prototype['replaceWith'],
  2819. Element_remove: window.Element.prototype['remove'],
  2820. HTMLElement: window.HTMLElement,
  2821. HTMLElement_innerHTML: Object.getOwnPropertyDescriptor(window.HTMLElement.prototype, 'innerHTML'),
  2822. HTMLElement_insertAdjacentElement: window.HTMLElement.prototype['insertAdjacentElement']
  2823. };
  2824. /**
  2825. * This class exists only to work around Closure's lack of a way to describe
  2826. * singletons. It represents the 'already constructed marker' used in custom
  2827. * element construction stacks.
  2828. *
  2829. * https://html.spec.whatwg.org/#concept-already-constructed-marker
  2830. */
  2831. var AlreadyConstructedMarker = function AlreadyConstructedMarker() {
  2832. classCallCheck(this, AlreadyConstructedMarker);
  2833. };
  2834. var AlreadyConstructedMarker$1 = new AlreadyConstructedMarker();
  2835. /**
  2836. * @param {!CustomElementInternals} internals
  2837. */
  2838. var PatchHTMLElement = function (internals) {
  2839. window['HTMLElement'] = function () {
  2840. /**
  2841. * @type {function(new: HTMLElement): !HTMLElement}
  2842. */
  2843. function HTMLElement() {
  2844. // This should really be `new.target` but `new.target` can't be emulated
  2845. // in ES5. Assuming the user keeps the default value of the constructor's
  2846. // prototype's `constructor` property, this is equivalent.
  2847. /** @type {!Function} */
  2848. var constructor = this.constructor;
  2849. var definition = internals.constructorToDefinition(constructor);
  2850. if (!definition) {
  2851. throw new Error('The custom element being constructed was not registered with `customElements`.');
  2852. }
  2853. var constructionStack = definition.constructionStack;
  2854. if (constructionStack.length === 0) {
  2855. var _element = Native.Document_createElement.call(document, definition.localName);
  2856. Object.setPrototypeOf(_element, constructor.prototype);
  2857. _element.__CE_state = CustomElementState.custom;
  2858. _element.__CE_definition = definition;
  2859. internals.patch(_element);
  2860. return _element;
  2861. }
  2862. var lastIndex = constructionStack.length - 1;
  2863. var element = constructionStack[lastIndex];
  2864. if (element === AlreadyConstructedMarker$1) {
  2865. throw new Error('The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.');
  2866. }
  2867. constructionStack[lastIndex] = AlreadyConstructedMarker$1;
  2868. Object.setPrototypeOf(element, constructor.prototype);
  2869. internals.patch( /** @type {!HTMLElement} */element);
  2870. return element;
  2871. }
  2872. HTMLElement.prototype = Native.HTMLElement.prototype;
  2873. return HTMLElement;
  2874. }();
  2875. };
  2876. /**
  2877. * @param {!CustomElementInternals} internals
  2878. * @param {!Object} destination
  2879. * @param {!ParentNodeNativeMethods} builtIn
  2880. */
  2881. var PatchParentNode = function (internals, destination, builtIn) {
  2882. /**
  2883. * @param {...(!Node|string)} nodes
  2884. */
  2885. destination['prepend'] = function () {
  2886. for (var _len = arguments.length, nodes = Array(_len), _key = 0; _key < _len; _key++) {
  2887. nodes[_key] = arguments[_key];
  2888. }
  2889. // TODO: Fix this for when one of `nodes` is a DocumentFragment!
  2890. var connectedBefore = /** @type {!Array<!Node>} */nodes.filter(function (node) {
  2891. // DocumentFragments are not connected and will not be added to the list.
  2892. return node instanceof Node && isConnected(node);
  2893. });
  2894. builtIn.prepend.apply(this, nodes);
  2895. for (var i = 0; i < connectedBefore.length; i++) {
  2896. internals.disconnectTree(connectedBefore[i]);
  2897. }
  2898. if (isConnected(this)) {
  2899. for (var _i = 0; _i < nodes.length; _i++) {
  2900. var node = nodes[_i];
  2901. if (node instanceof Element) {
  2902. internals.connectTree(node);
  2903. }
  2904. }
  2905. }
  2906. };
  2907. /**
  2908. * @param {...(!Node|string)} nodes
  2909. */
  2910. destination['append'] = function () {
  2911. for (var _len2 = arguments.length, nodes = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  2912. nodes[_key2] = arguments[_key2];
  2913. }
  2914. // TODO: Fix this for when one of `nodes` is a DocumentFragment!
  2915. var connectedBefore = /** @type {!Array<!Node>} */nodes.filter(function (node) {
  2916. // DocumentFragments are not connected and will not be added to the list.
  2917. return node instanceof Node && isConnected(node);
  2918. });
  2919. builtIn.append.apply(this, nodes);
  2920. for (var i = 0; i < connectedBefore.length; i++) {
  2921. internals.disconnectTree(connectedBefore[i]);
  2922. }
  2923. if (isConnected(this)) {
  2924. for (var _i2 = 0; _i2 < nodes.length; _i2++) {
  2925. var node = nodes[_i2];
  2926. if (node instanceof Element) {
  2927. internals.connectTree(node);
  2928. }
  2929. }
  2930. }
  2931. };
  2932. };
  2933. /**
  2934. * @param {!CustomElementInternals} internals
  2935. */
  2936. var PatchDocument = function (internals) {
  2937. setPropertyUnchecked(Document.prototype, 'createElement',
  2938. /**
  2939. * @this {Document}
  2940. * @param {string} localName
  2941. * @return {!Element}
  2942. */
  2943. function (localName) {
  2944. // Only create custom elements if this document is associated with the registry.
  2945. if (this.__CE_hasRegistry) {
  2946. var definition = internals.localNameToDefinition(localName);
  2947. if (definition) {
  2948. return new definition.constructor();
  2949. }
  2950. }
  2951. var result = /** @type {!Element} */
  2952. Native.Document_createElement.call(this, localName);
  2953. internals.patch(result);
  2954. return result;
  2955. });
  2956. setPropertyUnchecked(Document.prototype, 'importNode',
  2957. /**
  2958. * @this {Document}
  2959. * @param {!Node} node
  2960. * @param {boolean=} deep
  2961. * @return {!Node}
  2962. */
  2963. function (node, deep) {
  2964. var clone = Native.Document_importNode.call(this, node, deep);
  2965. // Only create custom elements if this document is associated with the registry.
  2966. if (!this.__CE_hasRegistry) {
  2967. internals.patchTree(clone);
  2968. } else {
  2969. internals.patchAndUpgradeTree(clone);
  2970. }
  2971. return clone;
  2972. });
  2973. var NS_HTML = "http://www.w3.org/1999/xhtml";
  2974. setPropertyUnchecked(Document.prototype, 'createElementNS',
  2975. /**
  2976. * @this {Document}
  2977. * @param {?string} namespace
  2978. * @param {string} localName
  2979. * @return {!Element}
  2980. */
  2981. function (namespace, localName) {
  2982. // Only create custom elements if this document is associated with the registry.
  2983. if (this.__CE_hasRegistry && (namespace === null || namespace === NS_HTML)) {
  2984. var definition = internals.localNameToDefinition(localName);
  2985. if (definition) {
  2986. return new definition.constructor();
  2987. }
  2988. }
  2989. var result = /** @type {!Element} */
  2990. Native.Document_createElementNS.call(this, namespace, localName);
  2991. internals.patch(result);
  2992. return result;
  2993. });
  2994. PatchParentNode(internals, Document.prototype, {
  2995. prepend: Native.Document_prepend,
  2996. append: Native.Document_append
  2997. });
  2998. };
  2999. /**
  3000. * @param {!CustomElementInternals} internals
  3001. */
  3002. var PatchNode = function (internals) {
  3003. // `Node#nodeValue` is implemented on `Attr`.
  3004. // `Node#textContent` is implemented on `Attr`, `Element`.
  3005. setPropertyUnchecked(Node.prototype, 'insertBefore',
  3006. /**
  3007. * @this {Node}
  3008. * @param {!Node} node
  3009. * @param {?Node} refNode
  3010. * @return {!Node}
  3011. */
  3012. function (node, refNode) {
  3013. if (node instanceof DocumentFragment) {
  3014. var insertedNodes = Array.prototype.slice.apply(node.childNodes);
  3015. var _nativeResult = Native.Node_insertBefore.call(this, node, refNode);
  3016. // DocumentFragments can't be connected, so `disconnectTree` will never
  3017. // need to be called on a DocumentFragment's children after inserting it.
  3018. if (isConnected(this)) {
  3019. for (var i = 0; i < insertedNodes.length; i++) {
  3020. internals.connectTree(insertedNodes[i]);
  3021. }
  3022. }
  3023. return _nativeResult;
  3024. }
  3025. var nodeWasConnected = isConnected(node);
  3026. var nativeResult = Native.Node_insertBefore.call(this, node, refNode);
  3027. if (nodeWasConnected) {
  3028. internals.disconnectTree(node);
  3029. }
  3030. if (isConnected(this)) {
  3031. internals.connectTree(node);
  3032. }
  3033. return nativeResult;
  3034. });
  3035. setPropertyUnchecked(Node.prototype, 'appendChild',
  3036. /**
  3037. * @this {Node}
  3038. * @param {!Node} node
  3039. * @return {!Node}
  3040. */
  3041. function (node) {
  3042. if (node instanceof DocumentFragment) {
  3043. var insertedNodes = Array.prototype.slice.apply(node.childNodes);
  3044. var _nativeResult2 = Native.Node_appendChild.call(this, node);
  3045. // DocumentFragments can't be connected, so `disconnectTree` will never
  3046. // need to be called on a DocumentFragment's children after inserting it.
  3047. if (isConnected(this)) {
  3048. for (var i = 0; i < insertedNodes.length; i++) {
  3049. internals.connectTree(insertedNodes[i]);
  3050. }
  3051. }
  3052. return _nativeResult2;
  3053. }
  3054. var nodeWasConnected = isConnected(node);
  3055. var nativeResult = Native.Node_appendChild.call(this, node);
  3056. if (nodeWasConnected) {
  3057. internals.disconnectTree(node);
  3058. }
  3059. if (isConnected(this)) {
  3060. internals.connectTree(node);
  3061. }
  3062. return nativeResult;
  3063. });
  3064. setPropertyUnchecked(Node.prototype, 'cloneNode',
  3065. /**
  3066. * @this {Node}
  3067. * @param {boolean=} deep
  3068. * @return {!Node}
  3069. */
  3070. function (deep) {
  3071. var clone = Native.Node_cloneNode.call(this, deep);
  3072. // Only create custom elements if this element's owner document is
  3073. // associated with the registry.
  3074. if (!this.ownerDocument.__CE_hasRegistry) {
  3075. internals.patchTree(clone);
  3076. } else {
  3077. internals.patchAndUpgradeTree(clone);
  3078. }
  3079. return clone;
  3080. });
  3081. setPropertyUnchecked(Node.prototype, 'removeChild',
  3082. /**
  3083. * @this {Node}
  3084. * @param {!Node} node
  3085. * @return {!Node}
  3086. */
  3087. function (node) {
  3088. var nodeWasConnected = isConnected(node);
  3089. var nativeResult = Native.Node_removeChild.call(this, node);
  3090. if (nodeWasConnected) {
  3091. internals.disconnectTree(node);
  3092. }
  3093. return nativeResult;
  3094. });
  3095. setPropertyUnchecked(Node.prototype, 'replaceChild',
  3096. /**
  3097. * @this {Node}
  3098. * @param {!Node} nodeToInsert
  3099. * @param {!Node} nodeToRemove
  3100. * @return {!Node}
  3101. */
  3102. function (nodeToInsert, nodeToRemove) {
  3103. if (nodeToInsert instanceof DocumentFragment) {
  3104. var insertedNodes = Array.prototype.slice.apply(nodeToInsert.childNodes);
  3105. var _nativeResult3 = Native.Node_replaceChild.call(this, nodeToInsert, nodeToRemove);
  3106. // DocumentFragments can't be connected, so `disconnectTree` will never
  3107. // need to be called on a DocumentFragment's children after inserting it.
  3108. if (isConnected(this)) {
  3109. internals.disconnectTree(nodeToRemove);
  3110. for (var i = 0; i < insertedNodes.length; i++) {
  3111. internals.connectTree(insertedNodes[i]);
  3112. }
  3113. }
  3114. return _nativeResult3;
  3115. }
  3116. var nodeToInsertWasConnected = isConnected(nodeToInsert);
  3117. var nativeResult = Native.Node_replaceChild.call(this, nodeToInsert, nodeToRemove);
  3118. var thisIsConnected = isConnected(this);
  3119. if (thisIsConnected) {
  3120. internals.disconnectTree(nodeToRemove);
  3121. }
  3122. if (nodeToInsertWasConnected) {
  3123. internals.disconnectTree(nodeToInsert);
  3124. }
  3125. if (thisIsConnected) {
  3126. internals.connectTree(nodeToInsert);
  3127. }
  3128. return nativeResult;
  3129. });
  3130. function patch_textContent(destination, baseDescriptor) {
  3131. Object.defineProperty(destination, 'textContent', {
  3132. enumerable: baseDescriptor.enumerable,
  3133. configurable: true,
  3134. get: baseDescriptor.get,
  3135. set: /** @this {Node} */function set(assignedValue) {
  3136. // If this is a text node then there are no nodes to disconnect.
  3137. if (this.nodeType === Node.TEXT_NODE) {
  3138. baseDescriptor.set.call(this, assignedValue);
  3139. return;
  3140. }
  3141. var removedNodes = undefined;
  3142. // Checking for `firstChild` is faster than reading `childNodes.length`
  3143. // to compare with 0.
  3144. if (this.firstChild) {
  3145. // Using `childNodes` is faster than `children`, even though we only
  3146. // care about elements.
  3147. var childNodes = this.childNodes;
  3148. var childNodesLength = childNodes.length;
  3149. if (childNodesLength > 0 && isConnected(this)) {
  3150. // Copying an array by iterating is faster than using slice.
  3151. removedNodes = new Array(childNodesLength);
  3152. for (var i = 0; i < childNodesLength; i++) {
  3153. removedNodes[i] = childNodes[i];
  3154. }
  3155. }
  3156. }
  3157. baseDescriptor.set.call(this, assignedValue);
  3158. if (removedNodes) {
  3159. for (var _i = 0; _i < removedNodes.length; _i++) {
  3160. internals.disconnectTree(removedNodes[_i]);
  3161. }
  3162. }
  3163. }
  3164. });
  3165. }
  3166. if (Native.Node_textContent && Native.Node_textContent.get) {
  3167. patch_textContent(Node.prototype, Native.Node_textContent);
  3168. } else {
  3169. internals.addPatch(function (element) {
  3170. patch_textContent(element, {
  3171. enumerable: true,
  3172. configurable: true,
  3173. // NOTE: This implementation of the `textContent` getter assumes that
  3174. // text nodes' `textContent` getter will not be patched.
  3175. get: /** @this {Node} */function get() {
  3176. /** @type {!Array<string>} */
  3177. var parts = [];
  3178. for (var i = 0; i < this.childNodes.length; i++) {
  3179. parts.push(this.childNodes[i].textContent);
  3180. }
  3181. return parts.join('');
  3182. },
  3183. set: /** @this {Node} */function set(assignedValue) {
  3184. while (this.firstChild) {
  3185. Native.Node_removeChild.call(this, this.firstChild);
  3186. }
  3187. Native.Node_appendChild.call(this, document.createTextNode(assignedValue));
  3188. }
  3189. });
  3190. });
  3191. }
  3192. };
  3193. /**
  3194. * @param {!CustomElementInternals} internals
  3195. * @param {!Object} destination
  3196. * @param {!ChildNodeNativeMethods} builtIn
  3197. */
  3198. var PatchChildNode = function (internals, destination, builtIn) {
  3199. /**
  3200. * @param {...(!Node|string)} nodes
  3201. */
  3202. destination['before'] = function () {
  3203. for (var _len = arguments.length, nodes = Array(_len), _key = 0; _key < _len; _key++) {
  3204. nodes[_key] = arguments[_key];
  3205. }
  3206. // TODO: Fix this for when one of `nodes` is a DocumentFragment!
  3207. var connectedBefore = /** @type {!Array<!Node>} */nodes.filter(function (node) {
  3208. // DocumentFragments are not connected and will not be added to the list.
  3209. return node instanceof Node && isConnected(node);
  3210. });
  3211. builtIn.before.apply(this, nodes);
  3212. for (var i = 0; i < connectedBefore.length; i++) {
  3213. internals.disconnectTree(connectedBefore[i]);
  3214. }
  3215. if (isConnected(this)) {
  3216. for (var _i = 0; _i < nodes.length; _i++) {
  3217. var node = nodes[_i];
  3218. if (node instanceof Element) {
  3219. internals.connectTree(node);
  3220. }
  3221. }
  3222. }
  3223. };
  3224. /**
  3225. * @param {...(!Node|string)} nodes
  3226. */
  3227. destination['after'] = function () {
  3228. for (var _len2 = arguments.length, nodes = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  3229. nodes[_key2] = arguments[_key2];
  3230. }
  3231. // TODO: Fix this for when one of `nodes` is a DocumentFragment!
  3232. var connectedBefore = /** @type {!Array<!Node>} */nodes.filter(function (node) {
  3233. // DocumentFragments are not connected and will not be added to the list.
  3234. return node instanceof Node && isConnected(node);
  3235. });
  3236. builtIn.after.apply(this, nodes);
  3237. for (var i = 0; i < connectedBefore.length; i++) {
  3238. internals.disconnectTree(connectedBefore[i]);
  3239. }
  3240. if (isConnected(this)) {
  3241. for (var _i2 = 0; _i2 < nodes.length; _i2++) {
  3242. var node = nodes[_i2];
  3243. if (node instanceof Element) {
  3244. internals.connectTree(node);
  3245. }
  3246. }
  3247. }
  3248. };
  3249. /**
  3250. * @param {...(!Node|string)} nodes
  3251. */
  3252. destination['replaceWith'] = function () {
  3253. for (var _len3 = arguments.length, nodes = Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
  3254. nodes[_key3] = arguments[_key3];
  3255. }
  3256. // TODO: Fix this for when one of `nodes` is a DocumentFragment!
  3257. var connectedBefore = /** @type {!Array<!Node>} */nodes.filter(function (node) {
  3258. // DocumentFragments are not connected and will not be added to the list.
  3259. return node instanceof Node && isConnected(node);
  3260. });
  3261. var wasConnected = isConnected(this);
  3262. builtIn.replaceWith.apply(this, nodes);
  3263. for (var i = 0; i < connectedBefore.length; i++) {
  3264. internals.disconnectTree(connectedBefore[i]);
  3265. }
  3266. if (wasConnected) {
  3267. internals.disconnectTree(this);
  3268. for (var _i3 = 0; _i3 < nodes.length; _i3++) {
  3269. var node = nodes[_i3];
  3270. if (node instanceof Element) {
  3271. internals.connectTree(node);
  3272. }
  3273. }
  3274. }
  3275. };
  3276. destination['remove'] = function () {
  3277. var wasConnected = isConnected(this);
  3278. builtIn.remove.call(this);
  3279. if (wasConnected) {
  3280. internals.disconnectTree(this);
  3281. }
  3282. };
  3283. };
  3284. /**
  3285. * @param {!CustomElementInternals} internals
  3286. */
  3287. var PatchElement = function (internals) {
  3288. if (Native.Element_attachShadow) {
  3289. setPropertyUnchecked(Element.prototype, 'attachShadow',
  3290. /**
  3291. * @this {Element}
  3292. * @param {!{mode: string}} init
  3293. * @return {ShadowRoot}
  3294. */
  3295. function (init) {
  3296. var shadowRoot = Native.Element_attachShadow.call(this, init);
  3297. this.__CE_shadowRoot = shadowRoot;
  3298. return shadowRoot;
  3299. });
  3300. } else {
  3301. console.warn('Custom Elements: `Element#attachShadow` was not patched.');
  3302. }
  3303. function patch_innerHTML(destination, baseDescriptor) {
  3304. Object.defineProperty(destination, 'innerHTML', {
  3305. enumerable: baseDescriptor.enumerable,
  3306. configurable: true,
  3307. get: baseDescriptor.get,
  3308. set: /** @this {Element} */function set(htmlString) {
  3309. var _this = this;
  3310. var isConnected$$1 = isConnected(this);
  3311. // NOTE: In IE11, when using the native `innerHTML` setter, all nodes
  3312. // that were previously descendants of the context element have all of
  3313. // their children removed as part of the set - the entire subtree is
  3314. // 'disassembled'. This work around walks the subtree *before* using the
  3315. // native setter.
  3316. /** @type {!Array<!Element>|undefined} */
  3317. var removedElements = undefined;
  3318. if (isConnected$$1) {
  3319. removedElements = [];
  3320. walkDeepDescendantElements(this, function (element) {
  3321. if (element !== _this) {
  3322. removedElements.push(element);
  3323. }
  3324. });
  3325. }
  3326. baseDescriptor.set.call(this, htmlString);
  3327. if (removedElements) {
  3328. for (var i = 0; i < removedElements.length; i++) {
  3329. var element = removedElements[i];
  3330. if (element.__CE_state === CustomElementState.custom) {
  3331. internals.disconnectedCallback(element);
  3332. }
  3333. }
  3334. }
  3335. // Only create custom elements if this element's owner document is
  3336. // associated with the registry.
  3337. if (!this.ownerDocument.__CE_hasRegistry) {
  3338. internals.patchTree(this);
  3339. } else {
  3340. internals.patchAndUpgradeTree(this);
  3341. }
  3342. return htmlString;
  3343. }
  3344. });
  3345. }
  3346. if (Native.Element_innerHTML && Native.Element_innerHTML.get) {
  3347. patch_innerHTML(Element.prototype, Native.Element_innerHTML);
  3348. } else if (Native.HTMLElement_innerHTML && Native.HTMLElement_innerHTML.get) {
  3349. patch_innerHTML(HTMLElement.prototype, Native.HTMLElement_innerHTML);
  3350. } else {
  3351. /** @type {HTMLDivElement} */
  3352. var rawDiv = Native.Document_createElement.call(document, 'div');
  3353. internals.addPatch(function (element) {
  3354. patch_innerHTML(element, {
  3355. enumerable: true,
  3356. configurable: true,
  3357. // Implements getting `innerHTML` by performing an unpatched `cloneNode`
  3358. // of the element and returning the resulting element's `innerHTML`.
  3359. // TODO: Is this too expensive?
  3360. get: /** @this {Element} */function get() {
  3361. return Native.Node_cloneNode.call(this, true).innerHTML;
  3362. },
  3363. // Implements setting `innerHTML` by creating an unpatched element,
  3364. // setting `innerHTML` of that element and replacing the target
  3365. // element's children with those of the unpatched element.
  3366. set: /** @this {Element} */function set(assignedValue) {
  3367. // NOTE: re-route to `content` for `template` elements.
  3368. // We need to do this because `template.appendChild` does not
  3369. // route into `template.content`.
  3370. /** @type {!Node} */
  3371. var content = this.localName === 'template' ? /** @type {!HTMLTemplateElement} */this.content : this;
  3372. rawDiv.innerHTML = assignedValue;
  3373. while (content.childNodes.length > 0) {
  3374. Native.Node_removeChild.call(content, content.childNodes[0]);
  3375. }
  3376. while (rawDiv.childNodes.length > 0) {
  3377. Native.Node_appendChild.call(content, rawDiv.childNodes[0]);
  3378. }
  3379. }
  3380. });
  3381. });
  3382. }
  3383. setPropertyUnchecked(Element.prototype, 'setAttribute',
  3384. /**
  3385. * @this {Element}
  3386. * @param {string} name
  3387. * @param {string} newValue
  3388. */
  3389. function (name, newValue) {
  3390. // Fast path for non-custom elements.
  3391. if (this.__CE_state !== CustomElementState.custom) {
  3392. return Native.Element_setAttribute.call(this, name, newValue);
  3393. }
  3394. var oldValue = Native.Element_getAttribute.call(this, name);
  3395. Native.Element_setAttribute.call(this, name, newValue);
  3396. newValue = Native.Element_getAttribute.call(this, name);
  3397. internals.attributeChangedCallback(this, name, oldValue, newValue, null);
  3398. });
  3399. setPropertyUnchecked(Element.prototype, 'setAttributeNS',
  3400. /**
  3401. * @this {Element}
  3402. * @param {?string} namespace
  3403. * @param {string} name
  3404. * @param {string} newValue
  3405. */
  3406. function (namespace, name, newValue) {
  3407. // Fast path for non-custom elements.
  3408. if (this.__CE_state !== CustomElementState.custom) {
  3409. return Native.Element_setAttributeNS.call(this, namespace, name, newValue);
  3410. }
  3411. var oldValue = Native.Element_getAttributeNS.call(this, namespace, name);
  3412. Native.Element_setAttributeNS.call(this, namespace, name, newValue);
  3413. newValue = Native.Element_getAttributeNS.call(this, namespace, name);
  3414. internals.attributeChangedCallback(this, name, oldValue, newValue, namespace);
  3415. });
  3416. setPropertyUnchecked(Element.prototype, 'removeAttribute',
  3417. /**
  3418. * @this {Element}
  3419. * @param {string} name
  3420. */
  3421. function (name) {
  3422. // Fast path for non-custom elements.
  3423. if (this.__CE_state !== CustomElementState.custom) {
  3424. return Native.Element_removeAttribute.call(this, name);
  3425. }
  3426. var oldValue = Native.Element_getAttribute.call(this, name);
  3427. Native.Element_removeAttribute.call(this, name);
  3428. if (oldValue !== null) {
  3429. internals.attributeChangedCallback(this, name, oldValue, null, null);
  3430. }
  3431. });
  3432. setPropertyUnchecked(Element.prototype, 'removeAttributeNS',
  3433. /**
  3434. * @this {Element}
  3435. * @param {?string} namespace
  3436. * @param {string} name
  3437. */
  3438. function (namespace, name) {
  3439. // Fast path for non-custom elements.
  3440. if (this.__CE_state !== CustomElementState.custom) {
  3441. return Native.Element_removeAttributeNS.call(this, namespace, name);
  3442. }
  3443. var oldValue = Native.Element_getAttributeNS.call(this, namespace, name);
  3444. Native.Element_removeAttributeNS.call(this, namespace, name);
  3445. // In older browsers, `Element#getAttributeNS` may return the empty string
  3446. // instead of null if the attribute does not exist. For details, see;
  3447. // https://developer.mozilla.org/en-US/docs/Web/API/Element/getAttributeNS#Notes
  3448. var newValue = Native.Element_getAttributeNS.call(this, namespace, name);
  3449. if (oldValue !== newValue) {
  3450. internals.attributeChangedCallback(this, name, oldValue, newValue, namespace);
  3451. }
  3452. });
  3453. function patch_insertAdjacentElement(destination, baseMethod) {
  3454. setPropertyUnchecked(destination, 'insertAdjacentElement',
  3455. /**
  3456. * @this {Element}
  3457. * @param {string} where
  3458. * @param {!Element} element
  3459. * @return {?Element}
  3460. */
  3461. function (where, element) {
  3462. var wasConnected = isConnected(element);
  3463. var insertedElement = /** @type {!Element} */
  3464. baseMethod.call(this, where, element);
  3465. if (wasConnected) {
  3466. internals.disconnectTree(element);
  3467. }
  3468. if (isConnected(insertedElement)) {
  3469. internals.connectTree(element);
  3470. }
  3471. return insertedElement;
  3472. });
  3473. }
  3474. if (Native.HTMLElement_insertAdjacentElement) {
  3475. patch_insertAdjacentElement(HTMLElement.prototype, Native.HTMLElement_insertAdjacentElement);
  3476. } else if (Native.Element_insertAdjacentElement) {
  3477. patch_insertAdjacentElement(Element.prototype, Native.Element_insertAdjacentElement);
  3478. } else {
  3479. console.warn('Custom Elements: `Element#insertAdjacentElement` was not patched.');
  3480. }
  3481. PatchParentNode(internals, Element.prototype, {
  3482. prepend: Native.Element_prepend,
  3483. append: Native.Element_append
  3484. });
  3485. PatchChildNode(internals, Element.prototype, {
  3486. before: Native.Element_before,
  3487. after: Native.Element_after,
  3488. replaceWith: Native.Element_replaceWith,
  3489. remove: Native.Element_remove
  3490. });
  3491. };
  3492. /**
  3493. * @license
  3494. * Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
  3495. * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
  3496. * The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
  3497. * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
  3498. * Code distributed by Google as part of the polymer project is also
  3499. * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
  3500. */
  3501. var priorCustomElements = window['customElements'];
  3502. if (!priorCustomElements || priorCustomElements['forcePolyfill'] || typeof priorCustomElements['define'] != 'function' || typeof priorCustomElements['get'] != 'function') {
  3503. /** @type {!CustomElementInternals} */
  3504. var internals = new CustomElementInternals();
  3505. PatchHTMLElement(internals);
  3506. PatchDocument(internals);
  3507. PatchNode(internals);
  3508. PatchElement(internals);
  3509. // The main document is always associated with the registry.
  3510. document.__CE_hasRegistry = true;
  3511. /** @type {!CustomElementRegistry} */
  3512. var customElements = new CustomElementRegistry(internals);
  3513. Object.defineProperty(window, 'customElements', {
  3514. configurable: true,
  3515. enumerable: true,
  3516. value: customElements
  3517. });
  3518. }
  3519. /**
  3520. * @license
  3521. * Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
  3522. * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
  3523. * The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
  3524. * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
  3525. * Code distributed by Google as part of the polymer project is also
  3526. * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
  3527. */
  3528. // @version 0.7.22
  3529. (function (global) {
  3530. if (global.JsMutationObserver) {
  3531. return;
  3532. }
  3533. var registrationsTable = new WeakMap();
  3534. var setImmediate;
  3535. if (/Trident|Edge/.test(navigator.userAgent)) {
  3536. setImmediate = setTimeout;
  3537. } else if (window.setImmediate) {
  3538. setImmediate = window.setImmediate;
  3539. } else {
  3540. var setImmediateQueue = [];
  3541. var sentinel = String(Math.random());
  3542. window.addEventListener("message", function (e) {
  3543. if (e.data === sentinel) {
  3544. var queue = setImmediateQueue;
  3545. setImmediateQueue = [];
  3546. queue.forEach(function (func) {
  3547. func();
  3548. });
  3549. }
  3550. });
  3551. setImmediate = function setImmediate(func) {
  3552. setImmediateQueue.push(func);
  3553. window.postMessage(sentinel, "*");
  3554. };
  3555. }
  3556. var isScheduled = false;
  3557. var scheduledObservers = [];
  3558. function scheduleCallback(observer) {
  3559. scheduledObservers.push(observer);
  3560. if (!isScheduled) {
  3561. isScheduled = true;
  3562. setImmediate(dispatchCallbacks);
  3563. }
  3564. }
  3565. function wrapIfNeeded(node) {
  3566. return window.ShadowDOMPolyfill && window.ShadowDOMPolyfill.wrapIfNeeded(node) || node;
  3567. }
  3568. function dispatchCallbacks() {
  3569. isScheduled = false;
  3570. var observers = scheduledObservers;
  3571. scheduledObservers = [];
  3572. observers.sort(function (o1, o2) {
  3573. return o1.uid_ - o2.uid_;
  3574. });
  3575. var anyNonEmpty = false;
  3576. observers.forEach(function (observer) {
  3577. var queue = observer.takeRecords();
  3578. removeTransientObserversFor(observer);
  3579. if (queue.length) {
  3580. observer.callback_(queue, observer);
  3581. anyNonEmpty = true;
  3582. }
  3583. });
  3584. if (anyNonEmpty) dispatchCallbacks();
  3585. }
  3586. function removeTransientObserversFor(observer) {
  3587. observer.nodes_.forEach(function (node) {
  3588. var registrations = registrationsTable.get(node);
  3589. if (!registrations) return;
  3590. registrations.forEach(function (registration) {
  3591. if (registration.observer === observer) registration.removeTransientObservers();
  3592. });
  3593. });
  3594. }
  3595. function forEachAncestorAndObserverEnqueueRecord(target, callback) {
  3596. for (var node = target; node; node = node.parentNode) {
  3597. var registrations = registrationsTable.get(node);
  3598. if (registrations) {
  3599. for (var j = 0; j < registrations.length; j++) {
  3600. var registration = registrations[j];
  3601. var options = registration.options;
  3602. if (node !== target && !options.subtree) continue;
  3603. var record = callback(options);
  3604. if (record) registration.enqueue(record);
  3605. }
  3606. }
  3607. }
  3608. }
  3609. var uidCounter = 0;
  3610. function JsMutationObserver(callback) {
  3611. this.callback_ = callback;
  3612. this.nodes_ = [];
  3613. this.records_ = [];
  3614. this.uid_ = ++uidCounter;
  3615. }
  3616. JsMutationObserver.prototype = {
  3617. observe: function observe(target, options) {
  3618. target = wrapIfNeeded(target);
  3619. if (!options.childList && !options.attributes && !options.characterData || options.attributeOldValue && !options.attributes || options.attributeFilter && options.attributeFilter.length && !options.attributes || options.characterDataOldValue && !options.characterData) {
  3620. throw new SyntaxError();
  3621. }
  3622. var registrations = registrationsTable.get(target);
  3623. if (!registrations) registrationsTable.set(target, registrations = []);
  3624. var registration;
  3625. for (var i = 0; i < registrations.length; i++) {
  3626. if (registrations[i].observer === this) {
  3627. registration = registrations[i];
  3628. registration.removeListeners();
  3629. registration.options = options;
  3630. break;
  3631. }
  3632. }
  3633. if (!registration) {
  3634. registration = new Registration(this, target, options);
  3635. registrations.push(registration);
  3636. this.nodes_.push(target);
  3637. }
  3638. registration.addListeners();
  3639. },
  3640. disconnect: function disconnect() {
  3641. this.nodes_.forEach(function (node) {
  3642. var registrations = registrationsTable.get(node);
  3643. for (var i = 0; i < registrations.length; i++) {
  3644. var registration = registrations[i];
  3645. if (registration.observer === this) {
  3646. registration.removeListeners();
  3647. registrations.splice(i, 1);
  3648. break;
  3649. }
  3650. }
  3651. }, this);
  3652. this.records_ = [];
  3653. },
  3654. takeRecords: function takeRecords() {
  3655. var copyOfRecords = this.records_;
  3656. this.records_ = [];
  3657. return copyOfRecords;
  3658. }
  3659. };
  3660. function MutationRecord(type, target) {
  3661. this.type = type;
  3662. this.target = target;
  3663. this.addedNodes = [];
  3664. this.removedNodes = [];
  3665. this.previousSibling = null;
  3666. this.nextSibling = null;
  3667. this.attributeName = null;
  3668. this.attributeNamespace = null;
  3669. this.oldValue = null;
  3670. }
  3671. function copyMutationRecord(original) {
  3672. var record = new MutationRecord(original.type, original.target);
  3673. record.addedNodes = original.addedNodes.slice();
  3674. record.removedNodes = original.removedNodes.slice();
  3675. record.previousSibling = original.previousSibling;
  3676. record.nextSibling = original.nextSibling;
  3677. record.attributeName = original.attributeName;
  3678. record.attributeNamespace = original.attributeNamespace;
  3679. record.oldValue = original.oldValue;
  3680. return record;
  3681. }
  3682. var currentRecord, recordWithOldValue;
  3683. function getRecord(type, target) {
  3684. return currentRecord = new MutationRecord(type, target);
  3685. }
  3686. function getRecordWithOldValue(oldValue) {
  3687. if (recordWithOldValue) return recordWithOldValue;
  3688. recordWithOldValue = copyMutationRecord(currentRecord);
  3689. recordWithOldValue.oldValue = oldValue;
  3690. return recordWithOldValue;
  3691. }
  3692. function clearRecords() {
  3693. currentRecord = recordWithOldValue = undefined;
  3694. }
  3695. function recordRepresentsCurrentMutation(record) {
  3696. return record === recordWithOldValue || record === currentRecord;
  3697. }
  3698. function selectRecord(lastRecord, newRecord) {
  3699. if (lastRecord === newRecord) return lastRecord;
  3700. if (recordWithOldValue && recordRepresentsCurrentMutation(lastRecord)) return recordWithOldValue;
  3701. return null;
  3702. }
  3703. function Registration(observer, target, options) {
  3704. this.observer = observer;
  3705. this.target = target;
  3706. this.options = options;
  3707. this.transientObservedNodes = [];
  3708. }
  3709. Registration.prototype = {
  3710. enqueue: function enqueue(record) {
  3711. var records = this.observer.records_;
  3712. var length = records.length;
  3713. if (records.length > 0) {
  3714. var lastRecord = records[length - 1];
  3715. var recordToReplaceLast = selectRecord(lastRecord, record);
  3716. if (recordToReplaceLast) {
  3717. records[length - 1] = recordToReplaceLast;
  3718. return;
  3719. }
  3720. } else {
  3721. scheduleCallback(this.observer);
  3722. }
  3723. records[length] = record;
  3724. },
  3725. addListeners: function addListeners() {
  3726. this.addListeners_(this.target);
  3727. },
  3728. addListeners_: function addListeners_(node) {
  3729. var options = this.options;
  3730. if (options.attributes) node.addEventListener("DOMAttrModified", this, true);
  3731. if (options.characterData) node.addEventListener("DOMCharacterDataModified", this, true);
  3732. if (options.childList) node.addEventListener("DOMNodeInserted", this, true);
  3733. if (options.childList || options.subtree) node.addEventListener("DOMNodeRemoved", this, true);
  3734. },
  3735. removeListeners: function removeListeners() {
  3736. this.removeListeners_(this.target);
  3737. },
  3738. removeListeners_: function removeListeners_(node) {
  3739. var options = this.options;
  3740. if (options.attributes) node.removeEventListener("DOMAttrModified", this, true);
  3741. if (options.characterData) node.removeEventListener("DOMCharacterDataModified", this, true);
  3742. if (options.childList) node.removeEventListener("DOMNodeInserted", this, true);
  3743. if (options.childList || options.subtree) node.removeEventListener("DOMNodeRemoved", this, true);
  3744. },
  3745. addTransientObserver: function addTransientObserver(node) {
  3746. if (node === this.target) return;
  3747. this.addListeners_(node);
  3748. this.transientObservedNodes.push(node);
  3749. var registrations = registrationsTable.get(node);
  3750. if (!registrations) registrationsTable.set(node, registrations = []);
  3751. registrations.push(this);
  3752. },
  3753. removeTransientObservers: function removeTransientObservers() {
  3754. var transientObservedNodes = this.transientObservedNodes;
  3755. this.transientObservedNodes = [];
  3756. transientObservedNodes.forEach(function (node) {
  3757. this.removeListeners_(node);
  3758. var registrations = registrationsTable.get(node);
  3759. for (var i = 0; i < registrations.length; i++) {
  3760. if (registrations[i] === this) {
  3761. registrations.splice(i, 1);
  3762. break;
  3763. }
  3764. }
  3765. }, this);
  3766. },
  3767. handleEvent: function handleEvent(e) {
  3768. e.stopImmediatePropagation();
  3769. switch (e.type) {
  3770. case "DOMAttrModified":
  3771. var name = e.attrName;
  3772. var namespace = e.relatedNode.namespaceURI;
  3773. var target = e.target;
  3774. var record = new getRecord("attributes", target);
  3775. record.attributeName = name;
  3776. record.attributeNamespace = namespace;
  3777. var oldValue = e.attrChange === MutationEvent.ADDITION ? null : e.prevValue;
  3778. forEachAncestorAndObserverEnqueueRecord(target, function (options) {
  3779. if (!options.attributes) return;
  3780. if (options.attributeFilter && options.attributeFilter.length && options.attributeFilter.indexOf(name) === -1 && options.attributeFilter.indexOf(namespace) === -1) {
  3781. return;
  3782. }
  3783. if (options.attributeOldValue) return getRecordWithOldValue(oldValue);
  3784. return record;
  3785. });
  3786. break;
  3787. case "DOMCharacterDataModified":
  3788. var target = e.target;
  3789. var record = getRecord("characterData", target);
  3790. var oldValue = e.prevValue;
  3791. forEachAncestorAndObserverEnqueueRecord(target, function (options) {
  3792. if (!options.characterData) return;
  3793. if (options.characterDataOldValue) return getRecordWithOldValue(oldValue);
  3794. return record;
  3795. });
  3796. break;
  3797. case "DOMNodeRemoved":
  3798. this.addTransientObserver(e.target);
  3799. case "DOMNodeInserted":
  3800. var changedNode = e.target;
  3801. var addedNodes, removedNodes;
  3802. if (e.type === "DOMNodeInserted") {
  3803. addedNodes = [changedNode];
  3804. removedNodes = [];
  3805. } else {
  3806. addedNodes = [];
  3807. removedNodes = [changedNode];
  3808. }
  3809. var previousSibling = changedNode.previousSibling;
  3810. var nextSibling = changedNode.nextSibling;
  3811. var record = getRecord("childList", e.target.parentNode);
  3812. record.addedNodes = addedNodes;
  3813. record.removedNodes = removedNodes;
  3814. record.previousSibling = previousSibling;
  3815. record.nextSibling = nextSibling;
  3816. forEachAncestorAndObserverEnqueueRecord(e.relatedNode, function (options) {
  3817. if (!options.childList) return;
  3818. return record;
  3819. });
  3820. }
  3821. clearRecords();
  3822. }
  3823. };
  3824. global.JsMutationObserver = JsMutationObserver;
  3825. if (!global.MutationObserver) {
  3826. global.MutationObserver = JsMutationObserver;
  3827. JsMutationObserver._isPolyfilled = true;
  3828. }
  3829. })(self);
  3830. /*
  3831. Copyright (c) 2012 Barnesandnoble.com, llc, Donavon West, and Domenic Denicola
  3832. Permission is hereby granted, free of charge, to any person obtaining
  3833. a copy of this software and associated documentation files (the
  3834. "Software"), to deal in the Software without restriction, including
  3835. without limitation the rights to use, copy, modify, merge, publish,
  3836. distribute, sublicense, and/or sell copies of the Software, and to
  3837. permit persons to whom the Software is furnished to do so, subject to
  3838. the following conditions:
  3839. The above copyright notice and this permission notice shall be
  3840. included in all copies or substantial portions of the Software.
  3841. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  3842. EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  3843. MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  3844. NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  3845. LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  3846. OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  3847. WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  3848. */
  3849. (function (global, undefined) {
  3850. if (global.setImmediate) {
  3851. return;
  3852. }
  3853. var nextHandle = 1; // Spec says greater than zero
  3854. var tasksByHandle = {};
  3855. var currentlyRunningATask = false;
  3856. var doc = global.document;
  3857. var setImmediate;
  3858. function addFromSetImmediateArguments(args) {
  3859. tasksByHandle[nextHandle] = partiallyApplied.apply(undefined, args);
  3860. return nextHandle++;
  3861. }
  3862. // This function accepts the same arguments as setImmediate, but
  3863. // returns a function that requires no arguments.
  3864. function partiallyApplied(handler) {
  3865. var args = [].slice.call(arguments, 1);
  3866. return function () {
  3867. if (typeof handler === "function") {
  3868. handler.apply(undefined, args);
  3869. } else {
  3870. new Function("" + handler)();
  3871. }
  3872. };
  3873. }
  3874. function runIfPresent(handle) {
  3875. // From the spec: "Wait until any invocations of this algorithm started before this one have completed."
  3876. // So if we're currently running a task, we'll need to delay this invocation.
  3877. if (currentlyRunningATask) {
  3878. // Delay by doing a setTimeout. setImmediate was tried instead, but in Firefox 7 it generated a
  3879. // "too much recursion" error.
  3880. setTimeout(partiallyApplied(runIfPresent, handle), 0);
  3881. } else {
  3882. var task = tasksByHandle[handle];
  3883. if (task) {
  3884. currentlyRunningATask = true;
  3885. try {
  3886. task();
  3887. } finally {
  3888. clearImmediate(handle);
  3889. currentlyRunningATask = false;
  3890. }
  3891. }
  3892. }
  3893. }
  3894. function clearImmediate(handle) {
  3895. delete tasksByHandle[handle];
  3896. }
  3897. function installNextTickImplementation() {
  3898. setImmediate = function setImmediate() {
  3899. var handle = addFromSetImmediateArguments(arguments);
  3900. process.nextTick(partiallyApplied(runIfPresent, handle));
  3901. return handle;
  3902. };
  3903. }
  3904. function canUsePostMessage() {
  3905. // The test against `importScripts` prevents this implementation from being installed inside a web worker,
  3906. // where `global.postMessage` means something completely different and can't be used for this purpose.
  3907. if (global.postMessage && !global.importScripts) {
  3908. var postMessageIsAsynchronous = true;
  3909. var oldOnMessage = global.onmessage;
  3910. global.onmessage = function () {
  3911. postMessageIsAsynchronous = false;
  3912. };
  3913. global.postMessage("", "*");
  3914. global.onmessage = oldOnMessage;
  3915. return postMessageIsAsynchronous;
  3916. }
  3917. }
  3918. function installPostMessageImplementation() {
  3919. // Installs an event handler on `global` for the `message` event: see
  3920. // * https://developer.mozilla.org/en/DOM/window.postMessage
  3921. // * http://www.whatwg.org/specs/web-apps/current-work/multipage/comms.html#crossDocumentMessages
  3922. var messagePrefix = "setImmediate$" + Math.random() + "$";
  3923. var onGlobalMessage = function onGlobalMessage(event) {
  3924. if (event.source === global && typeof event.data === "string" && event.data.indexOf(messagePrefix) === 0) {
  3925. runIfPresent(+event.data.slice(messagePrefix.length));
  3926. }
  3927. };
  3928. if (global.addEventListener) {
  3929. global.addEventListener("message", onGlobalMessage, false);
  3930. } else {
  3931. global.attachEvent("onmessage", onGlobalMessage);
  3932. }
  3933. setImmediate = function setImmediate() {
  3934. var handle = addFromSetImmediateArguments(arguments);
  3935. global.postMessage(messagePrefix + handle, "*");
  3936. return handle;
  3937. };
  3938. }
  3939. function installMessageChannelImplementation() {
  3940. var channel = new MessageChannel();
  3941. channel.port1.onmessage = function (event) {
  3942. var handle = event.data;
  3943. runIfPresent(handle);
  3944. };
  3945. setImmediate = function setImmediate() {
  3946. var handle = addFromSetImmediateArguments(arguments);
  3947. channel.port2.postMessage(handle);
  3948. return handle;
  3949. };
  3950. }
  3951. function installReadyStateChangeImplementation() {
  3952. var html = doc.documentElement;
  3953. setImmediate = function setImmediate() {
  3954. var handle = addFromSetImmediateArguments(arguments);
  3955. // Create a <script> element; its readystatechange event will be fired asynchronously once it is inserted
  3956. // into the document. Do so, thus queuing up the task. Remember to clean up once it's been called.
  3957. var script = doc.createElement("script");
  3958. script.onreadystatechange = function () {
  3959. runIfPresent(handle);
  3960. script.onreadystatechange = null;
  3961. html.removeChild(script);
  3962. script = null;
  3963. };
  3964. html.appendChild(script);
  3965. return handle;
  3966. };
  3967. }
  3968. function installSetTimeoutImplementation() {
  3969. setImmediate = function setImmediate() {
  3970. var handle = addFromSetImmediateArguments(arguments);
  3971. setTimeout(partiallyApplied(runIfPresent, handle), 0);
  3972. return handle;
  3973. };
  3974. }
  3975. // If supported, we should attach to the prototype of global, since that is where setTimeout et al. live.
  3976. var attachTo = Object.getPrototypeOf && Object.getPrototypeOf(global);
  3977. attachTo = attachTo && attachTo.setTimeout ? attachTo : global;
  3978. // Don't get fooled by e.g. browserify environments.
  3979. if ({}.toString.call(global.process) === "[object process]") {
  3980. // For Node.js before 0.9
  3981. installNextTickImplementation();
  3982. } else if (canUsePostMessage()) {
  3983. // For non-IE10 modern browsers
  3984. installPostMessageImplementation();
  3985. } else if (global.MessageChannel) {
  3986. // For web workers, where supported
  3987. installMessageChannelImplementation();
  3988. } else if (doc && "onreadystatechange" in doc.createElement("script")) {
  3989. // For IE 6–8
  3990. installReadyStateChangeImplementation();
  3991. } else {
  3992. // For older browsers
  3993. installSetTimeoutImplementation();
  3994. }
  3995. attachTo.setImmediate = setImmediate;
  3996. attachTo.clearImmediate = clearImmediate;
  3997. })(self);
  3998. // Caution:
  3999. // Do not replace this import statement with codes.
  4000. //
  4001. // If you replace this import statement with codes,
  4002. // the codes will be executed after the following polyfills are imported
  4003. // because import statements are hoisted during compilation.
  4004. // Polyfill ECMAScript standard features with global namespace pollution
  4005. // Polyfill Custom Elements v1 with global namespace pollution
  4006. // Polyfill MutationObserver with global namespace pollution
  4007. // Polyfill setImmediate with global namespace pollution
  4008. (function () {
  4009. var DEFAULT_VIEWPORT = 'width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no';
  4010. var Viewport = {
  4011. ensureViewportElement: function ensureViewportElement() {
  4012. var viewportElement = document.querySelector('meta[name=viewport]');
  4013. if (!viewportElement) {
  4014. viewportElement = document.createElement('meta');
  4015. viewportElement.name = 'viewport';
  4016. document.head.appendChild(viewportElement);
  4017. }
  4018. return viewportElement;
  4019. },
  4020. setup: function setup() {
  4021. var viewportElement = Viewport.ensureViewportElement();
  4022. if (!viewportElement) {
  4023. return;
  4024. }
  4025. if (!viewportElement.hasAttribute('content')) {
  4026. viewportElement.setAttribute('content', DEFAULT_VIEWPORT);
  4027. }
  4028. }
  4029. };
  4030. window.Viewport = Viewport;
  4031. })();
  4032. function setup(ons$$1) {
  4033. if (window._onsLoaded) {
  4034. ons$$1._util.warn('Onsen UI is loaded more than once.');
  4035. }
  4036. window._onsLoaded = true;
  4037. // fastclick
  4038. window.addEventListener('load', function () {
  4039. ons$$1.fastClick = fastclick_1.attach(document.body);
  4040. var supportTouchAction = 'touch-action' in document.body.style;
  4041. ons$$1.platform._runOnActualPlatform(function () {
  4042. if (ons$$1.platform.isAndroid()) {
  4043. // In Android4.4+, correct viewport settings can remove click delay.
  4044. // So disable FastClick on Android.
  4045. ons$$1.fastClick.destroy();
  4046. } else if (ons$$1.platform.isIOS()) {
  4047. if (supportTouchAction && (ons$$1.platform.isIOSSafari() || ons$$1.platform.isWKWebView())) {
  4048. // If 'touch-action' supported in iOS Safari or WKWebView, disable FastClick.
  4049. ons$$1.fastClick.destroy();
  4050. } else {
  4051. // Do nothing. 'touch-action: manipulation' has no effect on UIWebView.
  4052. }
  4053. }
  4054. });
  4055. }, false);
  4056. ons$$1.ready(function () {
  4057. ons$$1.enableDeviceBackButtonHandler();
  4058. ons$$1._defaultDeviceBackButtonHandler = ons$$1._internal.dbbDispatcher.createHandler(window.document.body, function () {
  4059. if (Object.hasOwnProperty.call(navigator, 'app')) {
  4060. navigator.app.exitApp();
  4061. } else {
  4062. console.warn('Could not close the app. Is \'cordova.js\' included?\nError: \'window.navigator.app\' is undefined.');
  4063. }
  4064. });
  4065. document.body._gestureDetector = new ons$$1.GestureDetector(document.body, { passive: true });
  4066. // Simulate Device Back Button on ESC press
  4067. if (!ons$$1.platform.isWebView()) {
  4068. document.body.addEventListener('keydown', function (event) {
  4069. if (event.keyCode === 27) {
  4070. ons$$1.fireDeviceBackButtonEvent();
  4071. }
  4072. });
  4073. }
  4074. // setup loading placeholder
  4075. ons$$1._setupLoadingPlaceHolders();
  4076. });
  4077. // viewport.js
  4078. Viewport.setup();
  4079. }
  4080. setup(ons); // Setup initial listeners
  4081. export default ons;
  4082. //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VzIjpbIi4uLy4uL25vZGVfbW9kdWxlcy9Ab25zZW51aS9mYXN0Y2xpY2svbGliL2Zhc3RjbGljay5qcyIsIi4uLy4uL2NvcmUvc3JjL3BvbHlmaWxscy9wb2x5ZmlsbC1zd2l0Y2hlcy5qcyIsIi4uLy4uL25vZGVfbW9kdWxlcy9jb3JlLWpzL21vZHVsZXMvX2dsb2JhbC5qcyIsIi4uLy4uL25vZGVfbW9kdWxlcy9jb3JlLWpzL21vZHVsZXMvX2NvcmUuanMiLCIuL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