doesburg.common.js 175 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116
  1. module.exports =
  2. /******/ (function(modules) { // webpackBootstrap
  3. /******/ // The module cache
  4. /******/ var installedModules = {};
  5. /******/
  6. /******/ // The require function
  7. /******/ function __webpack_require__(moduleId) {
  8. /******/
  9. /******/ // Check if module is in cache
  10. /******/ if(installedModules[moduleId]) {
  11. /******/ return installedModules[moduleId].exports;
  12. /******/ }
  13. /******/ // Create a new module (and put it into the cache)
  14. /******/ var module = installedModules[moduleId] = {
  15. /******/ i: moduleId,
  16. /******/ l: false,
  17. /******/ exports: {}
  18. /******/ };
  19. /******/
  20. /******/ // Execute the module function
  21. /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
  22. /******/
  23. /******/ // Flag the module as loaded
  24. /******/ module.l = true;
  25. /******/
  26. /******/ // Return the exports of the module
  27. /******/ return module.exports;
  28. /******/ }
  29. /******/
  30. /******/
  31. /******/ // expose the modules object (__webpack_modules__)
  32. /******/ __webpack_require__.m = modules;
  33. /******/
  34. /******/ // expose the module cache
  35. /******/ __webpack_require__.c = installedModules;
  36. /******/
  37. /******/ // define getter function for harmony exports
  38. /******/ __webpack_require__.d = function(exports, name, getter) {
  39. /******/ if(!__webpack_require__.o(exports, name)) {
  40. /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
  41. /******/ }
  42. /******/ };
  43. /******/
  44. /******/ // define __esModule on exports
  45. /******/ __webpack_require__.r = function(exports) {
  46. /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
  47. /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
  48. /******/ }
  49. /******/ Object.defineProperty(exports, '__esModule', { value: true });
  50. /******/ };
  51. /******/
  52. /******/ // create a fake namespace object
  53. /******/ // mode & 1: value is a module id, require it
  54. /******/ // mode & 2: merge all properties of value into the ns
  55. /******/ // mode & 4: return value when already ns object
  56. /******/ // mode & 8|1: behave like require
  57. /******/ __webpack_require__.t = function(value, mode) {
  58. /******/ if(mode & 1) value = __webpack_require__(value);
  59. /******/ if(mode & 8) return value;
  60. /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
  61. /******/ var ns = Object.create(null);
  62. /******/ __webpack_require__.r(ns);
  63. /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
  64. /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
  65. /******/ return ns;
  66. /******/ };
  67. /******/
  68. /******/ // getDefaultExport function for compatibility with non-harmony modules
  69. /******/ __webpack_require__.n = function(module) {
  70. /******/ var getter = module && module.__esModule ?
  71. /******/ function getDefault() { return module['default']; } :
  72. /******/ function getModuleExports() { return module; };
  73. /******/ __webpack_require__.d(getter, 'a', getter);
  74. /******/ return getter;
  75. /******/ };
  76. /******/
  77. /******/ // Object.prototype.hasOwnProperty.call
  78. /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
  79. /******/
  80. /******/ // __webpack_public_path__
  81. /******/ __webpack_require__.p = "";
  82. /******/
  83. /******/
  84. /******/ // Load entry module and return exports
  85. /******/ return __webpack_require__(__webpack_require__.s = "fb15");
  86. /******/ })
  87. /************************************************************************/
  88. /******/ ({
  89. /***/ "014b":
  90. /***/ (function(module, exports, __webpack_require__) {
  91. "use strict";
  92. // ECMAScript 6 symbols shim
  93. var global = __webpack_require__("e53d");
  94. var has = __webpack_require__("07e3");
  95. var DESCRIPTORS = __webpack_require__("8e60");
  96. var $export = __webpack_require__("63b6");
  97. var redefine = __webpack_require__("9138");
  98. var META = __webpack_require__("ebfd").KEY;
  99. var $fails = __webpack_require__("294c");
  100. var shared = __webpack_require__("dbdb");
  101. var setToStringTag = __webpack_require__("45f2");
  102. var uid = __webpack_require__("62a0");
  103. var wks = __webpack_require__("5168");
  104. var wksExt = __webpack_require__("ccb9");
  105. var wksDefine = __webpack_require__("6718");
  106. var enumKeys = __webpack_require__("47ee");
  107. var isArray = __webpack_require__("9003");
  108. var anObject = __webpack_require__("e4ae");
  109. var isObject = __webpack_require__("f772");
  110. var toIObject = __webpack_require__("36c3");
  111. var toPrimitive = __webpack_require__("1bc3");
  112. var createDesc = __webpack_require__("aebd");
  113. var _create = __webpack_require__("a159");
  114. var gOPNExt = __webpack_require__("0395");
  115. var $GOPD = __webpack_require__("bf0b");
  116. var $DP = __webpack_require__("d9f6");
  117. var $keys = __webpack_require__("c3a1");
  118. var gOPD = $GOPD.f;
  119. var dP = $DP.f;
  120. var gOPN = gOPNExt.f;
  121. var $Symbol = global.Symbol;
  122. var $JSON = global.JSON;
  123. var _stringify = $JSON && $JSON.stringify;
  124. var PROTOTYPE = 'prototype';
  125. var HIDDEN = wks('_hidden');
  126. var TO_PRIMITIVE = wks('toPrimitive');
  127. var isEnum = {}.propertyIsEnumerable;
  128. var SymbolRegistry = shared('symbol-registry');
  129. var AllSymbols = shared('symbols');
  130. var OPSymbols = shared('op-symbols');
  131. var ObjectProto = Object[PROTOTYPE];
  132. var USE_NATIVE = typeof $Symbol == 'function';
  133. var QObject = global.QObject;
  134. // Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
  135. var setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;
  136. // fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
  137. var setSymbolDesc = DESCRIPTORS && $fails(function () {
  138. return _create(dP({}, 'a', {
  139. get: function () { return dP(this, 'a', { value: 7 }).a; }
  140. })).a != 7;
  141. }) ? function (it, key, D) {
  142. var protoDesc = gOPD(ObjectProto, key);
  143. if (protoDesc) delete ObjectProto[key];
  144. dP(it, key, D);
  145. if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc);
  146. } : dP;
  147. var wrap = function (tag) {
  148. var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]);
  149. sym._k = tag;
  150. return sym;
  151. };
  152. var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) {
  153. return typeof it == 'symbol';
  154. } : function (it) {
  155. return it instanceof $Symbol;
  156. };
  157. var $defineProperty = function defineProperty(it, key, D) {
  158. if (it === ObjectProto) $defineProperty(OPSymbols, key, D);
  159. anObject(it);
  160. key = toPrimitive(key, true);
  161. anObject(D);
  162. if (has(AllSymbols, key)) {
  163. if (!D.enumerable) {
  164. if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {}));
  165. it[HIDDEN][key] = true;
  166. } else {
  167. if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false;
  168. D = _create(D, { enumerable: createDesc(0, false) });
  169. } return setSymbolDesc(it, key, D);
  170. } return dP(it, key, D);
  171. };
  172. var $defineProperties = function defineProperties(it, P) {
  173. anObject(it);
  174. var keys = enumKeys(P = toIObject(P));
  175. var i = 0;
  176. var l = keys.length;
  177. var key;
  178. while (l > i) $defineProperty(it, key = keys[i++], P[key]);
  179. return it;
  180. };
  181. var $create = function create(it, P) {
  182. return P === undefined ? _create(it) : $defineProperties(_create(it), P);
  183. };
  184. var $propertyIsEnumerable = function propertyIsEnumerable(key) {
  185. var E = isEnum.call(this, key = toPrimitive(key, true));
  186. if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false;
  187. return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true;
  188. };
  189. var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) {
  190. it = toIObject(it);
  191. key = toPrimitive(key, true);
  192. if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return;
  193. var D = gOPD(it, key);
  194. if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true;
  195. return D;
  196. };
  197. var $getOwnPropertyNames = function getOwnPropertyNames(it) {
  198. var names = gOPN(toIObject(it));
  199. var result = [];
  200. var i = 0;
  201. var key;
  202. while (names.length > i) {
  203. if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key);
  204. } return result;
  205. };
  206. var $getOwnPropertySymbols = function getOwnPropertySymbols(it) {
  207. var IS_OP = it === ObjectProto;
  208. var names = gOPN(IS_OP ? OPSymbols : toIObject(it));
  209. var result = [];
  210. var i = 0;
  211. var key;
  212. while (names.length > i) {
  213. if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]);
  214. } return result;
  215. };
  216. // 19.4.1.1 Symbol([description])
  217. if (!USE_NATIVE) {
  218. $Symbol = function Symbol() {
  219. if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!');
  220. var tag = uid(arguments.length > 0 ? arguments[0] : undefined);
  221. var $set = function (value) {
  222. if (this === ObjectProto) $set.call(OPSymbols, value);
  223. if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
  224. setSymbolDesc(this, tag, createDesc(1, value));
  225. };
  226. if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set });
  227. return wrap(tag);
  228. };
  229. redefine($Symbol[PROTOTYPE], 'toString', function toString() {
  230. return this._k;
  231. });
  232. $GOPD.f = $getOwnPropertyDescriptor;
  233. $DP.f = $defineProperty;
  234. __webpack_require__("6abf").f = gOPNExt.f = $getOwnPropertyNames;
  235. __webpack_require__("355d").f = $propertyIsEnumerable;
  236. __webpack_require__("9aa9").f = $getOwnPropertySymbols;
  237. if (DESCRIPTORS && !__webpack_require__("b8e3")) {
  238. redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);
  239. }
  240. wksExt.f = function (name) {
  241. return wrap(wks(name));
  242. };
  243. }
  244. $export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol });
  245. for (var es6Symbols = (
  246. // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14
  247. 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'
  248. ).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]);
  249. for (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]);
  250. $export($export.S + $export.F * !USE_NATIVE, 'Symbol', {
  251. // 19.4.2.1 Symbol.for(key)
  252. 'for': function (key) {
  253. return has(SymbolRegistry, key += '')
  254. ? SymbolRegistry[key]
  255. : SymbolRegistry[key] = $Symbol(key);
  256. },
  257. // 19.4.2.5 Symbol.keyFor(sym)
  258. keyFor: function keyFor(sym) {
  259. if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!');
  260. for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key;
  261. },
  262. useSetter: function () { setter = true; },
  263. useSimple: function () { setter = false; }
  264. });
  265. $export($export.S + $export.F * !USE_NATIVE, 'Object', {
  266. // 19.1.2.2 Object.create(O [, Properties])
  267. create: $create,
  268. // 19.1.2.4 Object.defineProperty(O, P, Attributes)
  269. defineProperty: $defineProperty,
  270. // 19.1.2.3 Object.defineProperties(O, Properties)
  271. defineProperties: $defineProperties,
  272. // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
  273. getOwnPropertyDescriptor: $getOwnPropertyDescriptor,
  274. // 19.1.2.7 Object.getOwnPropertyNames(O)
  275. getOwnPropertyNames: $getOwnPropertyNames,
  276. // 19.1.2.8 Object.getOwnPropertySymbols(O)
  277. getOwnPropertySymbols: $getOwnPropertySymbols
  278. });
  279. // 24.3.2 JSON.stringify(value [, replacer [, space]])
  280. $JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () {
  281. var S = $Symbol();
  282. // MS Edge converts symbol values to JSON as {}
  283. // WebKit converts symbol values to JSON as null
  284. // V8 throws on boxed symbols
  285. return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}';
  286. })), 'JSON', {
  287. stringify: function stringify(it) {
  288. var args = [it];
  289. var i = 1;
  290. var replacer, $replacer;
  291. while (arguments.length > i) args.push(arguments[i++]);
  292. $replacer = replacer = args[1];
  293. if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
  294. if (!isArray(replacer)) replacer = function (key, value) {
  295. if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
  296. if (!isSymbol(value)) return value;
  297. };
  298. args[1] = replacer;
  299. return _stringify.apply($JSON, args);
  300. }
  301. });
  302. // 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)
  303. $Symbol[PROTOTYPE][TO_PRIMITIVE] || __webpack_require__("35e8")($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);
  304. // 19.4.3.5 Symbol.prototype[@@toStringTag]
  305. setToStringTag($Symbol, 'Symbol');
  306. // 20.2.1.9 Math[@@toStringTag]
  307. setToStringTag(Math, 'Math', true);
  308. // 24.3.3 JSON[@@toStringTag]
  309. setToStringTag(global.JSON, 'JSON', true);
  310. /***/ }),
  311. /***/ "01f9":
  312. /***/ (function(module, exports, __webpack_require__) {
  313. "use strict";
  314. var LIBRARY = __webpack_require__("2d00");
  315. var $export = __webpack_require__("5ca1");
  316. var redefine = __webpack_require__("2aba");
  317. var hide = __webpack_require__("32e9");
  318. var Iterators = __webpack_require__("84f2");
  319. var $iterCreate = __webpack_require__("41a0");
  320. var setToStringTag = __webpack_require__("7f20");
  321. var getPrototypeOf = __webpack_require__("38fd");
  322. var ITERATOR = __webpack_require__("2b4c")('iterator');
  323. var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`
  324. var FF_ITERATOR = '@@iterator';
  325. var KEYS = 'keys';
  326. var VALUES = 'values';
  327. var returnThis = function () { return this; };
  328. module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {
  329. $iterCreate(Constructor, NAME, next);
  330. var getMethod = function (kind) {
  331. if (!BUGGY && kind in proto) return proto[kind];
  332. switch (kind) {
  333. case KEYS: return function keys() { return new Constructor(this, kind); };
  334. case VALUES: return function values() { return new Constructor(this, kind); };
  335. } return function entries() { return new Constructor(this, kind); };
  336. };
  337. var TAG = NAME + ' Iterator';
  338. var DEF_VALUES = DEFAULT == VALUES;
  339. var VALUES_BUG = false;
  340. var proto = Base.prototype;
  341. var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];
  342. var $default = $native || getMethod(DEFAULT);
  343. var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;
  344. var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;
  345. var methods, key, IteratorPrototype;
  346. // Fix native
  347. if ($anyNative) {
  348. IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));
  349. if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {
  350. // Set @@toStringTag to native iterators
  351. setToStringTag(IteratorPrototype, TAG, true);
  352. // fix for some old engines
  353. if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis);
  354. }
  355. }
  356. // fix Array#{values, @@iterator}.name in V8 / FF
  357. if (DEF_VALUES && $native && $native.name !== VALUES) {
  358. VALUES_BUG = true;
  359. $default = function values() { return $native.call(this); };
  360. }
  361. // Define iterator
  362. if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {
  363. hide(proto, ITERATOR, $default);
  364. }
  365. // Plug for library
  366. Iterators[NAME] = $default;
  367. Iterators[TAG] = returnThis;
  368. if (DEFAULT) {
  369. methods = {
  370. values: DEF_VALUES ? $default : getMethod(VALUES),
  371. keys: IS_SET ? $default : getMethod(KEYS),
  372. entries: $entries
  373. };
  374. if (FORCED) for (key in methods) {
  375. if (!(key in proto)) redefine(proto, key, methods[key]);
  376. } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);
  377. }
  378. return methods;
  379. };
  380. /***/ }),
  381. /***/ "02f4":
  382. /***/ (function(module, exports, __webpack_require__) {
  383. var toInteger = __webpack_require__("4588");
  384. var defined = __webpack_require__("be13");
  385. // true -> String#at
  386. // false -> String#codePointAt
  387. module.exports = function (TO_STRING) {
  388. return function (that, pos) {
  389. var s = String(defined(that));
  390. var i = toInteger(pos);
  391. var l = s.length;
  392. var a, b;
  393. if (i < 0 || i >= l) return TO_STRING ? '' : undefined;
  394. a = s.charCodeAt(i);
  395. return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff
  396. ? TO_STRING ? s.charAt(i) : a
  397. : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;
  398. };
  399. };
  400. /***/ }),
  401. /***/ "0390":
  402. /***/ (function(module, exports, __webpack_require__) {
  403. "use strict";
  404. var at = __webpack_require__("02f4")(true);
  405. // `AdvanceStringIndex` abstract operation
  406. // https://tc39.github.io/ecma262/#sec-advancestringindex
  407. module.exports = function (S, index, unicode) {
  408. return index + (unicode ? at(S, index).length : 1);
  409. };
  410. /***/ }),
  411. /***/ "0395":
  412. /***/ (function(module, exports, __webpack_require__) {
  413. // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
  414. var toIObject = __webpack_require__("36c3");
  415. var gOPN = __webpack_require__("6abf").f;
  416. var toString = {}.toString;
  417. var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
  418. ? Object.getOwnPropertyNames(window) : [];
  419. var getWindowNames = function (it) {
  420. try {
  421. return gOPN(it);
  422. } catch (e) {
  423. return windowNames.slice();
  424. }
  425. };
  426. module.exports.f = function getOwnPropertyNames(it) {
  427. return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it));
  428. };
  429. /***/ }),
  430. /***/ "07e3":
  431. /***/ (function(module, exports) {
  432. var hasOwnProperty = {}.hasOwnProperty;
  433. module.exports = function (it, key) {
  434. return hasOwnProperty.call(it, key);
  435. };
  436. /***/ }),
  437. /***/ "0bfb":
  438. /***/ (function(module, exports, __webpack_require__) {
  439. "use strict";
  440. // 21.2.5.3 get RegExp.prototype.flags
  441. var anObject = __webpack_require__("cb7c");
  442. module.exports = function () {
  443. var that = anObject(this);
  444. var result = '';
  445. if (that.global) result += 'g';
  446. if (that.ignoreCase) result += 'i';
  447. if (that.multiline) result += 'm';
  448. if (that.unicode) result += 'u';
  449. if (that.sticky) result += 'y';
  450. return result;
  451. };
  452. /***/ }),
  453. /***/ "0d58":
  454. /***/ (function(module, exports, __webpack_require__) {
  455. // 19.1.2.14 / 15.2.3.14 Object.keys(O)
  456. var $keys = __webpack_require__("ce10");
  457. var enumBugKeys = __webpack_require__("e11e");
  458. module.exports = Object.keys || function keys(O) {
  459. return $keys(O, enumBugKeys);
  460. };
  461. /***/ }),
  462. /***/ "0fc9":
  463. /***/ (function(module, exports, __webpack_require__) {
  464. var toInteger = __webpack_require__("3a38");
  465. var max = Math.max;
  466. var min = Math.min;
  467. module.exports = function (index, length) {
  468. index = toInteger(index);
  469. return index < 0 ? max(index + length, 0) : min(index, length);
  470. };
  471. /***/ }),
  472. /***/ "11e9":
  473. /***/ (function(module, exports, __webpack_require__) {
  474. var pIE = __webpack_require__("52a7");
  475. var createDesc = __webpack_require__("4630");
  476. var toIObject = __webpack_require__("6821");
  477. var toPrimitive = __webpack_require__("6a99");
  478. var has = __webpack_require__("69a8");
  479. var IE8_DOM_DEFINE = __webpack_require__("c69a");
  480. var gOPD = Object.getOwnPropertyDescriptor;
  481. exports.f = __webpack_require__("9e1e") ? gOPD : function getOwnPropertyDescriptor(O, P) {
  482. O = toIObject(O);
  483. P = toPrimitive(P, true);
  484. if (IE8_DOM_DEFINE) try {
  485. return gOPD(O, P);
  486. } catch (e) { /* empty */ }
  487. if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);
  488. };
  489. /***/ }),
  490. /***/ "1495":
  491. /***/ (function(module, exports, __webpack_require__) {
  492. var dP = __webpack_require__("86cc");
  493. var anObject = __webpack_require__("cb7c");
  494. var getKeys = __webpack_require__("0d58");
  495. module.exports = __webpack_require__("9e1e") ? Object.defineProperties : function defineProperties(O, Properties) {
  496. anObject(O);
  497. var keys = getKeys(Properties);
  498. var length = keys.length;
  499. var i = 0;
  500. var P;
  501. while (length > i) dP.f(O, P = keys[i++], Properties[P]);
  502. return O;
  503. };
  504. /***/ }),
  505. /***/ "1691":
  506. /***/ (function(module, exports) {
  507. // IE 8- don't enum bug keys
  508. module.exports = (
  509. 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
  510. ).split(',');
  511. /***/ }),
  512. /***/ "1bc3":
  513. /***/ (function(module, exports, __webpack_require__) {
  514. // 7.1.1 ToPrimitive(input [, PreferredType])
  515. var isObject = __webpack_require__("f772");
  516. // instead of the ES6 spec version, we didn't implement @@toPrimitive case
  517. // and the second argument - flag - preferred type is a string
  518. module.exports = function (it, S) {
  519. if (!isObject(it)) return it;
  520. var fn, val;
  521. if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
  522. if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;
  523. if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
  524. throw TypeError("Can't convert object to primitive value");
  525. };
  526. /***/ }),
  527. /***/ "1ec9":
  528. /***/ (function(module, exports, __webpack_require__) {
  529. var isObject = __webpack_require__("f772");
  530. var document = __webpack_require__("e53d").document;
  531. // typeof document.createElement is 'object' in old IE
  532. var is = isObject(document) && isObject(document.createElement);
  533. module.exports = function (it) {
  534. return is ? document.createElement(it) : {};
  535. };
  536. /***/ }),
  537. /***/ "214f":
  538. /***/ (function(module, exports, __webpack_require__) {
  539. "use strict";
  540. __webpack_require__("b0c5");
  541. var redefine = __webpack_require__("2aba");
  542. var hide = __webpack_require__("32e9");
  543. var fails = __webpack_require__("79e5");
  544. var defined = __webpack_require__("be13");
  545. var wks = __webpack_require__("2b4c");
  546. var regexpExec = __webpack_require__("520a");
  547. var SPECIES = wks('species');
  548. var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
  549. // #replace needs built-in support for named groups.
  550. // #match works fine because it just return the exec results, even if it has
  551. // a "grops" property.
  552. var re = /./;
  553. re.exec = function () {
  554. var result = [];
  555. result.groups = { a: '7' };
  556. return result;
  557. };
  558. return ''.replace(re, '$<a>') !== '7';
  559. });
  560. var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = (function () {
  561. // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
  562. var re = /(?:)/;
  563. var originalExec = re.exec;
  564. re.exec = function () { return originalExec.apply(this, arguments); };
  565. var result = 'ab'.split(re);
  566. return result.length === 2 && result[0] === 'a' && result[1] === 'b';
  567. })();
  568. module.exports = function (KEY, length, exec) {
  569. var SYMBOL = wks(KEY);
  570. var DELEGATES_TO_SYMBOL = !fails(function () {
  571. // String methods call symbol-named RegEp methods
  572. var O = {};
  573. O[SYMBOL] = function () { return 7; };
  574. return ''[KEY](O) != 7;
  575. });
  576. var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL ? !fails(function () {
  577. // Symbol-named RegExp methods call .exec
  578. var execCalled = false;
  579. var re = /a/;
  580. re.exec = function () { execCalled = true; return null; };
  581. if (KEY === 'split') {
  582. // RegExp[@@split] doesn't call the regex's exec method, but first creates
  583. // a new one. We need to return the patched regex when creating the new one.
  584. re.constructor = {};
  585. re.constructor[SPECIES] = function () { return re; };
  586. }
  587. re[SYMBOL]('');
  588. return !execCalled;
  589. }) : undefined;
  590. if (
  591. !DELEGATES_TO_SYMBOL ||
  592. !DELEGATES_TO_EXEC ||
  593. (KEY === 'replace' && !REPLACE_SUPPORTS_NAMED_GROUPS) ||
  594. (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)
  595. ) {
  596. var nativeRegExpMethod = /./[SYMBOL];
  597. var fns = exec(
  598. defined,
  599. SYMBOL,
  600. ''[KEY],
  601. function maybeCallNative(nativeMethod, regexp, str, arg2, forceStringMethod) {
  602. if (regexp.exec === regexpExec) {
  603. if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
  604. // The native String method already delegates to @@method (this
  605. // polyfilled function), leasing to infinite recursion.
  606. // We avoid it by directly calling the native @@method method.
  607. return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) };
  608. }
  609. return { done: true, value: nativeMethod.call(str, regexp, arg2) };
  610. }
  611. return { done: false };
  612. }
  613. );
  614. var strfn = fns[0];
  615. var rxfn = fns[1];
  616. redefine(String.prototype, KEY, strfn);
  617. hide(RegExp.prototype, SYMBOL, length == 2
  618. // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)
  619. // 21.2.5.11 RegExp.prototype[@@split](string, limit)
  620. ? function (string, arg) { return rxfn.call(string, this, arg); }
  621. // 21.2.5.6 RegExp.prototype[@@match](string)
  622. // 21.2.5.9 RegExp.prototype[@@search](string)
  623. : function (string) { return rxfn.call(string, this); }
  624. );
  625. }
  626. };
  627. /***/ }),
  628. /***/ "230e":
  629. /***/ (function(module, exports, __webpack_require__) {
  630. var isObject = __webpack_require__("d3f4");
  631. var document = __webpack_require__("7726").document;
  632. // typeof document.createElement is 'object' in old IE
  633. var is = isObject(document) && isObject(document.createElement);
  634. module.exports = function (it) {
  635. return is ? document.createElement(it) : {};
  636. };
  637. /***/ }),
  638. /***/ "2350":
  639. /***/ (function(module, exports) {
  640. /*
  641. MIT License http://www.opensource.org/licenses/mit-license.php
  642. Author Tobias Koppers @sokra
  643. */
  644. // css base code, injected by the css-loader
  645. module.exports = function(useSourceMap) {
  646. var list = [];
  647. // return the list of modules as css string
  648. list.toString = function toString() {
  649. return this.map(function (item) {
  650. var content = cssWithMappingToString(item, useSourceMap);
  651. if(item[2]) {
  652. return "@media " + item[2] + "{" + content + "}";
  653. } else {
  654. return content;
  655. }
  656. }).join("");
  657. };
  658. // import a list of modules into the list
  659. list.i = function(modules, mediaQuery) {
  660. if(typeof modules === "string")
  661. modules = [[null, modules, ""]];
  662. var alreadyImportedModules = {};
  663. for(var i = 0; i < this.length; i++) {
  664. var id = this[i][0];
  665. if(typeof id === "number")
  666. alreadyImportedModules[id] = true;
  667. }
  668. for(i = 0; i < modules.length; i++) {
  669. var item = modules[i];
  670. // skip already imported module
  671. // this implementation is not 100% perfect for weird media query combinations
  672. // when a module is imported multiple times with different media queries.
  673. // I hope this will never occur (Hey this way we have smaller bundles)
  674. if(typeof item[0] !== "number" || !alreadyImportedModules[item[0]]) {
  675. if(mediaQuery && !item[2]) {
  676. item[2] = mediaQuery;
  677. } else if(mediaQuery) {
  678. item[2] = "(" + item[2] + ") and (" + mediaQuery + ")";
  679. }
  680. list.push(item);
  681. }
  682. }
  683. };
  684. return list;
  685. };
  686. function cssWithMappingToString(item, useSourceMap) {
  687. var content = item[1] || '';
  688. var cssMapping = item[3];
  689. if (!cssMapping) {
  690. return content;
  691. }
  692. if (useSourceMap && typeof btoa === 'function') {
  693. var sourceMapping = toComment(cssMapping);
  694. var sourceURLs = cssMapping.sources.map(function (source) {
  695. return '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */'
  696. });
  697. return [content].concat(sourceURLs).concat([sourceMapping]).join('\n');
  698. }
  699. return [content].join('\n');
  700. }
  701. // Adapted from convert-source-map (MIT)
  702. function toComment(sourceMap) {
  703. // eslint-disable-next-line no-undef
  704. var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));
  705. var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;
  706. return '/*# ' + data + ' */';
  707. }
  708. /***/ }),
  709. /***/ "23c6":
  710. /***/ (function(module, exports, __webpack_require__) {
  711. // getting tag from 19.1.3.6 Object.prototype.toString()
  712. var cof = __webpack_require__("2d95");
  713. var TAG = __webpack_require__("2b4c")('toStringTag');
  714. // ES3 wrong here
  715. var ARG = cof(function () { return arguments; }()) == 'Arguments';
  716. // fallback for IE11 Script Access Denied error
  717. var tryGet = function (it, key) {
  718. try {
  719. return it[key];
  720. } catch (e) { /* empty */ }
  721. };
  722. module.exports = function (it) {
  723. var O, T, B;
  724. return it === undefined ? 'Undefined' : it === null ? 'Null'
  725. // @@toStringTag case
  726. : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T
  727. // builtinTag case
  728. : ARG ? cof(O)
  729. // ES3 arguments fallback
  730. : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;
  731. };
  732. /***/ }),
  733. /***/ "241e":
  734. /***/ (function(module, exports, __webpack_require__) {
  735. // 7.1.13 ToObject(argument)
  736. var defined = __webpack_require__("25eb");
  737. module.exports = function (it) {
  738. return Object(defined(it));
  739. };
  740. /***/ }),
  741. /***/ "25eb":
  742. /***/ (function(module, exports) {
  743. // 7.2.1 RequireObjectCoercible(argument)
  744. module.exports = function (it) {
  745. if (it == undefined) throw TypeError("Can't call method on " + it);
  746. return it;
  747. };
  748. /***/ }),
  749. /***/ "268f":
  750. /***/ (function(module, exports, __webpack_require__) {
  751. module.exports = __webpack_require__("fde4");
  752. /***/ }),
  753. /***/ "28a5":
  754. /***/ (function(module, exports, __webpack_require__) {
  755. "use strict";
  756. var isRegExp = __webpack_require__("aae3");
  757. var anObject = __webpack_require__("cb7c");
  758. var speciesConstructor = __webpack_require__("ebd6");
  759. var advanceStringIndex = __webpack_require__("0390");
  760. var toLength = __webpack_require__("9def");
  761. var callRegExpExec = __webpack_require__("5f1b");
  762. var regexpExec = __webpack_require__("520a");
  763. var fails = __webpack_require__("79e5");
  764. var $min = Math.min;
  765. var $push = [].push;
  766. var $SPLIT = 'split';
  767. var LENGTH = 'length';
  768. var LAST_INDEX = 'lastIndex';
  769. var MAX_UINT32 = 0xffffffff;
  770. // babel-minify transpiles RegExp('x', 'y') -> /x/y and it causes SyntaxError
  771. var SUPPORTS_Y = !fails(function () { RegExp(MAX_UINT32, 'y'); });
  772. // @@split logic
  773. __webpack_require__("214f")('split', 2, function (defined, SPLIT, $split, maybeCallNative) {
  774. var internalSplit;
  775. if (
  776. 'abbc'[$SPLIT](/(b)*/)[1] == 'c' ||
  777. 'test'[$SPLIT](/(?:)/, -1)[LENGTH] != 4 ||
  778. 'ab'[$SPLIT](/(?:ab)*/)[LENGTH] != 2 ||
  779. '.'[$SPLIT](/(.?)(.?)/)[LENGTH] != 4 ||
  780. '.'[$SPLIT](/()()/)[LENGTH] > 1 ||
  781. ''[$SPLIT](/.?/)[LENGTH]
  782. ) {
  783. // based on es5-shim implementation, need to rework it
  784. internalSplit = function (separator, limit) {
  785. var string = String(this);
  786. if (separator === undefined && limit === 0) return [];
  787. // If `separator` is not a regex, use native split
  788. if (!isRegExp(separator)) return $split.call(string, separator, limit);
  789. var output = [];
  790. var flags = (separator.ignoreCase ? 'i' : '') +
  791. (separator.multiline ? 'm' : '') +
  792. (separator.unicode ? 'u' : '') +
  793. (separator.sticky ? 'y' : '');
  794. var lastLastIndex = 0;
  795. var splitLimit = limit === undefined ? MAX_UINT32 : limit >>> 0;
  796. // Make `global` and avoid `lastIndex` issues by working with a copy
  797. var separatorCopy = new RegExp(separator.source, flags + 'g');
  798. var match, lastIndex, lastLength;
  799. while (match = regexpExec.call(separatorCopy, string)) {
  800. lastIndex = separatorCopy[LAST_INDEX];
  801. if (lastIndex > lastLastIndex) {
  802. output.push(string.slice(lastLastIndex, match.index));
  803. if (match[LENGTH] > 1 && match.index < string[LENGTH]) $push.apply(output, match.slice(1));
  804. lastLength = match[0][LENGTH];
  805. lastLastIndex = lastIndex;
  806. if (output[LENGTH] >= splitLimit) break;
  807. }
  808. if (separatorCopy[LAST_INDEX] === match.index) separatorCopy[LAST_INDEX]++; // Avoid an infinite loop
  809. }
  810. if (lastLastIndex === string[LENGTH]) {
  811. if (lastLength || !separatorCopy.test('')) output.push('');
  812. } else output.push(string.slice(lastLastIndex));
  813. return output[LENGTH] > splitLimit ? output.slice(0, splitLimit) : output;
  814. };
  815. // Chakra, V8
  816. } else if ('0'[$SPLIT](undefined, 0)[LENGTH]) {
  817. internalSplit = function (separator, limit) {
  818. return separator === undefined && limit === 0 ? [] : $split.call(this, separator, limit);
  819. };
  820. } else {
  821. internalSplit = $split;
  822. }
  823. return [
  824. // `String.prototype.split` method
  825. // https://tc39.github.io/ecma262/#sec-string.prototype.split
  826. function split(separator, limit) {
  827. var O = defined(this);
  828. var splitter = separator == undefined ? undefined : separator[SPLIT];
  829. return splitter !== undefined
  830. ? splitter.call(separator, O, limit)
  831. : internalSplit.call(String(O), separator, limit);
  832. },
  833. // `RegExp.prototype[@@split]` method
  834. // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@split
  835. //
  836. // NOTE: This cannot be properly polyfilled in engines that don't support
  837. // the 'y' flag.
  838. function (regexp, limit) {
  839. var res = maybeCallNative(internalSplit, regexp, this, limit, internalSplit !== $split);
  840. if (res.done) return res.value;
  841. var rx = anObject(regexp);
  842. var S = String(this);
  843. var C = speciesConstructor(rx, RegExp);
  844. var unicodeMatching = rx.unicode;
  845. var flags = (rx.ignoreCase ? 'i' : '') +
  846. (rx.multiline ? 'm' : '') +
  847. (rx.unicode ? 'u' : '') +
  848. (SUPPORTS_Y ? 'y' : 'g');
  849. // ^(? + rx + ) is needed, in combination with some S slicing, to
  850. // simulate the 'y' flag.
  851. var splitter = new C(SUPPORTS_Y ? rx : '^(?:' + rx.source + ')', flags);
  852. var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
  853. if (lim === 0) return [];
  854. if (S.length === 0) return callRegExpExec(splitter, S) === null ? [S] : [];
  855. var p = 0;
  856. var q = 0;
  857. var A = [];
  858. while (q < S.length) {
  859. splitter.lastIndex = SUPPORTS_Y ? q : 0;
  860. var z = callRegExpExec(splitter, SUPPORTS_Y ? S : S.slice(q));
  861. var e;
  862. if (
  863. z === null ||
  864. (e = $min(toLength(splitter.lastIndex + (SUPPORTS_Y ? 0 : q)), S.length)) === p
  865. ) {
  866. q = advanceStringIndex(S, q, unicodeMatching);
  867. } else {
  868. A.push(S.slice(p, q));
  869. if (A.length === lim) return A;
  870. for (var i = 1; i <= z.length - 1; i++) {
  871. A.push(z[i]);
  872. if (A.length === lim) return A;
  873. }
  874. q = p = e;
  875. }
  876. }
  877. A.push(S.slice(p));
  878. return A;
  879. }
  880. ];
  881. });
  882. /***/ }),
  883. /***/ "294c":
  884. /***/ (function(module, exports) {
  885. module.exports = function (exec) {
  886. try {
  887. return !!exec();
  888. } catch (e) {
  889. return true;
  890. }
  891. };
  892. /***/ }),
  893. /***/ "2aba":
  894. /***/ (function(module, exports, __webpack_require__) {
  895. var global = __webpack_require__("7726");
  896. var hide = __webpack_require__("32e9");
  897. var has = __webpack_require__("69a8");
  898. var SRC = __webpack_require__("ca5a")('src');
  899. var $toString = __webpack_require__("fa5b");
  900. var TO_STRING = 'toString';
  901. var TPL = ('' + $toString).split(TO_STRING);
  902. __webpack_require__("8378").inspectSource = function (it) {
  903. return $toString.call(it);
  904. };
  905. (module.exports = function (O, key, val, safe) {
  906. var isFunction = typeof val == 'function';
  907. if (isFunction) has(val, 'name') || hide(val, 'name', key);
  908. if (O[key] === val) return;
  909. if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));
  910. if (O === global) {
  911. O[key] = val;
  912. } else if (!safe) {
  913. delete O[key];
  914. hide(O, key, val);
  915. } else if (O[key]) {
  916. O[key] = val;
  917. } else {
  918. hide(O, key, val);
  919. }
  920. // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
  921. })(Function.prototype, TO_STRING, function toString() {
  922. return typeof this == 'function' && this[SRC] || $toString.call(this);
  923. });
  924. /***/ }),
  925. /***/ "2aeb":
  926. /***/ (function(module, exports, __webpack_require__) {
  927. // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
  928. var anObject = __webpack_require__("cb7c");
  929. var dPs = __webpack_require__("1495");
  930. var enumBugKeys = __webpack_require__("e11e");
  931. var IE_PROTO = __webpack_require__("613b")('IE_PROTO');
  932. var Empty = function () { /* empty */ };
  933. var PROTOTYPE = 'prototype';
  934. // Create object with fake `null` prototype: use iframe Object with cleared prototype
  935. var createDict = function () {
  936. // Thrash, waste and sodomy: IE GC bug
  937. var iframe = __webpack_require__("230e")('iframe');
  938. var i = enumBugKeys.length;
  939. var lt = '<';
  940. var gt = '>';
  941. var iframeDocument;
  942. iframe.style.display = 'none';
  943. __webpack_require__("fab2").appendChild(iframe);
  944. iframe.src = 'javascript:'; // eslint-disable-line no-script-url
  945. // createDict = iframe.contentWindow.Object;
  946. // html.removeChild(iframe);
  947. iframeDocument = iframe.contentWindow.document;
  948. iframeDocument.open();
  949. iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
  950. iframeDocument.close();
  951. createDict = iframeDocument.F;
  952. while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];
  953. return createDict();
  954. };
  955. module.exports = Object.create || function create(O, Properties) {
  956. var result;
  957. if (O !== null) {
  958. Empty[PROTOTYPE] = anObject(O);
  959. result = new Empty();
  960. Empty[PROTOTYPE] = null;
  961. // add "__proto__" for Object.getPrototypeOf polyfill
  962. result[IE_PROTO] = O;
  963. } else result = createDict();
  964. return Properties === undefined ? result : dPs(result, Properties);
  965. };
  966. /***/ }),
  967. /***/ "2b4c":
  968. /***/ (function(module, exports, __webpack_require__) {
  969. var store = __webpack_require__("5537")('wks');
  970. var uid = __webpack_require__("ca5a");
  971. var Symbol = __webpack_require__("7726").Symbol;
  972. var USE_SYMBOL = typeof Symbol == 'function';
  973. var $exports = module.exports = function (name) {
  974. return store[name] || (store[name] =
  975. USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));
  976. };
  977. $exports.store = store;
  978. /***/ }),
  979. /***/ "2d00":
  980. /***/ (function(module, exports) {
  981. module.exports = false;
  982. /***/ }),
  983. /***/ "2d95":
  984. /***/ (function(module, exports) {
  985. var toString = {}.toString;
  986. module.exports = function (it) {
  987. return toString.call(it).slice(8, -1);
  988. };
  989. /***/ }),
  990. /***/ "32a6":
  991. /***/ (function(module, exports, __webpack_require__) {
  992. // 19.1.2.14 Object.keys(O)
  993. var toObject = __webpack_require__("241e");
  994. var $keys = __webpack_require__("c3a1");
  995. __webpack_require__("ce7e")('keys', function () {
  996. return function keys(it) {
  997. return $keys(toObject(it));
  998. };
  999. });
  1000. /***/ }),
  1001. /***/ "32e9":
  1002. /***/ (function(module, exports, __webpack_require__) {
  1003. var dP = __webpack_require__("86cc");
  1004. var createDesc = __webpack_require__("4630");
  1005. module.exports = __webpack_require__("9e1e") ? function (object, key, value) {
  1006. return dP.f(object, key, createDesc(1, value));
  1007. } : function (object, key, value) {
  1008. object[key] = value;
  1009. return object;
  1010. };
  1011. /***/ }),
  1012. /***/ "32fc":
  1013. /***/ (function(module, exports, __webpack_require__) {
  1014. var document = __webpack_require__("e53d").document;
  1015. module.exports = document && document.documentElement;
  1016. /***/ }),
  1017. /***/ "335c":
  1018. /***/ (function(module, exports, __webpack_require__) {
  1019. // fallback for non-array-like ES3 and non-enumerable old V8 strings
  1020. var cof = __webpack_require__("6b4c");
  1021. // eslint-disable-next-line no-prototype-builtins
  1022. module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
  1023. return cof(it) == 'String' ? it.split('') : Object(it);
  1024. };
  1025. /***/ }),
  1026. /***/ "355d":
  1027. /***/ (function(module, exports) {
  1028. exports.f = {}.propertyIsEnumerable;
  1029. /***/ }),
  1030. /***/ "35e8":
  1031. /***/ (function(module, exports, __webpack_require__) {
  1032. var dP = __webpack_require__("d9f6");
  1033. var createDesc = __webpack_require__("aebd");
  1034. module.exports = __webpack_require__("8e60") ? function (object, key, value) {
  1035. return dP.f(object, key, createDesc(1, value));
  1036. } : function (object, key, value) {
  1037. object[key] = value;
  1038. return object;
  1039. };
  1040. /***/ }),
  1041. /***/ "36bd":
  1042. /***/ (function(module, exports, __webpack_require__) {
  1043. "use strict";
  1044. // 22.1.3.6 Array.prototype.fill(value, start = 0, end = this.length)
  1045. var toObject = __webpack_require__("4bf8");
  1046. var toAbsoluteIndex = __webpack_require__("77f1");
  1047. var toLength = __webpack_require__("9def");
  1048. module.exports = function fill(value /* , start = 0, end = @length */) {
  1049. var O = toObject(this);
  1050. var length = toLength(O.length);
  1051. var aLen = arguments.length;
  1052. var index = toAbsoluteIndex(aLen > 1 ? arguments[1] : undefined, length);
  1053. var end = aLen > 2 ? arguments[2] : undefined;
  1054. var endPos = end === undefined ? length : toAbsoluteIndex(end, length);
  1055. while (endPos > index) O[index++] = value;
  1056. return O;
  1057. };
  1058. /***/ }),
  1059. /***/ "36c3":
  1060. /***/ (function(module, exports, __webpack_require__) {
  1061. // to indexed object, toObject with fallback for non-array-like ES3 strings
  1062. var IObject = __webpack_require__("335c");
  1063. var defined = __webpack_require__("25eb");
  1064. module.exports = function (it) {
  1065. return IObject(defined(it));
  1066. };
  1067. /***/ }),
  1068. /***/ "382e":
  1069. /***/ (function(module, exports, __webpack_require__) {
  1070. exports = module.exports = __webpack_require__("2350")(false);
  1071. // imports
  1072. // module
  1073. exports.push([module.i, ".alt-grid-container{position:relative}.alt-grid-container .alt-grid-item{position:absolute;background:grey}.alt-grid-container .alt-grid-item.can-drag{cursor:move}.alt-grid-container.alt-grid-container-operating .alt-grid-item{-webkit-transition-duration:.3s;transition-duration:.3s}.alt-grid-container.alt-grid-container-operating .alt-grid-item.operated-item{-webkit-transition-duration:.1s;transition-duration:.1s}.alt-grid-container .alt-grid-item:hover .alt-grid-item-resize-handler{display:block}.alt-grid-container .alt-grid-item-resize-handler{display:none;position:absolute;right:1px;bottom:1px;cursor:se-resize}.alt-grid-container .alt-g-i-r-h-default-style{width:0;height:0;border-top:5px solid transparent;border-left:5px solid transparent;border-right:5px solid #000;border-bottom:5px solid #000}.alt-grid-item-drag-placeholder{position:absolute;width:0;height:0;background:red;visibility:hidden}.alt-grid-container-operating .alt-grid-item-drag-placeholder{visibility:visible}.alt-grid-container-operating{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.alt-grid-container-operating .mask{width:100%;height:100%;position:absolute;z-index:2}.alt-grid-container-operating.alt-move .mask{cursor:move}.alt-grid-container-operating.alt-resize .mask{cursor:se-resize}", ""]);
  1074. // exports
  1075. /***/ }),
  1076. /***/ "3846":
  1077. /***/ (function(module, exports, __webpack_require__) {
  1078. // 21.2.5.3 get RegExp.prototype.flags()
  1079. if (__webpack_require__("9e1e") && /./g.flags != 'g') __webpack_require__("86cc").f(RegExp.prototype, 'flags', {
  1080. configurable: true,
  1081. get: __webpack_require__("0bfb")
  1082. });
  1083. /***/ }),
  1084. /***/ "386d":
  1085. /***/ (function(module, exports, __webpack_require__) {
  1086. "use strict";
  1087. var anObject = __webpack_require__("cb7c");
  1088. var sameValue = __webpack_require__("83a1");
  1089. var regExpExec = __webpack_require__("5f1b");
  1090. // @@search logic
  1091. __webpack_require__("214f")('search', 1, function (defined, SEARCH, $search, maybeCallNative) {
  1092. return [
  1093. // `String.prototype.search` method
  1094. // https://tc39.github.io/ecma262/#sec-string.prototype.search
  1095. function search(regexp) {
  1096. var O = defined(this);
  1097. var fn = regexp == undefined ? undefined : regexp[SEARCH];
  1098. return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[SEARCH](String(O));
  1099. },
  1100. // `RegExp.prototype[@@search]` method
  1101. // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@search
  1102. function (regexp) {
  1103. var res = maybeCallNative($search, regexp, this);
  1104. if (res.done) return res.value;
  1105. var rx = anObject(regexp);
  1106. var S = String(this);
  1107. var previousLastIndex = rx.lastIndex;
  1108. if (!sameValue(previousLastIndex, 0)) rx.lastIndex = 0;
  1109. var result = regExpExec(rx, S);
  1110. if (!sameValue(rx.lastIndex, previousLastIndex)) rx.lastIndex = previousLastIndex;
  1111. return result === null ? -1 : result.index;
  1112. }
  1113. ];
  1114. });
  1115. /***/ }),
  1116. /***/ "38fd":
  1117. /***/ (function(module, exports, __webpack_require__) {
  1118. // 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
  1119. var has = __webpack_require__("69a8");
  1120. var toObject = __webpack_require__("4bf8");
  1121. var IE_PROTO = __webpack_require__("613b")('IE_PROTO');
  1122. var ObjectProto = Object.prototype;
  1123. module.exports = Object.getPrototypeOf || function (O) {
  1124. O = toObject(O);
  1125. if (has(O, IE_PROTO)) return O[IE_PROTO];
  1126. if (typeof O.constructor == 'function' && O instanceof O.constructor) {
  1127. return O.constructor.prototype;
  1128. } return O instanceof Object ? ObjectProto : null;
  1129. };
  1130. /***/ }),
  1131. /***/ "3a38":
  1132. /***/ (function(module, exports) {
  1133. // 7.1.4 ToInteger
  1134. var ceil = Math.ceil;
  1135. var floor = Math.floor;
  1136. module.exports = function (it) {
  1137. return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
  1138. };
  1139. /***/ }),
  1140. /***/ "3b2b":
  1141. /***/ (function(module, exports, __webpack_require__) {
  1142. var global = __webpack_require__("7726");
  1143. var inheritIfRequired = __webpack_require__("5dbc");
  1144. var dP = __webpack_require__("86cc").f;
  1145. var gOPN = __webpack_require__("9093").f;
  1146. var isRegExp = __webpack_require__("aae3");
  1147. var $flags = __webpack_require__("0bfb");
  1148. var $RegExp = global.RegExp;
  1149. var Base = $RegExp;
  1150. var proto = $RegExp.prototype;
  1151. var re1 = /a/g;
  1152. var re2 = /a/g;
  1153. // "new" creates a new object, old webkit buggy here
  1154. var CORRECT_NEW = new $RegExp(re1) !== re1;
  1155. if (__webpack_require__("9e1e") && (!CORRECT_NEW || __webpack_require__("79e5")(function () {
  1156. re2[__webpack_require__("2b4c")('match')] = false;
  1157. // RegExp constructor can alter flags and IsRegExp works correct with @@match
  1158. return $RegExp(re1) != re1 || $RegExp(re2) == re2 || $RegExp(re1, 'i') != '/a/i';
  1159. }))) {
  1160. $RegExp = function RegExp(p, f) {
  1161. var tiRE = this instanceof $RegExp;
  1162. var piRE = isRegExp(p);
  1163. var fiU = f === undefined;
  1164. return !tiRE && piRE && p.constructor === $RegExp && fiU ? p
  1165. : inheritIfRequired(CORRECT_NEW
  1166. ? new Base(piRE && !fiU ? p.source : p, f)
  1167. : Base((piRE = p instanceof $RegExp) ? p.source : p, piRE && fiU ? $flags.call(p) : f)
  1168. , tiRE ? this : proto, $RegExp);
  1169. };
  1170. var proxy = function (key) {
  1171. key in $RegExp || dP($RegExp, key, {
  1172. configurable: true,
  1173. get: function () { return Base[key]; },
  1174. set: function (it) { Base[key] = it; }
  1175. });
  1176. };
  1177. for (var keys = gOPN(Base), i = 0; keys.length > i;) proxy(keys[i++]);
  1178. proto.constructor = $RegExp;
  1179. $RegExp.prototype = proto;
  1180. __webpack_require__("2aba")(global, 'RegExp', $RegExp);
  1181. }
  1182. __webpack_require__("7a56")('RegExp');
  1183. /***/ }),
  1184. /***/ "41a0":
  1185. /***/ (function(module, exports, __webpack_require__) {
  1186. "use strict";
  1187. var create = __webpack_require__("2aeb");
  1188. var descriptor = __webpack_require__("4630");
  1189. var setToStringTag = __webpack_require__("7f20");
  1190. var IteratorPrototype = {};
  1191. // 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
  1192. __webpack_require__("32e9")(IteratorPrototype, __webpack_require__("2b4c")('iterator'), function () { return this; });
  1193. module.exports = function (Constructor, NAME, next) {
  1194. Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });
  1195. setToStringTag(Constructor, NAME + ' Iterator');
  1196. };
  1197. /***/ }),
  1198. /***/ "454f":
  1199. /***/ (function(module, exports, __webpack_require__) {
  1200. __webpack_require__("46a7");
  1201. var $Object = __webpack_require__("584a").Object;
  1202. module.exports = function defineProperty(it, key, desc) {
  1203. return $Object.defineProperty(it, key, desc);
  1204. };
  1205. /***/ }),
  1206. /***/ "456d":
  1207. /***/ (function(module, exports, __webpack_require__) {
  1208. // 19.1.2.14 Object.keys(O)
  1209. var toObject = __webpack_require__("4bf8");
  1210. var $keys = __webpack_require__("0d58");
  1211. __webpack_require__("5eda")('keys', function () {
  1212. return function keys(it) {
  1213. return $keys(toObject(it));
  1214. };
  1215. });
  1216. /***/ }),
  1217. /***/ "4588":
  1218. /***/ (function(module, exports) {
  1219. // 7.1.4 ToInteger
  1220. var ceil = Math.ceil;
  1221. var floor = Math.floor;
  1222. module.exports = function (it) {
  1223. return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
  1224. };
  1225. /***/ }),
  1226. /***/ "45f2":
  1227. /***/ (function(module, exports, __webpack_require__) {
  1228. var def = __webpack_require__("d9f6").f;
  1229. var has = __webpack_require__("07e3");
  1230. var TAG = __webpack_require__("5168")('toStringTag');
  1231. module.exports = function (it, tag, stat) {
  1232. if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });
  1233. };
  1234. /***/ }),
  1235. /***/ "4630":
  1236. /***/ (function(module, exports) {
  1237. module.exports = function (bitmap, value) {
  1238. return {
  1239. enumerable: !(bitmap & 1),
  1240. configurable: !(bitmap & 2),
  1241. writable: !(bitmap & 4),
  1242. value: value
  1243. };
  1244. };
  1245. /***/ }),
  1246. /***/ "46a7":
  1247. /***/ (function(module, exports, __webpack_require__) {
  1248. var $export = __webpack_require__("63b6");
  1249. // 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
  1250. $export($export.S + $export.F * !__webpack_require__("8e60"), 'Object', { defineProperty: __webpack_require__("d9f6").f });
  1251. /***/ }),
  1252. /***/ "47ee":
  1253. /***/ (function(module, exports, __webpack_require__) {
  1254. // all enumerable object keys, includes symbols
  1255. var getKeys = __webpack_require__("c3a1");
  1256. var gOPS = __webpack_require__("9aa9");
  1257. var pIE = __webpack_require__("355d");
  1258. module.exports = function (it) {
  1259. var result = getKeys(it);
  1260. var getSymbols = gOPS.f;
  1261. if (getSymbols) {
  1262. var symbols = getSymbols(it);
  1263. var isEnum = pIE.f;
  1264. var i = 0;
  1265. var key;
  1266. while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key);
  1267. } return result;
  1268. };
  1269. /***/ }),
  1270. /***/ "4917":
  1271. /***/ (function(module, exports, __webpack_require__) {
  1272. "use strict";
  1273. var anObject = __webpack_require__("cb7c");
  1274. var toLength = __webpack_require__("9def");
  1275. var advanceStringIndex = __webpack_require__("0390");
  1276. var regExpExec = __webpack_require__("5f1b");
  1277. // @@match logic
  1278. __webpack_require__("214f")('match', 1, function (defined, MATCH, $match, maybeCallNative) {
  1279. return [
  1280. // `String.prototype.match` method
  1281. // https://tc39.github.io/ecma262/#sec-string.prototype.match
  1282. function match(regexp) {
  1283. var O = defined(this);
  1284. var fn = regexp == undefined ? undefined : regexp[MATCH];
  1285. return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[MATCH](String(O));
  1286. },
  1287. // `RegExp.prototype[@@match]` method
  1288. // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@match
  1289. function (regexp) {
  1290. var res = maybeCallNative($match, regexp, this);
  1291. if (res.done) return res.value;
  1292. var rx = anObject(regexp);
  1293. var S = String(this);
  1294. if (!rx.global) return regExpExec(rx, S);
  1295. var fullUnicode = rx.unicode;
  1296. rx.lastIndex = 0;
  1297. var A = [];
  1298. var n = 0;
  1299. var result;
  1300. while ((result = regExpExec(rx, S)) !== null) {
  1301. var matchStr = String(result[0]);
  1302. A[n] = matchStr;
  1303. if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
  1304. n++;
  1305. }
  1306. return n === 0 ? null : A;
  1307. }
  1308. ];
  1309. });
  1310. /***/ }),
  1311. /***/ "499e":
  1312. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1313. "use strict";
  1314. __webpack_require__.r(__webpack_exports__);
  1315. // CONCATENATED MODULE: ./node_modules/vue-style-loader/lib/listToStyles.js
  1316. /**
  1317. * Translates the list format produced by css-loader into something
  1318. * easier to manipulate.
  1319. */
  1320. function listToStyles (parentId, list) {
  1321. var styles = []
  1322. var newStyles = {}
  1323. for (var i = 0; i < list.length; i++) {
  1324. var item = list[i]
  1325. var id = item[0]
  1326. var css = item[1]
  1327. var media = item[2]
  1328. var sourceMap = item[3]
  1329. var part = {
  1330. id: parentId + ':' + i,
  1331. css: css,
  1332. media: media,
  1333. sourceMap: sourceMap
  1334. }
  1335. if (!newStyles[id]) {
  1336. styles.push(newStyles[id] = { id: id, parts: [part] })
  1337. } else {
  1338. newStyles[id].parts.push(part)
  1339. }
  1340. }
  1341. return styles
  1342. }
  1343. // CONCATENATED MODULE: ./node_modules/vue-style-loader/lib/addStylesClient.js
  1344. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return addStylesClient; });
  1345. /*
  1346. MIT License http://www.opensource.org/licenses/mit-license.php
  1347. Author Tobias Koppers @sokra
  1348. Modified by Evan You @yyx990803
  1349. */
  1350. var hasDocument = typeof document !== 'undefined'
  1351. if (typeof DEBUG !== 'undefined' && DEBUG) {
  1352. if (!hasDocument) {
  1353. throw new Error(
  1354. 'vue-style-loader cannot be used in a non-browser environment. ' +
  1355. "Use { target: 'node' } in your Webpack config to indicate a server-rendering environment."
  1356. ) }
  1357. }
  1358. /*
  1359. type StyleObject = {
  1360. id: number;
  1361. parts: Array<StyleObjectPart>
  1362. }
  1363. type StyleObjectPart = {
  1364. css: string;
  1365. media: string;
  1366. sourceMap: ?string
  1367. }
  1368. */
  1369. var stylesInDom = {/*
  1370. [id: number]: {
  1371. id: number,
  1372. refs: number,
  1373. parts: Array<(obj?: StyleObjectPart) => void>
  1374. }
  1375. */}
  1376. var head = hasDocument && (document.head || document.getElementsByTagName('head')[0])
  1377. var singletonElement = null
  1378. var singletonCounter = 0
  1379. var isProduction = false
  1380. var noop = function () {}
  1381. var options = null
  1382. var ssrIdKey = 'data-vue-ssr-id'
  1383. // Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
  1384. // tags it will allow on a page
  1385. var isOldIE = typeof navigator !== 'undefined' && /msie [6-9]\b/.test(navigator.userAgent.toLowerCase())
  1386. function addStylesClient (parentId, list, _isProduction, _options) {
  1387. isProduction = _isProduction
  1388. options = _options || {}
  1389. var styles = listToStyles(parentId, list)
  1390. addStylesToDom(styles)
  1391. return function update (newList) {
  1392. var mayRemove = []
  1393. for (var i = 0; i < styles.length; i++) {
  1394. var item = styles[i]
  1395. var domStyle = stylesInDom[item.id]
  1396. domStyle.refs--
  1397. mayRemove.push(domStyle)
  1398. }
  1399. if (newList) {
  1400. styles = listToStyles(parentId, newList)
  1401. addStylesToDom(styles)
  1402. } else {
  1403. styles = []
  1404. }
  1405. for (var i = 0; i < mayRemove.length; i++) {
  1406. var domStyle = mayRemove[i]
  1407. if (domStyle.refs === 0) {
  1408. for (var j = 0; j < domStyle.parts.length; j++) {
  1409. domStyle.parts[j]()
  1410. }
  1411. delete stylesInDom[domStyle.id]
  1412. }
  1413. }
  1414. }
  1415. }
  1416. function addStylesToDom (styles /* Array<StyleObject> */) {
  1417. for (var i = 0; i < styles.length; i++) {
  1418. var item = styles[i]
  1419. var domStyle = stylesInDom[item.id]
  1420. if (domStyle) {
  1421. domStyle.refs++
  1422. for (var j = 0; j < domStyle.parts.length; j++) {
  1423. domStyle.parts[j](item.parts[j])
  1424. }
  1425. for (; j < item.parts.length; j++) {
  1426. domStyle.parts.push(addStyle(item.parts[j]))
  1427. }
  1428. if (domStyle.parts.length > item.parts.length) {
  1429. domStyle.parts.length = item.parts.length
  1430. }
  1431. } else {
  1432. var parts = []
  1433. for (var j = 0; j < item.parts.length; j++) {
  1434. parts.push(addStyle(item.parts[j]))
  1435. }
  1436. stylesInDom[item.id] = { id: item.id, refs: 1, parts: parts }
  1437. }
  1438. }
  1439. }
  1440. function createStyleElement () {
  1441. var styleElement = document.createElement('style')
  1442. styleElement.type = 'text/css'
  1443. head.appendChild(styleElement)
  1444. return styleElement
  1445. }
  1446. function addStyle (obj /* StyleObjectPart */) {
  1447. var update, remove
  1448. var styleElement = document.querySelector('style[' + ssrIdKey + '~="' + obj.id + '"]')
  1449. if (styleElement) {
  1450. if (isProduction) {
  1451. // has SSR styles and in production mode.
  1452. // simply do nothing.
  1453. return noop
  1454. } else {
  1455. // has SSR styles but in dev mode.
  1456. // for some reason Chrome can't handle source map in server-rendered
  1457. // style tags - source maps in <style> only works if the style tag is
  1458. // created and inserted dynamically. So we remove the server rendered
  1459. // styles and inject new ones.
  1460. styleElement.parentNode.removeChild(styleElement)
  1461. }
  1462. }
  1463. if (isOldIE) {
  1464. // use singleton mode for IE9.
  1465. var styleIndex = singletonCounter++
  1466. styleElement = singletonElement || (singletonElement = createStyleElement())
  1467. update = applyToSingletonTag.bind(null, styleElement, styleIndex, false)
  1468. remove = applyToSingletonTag.bind(null, styleElement, styleIndex, true)
  1469. } else {
  1470. // use multi-style-tag mode in all other cases
  1471. styleElement = createStyleElement()
  1472. update = applyToTag.bind(null, styleElement)
  1473. remove = function () {
  1474. styleElement.parentNode.removeChild(styleElement)
  1475. }
  1476. }
  1477. update(obj)
  1478. return function updateStyle (newObj /* StyleObjectPart */) {
  1479. if (newObj) {
  1480. if (newObj.css === obj.css &&
  1481. newObj.media === obj.media &&
  1482. newObj.sourceMap === obj.sourceMap) {
  1483. return
  1484. }
  1485. update(obj = newObj)
  1486. } else {
  1487. remove()
  1488. }
  1489. }
  1490. }
  1491. var replaceText = (function () {
  1492. var textStore = []
  1493. return function (index, replacement) {
  1494. textStore[index] = replacement
  1495. return textStore.filter(Boolean).join('\n')
  1496. }
  1497. })()
  1498. function applyToSingletonTag (styleElement, index, remove, obj) {
  1499. var css = remove ? '' : obj.css
  1500. if (styleElement.styleSheet) {
  1501. styleElement.styleSheet.cssText = replaceText(index, css)
  1502. } else {
  1503. var cssNode = document.createTextNode(css)
  1504. var childNodes = styleElement.childNodes
  1505. if (childNodes[index]) styleElement.removeChild(childNodes[index])
  1506. if (childNodes.length) {
  1507. styleElement.insertBefore(cssNode, childNodes[index])
  1508. } else {
  1509. styleElement.appendChild(cssNode)
  1510. }
  1511. }
  1512. }
  1513. function applyToTag (styleElement, obj) {
  1514. var css = obj.css
  1515. var media = obj.media
  1516. var sourceMap = obj.sourceMap
  1517. if (media) {
  1518. styleElement.setAttribute('media', media)
  1519. }
  1520. if (options.ssrId) {
  1521. styleElement.setAttribute(ssrIdKey, obj.id)
  1522. }
  1523. if (sourceMap) {
  1524. // https://developer.chrome.com/devtools/docs/javascript-debugging
  1525. // this makes source maps inside style tags work properly in Chrome
  1526. css += '\n/*# sourceURL=' + sourceMap.sources[0] + ' */'
  1527. // http://stackoverflow.com/a/26603875
  1528. css += '\n/*# sourceMappingURL=data:application/json;base64,' + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + ' */'
  1529. }
  1530. if (styleElement.styleSheet) {
  1531. styleElement.styleSheet.cssText = css
  1532. } else {
  1533. while (styleElement.firstChild) {
  1534. styleElement.removeChild(styleElement.firstChild)
  1535. }
  1536. styleElement.appendChild(document.createTextNode(css))
  1537. }
  1538. }
  1539. /***/ }),
  1540. /***/ "4bf8":
  1541. /***/ (function(module, exports, __webpack_require__) {
  1542. // 7.1.13 ToObject(argument)
  1543. var defined = __webpack_require__("be13");
  1544. module.exports = function (it) {
  1545. return Object(defined(it));
  1546. };
  1547. /***/ }),
  1548. /***/ "4f6b":
  1549. /***/ (function(module, exports, __webpack_require__) {
  1550. // style-loader: Adds some css to the DOM by adding a <style> tag
  1551. // load the styles
  1552. var content = __webpack_require__("382e");
  1553. if(typeof content === 'string') content = [[module.i, content, '']];
  1554. if(content.locals) module.exports = content.locals;
  1555. // add the styles to the DOM
  1556. var add = __webpack_require__("499e").default
  1557. var update = add("1d0f7901", content, true, {"sourceMap":false,"shadowMode":false});
  1558. /***/ }),
  1559. /***/ "5168":
  1560. /***/ (function(module, exports, __webpack_require__) {
  1561. var store = __webpack_require__("dbdb")('wks');
  1562. var uid = __webpack_require__("62a0");
  1563. var Symbol = __webpack_require__("e53d").Symbol;
  1564. var USE_SYMBOL = typeof Symbol == 'function';
  1565. var $exports = module.exports = function (name) {
  1566. return store[name] || (store[name] =
  1567. USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));
  1568. };
  1569. $exports.store = store;
  1570. /***/ }),
  1571. /***/ "520a":
  1572. /***/ (function(module, exports, __webpack_require__) {
  1573. "use strict";
  1574. var regexpFlags = __webpack_require__("0bfb");
  1575. var nativeExec = RegExp.prototype.exec;
  1576. // This always refers to the native implementation, because the
  1577. // String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js,
  1578. // which loads this file before patching the method.
  1579. var nativeReplace = String.prototype.replace;
  1580. var patchedExec = nativeExec;
  1581. var LAST_INDEX = 'lastIndex';
  1582. var UPDATES_LAST_INDEX_WRONG = (function () {
  1583. var re1 = /a/,
  1584. re2 = /b*/g;
  1585. nativeExec.call(re1, 'a');
  1586. nativeExec.call(re2, 'a');
  1587. return re1[LAST_INDEX] !== 0 || re2[LAST_INDEX] !== 0;
  1588. })();
  1589. // nonparticipating capturing group, copied from es5-shim's String#split patch.
  1590. var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
  1591. var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED;
  1592. if (PATCH) {
  1593. patchedExec = function exec(str) {
  1594. var re = this;
  1595. var lastIndex, reCopy, match, i;
  1596. if (NPCG_INCLUDED) {
  1597. reCopy = new RegExp('^' + re.source + '$(?!\\s)', regexpFlags.call(re));
  1598. }
  1599. if (UPDATES_LAST_INDEX_WRONG) lastIndex = re[LAST_INDEX];
  1600. match = nativeExec.call(re, str);
  1601. if (UPDATES_LAST_INDEX_WRONG && match) {
  1602. re[LAST_INDEX] = re.global ? match.index + match[0].length : lastIndex;
  1603. }
  1604. if (NPCG_INCLUDED && match && match.length > 1) {
  1605. // Fix browsers whose `exec` methods don't consistently return `undefined`
  1606. // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
  1607. // eslint-disable-next-line no-loop-func
  1608. nativeReplace.call(match[0], reCopy, function () {
  1609. for (i = 1; i < arguments.length - 2; i++) {
  1610. if (arguments[i] === undefined) match[i] = undefined;
  1611. }
  1612. });
  1613. }
  1614. return match;
  1615. };
  1616. }
  1617. module.exports = patchedExec;
  1618. /***/ }),
  1619. /***/ "52a7":
  1620. /***/ (function(module, exports) {
  1621. exports.f = {}.propertyIsEnumerable;
  1622. /***/ }),
  1623. /***/ "5537":
  1624. /***/ (function(module, exports, __webpack_require__) {
  1625. var core = __webpack_require__("8378");
  1626. var global = __webpack_require__("7726");
  1627. var SHARED = '__core-js_shared__';
  1628. var store = global[SHARED] || (global[SHARED] = {});
  1629. (module.exports = function (key, value) {
  1630. return store[key] || (store[key] = value !== undefined ? value : {});
  1631. })('versions', []).push({
  1632. version: core.version,
  1633. mode: __webpack_require__("2d00") ? 'pure' : 'global',
  1634. copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
  1635. });
  1636. /***/ }),
  1637. /***/ "5559":
  1638. /***/ (function(module, exports, __webpack_require__) {
  1639. var shared = __webpack_require__("dbdb")('keys');
  1640. var uid = __webpack_require__("62a0");
  1641. module.exports = function (key) {
  1642. return shared[key] || (shared[key] = uid(key));
  1643. };
  1644. /***/ }),
  1645. /***/ "584a":
  1646. /***/ (function(module, exports) {
  1647. var core = module.exports = { version: '2.6.5' };
  1648. if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
  1649. /***/ }),
  1650. /***/ "5b4e":
  1651. /***/ (function(module, exports, __webpack_require__) {
  1652. // false -> Array#indexOf
  1653. // true -> Array#includes
  1654. var toIObject = __webpack_require__("36c3");
  1655. var toLength = __webpack_require__("b447");
  1656. var toAbsoluteIndex = __webpack_require__("0fc9");
  1657. module.exports = function (IS_INCLUDES) {
  1658. return function ($this, el, fromIndex) {
  1659. var O = toIObject($this);
  1660. var length = toLength(O.length);
  1661. var index = toAbsoluteIndex(fromIndex, length);
  1662. var value;
  1663. // Array#includes uses SameValueZero equality algorithm
  1664. // eslint-disable-next-line no-self-compare
  1665. if (IS_INCLUDES && el != el) while (length > index) {
  1666. value = O[index++];
  1667. // eslint-disable-next-line no-self-compare
  1668. if (value != value) return true;
  1669. // Array#indexOf ignores holes, Array#includes - not
  1670. } else for (;length > index; index++) if (IS_INCLUDES || index in O) {
  1671. if (O[index] === el) return IS_INCLUDES || index || 0;
  1672. } return !IS_INCLUDES && -1;
  1673. };
  1674. };
  1675. /***/ }),
  1676. /***/ "5ca1":
  1677. /***/ (function(module, exports, __webpack_require__) {
  1678. var global = __webpack_require__("7726");
  1679. var core = __webpack_require__("8378");
  1680. var hide = __webpack_require__("32e9");
  1681. var redefine = __webpack_require__("2aba");
  1682. var ctx = __webpack_require__("9b43");
  1683. var PROTOTYPE = 'prototype';
  1684. var $export = function (type, name, source) {
  1685. var IS_FORCED = type & $export.F;
  1686. var IS_GLOBAL = type & $export.G;
  1687. var IS_STATIC = type & $export.S;
  1688. var IS_PROTO = type & $export.P;
  1689. var IS_BIND = type & $export.B;
  1690. var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE];
  1691. var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});
  1692. var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});
  1693. var key, own, out, exp;
  1694. if (IS_GLOBAL) source = name;
  1695. for (key in source) {
  1696. // contains in native
  1697. own = !IS_FORCED && target && target[key] !== undefined;
  1698. // export native or passed
  1699. out = (own ? target : source)[key];
  1700. // bind timers to global for call from export context
  1701. exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
  1702. // extend global
  1703. if (target) redefine(target, key, out, type & $export.U);
  1704. // export
  1705. if (exports[key] != out) hide(exports, key, exp);
  1706. if (IS_PROTO && expProto[key] != out) expProto[key] = out;
  1707. }
  1708. };
  1709. global.core = core;
  1710. // type bitmap
  1711. $export.F = 1; // forced
  1712. $export.G = 2; // global
  1713. $export.S = 4; // static
  1714. $export.P = 8; // proto
  1715. $export.B = 16; // bind
  1716. $export.W = 32; // wrap
  1717. $export.U = 64; // safe
  1718. $export.R = 128; // real proto method for `library`
  1719. module.exports = $export;
  1720. /***/ }),
  1721. /***/ "5dbc":
  1722. /***/ (function(module, exports, __webpack_require__) {
  1723. var isObject = __webpack_require__("d3f4");
  1724. var setPrototypeOf = __webpack_require__("8b97").set;
  1725. module.exports = function (that, target, C) {
  1726. var S = target.constructor;
  1727. var P;
  1728. if (S !== C && typeof S == 'function' && (P = S.prototype) !== C.prototype && isObject(P) && setPrototypeOf) {
  1729. setPrototypeOf(that, P);
  1730. } return that;
  1731. };
  1732. /***/ }),
  1733. /***/ "5eda":
  1734. /***/ (function(module, exports, __webpack_require__) {
  1735. // most Object methods by ES6 should accept primitives
  1736. var $export = __webpack_require__("5ca1");
  1737. var core = __webpack_require__("8378");
  1738. var fails = __webpack_require__("79e5");
  1739. module.exports = function (KEY, exec) {
  1740. var fn = (core.Object || {})[KEY] || Object[KEY];
  1741. var exp = {};
  1742. exp[KEY] = exec(fn);
  1743. $export($export.S + $export.F * fails(function () { fn(1); }), 'Object', exp);
  1744. };
  1745. /***/ }),
  1746. /***/ "5f1b":
  1747. /***/ (function(module, exports, __webpack_require__) {
  1748. "use strict";
  1749. var classof = __webpack_require__("23c6");
  1750. var builtinExec = RegExp.prototype.exec;
  1751. // `RegExpExec` abstract operation
  1752. // https://tc39.github.io/ecma262/#sec-regexpexec
  1753. module.exports = function (R, S) {
  1754. var exec = R.exec;
  1755. if (typeof exec === 'function') {
  1756. var result = exec.call(R, S);
  1757. if (typeof result !== 'object') {
  1758. throw new TypeError('RegExp exec method returned something other than an Object or null');
  1759. }
  1760. return result;
  1761. }
  1762. if (classof(R) !== 'RegExp') {
  1763. throw new TypeError('RegExp#exec called on incompatible receiver');
  1764. }
  1765. return builtinExec.call(R, S);
  1766. };
  1767. /***/ }),
  1768. /***/ "613b":
  1769. /***/ (function(module, exports, __webpack_require__) {
  1770. var shared = __webpack_require__("5537")('keys');
  1771. var uid = __webpack_require__("ca5a");
  1772. module.exports = function (key) {
  1773. return shared[key] || (shared[key] = uid(key));
  1774. };
  1775. /***/ }),
  1776. /***/ "626a":
  1777. /***/ (function(module, exports, __webpack_require__) {
  1778. // fallback for non-array-like ES3 and non-enumerable old V8 strings
  1779. var cof = __webpack_require__("2d95");
  1780. // eslint-disable-next-line no-prototype-builtins
  1781. module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
  1782. return cof(it) == 'String' ? it.split('') : Object(it);
  1783. };
  1784. /***/ }),
  1785. /***/ "62a0":
  1786. /***/ (function(module, exports) {
  1787. var id = 0;
  1788. var px = Math.random();
  1789. module.exports = function (key) {
  1790. return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
  1791. };
  1792. /***/ }),
  1793. /***/ "63b6":
  1794. /***/ (function(module, exports, __webpack_require__) {
  1795. var global = __webpack_require__("e53d");
  1796. var core = __webpack_require__("584a");
  1797. var ctx = __webpack_require__("d864");
  1798. var hide = __webpack_require__("35e8");
  1799. var has = __webpack_require__("07e3");
  1800. var PROTOTYPE = 'prototype';
  1801. var $export = function (type, name, source) {
  1802. var IS_FORCED = type & $export.F;
  1803. var IS_GLOBAL = type & $export.G;
  1804. var IS_STATIC = type & $export.S;
  1805. var IS_PROTO = type & $export.P;
  1806. var IS_BIND = type & $export.B;
  1807. var IS_WRAP = type & $export.W;
  1808. var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});
  1809. var expProto = exports[PROTOTYPE];
  1810. var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE];
  1811. var key, own, out;
  1812. if (IS_GLOBAL) source = name;
  1813. for (key in source) {
  1814. // contains in native
  1815. own = !IS_FORCED && target && target[key] !== undefined;
  1816. if (own && has(exports, key)) continue;
  1817. // export native or passed
  1818. out = own ? target[key] : source[key];
  1819. // prevent global pollution for namespaces
  1820. exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]
  1821. // bind timers to global for call from export context
  1822. : IS_BIND && own ? ctx(out, global)
  1823. // wrap global constructors for prevent change them in library
  1824. : IS_WRAP && target[key] == out ? (function (C) {
  1825. var F = function (a, b, c) {
  1826. if (this instanceof C) {
  1827. switch (arguments.length) {
  1828. case 0: return new C();
  1829. case 1: return new C(a);
  1830. case 2: return new C(a, b);
  1831. } return new C(a, b, c);
  1832. } return C.apply(this, arguments);
  1833. };
  1834. F[PROTOTYPE] = C[PROTOTYPE];
  1835. return F;
  1836. // make static versions for prototype methods
  1837. })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
  1838. // export proto methods to core.%CONSTRUCTOR%.methods.%NAME%
  1839. if (IS_PROTO) {
  1840. (exports.virtual || (exports.virtual = {}))[key] = out;
  1841. // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME%
  1842. if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out);
  1843. }
  1844. }
  1845. };
  1846. // type bitmap
  1847. $export.F = 1; // forced
  1848. $export.G = 2; // global
  1849. $export.S = 4; // static
  1850. $export.P = 8; // proto
  1851. $export.B = 16; // bind
  1852. $export.W = 32; // wrap
  1853. $export.U = 64; // safe
  1854. $export.R = 128; // real proto method for `library`
  1855. module.exports = $export;
  1856. /***/ }),
  1857. /***/ "6718":
  1858. /***/ (function(module, exports, __webpack_require__) {
  1859. var global = __webpack_require__("e53d");
  1860. var core = __webpack_require__("584a");
  1861. var LIBRARY = __webpack_require__("b8e3");
  1862. var wksExt = __webpack_require__("ccb9");
  1863. var defineProperty = __webpack_require__("d9f6").f;
  1864. module.exports = function (name) {
  1865. var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {});
  1866. if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) });
  1867. };
  1868. /***/ }),
  1869. /***/ "6821":
  1870. /***/ (function(module, exports, __webpack_require__) {
  1871. // to indexed object, toObject with fallback for non-array-like ES3 strings
  1872. var IObject = __webpack_require__("626a");
  1873. var defined = __webpack_require__("be13");
  1874. module.exports = function (it) {
  1875. return IObject(defined(it));
  1876. };
  1877. /***/ }),
  1878. /***/ "69a8":
  1879. /***/ (function(module, exports) {
  1880. var hasOwnProperty = {}.hasOwnProperty;
  1881. module.exports = function (it, key) {
  1882. return hasOwnProperty.call(it, key);
  1883. };
  1884. /***/ }),
  1885. /***/ "6a99":
  1886. /***/ (function(module, exports, __webpack_require__) {
  1887. // 7.1.1 ToPrimitive(input [, PreferredType])
  1888. var isObject = __webpack_require__("d3f4");
  1889. // instead of the ES6 spec version, we didn't implement @@toPrimitive case
  1890. // and the second argument - flag - preferred type is a string
  1891. module.exports = function (it, S) {
  1892. if (!isObject(it)) return it;
  1893. var fn, val;
  1894. if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
  1895. if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;
  1896. if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
  1897. throw TypeError("Can't convert object to primitive value");
  1898. };
  1899. /***/ }),
  1900. /***/ "6abf":
  1901. /***/ (function(module, exports, __webpack_require__) {
  1902. // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
  1903. var $keys = __webpack_require__("e6f3");
  1904. var hiddenKeys = __webpack_require__("1691").concat('length', 'prototype');
  1905. exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
  1906. return $keys(O, hiddenKeys);
  1907. };
  1908. /***/ }),
  1909. /***/ "6b4c":
  1910. /***/ (function(module, exports) {
  1911. var toString = {}.toString;
  1912. module.exports = function (it) {
  1913. return toString.call(it).slice(8, -1);
  1914. };
  1915. /***/ }),
  1916. /***/ "6b54":
  1917. /***/ (function(module, exports, __webpack_require__) {
  1918. "use strict";
  1919. __webpack_require__("3846");
  1920. var anObject = __webpack_require__("cb7c");
  1921. var $flags = __webpack_require__("0bfb");
  1922. var DESCRIPTORS = __webpack_require__("9e1e");
  1923. var TO_STRING = 'toString';
  1924. var $toString = /./[TO_STRING];
  1925. var define = function (fn) {
  1926. __webpack_require__("2aba")(RegExp.prototype, TO_STRING, fn, true);
  1927. };
  1928. // 21.2.5.14 RegExp.prototype.toString()
  1929. if (__webpack_require__("79e5")(function () { return $toString.call({ source: 'a', flags: 'b' }) != '/a/b'; })) {
  1930. define(function toString() {
  1931. var R = anObject(this);
  1932. return '/'.concat(R.source, '/',
  1933. 'flags' in R ? R.flags : !DESCRIPTORS && R instanceof RegExp ? $flags.call(R) : undefined);
  1934. });
  1935. // FF44- RegExp#toString has a wrong name
  1936. } else if ($toString.name != TO_STRING) {
  1937. define(function toString() {
  1938. return $toString.call(this);
  1939. });
  1940. }
  1941. /***/ }),
  1942. /***/ "6c7b":
  1943. /***/ (function(module, exports, __webpack_require__) {
  1944. // 22.1.3.6 Array.prototype.fill(value, start = 0, end = this.length)
  1945. var $export = __webpack_require__("5ca1");
  1946. $export($export.P, 'Array', { fill: __webpack_require__("36bd") });
  1947. __webpack_require__("9c6c")('fill');
  1948. /***/ }),
  1949. /***/ "7726":
  1950. /***/ (function(module, exports) {
  1951. // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
  1952. var global = module.exports = typeof window != 'undefined' && window.Math == Math
  1953. ? window : typeof self != 'undefined' && self.Math == Math ? self
  1954. // eslint-disable-next-line no-new-func
  1955. : Function('return this')();
  1956. if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
  1957. /***/ }),
  1958. /***/ "77f1":
  1959. /***/ (function(module, exports, __webpack_require__) {
  1960. var toInteger = __webpack_require__("4588");
  1961. var max = Math.max;
  1962. var min = Math.min;
  1963. module.exports = function (index, length) {
  1964. index = toInteger(index);
  1965. return index < 0 ? max(index + length, 0) : min(index, length);
  1966. };
  1967. /***/ }),
  1968. /***/ "794b":
  1969. /***/ (function(module, exports, __webpack_require__) {
  1970. module.exports = !__webpack_require__("8e60") && !__webpack_require__("294c")(function () {
  1971. return Object.defineProperty(__webpack_require__("1ec9")('div'), 'a', { get: function () { return 7; } }).a != 7;
  1972. });
  1973. /***/ }),
  1974. /***/ "79aa":
  1975. /***/ (function(module, exports) {
  1976. module.exports = function (it) {
  1977. if (typeof it != 'function') throw TypeError(it + ' is not a function!');
  1978. return it;
  1979. };
  1980. /***/ }),
  1981. /***/ "79e5":
  1982. /***/ (function(module, exports) {
  1983. module.exports = function (exec) {
  1984. try {
  1985. return !!exec();
  1986. } catch (e) {
  1987. return true;
  1988. }
  1989. };
  1990. /***/ }),
  1991. /***/ "7a56":
  1992. /***/ (function(module, exports, __webpack_require__) {
  1993. "use strict";
  1994. var global = __webpack_require__("7726");
  1995. var dP = __webpack_require__("86cc");
  1996. var DESCRIPTORS = __webpack_require__("9e1e");
  1997. var SPECIES = __webpack_require__("2b4c")('species');
  1998. module.exports = function (KEY) {
  1999. var C = global[KEY];
  2000. if (DESCRIPTORS && C && !C[SPECIES]) dP.f(C, SPECIES, {
  2001. configurable: true,
  2002. get: function () { return this; }
  2003. });
  2004. };
  2005. /***/ }),
  2006. /***/ "7cdf":
  2007. /***/ (function(module, exports, __webpack_require__) {
  2008. // 20.1.2.3 Number.isInteger(number)
  2009. var $export = __webpack_require__("5ca1");
  2010. $export($export.S, 'Number', { isInteger: __webpack_require__("9c12") });
  2011. /***/ }),
  2012. /***/ "7e90":
  2013. /***/ (function(module, exports, __webpack_require__) {
  2014. var dP = __webpack_require__("d9f6");
  2015. var anObject = __webpack_require__("e4ae");
  2016. var getKeys = __webpack_require__("c3a1");
  2017. module.exports = __webpack_require__("8e60") ? Object.defineProperties : function defineProperties(O, Properties) {
  2018. anObject(O);
  2019. var keys = getKeys(Properties);
  2020. var length = keys.length;
  2021. var i = 0;
  2022. var P;
  2023. while (length > i) dP.f(O, P = keys[i++], Properties[P]);
  2024. return O;
  2025. };
  2026. /***/ }),
  2027. /***/ "7f20":
  2028. /***/ (function(module, exports, __webpack_require__) {
  2029. var def = __webpack_require__("86cc").f;
  2030. var has = __webpack_require__("69a8");
  2031. var TAG = __webpack_require__("2b4c")('toStringTag');
  2032. module.exports = function (it, tag, stat) {
  2033. if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });
  2034. };
  2035. /***/ }),
  2036. /***/ "8378":
  2037. /***/ (function(module, exports) {
  2038. var core = module.exports = { version: '2.6.5' };
  2039. if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
  2040. /***/ }),
  2041. /***/ "83a1":
  2042. /***/ (function(module, exports) {
  2043. // 7.2.9 SameValue(x, y)
  2044. module.exports = Object.is || function is(x, y) {
  2045. // eslint-disable-next-line no-self-compare
  2046. return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;
  2047. };
  2048. /***/ }),
  2049. /***/ "84f2":
  2050. /***/ (function(module, exports) {
  2051. module.exports = {};
  2052. /***/ }),
  2053. /***/ "85f2":
  2054. /***/ (function(module, exports, __webpack_require__) {
  2055. module.exports = __webpack_require__("454f");
  2056. /***/ }),
  2057. /***/ "86cc":
  2058. /***/ (function(module, exports, __webpack_require__) {
  2059. var anObject = __webpack_require__("cb7c");
  2060. var IE8_DOM_DEFINE = __webpack_require__("c69a");
  2061. var toPrimitive = __webpack_require__("6a99");
  2062. var dP = Object.defineProperty;
  2063. exports.f = __webpack_require__("9e1e") ? Object.defineProperty : function defineProperty(O, P, Attributes) {
  2064. anObject(O);
  2065. P = toPrimitive(P, true);
  2066. anObject(Attributes);
  2067. if (IE8_DOM_DEFINE) try {
  2068. return dP(O, P, Attributes);
  2069. } catch (e) { /* empty */ }
  2070. if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
  2071. if ('value' in Attributes) O[P] = Attributes.value;
  2072. return O;
  2073. };
  2074. /***/ }),
  2075. /***/ "8aae":
  2076. /***/ (function(module, exports, __webpack_require__) {
  2077. __webpack_require__("32a6");
  2078. module.exports = __webpack_require__("584a").Object.keys;
  2079. /***/ }),
  2080. /***/ "8b97":
  2081. /***/ (function(module, exports, __webpack_require__) {
  2082. // Works with __proto__ only. Old v8 can't work with null proto objects.
  2083. /* eslint-disable no-proto */
  2084. var isObject = __webpack_require__("d3f4");
  2085. var anObject = __webpack_require__("cb7c");
  2086. var check = function (O, proto) {
  2087. anObject(O);
  2088. if (!isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as prototype!");
  2089. };
  2090. module.exports = {
  2091. set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line
  2092. function (test, buggy, set) {
  2093. try {
  2094. set = __webpack_require__("9b43")(Function.call, __webpack_require__("11e9").f(Object.prototype, '__proto__').set, 2);
  2095. set(test, []);
  2096. buggy = !(test instanceof Array);
  2097. } catch (e) { buggy = true; }
  2098. return function setPrototypeOf(O, proto) {
  2099. check(O, proto);
  2100. if (buggy) O.__proto__ = proto;
  2101. else set(O, proto);
  2102. return O;
  2103. };
  2104. }({}, false) : undefined),
  2105. check: check
  2106. };
  2107. /***/ }),
  2108. /***/ "8bbf":
  2109. /***/ (function(module, exports) {
  2110. module.exports = require("vue");
  2111. /***/ }),
  2112. /***/ "8e60":
  2113. /***/ (function(module, exports, __webpack_require__) {
  2114. // Thank's IE8 for his funny defineProperty
  2115. module.exports = !__webpack_require__("294c")(function () {
  2116. return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
  2117. });
  2118. /***/ }),
  2119. /***/ "9003":
  2120. /***/ (function(module, exports, __webpack_require__) {
  2121. // 7.2.2 IsArray(argument)
  2122. var cof = __webpack_require__("6b4c");
  2123. module.exports = Array.isArray || function isArray(arg) {
  2124. return cof(arg) == 'Array';
  2125. };
  2126. /***/ }),
  2127. /***/ "9093":
  2128. /***/ (function(module, exports, __webpack_require__) {
  2129. // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
  2130. var $keys = __webpack_require__("ce10");
  2131. var hiddenKeys = __webpack_require__("e11e").concat('length', 'prototype');
  2132. exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
  2133. return $keys(O, hiddenKeys);
  2134. };
  2135. /***/ }),
  2136. /***/ "9138":
  2137. /***/ (function(module, exports, __webpack_require__) {
  2138. module.exports = __webpack_require__("35e8");
  2139. /***/ }),
  2140. /***/ "9aa9":
  2141. /***/ (function(module, exports) {
  2142. exports.f = Object.getOwnPropertySymbols;
  2143. /***/ }),
  2144. /***/ "9b43":
  2145. /***/ (function(module, exports, __webpack_require__) {
  2146. // optional / simple context binding
  2147. var aFunction = __webpack_require__("d8e8");
  2148. module.exports = function (fn, that, length) {
  2149. aFunction(fn);
  2150. if (that === undefined) return fn;
  2151. switch (length) {
  2152. case 1: return function (a) {
  2153. return fn.call(that, a);
  2154. };
  2155. case 2: return function (a, b) {
  2156. return fn.call(that, a, b);
  2157. };
  2158. case 3: return function (a, b, c) {
  2159. return fn.call(that, a, b, c);
  2160. };
  2161. }
  2162. return function (/* ...args */) {
  2163. return fn.apply(that, arguments);
  2164. };
  2165. };
  2166. /***/ }),
  2167. /***/ "9c12":
  2168. /***/ (function(module, exports, __webpack_require__) {
  2169. // 20.1.2.3 Number.isInteger(number)
  2170. var isObject = __webpack_require__("d3f4");
  2171. var floor = Math.floor;
  2172. module.exports = function isInteger(it) {
  2173. return !isObject(it) && isFinite(it) && floor(it) === it;
  2174. };
  2175. /***/ }),
  2176. /***/ "9c6c":
  2177. /***/ (function(module, exports, __webpack_require__) {
  2178. // 22.1.3.31 Array.prototype[@@unscopables]
  2179. var UNSCOPABLES = __webpack_require__("2b4c")('unscopables');
  2180. var ArrayProto = Array.prototype;
  2181. if (ArrayProto[UNSCOPABLES] == undefined) __webpack_require__("32e9")(ArrayProto, UNSCOPABLES, {});
  2182. module.exports = function (key) {
  2183. ArrayProto[UNSCOPABLES][key] = true;
  2184. };
  2185. /***/ }),
  2186. /***/ "9def":
  2187. /***/ (function(module, exports, __webpack_require__) {
  2188. // 7.1.15 ToLength
  2189. var toInteger = __webpack_require__("4588");
  2190. var min = Math.min;
  2191. module.exports = function (it) {
  2192. return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
  2193. };
  2194. /***/ }),
  2195. /***/ "9e1e":
  2196. /***/ (function(module, exports, __webpack_require__) {
  2197. // Thank's IE8 for his funny defineProperty
  2198. module.exports = !__webpack_require__("79e5")(function () {
  2199. return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
  2200. });
  2201. /***/ }),
  2202. /***/ "a159":
  2203. /***/ (function(module, exports, __webpack_require__) {
  2204. // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
  2205. var anObject = __webpack_require__("e4ae");
  2206. var dPs = __webpack_require__("7e90");
  2207. var enumBugKeys = __webpack_require__("1691");
  2208. var IE_PROTO = __webpack_require__("5559")('IE_PROTO');
  2209. var Empty = function () { /* empty */ };
  2210. var PROTOTYPE = 'prototype';
  2211. // Create object with fake `null` prototype: use iframe Object with cleared prototype
  2212. var createDict = function () {
  2213. // Thrash, waste and sodomy: IE GC bug
  2214. var iframe = __webpack_require__("1ec9")('iframe');
  2215. var i = enumBugKeys.length;
  2216. var lt = '<';
  2217. var gt = '>';
  2218. var iframeDocument;
  2219. iframe.style.display = 'none';
  2220. __webpack_require__("32fc").appendChild(iframe);
  2221. iframe.src = 'javascript:'; // eslint-disable-line no-script-url
  2222. // createDict = iframe.contentWindow.Object;
  2223. // html.removeChild(iframe);
  2224. iframeDocument = iframe.contentWindow.document;
  2225. iframeDocument.open();
  2226. iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
  2227. iframeDocument.close();
  2228. createDict = iframeDocument.F;
  2229. while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];
  2230. return createDict();
  2231. };
  2232. module.exports = Object.create || function create(O, Properties) {
  2233. var result;
  2234. if (O !== null) {
  2235. Empty[PROTOTYPE] = anObject(O);
  2236. result = new Empty();
  2237. Empty[PROTOTYPE] = null;
  2238. // add "__proto__" for Object.getPrototypeOf polyfill
  2239. result[IE_PROTO] = O;
  2240. } else result = createDict();
  2241. return Properties === undefined ? result : dPs(result, Properties);
  2242. };
  2243. /***/ }),
  2244. /***/ "a481":
  2245. /***/ (function(module, exports, __webpack_require__) {
  2246. "use strict";
  2247. var anObject = __webpack_require__("cb7c");
  2248. var toObject = __webpack_require__("4bf8");
  2249. var toLength = __webpack_require__("9def");
  2250. var toInteger = __webpack_require__("4588");
  2251. var advanceStringIndex = __webpack_require__("0390");
  2252. var regExpExec = __webpack_require__("5f1b");
  2253. var max = Math.max;
  2254. var min = Math.min;
  2255. var floor = Math.floor;
  2256. var SUBSTITUTION_SYMBOLS = /\$([$&`']|\d\d?|<[^>]*>)/g;
  2257. var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&`']|\d\d?)/g;
  2258. var maybeToString = function (it) {
  2259. return it === undefined ? it : String(it);
  2260. };
  2261. // @@replace logic
  2262. __webpack_require__("214f")('replace', 2, function (defined, REPLACE, $replace, maybeCallNative) {
  2263. return [
  2264. // `String.prototype.replace` method
  2265. // https://tc39.github.io/ecma262/#sec-string.prototype.replace
  2266. function replace(searchValue, replaceValue) {
  2267. var O = defined(this);
  2268. var fn = searchValue == undefined ? undefined : searchValue[REPLACE];
  2269. return fn !== undefined
  2270. ? fn.call(searchValue, O, replaceValue)
  2271. : $replace.call(String(O), searchValue, replaceValue);
  2272. },
  2273. // `RegExp.prototype[@@replace]` method
  2274. // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@replace
  2275. function (regexp, replaceValue) {
  2276. var res = maybeCallNative($replace, regexp, this, replaceValue);
  2277. if (res.done) return res.value;
  2278. var rx = anObject(regexp);
  2279. var S = String(this);
  2280. var functionalReplace = typeof replaceValue === 'function';
  2281. if (!functionalReplace) replaceValue = String(replaceValue);
  2282. var global = rx.global;
  2283. if (global) {
  2284. var fullUnicode = rx.unicode;
  2285. rx.lastIndex = 0;
  2286. }
  2287. var results = [];
  2288. while (true) {
  2289. var result = regExpExec(rx, S);
  2290. if (result === null) break;
  2291. results.push(result);
  2292. if (!global) break;
  2293. var matchStr = String(result[0]);
  2294. if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
  2295. }
  2296. var accumulatedResult = '';
  2297. var nextSourcePosition = 0;
  2298. for (var i = 0; i < results.length; i++) {
  2299. result = results[i];
  2300. var matched = String(result[0]);
  2301. var position = max(min(toInteger(result.index), S.length), 0);
  2302. var captures = [];
  2303. // NOTE: This is equivalent to
  2304. // captures = result.slice(1).map(maybeToString)
  2305. // but for some reason `nativeSlice.call(result, 1, result.length)` (called in
  2306. // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
  2307. // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
  2308. for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j]));
  2309. var namedCaptures = result.groups;
  2310. if (functionalReplace) {
  2311. var replacerArgs = [matched].concat(captures, position, S);
  2312. if (namedCaptures !== undefined) replacerArgs.push(namedCaptures);
  2313. var replacement = String(replaceValue.apply(undefined, replacerArgs));
  2314. } else {
  2315. replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
  2316. }
  2317. if (position >= nextSourcePosition) {
  2318. accumulatedResult += S.slice(nextSourcePosition, position) + replacement;
  2319. nextSourcePosition = position + matched.length;
  2320. }
  2321. }
  2322. return accumulatedResult + S.slice(nextSourcePosition);
  2323. }
  2324. ];
  2325. // https://tc39.github.io/ecma262/#sec-getsubstitution
  2326. function getSubstitution(matched, str, position, captures, namedCaptures, replacement) {
  2327. var tailPos = position + matched.length;
  2328. var m = captures.length;
  2329. var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
  2330. if (namedCaptures !== undefined) {
  2331. namedCaptures = toObject(namedCaptures);
  2332. symbols = SUBSTITUTION_SYMBOLS;
  2333. }
  2334. return $replace.call(replacement, symbols, function (match, ch) {
  2335. var capture;
  2336. switch (ch.charAt(0)) {
  2337. case '$': return '$';
  2338. case '&': return matched;
  2339. case '`': return str.slice(0, position);
  2340. case "'": return str.slice(tailPos);
  2341. case '<':
  2342. capture = namedCaptures[ch.slice(1, -1)];
  2343. break;
  2344. default: // \d\d?
  2345. var n = +ch;
  2346. if (n === 0) return match;
  2347. if (n > m) {
  2348. var f = floor(n / 10);
  2349. if (f === 0) return match;
  2350. if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1);
  2351. return match;
  2352. }
  2353. capture = captures[n - 1];
  2354. }
  2355. return capture === undefined ? '' : capture;
  2356. });
  2357. }
  2358. });
  2359. /***/ }),
  2360. /***/ "a4bb":
  2361. /***/ (function(module, exports, __webpack_require__) {
  2362. module.exports = __webpack_require__("8aae");
  2363. /***/ }),
  2364. /***/ "aa77":
  2365. /***/ (function(module, exports, __webpack_require__) {
  2366. var $export = __webpack_require__("5ca1");
  2367. var defined = __webpack_require__("be13");
  2368. var fails = __webpack_require__("79e5");
  2369. var spaces = __webpack_require__("fdef");
  2370. var space = '[' + spaces + ']';
  2371. var non = '\u200b\u0085';
  2372. var ltrim = RegExp('^' + space + space + '*');
  2373. var rtrim = RegExp(space + space + '*$');
  2374. var exporter = function (KEY, exec, ALIAS) {
  2375. var exp = {};
  2376. var FORCE = fails(function () {
  2377. return !!spaces[KEY]() || non[KEY]() != non;
  2378. });
  2379. var fn = exp[KEY] = FORCE ? exec(trim) : spaces[KEY];
  2380. if (ALIAS) exp[ALIAS] = fn;
  2381. $export($export.P + $export.F * FORCE, 'String', exp);
  2382. };
  2383. // 1 -> String#trimLeft
  2384. // 2 -> String#trimRight
  2385. // 3 -> String#trim
  2386. var trim = exporter.trim = function (string, TYPE) {
  2387. string = String(defined(string));
  2388. if (TYPE & 1) string = string.replace(ltrim, '');
  2389. if (TYPE & 2) string = string.replace(rtrim, '');
  2390. return string;
  2391. };
  2392. module.exports = exporter;
  2393. /***/ }),
  2394. /***/ "aae3":
  2395. /***/ (function(module, exports, __webpack_require__) {
  2396. // 7.2.8 IsRegExp(argument)
  2397. var isObject = __webpack_require__("d3f4");
  2398. var cof = __webpack_require__("2d95");
  2399. var MATCH = __webpack_require__("2b4c")('match');
  2400. module.exports = function (it) {
  2401. var isRegExp;
  2402. return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : cof(it) == 'RegExp');
  2403. };
  2404. /***/ }),
  2405. /***/ "ac6a":
  2406. /***/ (function(module, exports, __webpack_require__) {
  2407. var $iterators = __webpack_require__("cadf");
  2408. var getKeys = __webpack_require__("0d58");
  2409. var redefine = __webpack_require__("2aba");
  2410. var global = __webpack_require__("7726");
  2411. var hide = __webpack_require__("32e9");
  2412. var Iterators = __webpack_require__("84f2");
  2413. var wks = __webpack_require__("2b4c");
  2414. var ITERATOR = wks('iterator');
  2415. var TO_STRING_TAG = wks('toStringTag');
  2416. var ArrayValues = Iterators.Array;
  2417. var DOMIterables = {
  2418. CSSRuleList: true, // TODO: Not spec compliant, should be false.
  2419. CSSStyleDeclaration: false,
  2420. CSSValueList: false,
  2421. ClientRectList: false,
  2422. DOMRectList: false,
  2423. DOMStringList: false,
  2424. DOMTokenList: true,
  2425. DataTransferItemList: false,
  2426. FileList: false,
  2427. HTMLAllCollection: false,
  2428. HTMLCollection: false,
  2429. HTMLFormElement: false,
  2430. HTMLSelectElement: false,
  2431. MediaList: true, // TODO: Not spec compliant, should be false.
  2432. MimeTypeArray: false,
  2433. NamedNodeMap: false,
  2434. NodeList: true,
  2435. PaintRequestList: false,
  2436. Plugin: false,
  2437. PluginArray: false,
  2438. SVGLengthList: false,
  2439. SVGNumberList: false,
  2440. SVGPathSegList: false,
  2441. SVGPointList: false,
  2442. SVGStringList: false,
  2443. SVGTransformList: false,
  2444. SourceBufferList: false,
  2445. StyleSheetList: true, // TODO: Not spec compliant, should be false.
  2446. TextTrackCueList: false,
  2447. TextTrackList: false,
  2448. TouchList: false
  2449. };
  2450. for (var collections = getKeys(DOMIterables), i = 0; i < collections.length; i++) {
  2451. var NAME = collections[i];
  2452. var explicit = DOMIterables[NAME];
  2453. var Collection = global[NAME];
  2454. var proto = Collection && Collection.prototype;
  2455. var key;
  2456. if (proto) {
  2457. if (!proto[ITERATOR]) hide(proto, ITERATOR, ArrayValues);
  2458. if (!proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);
  2459. Iterators[NAME] = ArrayValues;
  2460. if (explicit) for (key in $iterators) if (!proto[key]) redefine(proto, key, $iterators[key], true);
  2461. }
  2462. }
  2463. /***/ }),
  2464. /***/ "aebd":
  2465. /***/ (function(module, exports) {
  2466. module.exports = function (bitmap, value) {
  2467. return {
  2468. enumerable: !(bitmap & 1),
  2469. configurable: !(bitmap & 2),
  2470. writable: !(bitmap & 4),
  2471. value: value
  2472. };
  2473. };
  2474. /***/ }),
  2475. /***/ "b0c5":
  2476. /***/ (function(module, exports, __webpack_require__) {
  2477. "use strict";
  2478. var regexpExec = __webpack_require__("520a");
  2479. __webpack_require__("5ca1")({
  2480. target: 'RegExp',
  2481. proto: true,
  2482. forced: regexpExec !== /./.exec
  2483. }, {
  2484. exec: regexpExec
  2485. });
  2486. /***/ }),
  2487. /***/ "b447":
  2488. /***/ (function(module, exports, __webpack_require__) {
  2489. // 7.1.15 ToLength
  2490. var toInteger = __webpack_require__("3a38");
  2491. var min = Math.min;
  2492. module.exports = function (it) {
  2493. return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
  2494. };
  2495. /***/ }),
  2496. /***/ "b8e3":
  2497. /***/ (function(module, exports) {
  2498. module.exports = true;
  2499. /***/ }),
  2500. /***/ "be13":
  2501. /***/ (function(module, exports) {
  2502. // 7.2.1 RequireObjectCoercible(argument)
  2503. module.exports = function (it) {
  2504. if (it == undefined) throw TypeError("Can't call method on " + it);
  2505. return it;
  2506. };
  2507. /***/ }),
  2508. /***/ "bf0b":
  2509. /***/ (function(module, exports, __webpack_require__) {
  2510. var pIE = __webpack_require__("355d");
  2511. var createDesc = __webpack_require__("aebd");
  2512. var toIObject = __webpack_require__("36c3");
  2513. var toPrimitive = __webpack_require__("1bc3");
  2514. var has = __webpack_require__("07e3");
  2515. var IE8_DOM_DEFINE = __webpack_require__("794b");
  2516. var gOPD = Object.getOwnPropertyDescriptor;
  2517. exports.f = __webpack_require__("8e60") ? gOPD : function getOwnPropertyDescriptor(O, P) {
  2518. O = toIObject(O);
  2519. P = toPrimitive(P, true);
  2520. if (IE8_DOM_DEFINE) try {
  2521. return gOPD(O, P);
  2522. } catch (e) { /* empty */ }
  2523. if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);
  2524. };
  2525. /***/ }),
  2526. /***/ "bf90":
  2527. /***/ (function(module, exports, __webpack_require__) {
  2528. // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
  2529. var toIObject = __webpack_require__("36c3");
  2530. var $getOwnPropertyDescriptor = __webpack_require__("bf0b").f;
  2531. __webpack_require__("ce7e")('getOwnPropertyDescriptor', function () {
  2532. return function getOwnPropertyDescriptor(it, key) {
  2533. return $getOwnPropertyDescriptor(toIObject(it), key);
  2534. };
  2535. });
  2536. /***/ }),
  2537. /***/ "c366":
  2538. /***/ (function(module, exports, __webpack_require__) {
  2539. // false -> Array#indexOf
  2540. // true -> Array#includes
  2541. var toIObject = __webpack_require__("6821");
  2542. var toLength = __webpack_require__("9def");
  2543. var toAbsoluteIndex = __webpack_require__("77f1");
  2544. module.exports = function (IS_INCLUDES) {
  2545. return function ($this, el, fromIndex) {
  2546. var O = toIObject($this);
  2547. var length = toLength(O.length);
  2548. var index = toAbsoluteIndex(fromIndex, length);
  2549. var value;
  2550. // Array#includes uses SameValueZero equality algorithm
  2551. // eslint-disable-next-line no-self-compare
  2552. if (IS_INCLUDES && el != el) while (length > index) {
  2553. value = O[index++];
  2554. // eslint-disable-next-line no-self-compare
  2555. if (value != value) return true;
  2556. // Array#indexOf ignores holes, Array#includes - not
  2557. } else for (;length > index; index++) if (IS_INCLUDES || index in O) {
  2558. if (O[index] === el) return IS_INCLUDES || index || 0;
  2559. } return !IS_INCLUDES && -1;
  2560. };
  2561. };
  2562. /***/ }),
  2563. /***/ "c3a1":
  2564. /***/ (function(module, exports, __webpack_require__) {
  2565. // 19.1.2.14 / 15.2.3.14 Object.keys(O)
  2566. var $keys = __webpack_require__("e6f3");
  2567. var enumBugKeys = __webpack_require__("1691");
  2568. module.exports = Object.keys || function keys(O) {
  2569. return $keys(O, enumBugKeys);
  2570. };
  2571. /***/ }),
  2572. /***/ "c5f6":
  2573. /***/ (function(module, exports, __webpack_require__) {
  2574. "use strict";
  2575. var global = __webpack_require__("7726");
  2576. var has = __webpack_require__("69a8");
  2577. var cof = __webpack_require__("2d95");
  2578. var inheritIfRequired = __webpack_require__("5dbc");
  2579. var toPrimitive = __webpack_require__("6a99");
  2580. var fails = __webpack_require__("79e5");
  2581. var gOPN = __webpack_require__("9093").f;
  2582. var gOPD = __webpack_require__("11e9").f;
  2583. var dP = __webpack_require__("86cc").f;
  2584. var $trim = __webpack_require__("aa77").trim;
  2585. var NUMBER = 'Number';
  2586. var $Number = global[NUMBER];
  2587. var Base = $Number;
  2588. var proto = $Number.prototype;
  2589. // Opera ~12 has broken Object#toString
  2590. var BROKEN_COF = cof(__webpack_require__("2aeb")(proto)) == NUMBER;
  2591. var TRIM = 'trim' in String.prototype;
  2592. // 7.1.3 ToNumber(argument)
  2593. var toNumber = function (argument) {
  2594. var it = toPrimitive(argument, false);
  2595. if (typeof it == 'string' && it.length > 2) {
  2596. it = TRIM ? it.trim() : $trim(it, 3);
  2597. var first = it.charCodeAt(0);
  2598. var third, radix, maxCode;
  2599. if (first === 43 || first === 45) {
  2600. third = it.charCodeAt(2);
  2601. if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix
  2602. } else if (first === 48) {
  2603. switch (it.charCodeAt(1)) {
  2604. case 66: case 98: radix = 2; maxCode = 49; break; // fast equal /^0b[01]+$/i
  2605. case 79: case 111: radix = 8; maxCode = 55; break; // fast equal /^0o[0-7]+$/i
  2606. default: return +it;
  2607. }
  2608. for (var digits = it.slice(2), i = 0, l = digits.length, code; i < l; i++) {
  2609. code = digits.charCodeAt(i);
  2610. // parseInt parses a string to a first unavailable symbol
  2611. // but ToNumber should return NaN if a string contains unavailable symbols
  2612. if (code < 48 || code > maxCode) return NaN;
  2613. } return parseInt(digits, radix);
  2614. }
  2615. } return +it;
  2616. };
  2617. if (!$Number(' 0o1') || !$Number('0b1') || $Number('+0x1')) {
  2618. $Number = function Number(value) {
  2619. var it = arguments.length < 1 ? 0 : value;
  2620. var that = this;
  2621. return that instanceof $Number
  2622. // check on 1..constructor(foo) case
  2623. && (BROKEN_COF ? fails(function () { proto.valueOf.call(that); }) : cof(that) != NUMBER)
  2624. ? inheritIfRequired(new Base(toNumber(it)), that, $Number) : toNumber(it);
  2625. };
  2626. for (var keys = __webpack_require__("9e1e") ? gOPN(Base) : (
  2627. // ES3:
  2628. 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +
  2629. // ES6 (in case, if modules with ES6 Number statics required before):
  2630. 'EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,' +
  2631. 'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger'
  2632. ).split(','), j = 0, key; keys.length > j; j++) {
  2633. if (has(Base, key = keys[j]) && !has($Number, key)) {
  2634. dP($Number, key, gOPD(Base, key));
  2635. }
  2636. }
  2637. $Number.prototype = proto;
  2638. proto.constructor = $Number;
  2639. __webpack_require__("2aba")(global, NUMBER, $Number);
  2640. }
  2641. /***/ }),
  2642. /***/ "c69a":
  2643. /***/ (function(module, exports, __webpack_require__) {
  2644. module.exports = !__webpack_require__("9e1e") && !__webpack_require__("79e5")(function () {
  2645. return Object.defineProperty(__webpack_require__("230e")('div'), 'a', { get: function () { return 7; } }).a != 7;
  2646. });
  2647. /***/ }),
  2648. /***/ "ca5a":
  2649. /***/ (function(module, exports) {
  2650. var id = 0;
  2651. var px = Math.random();
  2652. module.exports = function (key) {
  2653. return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
  2654. };
  2655. /***/ }),
  2656. /***/ "cadf":
  2657. /***/ (function(module, exports, __webpack_require__) {
  2658. "use strict";
  2659. var addToUnscopables = __webpack_require__("9c6c");
  2660. var step = __webpack_require__("d53b");
  2661. var Iterators = __webpack_require__("84f2");
  2662. var toIObject = __webpack_require__("6821");
  2663. // 22.1.3.4 Array.prototype.entries()
  2664. // 22.1.3.13 Array.prototype.keys()
  2665. // 22.1.3.29 Array.prototype.values()
  2666. // 22.1.3.30 Array.prototype[@@iterator]()
  2667. module.exports = __webpack_require__("01f9")(Array, 'Array', function (iterated, kind) {
  2668. this._t = toIObject(iterated); // target
  2669. this._i = 0; // next index
  2670. this._k = kind; // kind
  2671. // 22.1.5.2.1 %ArrayIteratorPrototype%.next()
  2672. }, function () {
  2673. var O = this._t;
  2674. var kind = this._k;
  2675. var index = this._i++;
  2676. if (!O || index >= O.length) {
  2677. this._t = undefined;
  2678. return step(1);
  2679. }
  2680. if (kind == 'keys') return step(0, index);
  2681. if (kind == 'values') return step(0, O[index]);
  2682. return step(0, [index, O[index]]);
  2683. }, 'values');
  2684. // argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)
  2685. Iterators.Arguments = Iterators.Array;
  2686. addToUnscopables('keys');
  2687. addToUnscopables('values');
  2688. addToUnscopables('entries');
  2689. /***/ }),
  2690. /***/ "cb7c":
  2691. /***/ (function(module, exports, __webpack_require__) {
  2692. var isObject = __webpack_require__("d3f4");
  2693. module.exports = function (it) {
  2694. if (!isObject(it)) throw TypeError(it + ' is not an object!');
  2695. return it;
  2696. };
  2697. /***/ }),
  2698. /***/ "ccb9":
  2699. /***/ (function(module, exports, __webpack_require__) {
  2700. exports.f = __webpack_require__("5168");
  2701. /***/ }),
  2702. /***/ "ce10":
  2703. /***/ (function(module, exports, __webpack_require__) {
  2704. var has = __webpack_require__("69a8");
  2705. var toIObject = __webpack_require__("6821");
  2706. var arrayIndexOf = __webpack_require__("c366")(false);
  2707. var IE_PROTO = __webpack_require__("613b")('IE_PROTO');
  2708. module.exports = function (object, names) {
  2709. var O = toIObject(object);
  2710. var i = 0;
  2711. var result = [];
  2712. var key;
  2713. for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);
  2714. // Don't enum bug & hidden keys
  2715. while (names.length > i) if (has(O, key = names[i++])) {
  2716. ~arrayIndexOf(result, key) || result.push(key);
  2717. }
  2718. return result;
  2719. };
  2720. /***/ }),
  2721. /***/ "ce7e":
  2722. /***/ (function(module, exports, __webpack_require__) {
  2723. // most Object methods by ES6 should accept primitives
  2724. var $export = __webpack_require__("63b6");
  2725. var core = __webpack_require__("584a");
  2726. var fails = __webpack_require__("294c");
  2727. module.exports = function (KEY, exec) {
  2728. var fn = (core.Object || {})[KEY] || Object[KEY];
  2729. var exp = {};
  2730. exp[KEY] = exec(fn);
  2731. $export($export.S + $export.F * fails(function () { fn(1); }), 'Object', exp);
  2732. };
  2733. /***/ }),
  2734. /***/ "d3f4":
  2735. /***/ (function(module, exports) {
  2736. module.exports = function (it) {
  2737. return typeof it === 'object' ? it !== null : typeof it === 'function';
  2738. };
  2739. /***/ }),
  2740. /***/ "d53b":
  2741. /***/ (function(module, exports) {
  2742. module.exports = function (done, value) {
  2743. return { value: value, done: !!done };
  2744. };
  2745. /***/ }),
  2746. /***/ "d812":
  2747. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2748. "use strict";
  2749. /* harmony import */ var _node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_grid_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("4f6b");
  2750. /* harmony import */ var _node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_grid_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_grid_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__);
  2751. /* unused harmony reexport * */
  2752. /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_grid_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);
  2753. /***/ }),
  2754. /***/ "d864":
  2755. /***/ (function(module, exports, __webpack_require__) {
  2756. // optional / simple context binding
  2757. var aFunction = __webpack_require__("79aa");
  2758. module.exports = function (fn, that, length) {
  2759. aFunction(fn);
  2760. if (that === undefined) return fn;
  2761. switch (length) {
  2762. case 1: return function (a) {
  2763. return fn.call(that, a);
  2764. };
  2765. case 2: return function (a, b) {
  2766. return fn.call(that, a, b);
  2767. };
  2768. case 3: return function (a, b, c) {
  2769. return fn.call(that, a, b, c);
  2770. };
  2771. }
  2772. return function (/* ...args */) {
  2773. return fn.apply(that, arguments);
  2774. };
  2775. };
  2776. /***/ }),
  2777. /***/ "d8e8":
  2778. /***/ (function(module, exports) {
  2779. module.exports = function (it) {
  2780. if (typeof it != 'function') throw TypeError(it + ' is not a function!');
  2781. return it;
  2782. };
  2783. /***/ }),
  2784. /***/ "d9f6":
  2785. /***/ (function(module, exports, __webpack_require__) {
  2786. var anObject = __webpack_require__("e4ae");
  2787. var IE8_DOM_DEFINE = __webpack_require__("794b");
  2788. var toPrimitive = __webpack_require__("1bc3");
  2789. var dP = Object.defineProperty;
  2790. exports.f = __webpack_require__("8e60") ? Object.defineProperty : function defineProperty(O, P, Attributes) {
  2791. anObject(O);
  2792. P = toPrimitive(P, true);
  2793. anObject(Attributes);
  2794. if (IE8_DOM_DEFINE) try {
  2795. return dP(O, P, Attributes);
  2796. } catch (e) { /* empty */ }
  2797. if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
  2798. if ('value' in Attributes) O[P] = Attributes.value;
  2799. return O;
  2800. };
  2801. /***/ }),
  2802. /***/ "dbdb":
  2803. /***/ (function(module, exports, __webpack_require__) {
  2804. var core = __webpack_require__("584a");
  2805. var global = __webpack_require__("e53d");
  2806. var SHARED = '__core-js_shared__';
  2807. var store = global[SHARED] || (global[SHARED] = {});
  2808. (module.exports = function (key, value) {
  2809. return store[key] || (store[key] = value !== undefined ? value : {});
  2810. })('versions', []).push({
  2811. version: core.version,
  2812. mode: __webpack_require__("b8e3") ? 'pure' : 'global',
  2813. copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
  2814. });
  2815. /***/ }),
  2816. /***/ "e11e":
  2817. /***/ (function(module, exports) {
  2818. // IE 8- don't enum bug keys
  2819. module.exports = (
  2820. 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
  2821. ).split(',');
  2822. /***/ }),
  2823. /***/ "e265":
  2824. /***/ (function(module, exports, __webpack_require__) {
  2825. module.exports = __webpack_require__("ed33");
  2826. /***/ }),
  2827. /***/ "e4ae":
  2828. /***/ (function(module, exports, __webpack_require__) {
  2829. var isObject = __webpack_require__("f772");
  2830. module.exports = function (it) {
  2831. if (!isObject(it)) throw TypeError(it + ' is not an object!');
  2832. return it;
  2833. };
  2834. /***/ }),
  2835. /***/ "e53d":
  2836. /***/ (function(module, exports) {
  2837. // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
  2838. var global = module.exports = typeof window != 'undefined' && window.Math == Math
  2839. ? window : typeof self != 'undefined' && self.Math == Math ? self
  2840. // eslint-disable-next-line no-new-func
  2841. : Function('return this')();
  2842. if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
  2843. /***/ }),
  2844. /***/ "e6f3":
  2845. /***/ (function(module, exports, __webpack_require__) {
  2846. var has = __webpack_require__("07e3");
  2847. var toIObject = __webpack_require__("36c3");
  2848. var arrayIndexOf = __webpack_require__("5b4e")(false);
  2849. var IE_PROTO = __webpack_require__("5559")('IE_PROTO');
  2850. module.exports = function (object, names) {
  2851. var O = toIObject(object);
  2852. var i = 0;
  2853. var result = [];
  2854. var key;
  2855. for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);
  2856. // Don't enum bug & hidden keys
  2857. while (names.length > i) if (has(O, key = names[i++])) {
  2858. ~arrayIndexOf(result, key) || result.push(key);
  2859. }
  2860. return result;
  2861. };
  2862. /***/ }),
  2863. /***/ "ebd6":
  2864. /***/ (function(module, exports, __webpack_require__) {
  2865. // 7.3.20 SpeciesConstructor(O, defaultConstructor)
  2866. var anObject = __webpack_require__("cb7c");
  2867. var aFunction = __webpack_require__("d8e8");
  2868. var SPECIES = __webpack_require__("2b4c")('species');
  2869. module.exports = function (O, D) {
  2870. var C = anObject(O).constructor;
  2871. var S;
  2872. return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? D : aFunction(S);
  2873. };
  2874. /***/ }),
  2875. /***/ "ebfd":
  2876. /***/ (function(module, exports, __webpack_require__) {
  2877. var META = __webpack_require__("62a0")('meta');
  2878. var isObject = __webpack_require__("f772");
  2879. var has = __webpack_require__("07e3");
  2880. var setDesc = __webpack_require__("d9f6").f;
  2881. var id = 0;
  2882. var isExtensible = Object.isExtensible || function () {
  2883. return true;
  2884. };
  2885. var FREEZE = !__webpack_require__("294c")(function () {
  2886. return isExtensible(Object.preventExtensions({}));
  2887. });
  2888. var setMeta = function (it) {
  2889. setDesc(it, META, { value: {
  2890. i: 'O' + ++id, // object ID
  2891. w: {} // weak collections IDs
  2892. } });
  2893. };
  2894. var fastKey = function (it, create) {
  2895. // return primitive with prefix
  2896. if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
  2897. if (!has(it, META)) {
  2898. // can't set metadata to uncaught frozen object
  2899. if (!isExtensible(it)) return 'F';
  2900. // not necessary to add metadata
  2901. if (!create) return 'E';
  2902. // add missing metadata
  2903. setMeta(it);
  2904. // return object ID
  2905. } return it[META].i;
  2906. };
  2907. var getWeak = function (it, create) {
  2908. if (!has(it, META)) {
  2909. // can't set metadata to uncaught frozen object
  2910. if (!isExtensible(it)) return true;
  2911. // not necessary to add metadata
  2912. if (!create) return false;
  2913. // add missing metadata
  2914. setMeta(it);
  2915. // return hash weak collections IDs
  2916. } return it[META].w;
  2917. };
  2918. // add metadata on freeze-family methods calling
  2919. var onFreeze = function (it) {
  2920. if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it);
  2921. return it;
  2922. };
  2923. var meta = module.exports = {
  2924. KEY: META,
  2925. NEED: false,
  2926. fastKey: fastKey,
  2927. getWeak: getWeak,
  2928. onFreeze: onFreeze
  2929. };
  2930. /***/ }),
  2931. /***/ "ed33":
  2932. /***/ (function(module, exports, __webpack_require__) {
  2933. __webpack_require__("014b");
  2934. module.exports = __webpack_require__("584a").Object.getOwnPropertySymbols;
  2935. /***/ }),
  2936. /***/ "f6fd":
  2937. /***/ (function(module, exports) {
  2938. // document.currentScript polyfill by Adam Miller
  2939. // MIT license
  2940. (function(document){
  2941. var currentScript = "currentScript",
  2942. scripts = document.getElementsByTagName('script'); // Live NodeList collection
  2943. // If browser needs currentScript polyfill, add get currentScript() to the document object
  2944. if (!(currentScript in document)) {
  2945. Object.defineProperty(document, currentScript, {
  2946. get: function(){
  2947. // IE 6-10 supports script readyState
  2948. // IE 10+ support stack trace
  2949. try { throw new Error(); }
  2950. catch (err) {
  2951. // Find the second match for the "at" string to get file src url from stack.
  2952. // Specifically works with the format of stack traces in IE.
  2953. var i, res = ((/.*at [^\(]*\((.*):.+:.+\)$/ig).exec(err.stack) || [false])[1];
  2954. // For all scripts on the page, if src matches or if ready state is interactive, return the script tag
  2955. for(i in scripts){
  2956. if(scripts[i].src == res || scripts[i].readyState == "interactive"){
  2957. return scripts[i];
  2958. }
  2959. }
  2960. // If no match, return null
  2961. return null;
  2962. }
  2963. }
  2964. });
  2965. }
  2966. })(document);
  2967. /***/ }),
  2968. /***/ "f772":
  2969. /***/ (function(module, exports) {
  2970. module.exports = function (it) {
  2971. return typeof it === 'object' ? it !== null : typeof it === 'function';
  2972. };
  2973. /***/ }),
  2974. /***/ "fa5b":
  2975. /***/ (function(module, exports, __webpack_require__) {
  2976. module.exports = __webpack_require__("5537")('native-function-to-string', Function.toString);
  2977. /***/ }),
  2978. /***/ "fab2":
  2979. /***/ (function(module, exports, __webpack_require__) {
  2980. var document = __webpack_require__("7726").document;
  2981. module.exports = document && document.documentElement;
  2982. /***/ }),
  2983. /***/ "fb15":
  2984. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2985. "use strict";
  2986. __webpack_require__.r(__webpack_exports__);
  2987. // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
  2988. // This file is imported into lib/wc client bundles.
  2989. if (typeof window !== 'undefined') {
  2990. if (true) {
  2991. __webpack_require__("f6fd")
  2992. }
  2993. var setPublicPath_i
  2994. if ((setPublicPath_i = window.document.currentScript) && (setPublicPath_i = setPublicPath_i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))) {
  2995. __webpack_require__.p = setPublicPath_i[1] // eslint-disable-line
  2996. }
  2997. }
  2998. // Indicate to webpack that this file can be concatenated
  2999. /* harmony default export */ var setPublicPath = (null);
  3000. // EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/object/get-own-property-descriptor.js
  3001. var get_own_property_descriptor = __webpack_require__("268f");
  3002. var get_own_property_descriptor_default = /*#__PURE__*/__webpack_require__.n(get_own_property_descriptor);
  3003. // EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/object/get-own-property-symbols.js
  3004. var get_own_property_symbols = __webpack_require__("e265");
  3005. var get_own_property_symbols_default = /*#__PURE__*/__webpack_require__.n(get_own_property_symbols);
  3006. // EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/object/keys.js
  3007. var keys = __webpack_require__("a4bb");
  3008. var keys_default = /*#__PURE__*/__webpack_require__.n(keys);
  3009. // EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/object/define-property.js
  3010. var define_property = __webpack_require__("85f2");
  3011. var define_property_default = /*#__PURE__*/__webpack_require__.n(define_property);
  3012. // CONCATENATED MODULE: ./node_modules/@babel/runtime-corejs2/helpers/esm/defineProperty.js
  3013. function _defineProperty(obj, key, value) {
  3014. if (key in obj) {
  3015. define_property_default()(obj, key, {
  3016. value: value,
  3017. enumerable: true,
  3018. configurable: true,
  3019. writable: true
  3020. });
  3021. } else {
  3022. obj[key] = value;
  3023. }
  3024. return obj;
  3025. }
  3026. // CONCATENATED MODULE: ./node_modules/@babel/runtime-corejs2/helpers/esm/objectSpread.js
  3027. function _objectSpread(target) {
  3028. for (var i = 1; i < arguments.length; i++) {
  3029. var source = arguments[i] != null ? arguments[i] : {};
  3030. var ownKeys = keys_default()(source);
  3031. if (typeof get_own_property_symbols_default.a === 'function') {
  3032. ownKeys = ownKeys.concat(get_own_property_symbols_default()(source).filter(function (sym) {
  3033. return get_own_property_descriptor_default()(source, sym).enumerable;
  3034. }));
  3035. }
  3036. ownKeys.forEach(function (key) {
  3037. _defineProperty(target, key, source[key]);
  3038. });
  3039. }
  3040. return target;
  3041. }
  3042. // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0fa0e932-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/grid.vue?vue&type=template&id=07769ba6&
  3043. var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"alt-grid-container",class:_vm.operatorClass,style:(_vm.containerStyle)},[_c('div',{staticClass:"alt-grid-item-drag-placeholder",class:_vm.placeholderClass,style:(_vm.getCardStyleForPlaceholder(_vm.placeholder))}),_vm._l((_vm.innerLayout),function(item,index){return _c('div',{key:item._id,ref:"cards",refInFor:true,staticClass:"alt-grid-item",class:[_vm.canDragClass(item.isDraggable), _vm.gridItemClass, item.gridItemClass],style:(item._alt_style),attrs:{"dg-id":item._id}},[(_vm.getFirstSetValue(item.isShowOriginCloseBtn, _vm.isShowOriginCloseBtn, true))?_c('button',{class:[_vm.closeHandlerClass, item.closeHandlerClass],on:{"click":function($event){return _vm.closeWidget(item._id)}}},[_vm._v("关闭")]):_vm._e(),_c(item.type,{ref:item._id,refInFor:true,tag:"component",attrs:{"alt-card-props":_vm.getPropsForInject(index, item)}}),(_vm.getFirstSetValue(item.isResizable, _vm.isResizable, true))?_c('span',{staticClass:"alt-grid-item-resize-handler",class:[_vm.resizeHandlerClass, item.resizeHandlerClass]}):_vm._e()],1)}),_c('div',{staticClass:"mask"})],2)}
  3044. var staticRenderFns = []
  3045. // CONCATENATED MODULE: ./src/components/grid.vue?vue&type=template&id=07769ba6&
  3046. // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.regexp.match.js
  3047. var es6_regexp_match = __webpack_require__("4917");
  3048. // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.regexp.search.js
  3049. var es6_regexp_search = __webpack_require__("386d");
  3050. // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.array.iterator.js
  3051. var es6_array_iterator = __webpack_require__("cadf");
  3052. // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.object.keys.js
  3053. var es6_object_keys = __webpack_require__("456d");
  3054. // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.regexp.replace.js
  3055. var es6_regexp_replace = __webpack_require__("a481");
  3056. // EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom.iterable.js
  3057. var web_dom_iterable = __webpack_require__("ac6a");
  3058. // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.regexp.split.js
  3059. var es6_regexp_split = __webpack_require__("28a5");
  3060. // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.regexp.constructor.js
  3061. var es6_regexp_constructor = __webpack_require__("3b2b");
  3062. // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.number.constructor.js
  3063. var es6_number_constructor = __webpack_require__("c5f6");
  3064. // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.number.is-integer.js
  3065. var es6_number_is_integer = __webpack_require__("7cdf");
  3066. // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.regexp.to-string.js
  3067. var es6_regexp_to_string = __webpack_require__("6b54");
  3068. // EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
  3069. var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__("8bbf");
  3070. var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
  3071. // CONCATENATED MODULE: ./src/utils/util.js
  3072. // 深拷贝
  3073. function deepCopy() {
  3074. return JSON.parse(JSON.stringify(arguments.length <= 0 ? undefined : arguments[0]));
  3075. } // 获取变量类型
  3076. function getVariType(vari) {
  3077. return Object.prototype.toString.call(vari).slice(8, -1).toLowerCase();
  3078. } // 判断值是否为 undefined 或 null
  3079. function isNil(val) {
  3080. return val === undefined || val === null;
  3081. } // 获取vue对象
  3082. function getVue() {
  3083. var temp = external_commonjs_vue_commonjs2_vue_root_Vue_default.a;
  3084. if (temp) return temp;
  3085. if (window.Vue) return window.Vue;
  3086. return null;
  3087. } // 判断是否为整数
  3088. function isInteger(num) {
  3089. if (Number.isInteger) return Number.isInteger(num);
  3090. var s = num + '';
  3091. return !~s.indexOf('.');
  3092. } // 判断是否含有某个class
  3093. function hasClass(dom, className) {
  3094. var reg = new RegExp('(\\s|^)' + className + '(\\s|$)');
  3095. var domClassName = dom.className;
  3096. return reg.test(domClassName); // return ~domClassName.indexOf(className);
  3097. } // 从event.path中遍历查找包含某个class的元素
  3098. function findParentThoughEvtPath(evtPath, parentClass, stopClass) {
  3099. var dom = null;
  3100. for (var i = 0, l = evtPath.length; i < l; i++) {
  3101. dom = evtPath[i];
  3102. if (hasClass(dom, parentClass)) {
  3103. return dom;
  3104. }
  3105. if (hasClass(dom, stopClass)) {
  3106. return null;
  3107. }
  3108. }
  3109. return null;
  3110. }
  3111. function util_getFirstSetValue() {
  3112. var args = arguments;
  3113. var l = args.length;
  3114. for (var i = 0; i < l; i++) {
  3115. if (!isNil(args[i])) return args[i];
  3116. }
  3117. return args[l - 1];
  3118. }
  3119. function forEach(arr, callBack) {
  3120. if (!arr || !arr.length) return;
  3121. for (var i = 0, j = arr.length; i < j; i++) {
  3122. callBack && callBack(arr[i], i);
  3123. }
  3124. }
  3125. function forEachValue(obj, fn) {
  3126. Object.keys(obj).forEach(function (key) {
  3127. return fn(obj[key], key);
  3128. });
  3129. }
  3130. function getIndexOfArrayByAttr(arr, value, attr) {
  3131. for (var i = 0; i < arr.length; i++) {
  3132. if (attr) {
  3133. if (arr[i][attr] === value) return i;
  3134. } else {
  3135. if (arr[i] === value) return i;
  3136. }
  3137. }
  3138. return -1;
  3139. } // 获取event.path的polyfill
  3140. function getEventPath(event) {
  3141. var target = event.target || null;
  3142. var pathArr = [target];
  3143. if (!target || !target.parentElement) {
  3144. return [];
  3145. }
  3146. while (target.parentElement) {
  3147. target = target.parentElement;
  3148. pathArr.unshift(target);
  3149. }
  3150. return pathArr;
  3151. } // 标准化event对象
  3152. function normalizeEvent(event) {
  3153. var evt = event;
  3154. if (!evt.path) {
  3155. evt.path = evt.composedPath && evt.composedPath() || getEventPath(event);
  3156. }
  3157. return evt;
  3158. }
  3159. function isDragIgnoreFrom(target, currentCard, ignoreFrom) {
  3160. var ignoreElementList = currentCard.querySelectorAll(ignoreFrom);
  3161. for (var i = 0, j = ignoreElementList.length; i < j; i++) {
  3162. if (ignoreElementList[i] === target) {
  3163. return true;
  3164. }
  3165. }
  3166. return false;
  3167. }
  3168. function getUniqueID(len, radix) {
  3169. var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');
  3170. var uuid = [],
  3171. i;
  3172. radix = radix || chars.length;
  3173. if (len) {
  3174. // Compact form
  3175. for (i = 0; i < len; i++) {
  3176. uuid[i] = chars[0 | Math.random() * radix];
  3177. }
  3178. } else {
  3179. // 参考rfc4122,https://tools.ietf.org/html/rfc4122
  3180. var r;
  3181. uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';
  3182. uuid[14] = '4';
  3183. for (i = 0; i < 36; i++) {
  3184. if (!uuid[i]) {
  3185. r = 0 | Math.random() * 16;
  3186. uuid[i] = chars[i == 19 ? r & 0x3 | 0x8 : r];
  3187. }
  3188. }
  3189. }
  3190. return uuid.join('');
  3191. }
  3192. // CONCATENATED MODULE: ./src/utils/device.js
  3193. var platform = navigator.platform;
  3194. var isMac = ['Mac68K', 'MacPPC', 'Macintosh', 'MacIntel'].indexOf(platform) > -1;
  3195. var device = {
  3196. isMac: isMac
  3197. };
  3198. /* harmony default export */ var utils_device = (device);
  3199. // CONCATENATED MODULE: ./src/utils/watch-box-size.js
  3200. function watchBoxSizeChange(el, handler) {
  3201. if (!(el instanceof HTMLElement)) {
  3202. throw new TypeError('第一个参数必须是一个html元素');
  3203. }
  3204. if (/^(area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr|script|style|textarea|title)$/i.test(el.tagName)) {
  3205. throw new TypeError('不支持当前元素类型,可以尝试使用div');
  3206. }
  3207. if (typeof handler !== 'function') {
  3208. throw new TypeError('第二个参数必须是一个函数');
  3209. }
  3210. this.el = el;
  3211. this.handler = handler;
  3212. this.hadInitScrollListener = false;
  3213. this.checkHidden();
  3214. }
  3215. watchBoxSizeChange.prototype.checkHidden = function checkHidden() {
  3216. var _this = this;
  3217. requestAnimationFrame(function () {
  3218. var width = _this.el.offsetWidth;
  3219. var height = _this.el.offsetHeight;
  3220. if (width === 0 && height === 0) {
  3221. _this.checkHidden();
  3222. } else {
  3223. _this.handler();
  3224. _this.init();
  3225. _this.hadInitScrollListener = true;
  3226. }
  3227. });
  3228. };
  3229. watchBoxSizeChange.prototype.init = function init() {
  3230. // 最后一次变动的宽高
  3231. this.lastWidth = this.el.offsetWidth || 1;
  3232. this.lastHeight = this.el.offsetHeight || 1; // 最大宽高
  3233. this.maxWidth = 10000 * this.lastWidth;
  3234. this.maxHeight = 10000 * this.lastHeight; // 变动宽高
  3235. this.newWidth = 0;
  3236. this.newHeight = 0;
  3237. this.expand = document.createElement('div');
  3238. this.expand.style.cssText = 'position:absolute;top:0;bottom:0;left:0;right:0;z-index=-10000;overflow:hidden;visibility:hidden;';
  3239. this.shrink = this.expand.cloneNode(false);
  3240. var expandChild = document.createElement('div');
  3241. expandChild.style.cssText = 'transition:0s;animation:none;';
  3242. var shrinkChild = expandChild.cloneNode(false);
  3243. expandChild.style.width = this.maxWidth + 'px';
  3244. expandChild.style.height = this.maxHeight + 'px';
  3245. shrinkChild.style.width = '250%';
  3246. shrinkChild.style.height = '250%';
  3247. this.expand.appendChild(expandChild);
  3248. this.shrink.appendChild(shrinkChild);
  3249. this.el.appendChild(this.expand);
  3250. this.el.appendChild(this.shrink);
  3251. if (this.expand.offsetParent !== this.el) {
  3252. this.el.style.position = 'relative';
  3253. }
  3254. this.expand.scrollTop = this.shrink.scrollTop = this.maxHeight;
  3255. this.expand.scrollLeft = this.shrink.scrollLeft = this.maxWidth;
  3256. this.bindOnScroll = null;
  3257. this.addListener();
  3258. };
  3259. watchBoxSizeChange.prototype.onScroll = function onScroll() {
  3260. this.newWidth = this.el.offsetWidth || 1;
  3261. this.newHeight = this.el.offsetHeight || 1;
  3262. if (this.newWidth !== this.lastWidth || this.newHeight !== this.lastHeight) {
  3263. requestAnimationFrame(this.onResize.bind(this));
  3264. }
  3265. this.expand.scrollTop = this.shrink.scrollTop = this.maxHeight;
  3266. this.expand.scrollLeft = this.shrink.scrollLeft = this.maxWidth;
  3267. };
  3268. watchBoxSizeChange.prototype.onResize = function onResize() {
  3269. this.lastWidth = this.newWidth;
  3270. this.lastHeight = this.newHeight;
  3271. this.handler(this.lastWidth, this.lastHeight);
  3272. };
  3273. watchBoxSizeChange.prototype.addListener = function addListener() {
  3274. this.bindOnScroll = this.onScroll.bind(this);
  3275. this.expand.addEventListener('scroll', this.bindOnScroll, false);
  3276. this.shrink.addEventListener('scroll', this.bindOnScroll, false);
  3277. };
  3278. watchBoxSizeChange.prototype.removeListener = function removeListener() {
  3279. this.expand.removeEventListener('scroll', this.bindOnScroll, false);
  3280. this.shrink.removeEventListener('scroll', this.bindOnScroll, false);
  3281. };
  3282. watchBoxSizeChange.prototype.destroy = function destroy() {
  3283. if (this.hadInitScrollListener) {
  3284. this.removeListener();
  3285. this.el.removeChild(this.expand);
  3286. this.el.removeChild(this.shrink);
  3287. }
  3288. };
  3289. /* harmony default export */ var watch_box_size = (watchBoxSizeChange);
  3290. // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.array.fill.js
  3291. var es6_array_fill = __webpack_require__("6c7b");
  3292. // CONCATENATED MODULE: ./node_modules/@babel/runtime-corejs2/helpers/esm/classCallCheck.js
  3293. function _classCallCheck(instance, Constructor) {
  3294. if (!(instance instanceof Constructor)) {
  3295. throw new TypeError("Cannot call a class as a function");
  3296. }
  3297. }
  3298. // CONCATENATED MODULE: ./node_modules/@babel/runtime-corejs2/helpers/esm/createClass.js
  3299. function _defineProperties(target, props) {
  3300. for (var i = 0; i < props.length; i++) {
  3301. var descriptor = props[i];
  3302. descriptor.enumerable = descriptor.enumerable || false;
  3303. descriptor.configurable = true;
  3304. if ("value" in descriptor) descriptor.writable = true;
  3305. define_property_default()(target, descriptor.key, descriptor);
  3306. }
  3307. }
  3308. function _createClass(Constructor, protoProps, staticProps) {
  3309. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  3310. if (staticProps) _defineProperties(Constructor, staticProps);
  3311. return Constructor;
  3312. }
  3313. // CONCATENATED MODULE: ./src/utils/rect.js
  3314. var rect_Rect =
  3315. /*#__PURE__*/
  3316. function () {
  3317. function Rect() {
  3318. var info = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  3319. var coors = arguments.length > 1 ? arguments[1] : undefined;
  3320. _classCallCheck(this, Rect);
  3321. this.appendUniqueId(info);
  3322. this.x = this.isNotNegativeNumber(info.x) ? info.x : 0;
  3323. this.y = this.isNotNegativeNumber(info.y) ? info.y : 0;
  3324. this.w = this.isPositiveNumber(info.w) ? info.w : 1;
  3325. this.h = this.isPositiveNumber(info.h) ? info.h : 1;
  3326. this.id = info._id;
  3327. this.rawInfo = info;
  3328. this.coors = coors;
  3329. }
  3330. _createClass(Rect, [{
  3331. key: "setPos",
  3332. value: function setPos(pos) {
  3333. var attrs = ['x', 'y', 'w', 'h'];
  3334. var attrName;
  3335. var tempValue;
  3336. for (var i = 0, j = attrs.length; i < j; i++) {
  3337. attrName = attrs[i];
  3338. tempValue = pos[attrName];
  3339. if (!isNil(tempValue)) {
  3340. this[attrName] = tempValue;
  3341. this.rawInfo[attrName] = tempValue;
  3342. }
  3343. }
  3344. }
  3345. }, {
  3346. key: "moveTo",
  3347. value: function moveTo(x, y) {
  3348. if (this.coors.maxWidth && x + this.w > this.coors.maxWidth) {
  3349. x = this.coors.maxWidth - this.w;
  3350. }
  3351. if (x < 0) x = 0;
  3352. if (y < 0) y = 0;
  3353. this.coors._moveTo(this.id, {
  3354. x: x,
  3355. y: y
  3356. });
  3357. }
  3358. }, {
  3359. key: "resizeTo",
  3360. value: function resizeTo(w, h) {
  3361. if (this.coors.maxWidth && w + this.x > this.coors.maxWidth) {
  3362. w = this.coors.maxWidth - this.x;
  3363. }
  3364. if (w < 1) w = 1;
  3365. if (h < 1) h = 1;
  3366. this.coors._resizeTo(this.id, {
  3367. w: w,
  3368. h: h
  3369. });
  3370. }
  3371. }, {
  3372. key: "moveDown",
  3373. value: function moveDown(rows) {
  3374. this.coors._moveDown(this.id, rows);
  3375. }
  3376. }, {
  3377. key: "fill",
  3378. value: function fill(value) {
  3379. this.coors.coorsFillRect(this.x, this.y, this.w, this.h, value);
  3380. } // 判断是否是正整数
  3381. }, {
  3382. key: "isPositiveNumber",
  3383. value: function isPositiveNumber(num) {
  3384. if (isNil(num)) return false;
  3385. return num > 0;
  3386. } // 判断是否为非负数 也就是 大于等于0
  3387. }, {
  3388. key: "isNotNegativeNumber",
  3389. value: function isNotNegativeNumber(num) {
  3390. if (isNil(num)) return false;
  3391. return num >= 0;
  3392. }
  3393. }, {
  3394. key: "appendUniqueId",
  3395. value: function appendUniqueId(item) {
  3396. if (!item._id) {
  3397. item._id = this.getUniqueId();
  3398. }
  3399. }
  3400. }, {
  3401. key: "getUniqueId",
  3402. value: function getUniqueId(len, radix) {
  3403. var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');
  3404. var uuid = [],
  3405. i;
  3406. radix = radix || chars.length;
  3407. if (len) {
  3408. // Compact form
  3409. for (i = 0; i < len; i++) {
  3410. uuid[i] = chars[0 | Math.random() * radix];
  3411. }
  3412. } else {
  3413. // 参考rfc4122,https://tools.ietf.org/html/rfc4122
  3414. var r;
  3415. uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';
  3416. uuid[14] = '4';
  3417. for (i = 0; i < 36; i++) {
  3418. if (!uuid[i]) {
  3419. r = 0 | Math.random() * 16;
  3420. uuid[i] = chars[i == 19 ? r & 0x3 | 0x8 : r];
  3421. }
  3422. }
  3423. }
  3424. return uuid.join('');
  3425. }
  3426. }]);
  3427. return Rect;
  3428. }();
  3429. /* harmony default export */ var utils_rect = (rect_Rect);
  3430. // CONCATENATED MODULE: ./src/utils/coordinate.js
  3431. var coordinate_Coordinate =
  3432. /*#__PURE__*/
  3433. function () {
  3434. function Coordinate() {
  3435. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  3436. _classCallCheck(this, Coordinate);
  3437. this.coors = [];
  3438. this.coorItemsMap = {};
  3439. this.maxWidth = options.maxWidth;
  3440. }
  3441. _createClass(Coordinate, [{
  3442. key: "add",
  3443. value: function add(info) {
  3444. /**
  3445. * 1. 判断位置参数合法性,不合法则自动分配
  3446. * 2. 添加到坐标系
  3447. * 3. 返回 id
  3448. */
  3449. var rectItem = new utils_rect(info, this);
  3450. this.distributeRectPosition(rectItem);
  3451. this.coorsFillRect(rectItem.x, rectItem.y, rectItem.w, rectItem.h, rectItem);
  3452. this.coorItemsMap[rectItem.id] = rectItem;
  3453. return rectItem;
  3454. }
  3455. }, {
  3456. key: "coorsFillRect",
  3457. value: function coorsFillRect(x, y, w, h, value) {
  3458. var arr = this.coors;
  3459. var row;
  3460. for (var i = y; i < y + h; i++) {
  3461. row = arr[i];
  3462. if (isNil(row)) {
  3463. arr[i] = [];
  3464. }
  3465. for (var j = x; j < x + w; j++) {
  3466. arr[i][j] = value;
  3467. }
  3468. }
  3469. }
  3470. }, {
  3471. key: "coorsGetRectItems",
  3472. value: function coorsGetRectItems(x, y, w, h) {
  3473. var itemsList = [];
  3474. var row, cell;
  3475. for (var i = y; i < y + h; i++) {
  3476. row = this.coors[i] || [];
  3477. for (var j = x; j < x + w; j++) {
  3478. cell = row[j];
  3479. if (!isNil(cell)) {
  3480. itemsList.push(cell);
  3481. }
  3482. }
  3483. }
  3484. return itemsList;
  3485. }
  3486. }, {
  3487. key: "distributeRectPosition",
  3488. value: function distributeRectPosition(rectInstance) {
  3489. if (!this.checkRectPositionIsLegal(rectInstance, this.coors)) {
  3490. var legalPos = this.getLegalPosition(rectInstance, this.coorItemsMap);
  3491. rectInstance.setPos(legalPos);
  3492. }
  3493. }
  3494. }, {
  3495. key: "getLegalPosition",
  3496. value: function getLegalPosition(rectInstance, itemsMap) {
  3497. var x = rectInstance.x;
  3498. var y = rectInstance.y;
  3499. var w = rectInstance.w;
  3500. var h = rectInstance.h;
  3501. var colsHeight = [];
  3502. var tempItem = null;
  3503. var tempY = 0;
  3504. forEach(Object.keys(itemsMap), function (key) {
  3505. tempItem = itemsMap[key];
  3506. tempY = tempItem.y + tempItem.h;
  3507. for (var m = tempItem.x; m < tempItem.x + tempItem.w; m++) {
  3508. if (tempY > (colsHeight[m] || 0)) {
  3509. colsHeight[m] = tempY;
  3510. }
  3511. }
  3512. });
  3513. var max = this.maxWidth || colsHeight.length + w;
  3514. for (var i = 0; i < max; i++) {
  3515. if (isNil(colsHeight[i])) {
  3516. colsHeight[i] = 0;
  3517. }
  3518. }
  3519. var index = this.getMinPeek(colsHeight, w);
  3520. x = ~index ? index : 0;
  3521. y = colsHeight[x] || 0;
  3522. return {
  3523. x: x,
  3524. y: y,
  3525. w: w,
  3526. h: h
  3527. };
  3528. }
  3529. }, {
  3530. key: "getMinPeek",
  3531. value: function getMinPeek(arr, w) {
  3532. if (w === 1) {
  3533. var minVal = Math.min.apply(null, arr);
  3534. return arr.indexOf(minVal);
  3535. }
  3536. var index = -1;
  3537. var value = Infinity;
  3538. for (var i = 0; i < arr.length - w + 1; i++) {
  3539. var flag = true;
  3540. var item = arr[i];
  3541. for (var j = i + 1; j < i + w; j++) {
  3542. if (item < arr[j]) {
  3543. flag = false;
  3544. break;
  3545. }
  3546. }
  3547. if (flag && item < value) {
  3548. value = item;
  3549. index = i;
  3550. }
  3551. }
  3552. return index;
  3553. } // 检查位置是否合法
  3554. }, {
  3555. key: "checkRectPositionIsLegal",
  3556. value: function checkRectPositionIsLegal(item, coors) {
  3557. var x = item.x;
  3558. var y = item.y;
  3559. var w = item.w;
  3560. var h = item.h;
  3561. for (var i = y; i < y + h; i++) {
  3562. if (isNil(coors[i])) continue;
  3563. for (var j = x; j < x + w; j++) {
  3564. if (!isNil(coors[i][j])) {
  3565. return false;
  3566. }
  3567. }
  3568. }
  3569. return true;
  3570. }
  3571. }, {
  3572. key: "_moveTo",
  3573. value: function _moveTo(id) {
  3574. var pos = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  3575. /**
  3576. * 1. 找到对应的id
  3577. * 2. 判断移动的
  3578. */
  3579. if (isNil(pos.x) || isNil(pos.y)) return;
  3580. var rectItem = this.coorItemsMap[id];
  3581. rectItem.fill(null);
  3582. var targetRect = {
  3583. x: pos.x,
  3584. y: pos.y,
  3585. w: rectItem.w,
  3586. h: rectItem.h
  3587. };
  3588. var targetAreaRectItems = this.coorsGetFirstItemForColsInRect(targetRect);
  3589. var targetBottomLine = {
  3590. x: targetRect.x,
  3591. y: targetRect.y + targetRect.h,
  3592. w: targetRect.w
  3593. };
  3594. forEach(targetAreaRectItems, function (item) {
  3595. item.moveDown(targetBottomLine.y - item.y);
  3596. });
  3597. rectItem.setPos(targetRect);
  3598. this.coorsFillRect(targetRect.x, targetRect.y, targetRect.w, targetRect.h, rectItem);
  3599. this._moveUpAll();
  3600. }
  3601. }, {
  3602. key: "_resizeTo",
  3603. value: function _resizeTo(id) {
  3604. var rect = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  3605. if (isNil(rect.w) || isNil(rect.h)) return;
  3606. var rectItem = this.coorItemsMap[id];
  3607. rectItem.fill(null);
  3608. var targetRect = {
  3609. x: rectItem.x,
  3610. y: rectItem.y,
  3611. w: rect.w,
  3612. h: rect.h
  3613. };
  3614. var targetAreaRectItems = this.coorsGetFirstItemForColsInRect(targetRect);
  3615. var targetBottomLine = {
  3616. x: targetRect.x,
  3617. y: targetRect.y + targetRect.h,
  3618. w: targetRect.w
  3619. };
  3620. forEach(targetAreaRectItems, function (item) {
  3621. item.moveDown(targetBottomLine.y - item.y);
  3622. });
  3623. rectItem.setPos(targetRect);
  3624. rectItem.fill(rectItem); // this.coorsFillRect(targetRect.x, targetRect.y, targetRect.w, targetRect.h, rectItem);
  3625. this._moveUpAll();
  3626. }
  3627. }, {
  3628. key: "_moveDown",
  3629. value: function _moveDown(id, rows) {
  3630. var rectItem = this.coorItemsMap[id];
  3631. rectItem.fill(null);
  3632. var belowItems = this.coorsGetFirstItemForColsInRect({
  3633. x: rectItem.x,
  3634. y: rectItem.y + rectItem.h,
  3635. w: rectItem.w,
  3636. h: rectItem.h + rows
  3637. });
  3638. var targetBottomLine = {
  3639. x: rectItem.x,
  3640. y: rectItem.y + rectItem.h + rows,
  3641. w: rectItem.w
  3642. };
  3643. forEach(belowItems, function (item) {
  3644. item.moveDown(targetBottomLine.y - item.y);
  3645. });
  3646. rectItem.setPos({
  3647. y: rectItem.y + rows
  3648. });
  3649. rectItem.fill(rectItem);
  3650. }
  3651. }, {
  3652. key: "coorsGetFirstItemForColsInRect",
  3653. value: function coorsGetFirstItemForColsInRect(rect) {
  3654. var x = rect.x,
  3655. y = rect.y,
  3656. w = rect.w,
  3657. h = rect.h;
  3658. var itemsList = [];
  3659. var mapList = [];
  3660. var row, cell;
  3661. for (var i = y; i < y + h; i++) {
  3662. row = this.coors[i] || [];
  3663. for (var j = x; j < x + w; j++) {
  3664. cell = row[j];
  3665. if (!isNil(cell) && !mapList[j] && this.checkLineIsLegal(cell, mapList)) {
  3666. mapList[j] = cell;
  3667. if (!~itemsList.indexOf(cell)) {
  3668. itemsList.push(cell);
  3669. }
  3670. }
  3671. }
  3672. if (itemsList.length >= w) break;
  3673. }
  3674. return itemsList;
  3675. }
  3676. }, {
  3677. key: "checkLineIsLegal",
  3678. value: function checkLineIsLegal(cell, line) {
  3679. for (var i = cell.x; i < cell.x + cell.w; i++) {
  3680. if (!isNil(line[i]) && cell !== line[i]) {
  3681. return false;
  3682. }
  3683. }
  3684. return true;
  3685. }
  3686. }, {
  3687. key: "getEmptyRowsBeforeLine",
  3688. value: function getEmptyRowsBeforeLine(x, y, w) {
  3689. if (y === 0) return 0;
  3690. var count = 0;
  3691. var row, cell;
  3692. for (var rowNum = y - 1; rowNum >= 0; rowNum--) {
  3693. row = this.coors[rowNum] || [];
  3694. for (var colNum = x; colNum < x + w; colNum++) {
  3695. cell = row[colNum];
  3696. if (!isNil(cell)) {
  3697. return count;
  3698. }
  3699. }
  3700. count++;
  3701. }
  3702. return count;
  3703. }
  3704. }, {
  3705. key: "_moveUpAll",
  3706. value: function _moveUpAll() {
  3707. var me = this;
  3708. forEach(this.coors, function (row) {
  3709. forEach(row || [], function (cell) {
  3710. if (!cell || cell.y === 0) return;
  3711. var canUpRows = me.getEmptyRowsBeforeLine(cell.x, cell.y, cell.w);
  3712. cell.fill(null);
  3713. cell.setPos({
  3714. y: cell.y - canUpRows
  3715. });
  3716. cell.fill(cell);
  3717. });
  3718. });
  3719. }
  3720. }, {
  3721. key: "clear",
  3722. value: function clear() {
  3723. this.coors = [];
  3724. this.coorItemsMap = {};
  3725. }
  3726. }, {
  3727. key: "batchAddItem",
  3728. value: function batchAddItem(itemList) {
  3729. var me = this;
  3730. forEach(itemList, function (item) {
  3731. me.add(item);
  3732. });
  3733. this._moveUpAll();
  3734. }
  3735. }, {
  3736. key: "getAllItems",
  3737. value: function getAllItems() {
  3738. var list = [];
  3739. var itemMap = this.coorItemsMap;
  3740. forEach(Object.keys(itemMap), function (key) {
  3741. list.push(itemMap[key].rawInfo);
  3742. });
  3743. return list;
  3744. }
  3745. }, {
  3746. key: "remove",
  3747. value: function remove(id) {
  3748. var rectItem = this.coorItemsMap[id];
  3749. if (rectItem) {
  3750. rectItem.fill(null);
  3751. delete this.coorItemsMap[id];
  3752. this._moveUpAll();
  3753. }
  3754. return rectItem;
  3755. }
  3756. }, {
  3757. key: "replace",
  3758. value: function replace(id, info) {
  3759. var rectItem = this.coorItemsMap[id];
  3760. if (rectItem && rectItem.x === info.x && rectItem.y === info.y && rectItem.w === info.w && rectItem.h === info.h) {
  3761. rectItem.fill(null);
  3762. delete this.coorItemsMap[id];
  3763. var newRectItem = new utils_rect(info, this);
  3764. newRectItem.fill(newRectItem);
  3765. this.coorItemsMap[newRectItem.id] = newRectItem;
  3766. return newRectItem;
  3767. }
  3768. return null;
  3769. }
  3770. }, {
  3771. key: "getItemById",
  3772. value: function getItemById(id) {
  3773. return this.coorItemsMap[id];
  3774. }
  3775. }]);
  3776. return Coordinate;
  3777. }();
  3778. /* harmony default export */ var coordinate = (coordinate_Coordinate);
  3779. // CONCATENATED MODULE: ./src/utils/coordinate.test.js
  3780. function autoMove(that, layout) {
  3781. // that.coors.moveItemTo(layout[6], {
  3782. // x: layout[6].x,
  3783. // y: layout[6].y - 1
  3784. // })
  3785. // for(let i = 4; i > 0; i--){
  3786. // that.coors.moveItemTo(layout[3], {
  3787. // x: layout[3].x - 1,
  3788. // y: layout[3].y
  3789. // })
  3790. // }
  3791. // for(let i = 4; i > 0; i--){
  3792. // that.coors.moveItemTo(layout[3], {
  3793. // x: layout[3].x + 1,
  3794. // y: layout[3].y
  3795. // })
  3796. // }
  3797. // that.coors.moveItemTo(layout[0], {
  3798. // x: layout[0].x + 1,
  3799. // y: layout[0].y
  3800. // })
  3801. // that.coors.moveItemTo(layout[0], {
  3802. // x: layout[0].x + 1,
  3803. // y: layout[0].y
  3804. // })
  3805. // that.coors.moveItemTo(layout[2], {
  3806. // x: layout[2].x - 1,
  3807. // y: layout[2].y
  3808. // })
  3809. // for(let i = 4; i > 0; i--){
  3810. // that.coors.moveItemTo(layout[3], {
  3811. // x: layout[3].x - 1,
  3812. // y: layout[3].y
  3813. // })
  3814. // }
  3815. // that.coors.moveItemTo(layout[3], {
  3816. // x: layout[3].x,
  3817. // y: layout[3].y + 1
  3818. // })
  3819. that.coors.moveItemTo(layout[6], {
  3820. x: 2,
  3821. y: 1
  3822. });
  3823. }
  3824. // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0fa0e932-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Widget.render.vue?vue&type=template&id=67aab659&
  3825. var Widget_rendervue_type_template_id_67aab659_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div')}
  3826. var Widget_rendervue_type_template_id_67aab659_staticRenderFns = []
  3827. // CONCATENATED MODULE: ./src/components/Widget.render.vue?vue&type=template&id=67aab659&
  3828. // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Widget.render.vue?vue&type=script&lang=js&
  3829. //
  3830. //
  3831. //
  3832. //
  3833. /* harmony default export */ var Widget_rendervue_type_script_lang_js_ = ({
  3834. props: ['altCardProps']
  3835. });
  3836. // CONCATENATED MODULE: ./src/components/Widget.render.vue?vue&type=script&lang=js&
  3837. /* harmony default export */ var components_Widget_rendervue_type_script_lang_js_ = (Widget_rendervue_type_script_lang_js_);
  3838. // CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
  3839. /* globals __VUE_SSR_CONTEXT__ */
  3840. // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
  3841. // This module is a runtime utility for cleaner component module output and will
  3842. // be included in the final webpack user bundle.
  3843. function normalizeComponent (
  3844. scriptExports,
  3845. render,
  3846. staticRenderFns,
  3847. functionalTemplate,
  3848. injectStyles,
  3849. scopeId,
  3850. moduleIdentifier, /* server only */
  3851. shadowMode /* vue-cli only */
  3852. ) {
  3853. // Vue.extend constructor export interop
  3854. var options = typeof scriptExports === 'function'
  3855. ? scriptExports.options
  3856. : scriptExports
  3857. // render functions
  3858. if (render) {
  3859. options.render = render
  3860. options.staticRenderFns = staticRenderFns
  3861. options._compiled = true
  3862. }
  3863. // functional template
  3864. if (functionalTemplate) {
  3865. options.functional = true
  3866. }
  3867. // scopedId
  3868. if (scopeId) {
  3869. options._scopeId = 'data-v-' + scopeId
  3870. }
  3871. var hook
  3872. if (moduleIdentifier) { // server build
  3873. hook = function (context) {
  3874. // 2.3 injection
  3875. context =
  3876. context || // cached call
  3877. (this.$vnode && this.$vnode.ssrContext) || // stateful
  3878. (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
  3879. // 2.2 with runInNewContext: true
  3880. if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
  3881. context = __VUE_SSR_CONTEXT__
  3882. }
  3883. // inject component styles
  3884. if (injectStyles) {
  3885. injectStyles.call(this, context)
  3886. }
  3887. // register component module identifier for async chunk inferrence
  3888. if (context && context._registeredComponents) {
  3889. context._registeredComponents.add(moduleIdentifier)
  3890. }
  3891. }
  3892. // used by ssr in case component is cached and beforeCreate
  3893. // never gets called
  3894. options._ssrRegister = hook
  3895. } else if (injectStyles) {
  3896. hook = shadowMode
  3897. ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
  3898. : injectStyles
  3899. }
  3900. if (hook) {
  3901. if (options.functional) {
  3902. // for template-only hot-reload because in that case the render fn doesn't
  3903. // go through the normalizer
  3904. options._injectStyles = hook
  3905. // register for functioal component in vue file
  3906. var originalRender = options.render
  3907. options.render = function renderWithStyleInjection (h, context) {
  3908. hook.call(context)
  3909. return originalRender(h, context)
  3910. }
  3911. } else {
  3912. // inject component registration as beforeCreate hook
  3913. var existing = options.beforeCreate
  3914. options.beforeCreate = existing
  3915. ? [].concat(existing, hook)
  3916. : [hook]
  3917. }
  3918. }
  3919. return {
  3920. exports: scriptExports,
  3921. options: options
  3922. }
  3923. }
  3924. // CONCATENATED MODULE: ./src/components/Widget.render.vue
  3925. /* normalize component */
  3926. var component = normalizeComponent(
  3927. components_Widget_rendervue_type_script_lang_js_,
  3928. Widget_rendervue_type_template_id_67aab659_render,
  3929. Widget_rendervue_type_template_id_67aab659_staticRenderFns,
  3930. false,
  3931. null,
  3932. null,
  3933. null
  3934. )
  3935. /* harmony default export */ var Widget_render = (component.exports);
  3936. // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Widget.template.vue?vue&type=script&lang=js&
  3937. /* harmony default export */ var Widget_templatevue_type_script_lang_js_ = ({
  3938. props: ['altCardProps'],
  3939. template: '<div></div>'
  3940. });
  3941. // CONCATENATED MODULE: ./src/components/Widget.template.vue?vue&type=script&lang=js&
  3942. /* harmony default export */ var components_Widget_templatevue_type_script_lang_js_ = (Widget_templatevue_type_script_lang_js_);
  3943. // CONCATENATED MODULE: ./src/components/Widget.template.vue
  3944. var Widget_template_render, Widget_template_staticRenderFns
  3945. /* normalize component */
  3946. var Widget_template_component = normalizeComponent(
  3947. components_Widget_templatevue_type_script_lang_js_,
  3948. Widget_template_render,
  3949. Widget_template_staticRenderFns,
  3950. false,
  3951. null,
  3952. null,
  3953. null
  3954. )
  3955. /* harmony default export */ var Widget_template = (Widget_template_component.exports);
  3956. // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Widget.vuecomponent.vue?vue&type=script&lang=js&
  3957. /* harmony default export */ var Widget_vuecomponentvue_type_script_lang_js_ = ({
  3958. props: ['altCardProps']
  3959. });
  3960. // CONCATENATED MODULE: ./src/components/Widget.vuecomponent.vue?vue&type=script&lang=js&
  3961. /* harmony default export */ var components_Widget_vuecomponentvue_type_script_lang_js_ = (Widget_vuecomponentvue_type_script_lang_js_);
  3962. // CONCATENATED MODULE: ./src/components/Widget.vuecomponent.vue
  3963. var Widget_vuecomponent_render, Widget_vuecomponent_staticRenderFns
  3964. /* normalize component */
  3965. var Widget_vuecomponent_component = normalizeComponent(
  3966. components_Widget_vuecomponentvue_type_script_lang_js_,
  3967. Widget_vuecomponent_render,
  3968. Widget_vuecomponent_staticRenderFns,
  3969. false,
  3970. null,
  3971. null,
  3972. null
  3973. )
  3974. /* harmony default export */ var Widget_vuecomponent = (Widget_vuecomponent_component.exports);
  3975. // CONCATENATED MODULE: ./src/components/props.js
  3976. var props_props = {
  3977. layout: {
  3978. type: Array,
  3979. default: function _default() {
  3980. return [];
  3981. }
  3982. },
  3983. isDraggable: {
  3984. // 是否可以拖拽
  3985. type: Boolean,
  3986. default: true
  3987. },
  3988. isResizable: {
  3989. // 是否可以调整大小
  3990. type: Boolean,
  3991. default: true
  3992. },
  3993. rowHeight: {
  3994. // 每行高度
  3995. type: Number,
  3996. default: 150,
  3997. validator: function validator(value) {
  3998. return !isNaN(value) && value > 0;
  3999. }
  4000. },
  4001. maxRows: {
  4002. // 最大
  4003. type: Number,
  4004. default: Infinity
  4005. },
  4006. margin: {
  4007. type: Array,
  4008. default: function _default() {
  4009. return [10, 10];
  4010. }
  4011. },
  4012. // 元素的右边距和下边距
  4013. colNum: {
  4014. // 列数
  4015. type: Number,
  4016. default: 12
  4017. },
  4018. backgroundColor: {
  4019. // 背景颜色
  4020. type: String,
  4021. default: 'rgba(200,200,200,1)'
  4022. },
  4023. gridItemClass: {
  4024. // 每一个卡片的class
  4025. type: String,
  4026. default: ''
  4027. },
  4028. closeHandlerClass: {
  4029. // 关闭按钮的class
  4030. type: String,
  4031. default: ''
  4032. },
  4033. resizeHandlerClass: {
  4034. // 设置大小按钮的class
  4035. type: String,
  4036. default: 'alt-g-i-r-h-default-style'
  4037. },
  4038. placeholderClass: {
  4039. // 拖拽时 placeholder 的class
  4040. type: String,
  4041. default: ''
  4042. },
  4043. isShowOriginCloseBtn: {
  4044. type: Boolean,
  4045. default: true
  4046. },
  4047. width: {
  4048. type: [Number, Boolean],
  4049. default: false
  4050. }
  4051. };
  4052. /* harmony default export */ var components_props = (props_props);
  4053. // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/grid.vue?vue&type=script&lang=js&
  4054. //
  4055. //
  4056. //
  4057. //
  4058. //
  4059. //
  4060. //
  4061. //
  4062. //
  4063. //
  4064. //
  4065. //
  4066. //
  4067. //
  4068. //
  4069. //
  4070. //
  4071. //
  4072. //
  4073. //
  4074. //
  4075. //
  4076. //
  4077. //
  4078. //
  4079. //
  4080. //
  4081. //
  4082. //
  4083. //
  4084. //
  4085. //
  4086. // import elementResizeDetectorMaker from 'element-resize-detector'
  4087. var Vue = getVue();
  4088. /* harmony default export */ var gridvue_type_script_lang_js_ = ({
  4089. name: 'alt-grid-layout',
  4090. addWidgetType: function addWidgetType() {
  4091. var args0 = arguments[0];
  4092. var type = getVariType(args0);
  4093. if (type === 'string') {
  4094. this._addWidgetType.apply(this, arguments);
  4095. } else if (type === 'object') {
  4096. for (var key in args0) {
  4097. args0.hasOwnProperty(key) && this._addWidgetType(key, args0[key]);
  4098. }
  4099. }
  4100. },
  4101. // 添加组件类型处理函数
  4102. _addWidgetType: function _addWidgetType(type, widget) {
  4103. var parentWidget = widget.template ? Widget_template : Widget_render;
  4104. if (widget.super == Vue) {
  4105. this.components[type] = widget.extend(Widget_vuecomponent);
  4106. return;
  4107. }
  4108. this.components[type] = _objectSpread({}, widget, {
  4109. extends: parentWidget
  4110. });
  4111. },
  4112. props: components_props,
  4113. data: function data() {
  4114. return {
  4115. innerLayout: [],
  4116. // 布局源数据
  4117. defVal: {
  4118. minH: 1,
  4119. // 默认每个卡片的最小高度
  4120. minW: 1,
  4121. // 默认每个卡片的最小宽度
  4122. maxH: Infinity,
  4123. // 默认每个卡片的最大高度
  4124. maxW: Infinity,
  4125. // 默认每个卡片的最大宽度
  4126. isDraggable: true,
  4127. // 默认每个卡片是否支持拖拽
  4128. isResizable: true,
  4129. // 默认每个卡片是否支持设置大小
  4130. isShowOriginCloseBtn: true,
  4131. // 是否显示默认的关闭按钮
  4132. dragIgnoreFrom: 'a, input, button, textarea'
  4133. },
  4134. containerHeight: 0,
  4135. // 容器高度
  4136. cols: [],
  4137. cacheComputed: {},
  4138. placeholder: null,
  4139. // 拖拽的placeholder
  4140. preOperator: 0,
  4141. // 防止点击事件是触发拖动样式,先赋值给preOperator,如果用户继续执行move,则将preOperator赋值给operator
  4142. operator: 0,
  4143. // 当前操作状态,0 - 无操作,1 - 拖拽, 2 - 缩放
  4144. operatedItem: null,
  4145. // 当前被操作的元素的状态
  4146. containerWidth: 0,
  4147. boxWatchHandler: null,
  4148. coors: null,
  4149. timer: null,
  4150. animation: null,
  4151. animationHandler: null,
  4152. eventHandler: {
  4153. mousedown: null,
  4154. mousemove: null,
  4155. mouseup: null
  4156. }
  4157. };
  4158. },
  4159. mounted: function mounted() {
  4160. var _this = this;
  4161. this.initCols();
  4162. if (this.width === false) {
  4163. this.boxWatchHandler = new watch_box_size(this.$el, function () {
  4164. _this.initCols();
  4165. });
  4166. } // 绑定拖拽事件
  4167. this.bindEvents();
  4168. this.setLayout(this.layout);
  4169. },
  4170. destroyed: function destroyed() {
  4171. this.boxWatchHandler.destroy(); // this.erd.uninstall(this.$el);
  4172. this.unbindEvents();
  4173. clearTimeout(this.timer);
  4174. },
  4175. watch: {
  4176. // layout(val){
  4177. // this.setLayout(val);
  4178. // },
  4179. rowHeight: function rowHeight() {
  4180. this.reRenderStyle({
  4181. triggerEventEnd: true,
  4182. onlyReRender: true
  4183. });
  4184. },
  4185. colNum: function colNum(val) {
  4186. // console.log('change col number');
  4187. if (this.coors) {
  4188. this.coors.setMaxWidth = parseInt(val);
  4189. }
  4190. this.initCols();
  4191. },
  4192. cols: function cols() {
  4193. // console.log('cols change');
  4194. this.cacheComputed = {};
  4195. if (this.operator) return;
  4196. this.reRenderStyle({
  4197. triggerEventEnd: true,
  4198. onlyReRender: true
  4199. });
  4200. },
  4201. margin: function margin() {
  4202. this.cacheComputed = {};
  4203. this.reRenderStyle();
  4204. },
  4205. backgroundColor: function backgroundColor() {
  4206. // this.reRenderStyle();
  4207. this.forceReRenderStyle();
  4208. },
  4209. width: function width() {
  4210. this.initCols();
  4211. }
  4212. },
  4213. computed: {
  4214. containerStyle: function containerStyle() {
  4215. return {
  4216. height: this.containerHeight + 'px'
  4217. };
  4218. },
  4219. operatorClass: function operatorClass() {
  4220. if (!this.operator) return '';
  4221. if (this.operator === 1) {
  4222. return 'alt-grid-container-operating alt-move';
  4223. } else if (this.operator === 2) {
  4224. return 'alt-grid-container-operating alt-resize';
  4225. }
  4226. return '';
  4227. }
  4228. },
  4229. methods: {
  4230. resetResize: function resetResize() {
  4231. var _this2 = this;
  4232. this.boxWatchHandler.destroy();
  4233. this.boxWatchHandler = new watch_box_size(this.$el, function () {
  4234. _this2.initCols();
  4235. });
  4236. },
  4237. bindEvents: function bindEvents() {
  4238. this.eventHandler.mousedown = this.mousedown.bind(this);
  4239. this.eventHandler.mousemove = this.mousemove.bind(this);
  4240. this.eventHandler.mouseup = this.mouseup.bind(this);
  4241. this.$el.addEventListener('mousedown', this.eventHandler.mousedown);
  4242. document.addEventListener('mousemove', this.eventHandler.mousemove);
  4243. document.addEventListener('mouseup', this.eventHandler.mouseup);
  4244. },
  4245. unbindEvents: function unbindEvents() {
  4246. this.$el.removeEventListener('mousedown', this.eventHandler.mousedown);
  4247. document.removeEventListener('mousemove', this.eventHandler.mousemove);
  4248. document.removeEventListener('mouseup', this.eventHandler.mouseup);
  4249. },
  4250. canDragClass: function canDragClass(isDraggable) {
  4251. return util_getFirstSetValue(isDraggable, this.isDraggable, true) ? 'can-drag' : '';
  4252. },
  4253. forceReRenderStyle: function forceReRenderStyle() {
  4254. var _this3 = this;
  4255. if (this.timer) clearTimeout(this.timer);
  4256. this.timer = setTimeout(function () {
  4257. _this3.innerLayout.forEach(function (item) {
  4258. var style = _this3.getCardStyle(item);
  4259. _this3.$set(item, '_alt_style', style); // item.style = style;
  4260. });
  4261. }, 10);
  4262. },
  4263. reRenderStyle: function reRenderStyle() {
  4264. var _this4 = this;
  4265. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  4266. var ignoreId = options.ignoreId;
  4267. var triggerEventEnd = options.triggerEventEnd;
  4268. var onlyReRender = options.onlyReRender;
  4269. if (this.timer) clearTimeout(this.timer);
  4270. this.timer = setTimeout(function () {
  4271. _this4.containerHeight = 0;
  4272. _this4.innerLayout.forEach(function (item, index) {
  4273. if (item._id === ignoreId) return;
  4274. var card = _this4.$refs.cards[index];
  4275. var oldStyle = {
  4276. style: card.style,
  4277. width: card.style.width,
  4278. height: card.style.height,
  4279. transform: card.style.transform
  4280. };
  4281. if (oldStyle.transform) {
  4282. oldStyle.transform = oldStyle.transform.replace(/\s/g, '');
  4283. }
  4284. var styleRaw = _this4.getCardStyle(item, true);
  4285. _this4.$set(item, '_alt_style', styleRaw.style); // item.style = style;
  4286. var status = _this4.getCardRectChangeStatus(oldStyle, styleRaw, ['width', 'height', 'transform'], {
  4287. triggerEventEnd: triggerEventEnd
  4288. });
  4289. if (status === 'none') return;
  4290. _this4.dispatchEvent(item._id, status, {
  4291. w: item.w,
  4292. h: item.h,
  4293. x: item.x,
  4294. y: item.y,
  4295. layout: _this4.innerLayout,
  4296. onlyReRender: onlyReRender
  4297. }); // console.log('create Style:', styleRaw, oldStyle, index);
  4298. });
  4299. }, 10);
  4300. },
  4301. getCardRectChangeStatus: function getCardRectChangeStatus(arg1, arg2, range) {
  4302. var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
  4303. var triggerEventEnd = options.triggerEventEnd;
  4304. var keys = range || Object.keys(arg1);
  4305. for (var i = 0, l = keys.length; i < l; i++) {
  4306. var key = keys[i];
  4307. if (arg1[key] !== arg2[key]) {
  4308. if (key === 'width' || key === 'height') {
  4309. if (triggerEventEnd) {
  4310. return 'resized';
  4311. }
  4312. return 'resize';
  4313. }
  4314. if (key === 'transform') {
  4315. if (triggerEventEnd) {
  4316. return 'moved';
  4317. }
  4318. return 'move';
  4319. }
  4320. }
  4321. }
  4322. return 'none';
  4323. },
  4324. dispatchEvent: function dispatchEvent(dragId, type, pos) {
  4325. var _this5 = this;
  4326. this.$nextTick(function () {
  4327. _this5.$nextTick(function () {
  4328. _this5.$refs[dragId] && _this5.$refs[dragId][0].$emit(type, pos);
  4329. });
  4330. });
  4331. },
  4332. getFirstSetValue: function getFirstSetValue() {
  4333. return util_getFirstSetValue.apply(void 0, arguments);
  4334. },
  4335. getPropsForInject: function getPropsForInject(index, item) {
  4336. return {
  4337. id: item._id,
  4338. card: item,
  4339. layout: this.innerLayout,
  4340. close: this.closeWidget.bind(this, item._id)
  4341. };
  4342. },
  4343. // 初始化每个列宽
  4344. initCols: function initCols() {
  4345. // // // console.log('init cols');
  4346. var containerWidth = 0;
  4347. if (this.width === false) {
  4348. containerWidth = this.$el.clientWidth;
  4349. } else {
  4350. containerWidth = this.width > 0 ? this.width : 0;
  4351. } // let containerWidth = this.$el.clientWidth;
  4352. if (this.colNum === this.cols.length && this.containerWidth && this.containerWidth === containerWidth) {
  4353. return;
  4354. }
  4355. this.containerWidth = containerWidth;
  4356. var colNum = this.colNum;
  4357. var cols = []; // let containerWidth = this.$el.clientWidth;
  4358. var remainder = containerWidth % colNum; // 余数
  4359. var quotient = Math.floor(containerWidth / colNum); // 商数
  4360. for (var i = 0; i < colNum; i++) {
  4361. if (remainder) {
  4362. cols[i] = quotient + 1;
  4363. remainder--;
  4364. } else {
  4365. cols[i] = quotient;
  4366. }
  4367. }
  4368. this.cols = cols;
  4369. },
  4370. // 设置布局layout数组
  4371. setLayout: function setLayout() {
  4372. var _this6 = this;
  4373. var layout = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  4374. // this.layout = deepCopy(layout);
  4375. // this.layout = layout;
  4376. // // console.log(deepCopy)
  4377. if (!this.coors) {
  4378. this.coors = new coordinate({
  4379. maxWidth: this.colNum
  4380. });
  4381. }
  4382. this.coors.clear();
  4383. this.coors.batchAddItem(layout);
  4384. var layoutOverCalc = this.coors.getAllItems();
  4385. layoutOverCalc.forEach(function (item) {
  4386. var style = _this6.getCardStyle(item);
  4387. _this6.$set(item, '_alt_style', style); // item.style = style;
  4388. });
  4389. this.innerLayout = layoutOverCalc;
  4390. if (/_env=altdev/.test(window.location.search)) {
  4391. autoMove(this, this.innerLayout);
  4392. }
  4393. },
  4394. // 设置总容器高度
  4395. setContainerHeight: function setContainerHeight(y, h) {
  4396. var containerHeight = this.containerHeight;
  4397. var height = y + h;
  4398. if (height > containerHeight) {
  4399. this.containerHeight = height;
  4400. }
  4401. },
  4402. // 获取卡片大小和位移
  4403. getCardStyle: function getCardStyle(item, raw) {
  4404. if (!item) return {};
  4405. var x = this.computeColsWidth(0, item.x) + 'px';
  4406. var w = this.getCardWidth(item.x, item.x + item.w) + 'px';
  4407. var y = item.y * this.rowHeight;
  4408. var yPx = y + 'px';
  4409. var h = item.h * this.rowHeight - this.margin[1];
  4410. var hPx = h + 'px';
  4411. this.setContainerHeight(y, h);
  4412. var transform = '';
  4413. if (utils_device.isMac) {
  4414. transform = "translate(".concat(x, ",").concat(yPx, ")");
  4415. } else {
  4416. transform = "translate3d(".concat(x, ",").concat(yPx, ",0px)");
  4417. }
  4418. var style = "transform:".concat(transform, ";width:").concat(w, ";height:").concat(hPx, ";background-color:").concat(this.backgroundColor, ";");
  4419. if (raw) {
  4420. return {
  4421. style: style,
  4422. x: x,
  4423. y: y,
  4424. width: w,
  4425. height: h,
  4426. transform: transform
  4427. };
  4428. }
  4429. return style; // return {
  4430. // transform: `translate(${x}px,${y}px)`,
  4431. // width: w + 'px',
  4432. // height: h + 'px'
  4433. // }
  4434. },
  4435. getCardStyleForRealTime: function getCardStyleForRealTime(item) {
  4436. if (!item) return;
  4437. var w = item.w;
  4438. var x = item.x;
  4439. if (x < 0) {
  4440. x = 0;
  4441. } else if (x + w > this.containerWidth) {
  4442. x = this.containerWidth - w;
  4443. }
  4444. var y = item.y;
  4445. if (y < 0) {
  4446. y = 0;
  4447. }
  4448. var transform = "transform:translate3d(".concat(x, "px,").concat(y, "px,0);");
  4449. var style = "".concat(transform, "width:").concat(w, "px;height:").concat(item.h, "px;background-color:").concat(this.backgroundColor, ";z-index:1;");
  4450. return style;
  4451. },
  4452. getCardStyleForPlaceholder: function getCardStyleForPlaceholder(item) {
  4453. if (!item) return {};
  4454. var x = this.computeColsWidth(0, item.x);
  4455. var w = this.getCardWidth(item.x, item.x + item.w);
  4456. var y = item.y * this.rowHeight;
  4457. var h = item.h * this.rowHeight - this.margin[1];
  4458. this.setContainerHeight(y, h);
  4459. var transform = "transform:translate3d(".concat(x, "px,").concat(y, "px,0);");
  4460. var style = "".concat(transform, "width:").concat(w, "px;height:").concat(h, "px;");
  4461. return style;
  4462. },
  4463. // 计算卡片的宽度
  4464. getCardWidth: function getCardWidth(start, end) {
  4465. var width = this.computeColsWidth(start, end);
  4466. if (end !== this.cols.length) {
  4467. width -= this.margin[0];
  4468. }
  4469. return width;
  4470. },
  4471. // 计算某几列的宽度
  4472. computeColsWidth: function computeColsWidth(start, end) {
  4473. var key = start + ';' + end;
  4474. if (this.cacheComputed[key]) return this.cacheComputed[key];
  4475. var cols = this.cols;
  4476. var width = 0;
  4477. for (var i = start; i < end; i++) {
  4478. width += cols[i];
  4479. }
  4480. this.cacheComputed[key] = width;
  4481. return width;
  4482. },
  4483. computeRowsHeight: function computeRowsHeight(start, end) {
  4484. return (end - start) * this.rowHeight;
  4485. },
  4486. mousedown: function mousedown(event) {
  4487. this.mousedownTimeStamp = new Date().getTime();
  4488. var evt = normalizeEvent(event);
  4489. var srcElement = evt.srcElement;
  4490. var target = evt.target;
  4491. var targetCard = findParentThoughEvtPath(evt.path, 'alt-grid-item', 'alt-grid-container');
  4492. if (!targetCard) return;
  4493. var dragId = this.getDragId(targetCard);
  4494. var node = this.getNodeByDragId(dragId);
  4495. if (hasClass(target, this.resizeHandlerClass)) {
  4496. if (!util_getFirstSetValue(node.isResizable, this.isResizable, this.defVal.isResizable)) {
  4497. return;
  4498. }
  4499. this.preOperator = 2; // resize
  4500. }
  4501. if (targetCard && !this.preOperator) {
  4502. if (!util_getFirstSetValue(node.isDraggable, this.isDraggable, this.defVal.isDraggable)) {
  4503. return;
  4504. }
  4505. var dragIgnoreFrom = util_getFirstSetValue(node.dragIgnoreFrom, this.defVal.dragIgnoreFrom);
  4506. if (isDragIgnoreFrom(target, targetCard, dragIgnoreFrom)) return;
  4507. this.preOperator = 1; // 拖拽
  4508. }
  4509. if (!targetCard && !this.preOperator) return; // if(!hasClass(target, 'alt-grid-item')) return;
  4510. var targetCardStyle = targetCard.style;
  4511. var translate = targetCardStyle.transform.match(/\(([-.\d]*)px, ([-.\d]*)px/);
  4512. this.operatedItem = {
  4513. srcElement: srcElement,
  4514. el: targetCard,
  4515. node: node,
  4516. dragId: dragId,
  4517. linkEmit: this.$refs[dragId] ? this.$refs[dragId][0].$emit : function () {},
  4518. startX: evt.clientX,
  4519. startY: evt.clientY,
  4520. cacheStyle: {
  4521. x: parseInt(translate[1]),
  4522. y: parseInt(translate[2]),
  4523. w: parseInt(targetCardStyle.width.match(/\d+/)[0]),
  4524. h: parseInt(targetCardStyle.height.match(/\d+/)[0])
  4525. }
  4526. };
  4527. this.placeholder = {
  4528. _id: '__placeHolder__',
  4529. x: node.x,
  4530. y: node.y,
  4531. w: node.w,
  4532. h: node.h
  4533. };
  4534. this.coors.replace(node._id, this.placeholder); // this.coors.remove(node._id);
  4535. // this.coors.add(this.placeholder);
  4536. // console.log('down', evt, this.operatedItem);
  4537. // if(hasClass(target, this.resizeHandlerClass)){
  4538. // this.operator = 2;
  4539. // } else {
  4540. // this.operator = 1;
  4541. // }
  4542. },
  4543. mousemove: function mousemove(evt) {
  4544. if (!this.preOperator) return;
  4545. this.operator = this.preOperator; // console.log('mouse move');
  4546. this.operatedItem.el.classList.add('operated-item');
  4547. var ex = evt.clientX;
  4548. var ey = evt.clientY;
  4549. var sx = this.operatedItem.startX;
  4550. var sy = this.operatedItem.startY;
  4551. if (this.operator === 1) {
  4552. this.dragMove(this.operatedItem, sx, sy, ex, ey);
  4553. } else if (this.operator === 2) {
  4554. this.resizeMove(this.operatedItem, sx, sy, ex, ey);
  4555. }
  4556. },
  4557. mouseup: function mouseup() {
  4558. var time = new Date().getTime();
  4559. if (time - this.mousedownTimeStamp < 10) {
  4560. this.operatedItem && this.operatedItem.srcElement && this.operatedItem.srcElement.click();
  4561. }
  4562. var operatedItem = this.operatedItem;
  4563. if (operatedItem) {
  4564. this.applyChange();
  4565. this.$set(operatedItem.node, '_alt_style', this.getCardStyle(operatedItem.node)); // item.node[] = this.getCardStyle(item.node);
  4566. this.coors.replace(this.placeholder._id, operatedItem.node); // this.coors.remove(this.placeholder._id);
  4567. // this.coors.add(operatedItem.node);
  4568. }
  4569. this.clearDragEnv();
  4570. this.$emit('update:layout', this.innerLayout);
  4571. },
  4572. applyChange: function applyChange() {
  4573. var x = this.placeholder.x;
  4574. var y = this.placeholder.y;
  4575. var w = this.placeholder.w;
  4576. var h = this.placeholder.h;
  4577. var dragId = this.operatedItem.dragId;
  4578. var node = this.operatedItem.node;
  4579. if (this.operator === 1) {
  4580. if (node.x === x && node.y === y) return;
  4581. node.x = x;
  4582. node.y = y;
  4583. this.dispatchEvent(dragId, 'moved', {
  4584. x: x,
  4585. y: y,
  4586. w: node.w,
  4587. h: node.h,
  4588. layout: this.innerLayout
  4589. });
  4590. } else if (this.operator === 2) {
  4591. if (node.w === w && node.h === h) return;
  4592. node.w = this.placeholder.w;
  4593. node.h = this.placeholder.h;
  4594. node.x = this.placeholder.x;
  4595. node.y = this.placeholder.y;
  4596. this.dispatchEvent(dragId, 'resized', {
  4597. x: x,
  4598. y: y,
  4599. w: w,
  4600. h: h,
  4601. layout: this.innerLayout
  4602. });
  4603. }
  4604. },
  4605. clearDragEnv: function clearDragEnv() {
  4606. this.preOperator = 0;
  4607. this.operator = 0;
  4608. this.operatedItem = null;
  4609. this.placeholder = null;
  4610. },
  4611. getNodeByDragId: function getNodeByDragId(dragId) {
  4612. var index = getIndexOfArrayByAttr(this.innerLayout, dragId, '_id');
  4613. if (index === -1) return null;
  4614. return this.innerLayout[index];
  4615. },
  4616. getDragId: function getDragId(target) {
  4617. return target.getAttribute('dg-id');
  4618. },
  4619. dragMove: function dragMove(operatedItem, sx, sy, ex, ey) {
  4620. // console.log('drag move');
  4621. var placeholder = this.placeholder;
  4622. var cacheStyle = operatedItem.cacheStyle;
  4623. var dx = ex - sx;
  4624. var dy = ey - sy;
  4625. var startCol = dx > 0 ? operatedItem.node.x + operatedItem.node.w : operatedItem.node.x;
  4626. var stepX = this.getMoveCols(dx, startCol);
  4627. var stepY = this.getMoveRows(dy, operatedItem.node.y); // console.log('calc over step');
  4628. var targetX = operatedItem.node.x + stepX;
  4629. var targetY = operatedItem.node.y + stepY;
  4630. this.coors.getItemById(placeholder._id).moveTo(targetX, targetY);
  4631. var x = cacheStyle.x + dx;
  4632. var y = cacheStyle.y + dy;
  4633. operatedItem.node['_alt_style'] = this.getCardStyleForRealTime({
  4634. x: x,
  4635. y: y,
  4636. w: cacheStyle.w,
  4637. h: cacheStyle.h
  4638. }); // this.coors.moveAllItemUp();
  4639. this.reRenderStyle({
  4640. ignoreId: operatedItem.dragId
  4641. });
  4642. this.dispatchEvent(operatedItem.dragId, 'move', {
  4643. x: this.placeholder.x,
  4644. y: this.placeholder.y,
  4645. w: this.placeholder.w,
  4646. h: this.placeholder.h,
  4647. layout: this.innerLayout
  4648. });
  4649. },
  4650. resizeMove: function resizeMove(operatedItem, sx, sy, ex, ey) {
  4651. var placeholder = this.placeholder;
  4652. var node = operatedItem.node;
  4653. var cacheStyle = operatedItem.cacheStyle;
  4654. var dx = ex - sx;
  4655. var dy = ey - sy;
  4656. var stepX = this.getMoveCols(dx, node.x + node.w);
  4657. var stepY = this.getMoveRows(dy, node.y + node.h);
  4658. var size = this.getItemLegalSize(node, {
  4659. w: node.w + stepX,
  4660. h: node.h + stepY
  4661. });
  4662. this.coors.getItemById(placeholder._id).resizeTo(size.w, size.h);
  4663. var pixiesSize = this.getItemLegalSizeInPixies(node, {
  4664. width: cacheStyle.w + dx,
  4665. height: cacheStyle.h + dy
  4666. });
  4667. if (cacheStyle.x + pixiesSize.width > this.containerWidth) {
  4668. pixiesSize.width = this.containerWidth - cacheStyle.x;
  4669. }
  4670. operatedItem.node['_alt_style'] = this.getCardStyleForRealTime({
  4671. x: cacheStyle.x,
  4672. y: cacheStyle.y,
  4673. w: pixiesSize.width,
  4674. h: pixiesSize.height
  4675. });
  4676. this.reRenderStyle({
  4677. ignoreId: operatedItem.dragId
  4678. });
  4679. this.dispatchEvent(operatedItem.dragId, 'resize', {
  4680. x: this.placeholder.x,
  4681. y: this.placeholder.y,
  4682. w: this.placeholder.w,
  4683. h: this.placeholder.h,
  4684. layout: this.innerLayout
  4685. });
  4686. },
  4687. getItemLegalSizeInPixies: function getItemLegalSizeInPixies(node, size) {
  4688. var pixiesLimit = this.getPixiesLimit(node);
  4689. var width = size.width;
  4690. var height = size.height;
  4691. if (width > pixiesLimit.maxWidth) {
  4692. width = pixiesLimit.maxWidth;
  4693. } else if (width < pixiesLimit.minWidth - 10) {
  4694. width = pixiesLimit.minWidth - 10;
  4695. }
  4696. if (height > pixiesLimit.maxHeight) {
  4697. height = pixiesLimit.maxHeight;
  4698. } else if (height < pixiesLimit.minHeight - 10) {
  4699. height = pixiesLimit.minHeight - 10;
  4700. }
  4701. return {
  4702. width: width,
  4703. height: height
  4704. };
  4705. },
  4706. getPixiesLimit: function getPixiesLimit(node) {
  4707. var pixiesLimit = {
  4708. minWidth: 0,
  4709. minHeight: 0,
  4710. maxWidth: Infinity,
  4711. maxHeight: Infinity
  4712. };
  4713. var minW = util_getFirstSetValue(node.minW, this.defVal.minW);
  4714. var minH = util_getFirstSetValue(node.minH, this.defVal.minH);
  4715. if (minW && minW > 0) {
  4716. pixiesLimit.minWidth = this.getCardWidth(node.x, node.x + minW);
  4717. }
  4718. if (minH && minH > 0) {
  4719. pixiesLimit.minHeight = minH * this.rowHeight - this.margin[1];
  4720. }
  4721. if (node.maxW && node.maxW > 0) {
  4722. pixiesLimit.maxWidth = this.getCardWidth(node.x, node.x + node.maxW);
  4723. }
  4724. if (node.maxH && node.maxH > 0) {
  4725. pixiesLimit.maxHeight = node.maxH * this.rowHeight - this.margin[1];
  4726. }
  4727. return pixiesLimit;
  4728. },
  4729. getMoveCols: function getMoveCols(dx, startCol) {
  4730. if (startCol <= 0 && dx < 0) return 0;
  4731. var flag = dx < 0 ? '-' : '+';
  4732. var absDx = Math.abs(dx);
  4733. if (absDx < 15) return 0;
  4734. var i = 0;
  4735. var c = startCol;
  4736. while (absDx > 0) {
  4737. if (flag === '-') {
  4738. c--;
  4739. absDx -= this.cols[c] || 0;
  4740. i++;
  4741. if (c <= 0) break;
  4742. } else {
  4743. c++;
  4744. absDx -= this.cols[c] || 0;
  4745. i++;
  4746. if (c >= this.cols.length) break;
  4747. }
  4748. }
  4749. return parseInt(flag + i);
  4750. },
  4751. getMoveRows: function getMoveRows(dy, startRow) {
  4752. if (startRow <= 0 && dy < 0) return 0;
  4753. var flag = dy < 0 ? '-' : '+';
  4754. var absDy = Math.abs(dy);
  4755. if (absDy < this.rowHeight / 2) return 0;
  4756. var i = 0;
  4757. var row = startRow;
  4758. while (absDy > 0) {
  4759. if (flag === '-') {
  4760. absDy -= this.rowHeight;
  4761. i++;
  4762. row--;
  4763. if (row <= 0) break;
  4764. } else {
  4765. absDy -= this.rowHeight;
  4766. i++;
  4767. row++;
  4768. }
  4769. }
  4770. return parseInt(flag + i);
  4771. },
  4772. addItem: function addItem(item) {
  4773. if (!this.coors) {
  4774. this.setLayout();
  4775. }
  4776. var distributeItem = this.coors.add(item);
  4777. var style = this.getCardStyle(distributeItem);
  4778. this.$set(distributeItem.rawInfo, '_alt_style', style);
  4779. this.innerLayout.push(distributeItem.rawInfo);
  4780. this.$emit('update:layout', this.innerLayout);
  4781. return distributeItem.id;
  4782. },
  4783. deleteItem: function deleteItem(id) {
  4784. return this.closeWidget(id);
  4785. },
  4786. getAllItems: function getAllItems() {
  4787. return this.innerLayout;
  4788. },
  4789. getItemLegalSize: function getItemLegalSize(item, size) {
  4790. var minH = util_getFirstSetValue(item.minH, this.defVal.minH);
  4791. var minW = util_getFirstSetValue(item.minW, this.defVal.minW);
  4792. var maxH = util_getFirstSetValue(item.maxH, this.defVal.maxH);
  4793. var maxW = util_getFirstSetValue(item.maxW, this.defVal.maxW);
  4794. var h = size.h;
  4795. var w = size.w;
  4796. if (size.h <= minH) {
  4797. h = minH;
  4798. }
  4799. if (size.h >= maxH) {
  4800. h = maxH;
  4801. }
  4802. if (size.w <= minW) {
  4803. w = minW;
  4804. }
  4805. if (size.w >= maxW) {
  4806. w = maxW;
  4807. }
  4808. return {
  4809. h: h,
  4810. w: w
  4811. };
  4812. },
  4813. closeWidget: function closeWidget(_id) {
  4814. var index = getIndexOfArrayByAttr(this.innerLayout, _id, '_id');
  4815. if (index === -1) return false;
  4816. var item = this.innerLayout[index];
  4817. this.coors.remove(item._id); // this.coors.moveAllItemUp();
  4818. this.innerLayout.splice(index, 1);
  4819. this.reRenderStyle(); // this.reRenderCount++;
  4820. this.clearDragEnv();
  4821. this.$emit('update:layout', this.innerLayout);
  4822. }
  4823. },
  4824. updated: function updated() {
  4825. this.$emit('updated');
  4826. }
  4827. });
  4828. // CONCATENATED MODULE: ./src/components/grid.vue?vue&type=script&lang=js&
  4829. /* harmony default export */ var components_gridvue_type_script_lang_js_ = (gridvue_type_script_lang_js_);
  4830. // EXTERNAL MODULE: ./src/components/grid.vue?vue&type=style&index=0&lang=css&
  4831. var gridvue_type_style_index_0_lang_css_ = __webpack_require__("d812");
  4832. // CONCATENATED MODULE: ./src/components/grid.vue
  4833. /* normalize component */
  4834. var grid_component = normalizeComponent(
  4835. components_gridvue_type_script_lang_js_,
  4836. render,
  4837. staticRenderFns,
  4838. false,
  4839. null,
  4840. null,
  4841. null
  4842. )
  4843. /* harmony default export */ var components_grid = (grid_component.exports);
  4844. // CONCATENATED MODULE: ./src/alt-store/mixin.js
  4845. function mixin(Vue) {
  4846. Vue.mixin({
  4847. beforeCreate: altStoreInit
  4848. });
  4849. function altStoreInit() {
  4850. var options = this.$options;
  4851. if (options.altStore) {
  4852. this.$altStore = options.altStore;
  4853. } else if (options.parent && options.parent.$altStore) {
  4854. this.$altStore = options.parent.$altStore;
  4855. }
  4856. }
  4857. }
  4858. // CONCATENATED MODULE: ./src/alt-store/util.js
  4859. function util_forEachValue(obj, fn) {
  4860. Object.keys(obj).forEach(function (key) {
  4861. return fn(obj[key], key);
  4862. });
  4863. }
  4864. // CONCATENATED MODULE: ./src/alt-store/store.js
  4865. var store_Vue;
  4866. var store_AltStore =
  4867. /*#__PURE__*/
  4868. function () {
  4869. function AltStore(options) {
  4870. _classCallCheck(this, AltStore);
  4871. this._mutations = Object.create(null);
  4872. this.initVm(options.state);
  4873. this.initMutations(options.mutations);
  4874. }
  4875. _createClass(AltStore, [{
  4876. key: "commit",
  4877. value: function commit(type, payload) {
  4878. var entry = this._mutations[type];
  4879. if (!entry) {
  4880. console.error('[altStore] unknown commit type.');
  4881. return;
  4882. }
  4883. entry.forEach(function (handler) {
  4884. handler(payload);
  4885. });
  4886. }
  4887. }, {
  4888. key: "getOriginState",
  4889. value: function getOriginState() {
  4890. return this._vm._data.$$state;
  4891. }
  4892. }, {
  4893. key: "initMutations",
  4894. value: function initMutations(mutations) {
  4895. var store = this;
  4896. var state = this.getOriginState();
  4897. util_forEachValue(mutations, function (handler, key) {
  4898. var entry = store._mutations[key] || (store._mutations[key] = []);
  4899. entry.push(function wrapperHandler(payload) {
  4900. handler.call(store, state, payload);
  4901. });
  4902. });
  4903. }
  4904. }, {
  4905. key: "initVm",
  4906. value: function initVm(state) {
  4907. var oldVm = this._vm;
  4908. this._vm = new store_Vue({
  4909. data: {
  4910. $$state: state
  4911. }
  4912. });
  4913. if (oldVm) {
  4914. store_Vue.nextTick(function () {
  4915. return oldVm.$destroy();
  4916. });
  4917. }
  4918. }
  4919. }, {
  4920. key: "state",
  4921. get: function get() {
  4922. return this._vm._data.$$state;
  4923. },
  4924. set: function set(v) {
  4925. console.error('cannot set state directly.');
  4926. }
  4927. }]);
  4928. return AltStore;
  4929. }();
  4930. function install(_Vue) {
  4931. if (store_Vue && _Vue === store_Vue) {
  4932. if (false) {}
  4933. return;
  4934. }
  4935. store_Vue = _Vue;
  4936. mixin(store_Vue);
  4937. }
  4938. // CONCATENATED MODULE: ./src/alt-store/index.js
  4939. /* harmony default export */ var alt_store = ({
  4940. Store: store_AltStore,
  4941. install: install
  4942. });
  4943. // CONCATENATED MODULE: ./src/index.js
  4944. // import Vue from "vue";
  4945. // Vue.component('AltVueGridLayout', VueGridLayout);
  4946. function factory() {
  4947. var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  4948. var grid = _objectSpread({}, components_grid, {
  4949. components: {}
  4950. });
  4951. if (options.altStore && options.altStore instanceof alt_store.Store) {
  4952. grid.altStore = options.altStore;
  4953. }
  4954. return grid;
  4955. } // export default VueGridLayout;
  4956. /* harmony default export */ var src = ({
  4957. createGrid: factory,
  4958. grid: components_grid,
  4959. altStore: alt_store
  4960. });
  4961. // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
  4962. /* harmony default export */ var entry_lib = __webpack_exports__["default"] = (src);
  4963. /***/ }),
  4964. /***/ "fde4":
  4965. /***/ (function(module, exports, __webpack_require__) {
  4966. __webpack_require__("bf90");
  4967. var $Object = __webpack_require__("584a").Object;
  4968. module.exports = function getOwnPropertyDescriptor(it, key) {
  4969. return $Object.getOwnPropertyDescriptor(it, key);
  4970. };
  4971. /***/ }),
  4972. /***/ "fdef":
  4973. /***/ (function(module, exports) {
  4974. module.exports = '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003' +
  4975. '\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
  4976. /***/ })
  4977. /******/ })["default"];
  4978. //# sourceMappingURL=doesburg.common.js.map